Cannot resolve injection error during injection of ConnectionFactory - weblogic.developer.interest.jms(Archived)

I'm working on weblogic10.01, I 'm able to deploy the app without errors. But when I try to call a SessionBean that has a reference to ConnectionFactory I'm getting following error. Can Anyone point me what is going wrong?
          
          Thanks
          -Mani
          
          SessionBean looks like this
          #Resource(mappedName="TraxisCF")
          private ConnectionFactory conFac;
          
          javax.ejb.EJBException: nested exception is: java.lang.UnsupportedOperationException: Cannot resolve injection: com.bea.core.repackaged.springframework.jee.inject.FieldInjection; member=conFac; ResourceInfo: name='org.nmdp.traxis.services.esb.TraxisMessageServiceBean/conFac'; type='interface javax.jms.ConnectionFactory'
          java.lang.UnsupportedOperationException: Cannot resolve injection: com.bea.core.repackaged.springframework.jee.inject.FieldInjection; member=conFac; ResourceInfo: name='org.nmdp.traxis.services.esb.TraxisMessageServiceBean/conFac'; type='interface javax.jms.ConnectionFactory'
               at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:237)
               at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.inject(Jsr250Metadata.java:218)
               at weblogic.ejb.container.injection.EjbComponentCreatorImpl.injection(EjbComponentCreatorImpl.java:131)
               at weblogic.ejb.container.injection.EjbComponentCreatorImpl.getBean(EjbComponentCreatorImpl.java:74)
               at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:216)
               at weblogic.ejb.container.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:233)
               at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:305)
               at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:173)
               at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:105)
               at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:150)
               at weblogic.ejb.container.internal.BaseRemoteObject.preInvoke(BaseRemoteObject.java:230)
               at weblogic.ejb.container.internal.StatelessRemoteObject.preInvoke(StatelessRemoteObject.java:49)
               at org.nmdp.traxis.services.esb.TraxisMessageService_hli4uu_TraxisMessageServiceImpl.notifyNewRecipient(TraxisMessageService_hli4uu_TraxisMessageServiceImpl.java:38)
               at org.nmdp.traxis.services.esb.TraxisMessageService_hli4uu_TraxisMessageServiceImpl_WLSkel.invoke(Unknown Source)
               at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
               at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
               at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
               at weblogic.security.service.SecurityManager.runAs(Unknown Source)
               at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
               at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
               at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
               at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
               at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
          Caused by: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.jms.ConnectionFactory] is defined: No beans of type javax.jms.ConnectionFactory; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext;hashCode=13800764]; startup date [Thu Jun 26 10:37:00 CDT 2008]; child of [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext;hashCode=13712035]; startup date [Thu Jun 26 10:37:00 CDT 2008]; child of [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext;hashCode=14454525]; startup date [Thu Jun 26 10:37:00 CDT 2008]; root of context hierarchy]]
               at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.getUniqueInstanceOfType(Jsr250Metadata.java:298)
               at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.resolveByType(Jsr250Metadata.java:292)
               at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:279)
               at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:230)

Related

NullPointerException in BEConsumerImpl

I had been running some tests against WL90 beta yesterday.
          After I restarted the server today they are failing.
          I get stack traces like the one below. Is there
          any way I can reset stuff so that things work again?
          
          Thanks
          
          -Andrew
          
          PS please let me know if this is the wrong place to post this.
          
          com.kenamea.comms.pp.messaging.MessagingException: weblogic.jms.common.JMSException: Error in blocking receive
               at com.kenamea.comms.pp.messaging.JmsService.getMatchingMessage(JmsService.java:202)
               at com.kenamea.comms.pp.messaging.JmsService.getNextMessage(JmsService.java:324)
               at com.kenamea.comms.pp.messaging.MessagingServiceUtils.drainQueue(MessagingServiceUtils.java:19)
               at com.kenamea.comms.pp.TokenQueueReaderTest.setUp(TokenQueueReaderTest.java:64)
               at junit.framework.TestCase.runBare(TestCase.java:125)
               at junit.framework.TestResult$1.protect(TestResult.java:106)
               at junit.framework.TestResult.runProtected(TestResult.java:124)
               at junit.framework.TestResult.run(TestResult.java:109)
               at junit.framework.TestCase.run(TestCase.java:118)
               at junit.framework.TestSuite.runTest(TestSuite.java:208)
               at junit.framework.TestSuite.run(TestSuite.java:203)
               at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
               at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:523)
          Caused by: weblogic.jms.common.JMSException: Error in blocking receive
               at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:62)
               at weblogic.jms.dispatcher.Request.getResult(Request.java:51)
               at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:766)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:115)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsync(DispatcherImpl.java:107)
               at weblogic.messaging.dispatcher.Request.dispatchAsync(Request.java:881)
               at weblogic.jms.dispatcher.Request.dispatchAsync(Request.java:71)
               at weblogic.jms.frontend.FEConsumer.receive(FEConsumer.java:491)
               at weblogic.jms.frontend.FEConsumer.invoke(FEConsumer.java:718)
               at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:643)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:115)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSyncTranFuture(DispatcherImpl.java:173)
               at weblogic.messaging.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown Source)
               at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
               at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:381)
               at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
               at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
               at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:377)
               at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:52)
               at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:831)
               at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
               at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)
          Caused by: weblogic.jms.common.JMSException: Error in blocking receive
               at weblogic.jms.backend.BEConsumerImpl.blockingReceiveProcessMessage(BEConsumerImpl.java:954)
               at weblogic.jms.backend.BEConsumerImpl.receive(BEConsumerImpl.java:1115)
               at weblogic.jms.backend.BEConsumerImpl.invoke(BEConsumerImpl.java:815)
               at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:643)
               ... 19 more
          Caused by: weblogic.messaging.kernel.KernelException: Error reading message body
               at weblogic.messaging.kernel.internal.PersistenceImpl.readMessageBody(PersistenceImpl.java:471)
               at weblogic.messaging.kernel.internal.MessageHandle.pin(MessageHandle.java:352)
               at weblogic.messaging.kernel.internal.QueueImpl.get(QueueImpl.java:185)
               at weblogic.messaging.kernel.internal.QueueImpl.addReader(QueueImpl.java:751)
               at weblogic.messaging.kernel.internal.ReceiveRequestImpl.start(ReceiveRequestImpl.java:170)
               at weblogic.messaging.kernel.internal.ReceiveRequestImpl.<init>(ReceiveRequestImpl.java:86)
               at weblogic.messaging.kernel.internal.QueueImpl.receive(QueueImpl.java:594)
               at weblogic.jms.backend.BEConsumerImpl.blockingReceiveStart(BEConsumerImpl.java:899)
               at weblogic.jms.backend.BEConsumerImpl.receive(BEConsumerImpl.java:1109)
               ... 21 more
          Caused by: weblogic.store.io.jdbc.JDBCStoreException: [Store:280064]invalid handle 2 (server="examplesServer" store="exampleJDBCStore" table="examplesWLStore")
               at weblogic.store.io.jdbc.JDBCStoreIO.checkHandle(JDBCStoreIO.java:788)
               at weblogic.store.io.jdbc.JDBCStoreIO.read(JDBCStoreIO.java:1020)
               at weblogic.store.internal.ReadRequest.run(ReadRequest.java:33)
               at weblogic.store.internal.StoreRequest.doTheIO(StoreRequest.java:60)
               at weblogic.store.internal.PersistentStoreImpl.run(PersistentStoreImpl.java:459)
               at java.lang.Thread.run(Thread.java:595)
          com.kenamea.comms.pp.messaging.MessagingException: weblogic.jms.common.JMSException: weblogic.messaging.dispatcher.DispatcherException: java.lang.NullPointerException
               at com.kenamea.comms.pp.messaging.JmsService.getMatchingMessage(JmsService.java:202)
               at com.kenamea.comms.pp.messaging.JmsService.getNextMessage(JmsService.java:324)
               at com.kenamea.comms.pp.messaging.MessagingServiceUtils.drainQueue(MessagingServiceUtils.java:19)
               at com.kenamea.comms.pp.TokenQueueReaderTest.setUp(TokenQueueReaderTest.java:64)
               at junit.framework.TestCase.runBare(TestCase.java:125)
               at junit.framework.TestResult$1.protect(TestResult.java:106)
               at junit.framework.TestResult.runProtected(TestResult.java:124)
               at junit.framework.TestResult.run(TestResult.java:109)
               at junit.framework.TestCase.run(TestCase.java:118)
               at junit.framework.TestSuite.runTest(TestSuite.java:208)
               at junit.framework.TestSuite.run(TestSuite.java:203)
               at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
               at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:523)
          Caused by: weblogic.jms.common.JMSException: weblogic.messaging.dispatcher.DispatcherException: java.lang.NullPointerException
               at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSException(DispatcherAdapter.java:92)
               at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncNoTran(DispatcherAdapter.java:52)
               at weblogic.jms.client.JMSSession.receiveMessage(JMSSession.java:498)
               at weblogic.jms.client.JMSConsumer.receive(JMSConsumer.java:385)
               at com.kenamea.comms.pp.messaging.JmsService.getMatchingMessage(JmsService.java:218)
               at com.kenamea.comms.pp.messaging.JmsService.getMatchingMessage(JmsService.java:198)
               ... 12 more
          Caused by: weblogic.messaging.dispatcher.DispatcherException: java.lang.NullPointerException
               at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:804)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:115)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSyncTranFuture(DispatcherImpl.java:173)
               at weblogic.messaging.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown Source)
               at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
               at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:381)
               at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
               at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
               at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:377)
               at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:52)
               at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:831)
               at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
               at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)
          Caused by: java.lang.NullPointerException
               at weblogic.jms.backend.BEConsumerImpl.blockingReceiveProcessMessage(BEConsumerImpl.java:998)
               at weblogic.jms.backend.BEConsumerImpl.receive(BEConsumerImpl.java:1115)
               at weblogic.jms.backend.BEConsumerImpl.invoke(BEConsumerImpl.java:815)
               at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:643)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:115)
               at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsync(DispatcherImpl.java:107)
               at weblogic.messaging.dispatcher.Request.dispatchAsync(Request.java:881)
               at weblogic.jms.dispatcher.Request.dispatchAsync(Request.java:71)
               at weblogic.jms.frontend.FEConsumer.receive(FEConsumer.java:491)
               at weblogic.jms.frontend.FEConsumer.invoke(FEConsumer.java:718)
               at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:643)
               ... 12 more 
I don't know what the solution is - but here a couple of things that might help:
          
          - Since this is a beta bug, you might want to try reposting to the jms beta newsgroup.
          
          - You also might want to investigate if there is such a thing as a "beta refresh" you can download.

[Help!] weblogic.jms.common.JMSException: No failover destination

Folks,
          
          We have ancountered this problem on two of our clusters.
          
          Each cluster comprises of two WebLogic managed Servers. The error is thrown from a JMS producer contained in a servlet in Tomcat.
          
          I can't find any information on the web.
          
          Any help please?
          
          05:57:49,728 - ERROR - jms.ChannelJMSQueueImpl - JMS Exception sending message.
          weblogic.jms.common.JMSException: No failover destination.
               at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
               at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncNoTran(DispatcherAdapter.java:61)
               at weblogic.jms.client.JMSProducer.toFEProducer(JMSProducer.java:1061)
               at weblogic.jms.client.JMSProducer.deliveryInternal(JMSProducer.java:670)
               at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:455)
               at weblogic.jms.client.JMSProducer.send(JMSProducer.java:337)
               at weblogic.jms.client.WLProducerImpl.send(WLProducerImpl.java:966)
               at com.X.core.notifications.impl.jms.ChannelJMSQueueImpl.sendMessage(ChannelJMSQueueImpl.java:96)
               at com.X.core.notifications.routing.NotificationRoutingTable.publishCommand(NotificationRoutingTable.java:325)
               at com.X.core.notifications.routing.NotificationRoutingTable.addRoutingEntry(NotificationRoutingTable.java:242)
               at com.X.core.notifications.routing.NotificationRoutingAPI.startRoutingTo(NotificationRoutingAPI.java:122)
               at com.X.core.notifications.broker.servlet.MaintenanceChannelListener.handleSubscribeMessage(MaintenanceChannelListener.java:296)
               at com.X.core.notifications.broker.servlet.MaintenanceChannelListener.processControlMessage(MaintenanceChannelListener.java:148)
               at com.X.core.notifications.broker.servlet.NotificationsBrokerDelegate.sendMessage(NotificationsBrokerDelegate.java:700)
               at com.X.core.notifications.broker.servlet.NotificationsBrokerServlet2.delegateDoPost(NotificationsBrokerServlet2.java:214)
               at com.X.core.notifications.broker.servlet.NotificationsBrokerServlet2.doPost(NotificationsBrokerServlet2.java:118)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
               at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
               at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
               at java.lang.Thread.run(Unknown Source)
          Caused by: weblogic.jms.common.JMSException: No failover destination.
               at weblogic.jms.frontend.FEProducer.pickNextDestination(FEProducer.java:750)
               at weblogic.jms.frontend.FEProducer.sendRetryDestination(FEProducer.java:1083)
               at weblogic.jms.frontend.FEProducer.send(FEProducer.java:1383)
               at weblogic.jms.frontend.FEProducer.invoke(FEProducer.java:1444)
               at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
               at weblogic.messaging.dispatcher.DispatcherServerRef.invoke(DispatcherServerRef.java:276)
               at weblogic.messaging.dispatcher.DispatcherServerRef.handleRequest(DispatcherServerRef.java:141)
               at weblogic.messaging.dispatcher.DispatcherServerRef.access$000(DispatcherServerRef.java:36)
               at weblogic.messaging.dispatcher.DispatcherServerRef$2.run(DispatcherServerRef.java:112)
               at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
               at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
          Caused by: weblogic.messaging.dispatcher.DispatcherException: could not find Server null
               at weblogic.messaging.dispatcher.DispatcherManager.dispatcherCreate(DispatcherManager.java:176)
               at weblogic.messaging.dispatcher.DispatcherManager.dispatcherFindOrCreate(DispatcherManager.java:58)
               at weblogic.jms.dispatcher.JMSDispatcherManager.dispatcherFindOrCreate(JMSDispatcherManager.java:200)
               at weblogic.jms.dispatcher.JMSDispatcherManager.dispatcherFindOrCreateChecked(JMSDispatcherManager.java:211)
               at weblogic.jms.frontend.FEProducer.findDispatcher(FEProducer.java:825)
               at weblogic.jms.frontend.FEProducer.sendRetryDestination(FEProducer.java:991)
               ... 9 more
          Caused by: javax.naming.NameNotFoundException: Unable to resolve 'weblogic.messaging.dispatcher.S:null'. Resolved 'weblogic.messaging.dispatcher'; remaining name 'S:null'
               at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
               at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
               at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:171)
               at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
               at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
               at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
               at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
               at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:269)
               at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
               at javax.naming.InitialContext.lookup(InitialContext.java:351)
               at weblogic.messaging.dispatcher.DispatcherManager.dispatcherCreate(DispatcherManager.java:172)
               ... 14 more 
The producer is using stale object surviving, should be because of JMSServer restart. This seems to be a bug. And since the root cause is not a JMSException it may not retry to connect to another destination of the distributed destination list.
          
          What is your reconnect policy settings for the connection factory?
          
          - Sathish

problem with EJB activation

We used Stateful EJB on Weblogic 8.1 SP3.
          
          The EJB passivation seems to work fine but when we activate a passivate EJB, a RemoteException is throw :
          
          java.lang.IllegalStateException: unread block data]
          java.rmi.RemoteException: Stateful Session Exception:; nested exception is:
               java.lang.IllegalStateException: unread block data
               at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(Ljava.lang.String;Ljava.lang.Throwable;)V(EJBRuntimeUtils.java:102)
               at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(BaseEJBHome.java:307)
               at weblogic.ejb20.internal.BaseEJBObject.preInvoke(Lweblogic.ejb20.internal.InvocationWrapper;)Lweblogic.ejb20.internal.InvocationWrapper;(BaseEJBObject.java:141)
               at weblogic.ejb20.internal.StatefulEJBObject.preInvoke(Lweblogic.ejb20.internal.MethodDescriptor;Lweblogic.security.service.ContextHandler;)Lweblogic.ejb20.internal.InvocationWrapper;(StatefulEJBObject.java:189)
               at com.imrglobal.framework.businessProcess.businessControllerCMTArchi_cmz181_EOImpl.handleEvent_Required(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(businessControllerCMTArchi_cmz181_EOImpl.java:297)
               at com.imrglobal.framework.dispatch.JNDICMTBCClient.doSendEvent(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(JNDICMTBCClient.java:53)
               at com.imrglobal.framework.dispatch.GenericBCClient.sendEvent(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(GenericBCClient.java:76)
               at com.imrglobal.framework.dispatch.BCDispatcher.sendEvent(Ljava.lang.String;Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(BCDispatcher.java:72)
               at com.imrglobal.framework.navig.UIController.sendLogicEvent(Ljava.lang.String;Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(UIController.java:82)
               at com.imrglobal.framework.navig.UIController.sendEvent(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(UIController.java:135)
               at com.imrglobal.framework.navig.UIController.sendEvent(Ljava.lang.String;Ljava.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(UIController.java:169)
               at com.imrglobal.framework.navig.UIController.sendEvent(Ljava.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(UIController.java:148)
               at com.imrglobal.framework.navig.UIController.sendSearchEvent(Lcom.imrglobal.framework.businessObject.SearchKey;)Ljava.util.List;(UIController.java:396)
               at com.hermes.arc.commun.web.urlmanager.RechercherUrlMgr.lancerRecherche(Ljavax.servlet.http.HttpServletRequest;Lcom.imrglobal.framework.businessObject.SearchKey;)Ljava.util.List;(RechercherUrlMgr.java:219)
               at com.hermes.arc.commun.web.urlmanager.RechercherUrlMgr.doRechercher(Ljavax.servlet.http.HttpServletRequest;)I(RechercherUrlMgr.java:107)
               at com.hermes.arc.commun.web.urlmanager.RechercherUrlMgr.doAction(Ljavax.servlet.http.HttpServletRequest;Ljava.lang.String;)I(RechercherUrlMgr.java:60)
               at com.hermes.arc.commun.web.urlmanager.HermesUrlMgr.doProcessRequest(Ljavax.servlet.http.HttpServletRequest;)I(HermesUrlMgr.java:127)
               at com.imrglobal.framework.navig.GenericUrlMgr.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(GenericUrlMgr.java:84)
               at com.hermes.arc.commun.web.urlmanager.HermesUrlMgr.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(HermesUrlMgr.java:1420)
               at com.hermes.arc.test.web.urlmanager.RechercherArcPersonneUrlMgr.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(RechercherArcPersonneUrlMgr.java:133)
               at com.imrglobal.framework.navig.GenericHttpRequestController.handleRequest(Ljavax.servlet.http.HttpServletRequest;Ljava.lang.String;)I(GenericHttpRequestController.java:99)
               at com.imrglobal.framework.navig.GenericGUIManager.processRequest(Ljavax.servlet.http.HttpServletRequest;Ljava.lang.String;)I(GenericGUIManager.java:233)
               at com.imrglobal.framework.navig.GenericGUIManager.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(GenericGUIManager.java:215)
               at com.hermes.arc.commun.web.HermesGUIManager.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(HermesGUIManager.java:45)
               at com.imrglobal.framework.navig.GUIController.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(GUIController.java:71)
               at com.imrglobal.framework.web.servlet.ServletMain.processRequest(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ServletMain.java:46)
               at com.imrglobal.framework.web.servlet.ServletMain.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ServletMain.java:29)
               at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)
               at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
               at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
               at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
               at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
          Caused by: java.lang.IllegalStateException: unread block data
               at java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(Z)Z(Unknown Source)
               at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
               at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
               at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
               at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
               at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
               at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
               at weblogic.ejb20.swap.PassivationUtils.read(Lweblogic.ejb20.interfaces.BeanManager;Ljava.io.InputStream;Ljava.lang.Object;)Ljavax.ejb.EnterpriseBean;(PassivationUtils.java:54)
               at weblogic.ejb20.swap.DiskSwap.read(Ljava.lang.Object;)Ljavax.ejb.EnterpriseBean;(DiskSwap.java:183)
               at weblogic.ejb20.swap.ReplicatedMemorySwap.read(Ljava.lang.Object;)Ljavax.ejb.EnterpriseBean;(ReplicatedMemorySwap.java:116)
               at weblogic.ejb20.manager.StatefulSessionManager.getBean(Ljava.lang.Object;)Ljavax.ejb.EnterpriseBean;(StatefulSessionManager.java:326)
               at weblogic.ejb20.manager.StatefulSessionManager.preInvoke(Lweblogic.ejb20.internal.InvocationWrapper;)Ljavax.ejb.EnterpriseBean;(StatefulSessionManager.java:396)
               at weblogic.ejb20.internal.BaseEJBObject.preInvoke(Lweblogic.ejb20.internal.InvocationWrapper;)Lweblogic.ejb20.internal.InvocationWrapper;(BaseEJBObject.java:137)
               at weblogic.ejb20.internal.StatefulEJBObject.preInvoke(Lweblogic.ejb20.internal.MethodDescriptor;Lweblogic.security.service.ContextHandler;)Lweblogic.ejb20.internal.InvocationWrapper;(StatefulEJBObject.java:189)
               at com.imrglobal.framework.businessProcess.businessControllerCMTArchi_cmz181_EOImpl.handleEvent_Required(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(businessControllerCMTArchi_cmz181_EOImpl.java:297)
               at com.imrglobal.framework.dispatch.JNDICMTBCClient.doSendEvent(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(JNDICMTBCClient.java:53)
               at com.imrglobal.framework.dispatch.GenericBCClient.sendEvent(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(GenericBCClient.java:76)
               at com.imrglobal.framework.dispatch.BCDispatcher.sendEvent(Ljava.lang.String;Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(BCDispatcher.java:72)
               at com.imrglobal.framework.navig.UIController.sendLogicEvent(Ljava.lang.String;Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(UIController.java:82)
               at com.imrglobal.framework.navig.UIController.sendEvent(Lcom.imrglobal.framework.businessObject.events.LogicEvent;)Lcom.imrglobal.framework.businessObject.events.LogicEvent;(UIController.java:135)
               at com.imrglobal.framework.navig.UIController.sendEvent(Ljava.lang.String;Ljava.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(UIController.java:169)
               at com.imrglobal.framework.navig.UIController.sendEvent(Ljava.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(UIController.java:148)
               at com.imrglobal.framework.navig.UIController.sendSearchEvent(Lcom.imrglobal.framework.businessObject.SearchKey;)Ljava.util.List;(UIController.java:396)
               at com.hermes.arc.commun.web.urlmanager.RechercherUrlMgr.lancerRecherche(Ljavax.servlet.http.HttpServletRequest;Lcom.imrglobal.framework.businessObject.SearchKey;)Ljava.util.List;(RechercherUrlMgr.java:219)
               at com.hermes.arc.commun.web.urlmanager.RechercherUrlMgr.doRechercher(Ljavax.servlet.http.HttpServletRequest;)I(RechercherUrlMgr.java:107)
               at com.hermes.arc.commun.web.urlmanager.RechercherUrlMgr.doAction(Ljavax.servlet.http.HttpServletRequest;Ljava.lang.String;)I(RechercherUrlMgr.java:60)
               at com.hermes.arc.commun.web.urlmanager.HermesUrlMgr.doProcessRequest(Ljavax.servlet.http.HttpServletRequest;)I(HermesUrlMgr.java:127)
               at com.imrglobal.framework.navig.GenericUrlMgr.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(GenericUrlMgr.java:84)
               at com.hermes.arc.commun.web.urlmanager.HermesUrlMgr.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(HermesUrlMgr.java:1420)
               at com.hermes.arc.test.web.urlmanager.RechercherArcPersonneUrlMgr.processRequest(Ljavax.servlet.http.HttpServletRequest;)I(RechercherArcPersonneUrlMgr.java:133)
               at com.imrglobal.framework.navig.GenericHttpRequestController.handleRequest(Ljavax.servlet.http.HttpServletRequest;Ljava.lang.String;)I(GenericHttpRequestController.java:99)
               at com.imrglobal.framework.navig.GenericGUIManager.processRequest(Ljavax.servlet.http.HttpServletRequest;Ljava.lang.String;)I(GenericGUIManager.java:233)
          
          All th objects referenced by the EJB bean are serializable and the serialization works fine.
          
          If someone has any idea...
          
          Thanks
          
          Message was edited by:
          cthibaut 
Its problem append only when the application is deployed on a cluster.
          
          The parameters for clustering in the weblogic-ejb-jar.xml file are the following :
          
          <stateful-session-clustering>
          <home-is-clusterable>True</home-is-clusterable>
          <replication-type>InMemory</replication-type>
          </stateful-session-clustering>

Oracle 9i with WebLogic 5.1 JMS

          I am using WebLogic 5.1. With Oracle 9i, I get the exception below which seems
          to come from weblogic.jdbcbase.pool.Statement.setBytes. I'm fine with Oracle 8i.
          Is it an Oracle issue or 5.1 issue or an application issue?
          Thanks, Ben.
          ***********************************************************
          Mon Sep 30 09:32:33 CDT 2002:<I> <JMS> java.sql.SQLException: Data size bigger
          than max size for this type: 7791
               at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
               at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
               at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:99)
               at oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:1761)
               at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:855)
               at oracle.jdbc.driver.OraclePreparedStatement.setBytes(OraclePreparedStatement.java:1812)
               at weblogic.jdbcbase.pool.Statement.setBytes(Statement.java:298)
               at weblogic.jms.server.JDBCStore.storeMessage(JDBCStore.java:257)
               at weblogic.jms.server.SessionState.persistMessage(SessionState.java:366)
               at weblogic.jms.server.SessionState.publish(SessionState.java:323)
               at weblogic.jms.server.SessionState.sendMessage(SessionState.java:299)
               at weblogic.jms.client.JMSSession.sendMessage(JMSSession.java:391)
               at weblogic.jms.client.JMSMessageProducer.publish(JMSMessageProducer.java:67)
               at com.omiintl.catalog.mw.EventPublisher.send(EventPublisher.java:125)
               at com.omiintl.catalog.mw.EventPublisher.publishEvent(EventPublisher.java:182)
               at com.omiintl.catalog.mw.MessageService.publishAndSubscribe(MessageService.java:79)
               at com.omiintl.catalog.mw.LegacyResponseWorkerImpl.sendMessage(LegacyResponseWorkerImpl.java:450)
               at com.omiintl.catalog.mw.LegacyResponseWorkerImpl.publish(LegacyResponseWorkerImpl.java:286)
               at com.omiintl.catalog.mw.NotificationWorkerImpl.publishEvent(NotificationWorkerImpl.java:109)
               at com.omiintl.catalog.mw.NotificationWorkerImpl.authorizeMessage(NotificationWorkerImpl.java:1286)
               at com.omiintl.catalog.webapp.b2bclient.msgrequest.MsgRequestController.processMessage(MsgRequestController.java:216)
               at com.omiintl.catalog.webapp.b2bclient.msgrequest.MsgRequestController.processMessage(MsgRequestController.java:169)
               at com.omiintl.catalog.webapp.b2bclient.msgrequest.MsgRequestController.processMessages(MsgRequestController.java:73)
               at com.omiintl.catalog.webapp.b2bclient.MessageFilterForm.processMsgRequest(MessageFilterForm.java:90)
               at com.omiintl.catalog.webapp.b2bclient.MessageFilterForm.validate(MessageFilterForm.java:117)
               at com.omiintl.catalog.webapp.tag.form.FormInitializer.doStartTag(FormInitializer.java:67)
               at com.omiintl.catalog.webapp.jsp.atlasclient._pg_messages_new_items._jspService(_pg_messages_new_items.java:614)
               at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
               
          

Clustering problem: BadSocketException

Hi,
          I'm using weblogic 8.1 SP4 and have cluster of 2 servers. The session PersistenType has been set to "replicate_if_clustered". The application has to store really large objects in the session. I get this error sometimes. Looks like a session replication issue to me.
          
          <Dec 8, 2006 3:47:58 PM EST> <Error> <HTTP Session> <BEA-100049> <Error looking up session with id:F5MvpcJRhZCyLP6W2KsZhS52cnDmYnvL9h1NFh3PTkMDw92G3kPy!1666349412!-992783943
          java.net.SocketException: Broken pipe
               at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
               at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137)
               at weblogic.cluster.replication.ReplicationManager_814_WLStub.create(Unknown Source)
               at weblogic.cluster.replication.ReplicationManager.trySecondary(ReplicationManager.java:1028)
               at weblogic.cluster.replication.ReplicationManager.createSecondary(ReplicationManager.java:961)
               at weblogic.cluster.replication.ReplicationManager.getPrimary(ReplicationManager.java:914)
               at weblogic.cluster.replication.ReplicationManager.lookup(ReplicationManager.java:406)
               at weblogic.servlet.internal.session.ReplicatedSessionContext.getSessionInternal(ReplicatedSessionContext.java:457)
               at weblogic.servlet.internal.ServletRequestImpl.getValidSession(ServletRequestImpl.java:2547)
               at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:2173)
               at weblogic.servlet.security.internal.SecurityModule.getCurrentUser(SecurityModule.java:245)
               at weblogic.servlet.security.internal.SecurityModule.beginCheck(SecurityModule.java:158)
               at weblogic.servlet.security.internal.BasicSecurityModule.checkA(BasicSecurityModule.java:49)
               at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:145)
               at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3685)
               at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
               at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
               at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
          Caused by: java.net.SocketException: Broken pipe
               at java.net.SocketOutputStream.socketWrite0(Native Method)
               at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
               at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
               at weblogic.socket.SocketMuxer.write(SocketMuxer.java:742)
               at weblogic.rjvm.t3.T3JVMConnection.sendMsg(T3JVMConnection.java:913)
               at weblogic.rjvm.MsgAbbrevJVMConnection.sendOutMsg(MsgAbbrevJVMConnection.java:267)
               at weblogic.rjvm.MsgAbbrevJVMConnection.sendMsg(MsgAbbrevJVMConnection.java:165)
               at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:549)
               at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:821)
               at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:292)
               at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:300)
               at weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:322)
               at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:103)
               ... 17 more
          --------------- nested within: ------------------
          weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
          [java.net.SocketException: Broken pipe]
               at weblogic.cluster.replication.ReplicationManager_814_WLStub.create(Unknown Source)
               at weblogic.cluster.replication.ReplicationManager.trySecondary(ReplicationManager.java:1028)
               at weblogic.cluster.replication.ReplicationManager.createSecondary(ReplicationManager.java:961)
               at weblogic.cluster.replication.ReplicationManager.getPrimary(ReplicationManager.java:914)
               at weblogic.cluster.replication.ReplicationManager.lookup(ReplicationManager.java:406)
               at weblogic.servlet.internal.session.ReplicatedSessionContext.getSessionInternal(ReplicatedSessionContext.java:457)
               at weblogic.servlet.internal.ServletRequestImpl.getValidSession(ServletRequestImpl.java:2547)
               at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:2173)
               at weblogic.servlet.security.internal.SecurityModule.getCurrentUser(SecurityModule.java:245)
               at weblogic.servlet.security.internal.SecurityModule.beginCheck(SecurityModule.java:158)
               at weblogic.servlet.security.internal.BasicSecurityModule.checkA(BasicSecurityModule.java:49)
               at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:145)
               at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3685)
               at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
               at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
               at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
          
          Can anyone please help me out with this.
          
          Thanks and Regards,
          -Raj A

Categories

Resources