This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JBoss hangs while trying to retrieve Entity bean values Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "JBoss hangs while trying to retrieve Entity bean values" Watch "JBoss hangs while trying to retrieve Entity bean values" New topic
Author

JBoss hangs while trying to retrieve Entity bean values

krishnan Vijay
Greenhorn

Joined: Oct 01, 2008
Posts: 4
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 one help me in resolving this issue?

Thanks in advance


--Krishna.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8143
    
  52

Krishna,

Welcome to JavaRanch Please change your display name to comply with our naming policy.


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8143
    
  52

Originally posted by krishnan:
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)


You will have to take multiple thread dumps at regular intervals and see if its hung doing the same activity.
krishnan Vijay
Greenhorn

Joined: Oct 01, 2008
Posts: 4
Jai

i tried taking thread dump whenever i found this issue, every time i am getting the same thread dump only.

~~Krishna
Kalyan Anand
Ranch Hand

Joined: Feb 07, 2007
Posts: 194
I suspect some version issue with the Oracle driver you are using.
krishnan Vijay
Greenhorn

Joined: Oct 01, 2008
Posts: 4
I am using ojdbc14.jar for oracle10g
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JBoss hangs while trying to retrieve Entity bean values
 
Similar Threads
EJB 2.1 Error - Find failed - java.sql.SQLException: Column not found
Axis 1.4 NoClassDefFoundError on JBoss
Entity Bean Error - SQLException
PROCEDURE mysql.IDENTITY does not exist
help please