Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes Problem while getting the Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem while getting the Connection" Watch "Problem while getting the Connection" New topic
Author

Problem while getting the Connection

Vikram Varma
Greenhorn

Joined: Apr 18, 2011
Posts: 4
Hi,

I am trying to connect to the Weblogic server on my local machine. I am getting the below error. However, when I print the datasource Iam getting it right. The problem is only when I try to get the connection from the Datasource. Please suggest:

Code:


Error:
DataSource Got :ClusterableRemoteRef(-634073511450917637S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:regulatory_domain:AdminServer [-634073511450917637S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:regulatory_domain:AdminServer/287])/287
<Apr 18, 2011 11:05:03 AM EDT> <Info> <JDBC> <BEA-001155> <The following exception has occurred:

java.lang.NullPointerException
at weblogic.utils.wrapper.WrapperFactory.getCachedWrapperClass(WrapperFactory.java:55)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:202)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:190)
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:175)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:194)
at weblogic.jdbc.rmi.SerialConnection.readResolve(SerialConnection.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1761)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:208)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:596)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:204)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at weblogic.jdbc.common.internal.RmiDataSource_1034_WLStub.getConnection(Unknown Source)
at com.ups.ops.dm.regulatory.vikram.DBStub2.main(DBStub2.java:39)
>
Connection Got :weblogic.rmi.internal.LeasedRemoteRef - hostID: '-634073511450917637S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:regulatory_domain:AdminServer', oid: '309', channel: 'null'
<Apr 18, 2011 11:05:04 AM EDT> <Info> <JDBC> <BEA-001155> <The following exception has occurred:

java.lang.NullPointerException
at weblogic.utils.wrapper.WrapperFactory.getCachedWrapperClass(WrapperFactory.java:55)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:202)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:190)
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:175)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:194)
at weblogic.jdbc.rmi.internal.PreparedStatementStub.readResolve(PreparedStatementStub.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1761)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:208)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:596)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:204)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_com_ibm_db2_jcc_t4_b_1034_WLStub.prepareStatement(Unknown Source)
at com.ups.ops.dm.regulatory.vikram.DBStub2.main(DBStub2.java:45)
>
<Apr 18, 2011 11:05:05 AM EDT> <Info> <JDBC> <BEA-001155> <The following exception has occurred:

java.lang.NullPointerException
at weblogic.utils.wrapper.WrapperFactory.getCachedWrapperClass(WrapperFactory.java:55)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:202)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:190)
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:175)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:194)
at weblogic.jdbc.rmi.internal.ResultSetStub.readResolve(ResultSetStub.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1761)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:208)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:596)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:204)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at weblogic.jdbc.rmi.internal.PreparedStatementImpl_weblogic_jdbc_wrapper_PreparedStatement_com_ibm_db2_jcc_b_uk_1034_WLStub.executeQuery(Unknown Source)
at com.ups.ops.dm.regulatory.vikram.DBStub2.main(DBStub2.java:50)
>
Exception in thread "Main Thread" java.lang.NullPointerException
at com.ups.ops.dm.regulatory.vikram.DBStub2.main(DBStub2.java:51)



[moderator: added code tags]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while getting the Connection
 
Similar Threads
Invalid Class Exception during serialization
EJB 3.0 deployment problem in Weblogic 10
Error while deploying EAR
java.rmi.UnmarshalException: failed to unmarshal interface java.util.Set; nested exce
Invocation TargetException