我的weblogic和jb7都配好了,classes12.zip也放在wl7lib下设置好了,我写了一个小程序测试连接池的情况,为什么还出这个java.lang.NullPoint
我的错误:
D:\toolsetup\weblogic70\bea\jdk131_02\bin\javaw -classpath "D:\toolsetup\weblogic70\bea\user_projects\mydomain\test\classes;D:\toolsetup\weblogic70\bea\weblogic700\server\lib\weblogic_sp.jar;D:\toolsetup\weblogic70\bea\weblogic700\server\lib\weblogic.jar;D:\toolsetup\weblogic70\bea\jdk131_02\jre\lib\i18n.jar;D:\toolsetup\weblogic70\bea\jdk131_02\jre\lib\jaws.jar;D:\toolsetup\weblogic70\bea\jdk131_02\jre\lib\rt.jar;D:\toolsetup\weblogic70\bea\jdk131_02\jre\lib\sunrsasign.jar;D:\toolsetup\weblogic70\bea\jdk131_02\lib\dt.jar;D:\toolsetup\weblogic70\bea\jdk131_02\lib\htmlconverter.jar;D:\toolsetup\weblogic70\bea\jdk131_02\lib\tools.jar" test.test
java.lang.NullPointerException
at test.test.main(test.java:48)
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleStatement
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Class.java:742)
at weblogic.rmi.utils.Utilities.getRemoteMethods(Utilities.java:382)
at weblogic.rmi.internal.StubGenerator.<init>(StubGenerator.java:60)
at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:627)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:646)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:641)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:59)
at weblogic.common.internal.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:231)
at weblogic.common.internal.ChunkedObjectInputStream.resolveObject(ChunkedObjectInputStream.java:51)
at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.resolveObject(ChunkedObjectInputStream.java:321)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:399)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:111)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:91)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:161)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:128)
at weblogic.jdbc.common.internal.RmiDataSource_WLStub.getConnection(Unknown Source)
at test.test.main(test.java:23)
Exception in thread "main" stmt
我的问题:我的错误原因是什么?
1)java.lang.NullPointerException
at test.test.main(test.java:48)
为什么错误行指向我下面的stmt.close();
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleStatement
...
这些有是什么错误,怎么解决呀