• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while calling an EJB from RAD - invalid stream header

 
ashishkumar chauhan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running EJB on RAD6. So while calling a custom written existing API, I got following error:

CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "findByPrimaryKey". Exception data: com.ibm.websphere.cpi.CPIException: ; nested exception is:
java.lang.RuntimeException: invalid stream header
at com.ibm.ejs.container.ContainerManagedBeanO.load(ContainerManagedBeanO.java:1036)
at com.ibm.ejs.container.ContainerManagedBeanO.loadForEnlist(ContainerManagedBeanO.java:963)
at com.ibm.ejs.container.EntityBeanO.enlist(EntityBeanO.java:781)
at com.ibm.ejs.container.activator.OptCEntityActivationStrategy.atActivate(OptCEntityActivationStrategy.java:161)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:595)
at com.ibm.ejs.container.EJSHome.activateBean_Common(EJSHome.java:1860)
at com.ibm.ejs.container.EJSHome.activateBean(EJSHome.java:1700)
at com.my.pack.dataobject.ejb.EJSJDBCPersisterCMPDocmt_dataBean_0103446d.findByPrimaryKey(EJSJDBCPersisterCMPDocmt_dataBean_0103446d.java:416)
at com.my.pack.dataobject.ejb.EJSCMPDocmt_dataHomeBean_0103446d.findByPrimaryKey(EJSCMPDocmt_dataHomeBean_0103446d.java:87)
at com.my.pack.dataobject.ejb.EJSRemoteCMPDocmt_dataHome_0103446d.findByPrimaryKey(EJSRemoteCMPDocmt_dataHome_0103446d.java:140)
at com.my.pack.dataobject.ejb._Docmt_dataHome_Stub.findByPrimaryKey(_Docmt_dataHome_Stub.java:288)
at com.my.pack.dataobject.ejb.Docmt_dataFactory.findByPrimaryKey(Docmt_dataFactory.java:67)
at com.my.pack.services.data.facade.DataEntryService.getDocumentData(DataEntryService.java:2595)
at com.my.pack.services.data.facade.DataEntryService.getDocumentDataForDE(DataEntryService.java:2348)
at com.my.pack.services.data.facade.DataServiceBean.getDocumentDataForDE(DataServiceBean.java:2469)
at com.my.pack.services.data.facade.EJSRemoteStatelessDataService_f4ad76f5.getDocumentDataForDE(EJSRemoteStatelessDataService_f4ad76f5.java:5980)
at com.my.pack.services.data.facade._DataService_Stub.getDocumentDataForDE(_DataService_Stub.java:11951)
at com.my.pack.services.data.facade.DataServiceAccessBean.getDocumentDataForDE(DataServiceAccessBean.java:3594)
at com.gnw.anb.agent.validation.proxy.AnnuityAgentValidationProxy.retrieveDocumentData(AnnuityAgentValidationProxy.java:748)
at com.gnw.anb.agent.validation.proxy.AnnuityAgentValidationProxy.processFormData(AnnuityAgentValidationProxy.java:146)
at com.gnw.anb.agent.validation.ejb.AgentValidationBean.processFormData(AgentValidationBean.java:66)
at com.gnw.anb.agent.validation.ejb.EJSRemoteStatelessAgentValidation_f7c32f50.processFormData(EJSRemoteStatelessAgentValidation_f7c32f50.java:31)
at com.gnw.anb.agent.validation.ejb._EJSRemoteStatelessAgentValidation_f7c32f50_Tie.processFormData(_EJSRemoteStatelessAgentValidation_f7c32f50_Tie.java:164)
at com.gnw.anb.agent.validation.ejb._EJSRemoteStatelessAgentValidation_f7c32f50_Tie._invoke(_EJSRemoteStatelessAgentValidation_f7c32f50_Tie.java:104)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:610)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:463)
at com.ibm.rmi.iiop.ORB.process(ORB.java:439)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1737)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2260)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
Caused by: java.lang.RuntimeException: invalid stream header
at com.ibm.vap.converters.streams.VapBinaryStreamToSerializableObjectConverter.objectFrom(VapBinaryStreamToSerializableObjectConverter.java:63)
at com.my.pack.dataobject.ejb.EJSJDBCPersisterCMPDocmt_dataBean_0103446d.hydrate(EJSJDBCPersisterCMPDocmt_dataBean_0103446d.java:121)
at com.my.pack.dataobject.ejb.EJSJDBCPersisterCMPDocmt_dataBean_0103446d.load(EJSJDBCPersisterCMPDocmt_dataBean_0103446d.java:145)
at com.ibm.ejs.container.ContainerManagedBeanO.load(ContainerManagedBeanO.java:1009)

It would be great help, if anybody can help.

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!