Hi All,
We are in the process of upgrading our Hibernate jar from 3.0 to 3.2.6. Currently I am getting the following error when I run my code in RAD 7.0(Websphere 6.1). I was wondering if anybody else have the same problem? I was able to solve the problem by adding the implements serializable to the ExtendsQueueEntry class in Org.hibernate.cfg package.
Do you think I am using the NamingHelper improperly ?
This is the code snipped that is producing the error
NamingHelper.bind(new InitialContext(), ManagerBase.CONFIG_NAME, someConfigurationSettings);
Hibernate version:3.2.6
[8/18/08 14:32:37:524 EDT] 00000011 Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow: Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl Context method: rebind Context name: mef-kczr13yNode02Cell/nodes/mef-kczr13yNode02/servers/server1 Target name: persistence/config Other data: Object to bind: org.hibernate.cfg.Configuration@145e145e Exception stack trace: javax.naming.NamingException: persistence/config [Root exception is java.io.NotSerializableException: org.hibernate.cfg.ExtendsQueueEntry] at com.ibm.ws.naming.jndicos.CNContextImpl.doRebind(CNContextImpl.java:2641) at com.ibm.ws.naming.jndicos.CNContextImpl.rebind(CNContextImpl.java:812) at com.ibm.ws.naming.util.WsnInitCtx.rebind(WsnInitCtx.java:248) at javax.naming.InitialContext.rebind(InitialContext.java:379) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:49) at gov.irs.efile.persistence.domain.ManagerBase.saveMappings(ManagerBase.java:374) at gov.irs.efile.persistence.SessionDelegate.buildFactory(SessionDelegate.java:228) at gov.irs.efile.persistence.SessionDelegate.getFactory(SessionDelegate.java:370) at gov.irs.efile.persistence.SessionDelegate.start(SessionDelegate.java:608) at gov.irs.efile.persistence.PersistenceSessionController.startSession(PersistenceSessionController.java:150) at gov.irs.efile.persistence.PersistenceSessionController.startSession(PersistenceSessionController.java:127) at gov.irs.helloejb.HelloWorldBean.testSync(HelloWorldBean.java:144) at gov.irs.helloejb.EJSRemoteStatelessHelloWorld_290b51cc.testSync(EJSRemoteStatelessHelloWorld_290b51cc.java:350) at gov.irs.helloejb._EJSRemoteStatelessHelloWorld_290b51cc_Tie.testSync(_EJSRemoteStatelessHelloWorld_290b51cc_Tie.java:215) at gov.irs.helloejb._EJSRemoteStatelessHelloWorld_290b51cc_Tie._invoke(_EJSRemoteStatelessHelloWorld_290b51cc_Tie.java:91) at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:613) at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:466) at com.ibm.rmi.iiop.ORB.process(ORB.java:503) at com.ibm.CORBA.iiop.ORB.process(ORB.java:1552) at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2673) at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2551) at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62) at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510) Caused by: java.io.NotSerializableException: org.hibernate.cfg.ExtendsQueueEntry at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1108) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:324) at java.util.HashMap.writeObject(HashMap.java:1039) at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:972) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1426) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1462) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1434) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:324) at com.ibm.ws.naming.util.Serialization.serializeObject(Serialization.java:70) at com.ibm.ws.naming.util.Helpers.processJavaObjectForBinding(Helpers.java:616) at com.ibm.ws.naming.jndicos.CNContextImpl.doRebind(CNContextImpl.java:2556) ... 23 more:
Name and version of the database you are using: Oracle 10g
|