0 Replies Latest reply on Oct 1, 2008 4:10 PM by krishnan V

    JBoss hangs while trying to retrieve values from Entity bean

    krishnan V Newbie

      Hi All,
      I have a very strange problem with JBoss 4.0.5 GA. I am migrating an application from Weblogic to Jboss. In my application there is a search functionality which involves using entity beans. When i perform this search functionality Jboss gets hangs for certain search terms, for some terms i am getting results. I am not able to figure out the issue with ThreadDump

      java.net.SocketInputStream.socketRead0(Native Method)
      java.net.SocketInputStream.read(SocketInputStream.java:129)
      oracle.net.ns.Packet.receive(Unknown Source)
      oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
      oracle.net.ns.NetInputStream.read(Unknown Source)
      oracle.net.ns.NetInputStream.read(Unknown Source)
      oracle.net.ns.NetInputStream.read(Unknown Source)
      oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:931)
      oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
      oracle.jdbc.ttc7.Oall7.receive(Oall7.java:369)
      oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
      oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:830)
      oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2391)
      oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2672)
      oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
      oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:527)
      org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236)
      org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:177)
      org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:88)
      org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:646)
      org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:628)
      org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:406)
      org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:252)
      org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:243)
      org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:126)
      org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:276)
      org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
      org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:68)
      org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
      org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
      org.jboss.ejb.Container.invoke(Container.java:954)
      sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
      org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
      org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:112)
      org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      $Proxy361.getValue(Unknown Source)
      com.isbr.fwk.valpha.AlphaEjbDaoImpl.getValue(Unknown Source)
      com.isbr.fwk.valpha.AlphaEjbDaoImpl.getValue(Unknown Source)
      com.isbr.fwk.valpha.AlphaDaoImpl.getValue(Unknown Source)
      com.isbr.fwk.util.EntityValueList.next(Unknown Source)
      com.isbr.cos.ejb.srrequestbytrivialname.SrRequestByTrivialNameImpl.getSampleNumbers(Unknown Sourc

      I doubt the application is getting hangs when Jboss trying to unmarshall the primarykey while trying to identify the actual entity bean. Also Jboss is taking much time for identifying the very first bean, rest of the bean are returned in very less time.

      My application is using EJB 2.0, JBoss 4.0.5, JDK 1.5 and Oracle 10g

      Could any help me in resolving this issue?

      Thanks in advance


      --Krishna.