A NullPointerException throws out when i use weblogic's jdk but,when i change to using sun's jdk, it works fine.