[jboss-user] [EJB/JBoss] - Deadlock on EJB Create

Defrian do-not-reply at jboss.com
Thu Nov 27 05:00:07 EST 2008


Hi,

i hope that there are some jboss 3 experts in here who can help me on my problem.

first a short description of the enviroment:

- jboss 3.2.4
- jetty 4.2.27
- EJB 2.0
- OS: Red Hat Linux AS 3.0

Problem:
jboss hangs on creating a new session bean. the log (level info) shows no errors or information of catched errors. it simply seems that jboss stops working.

what i did till now:

1) Thread Dump Analyse
2) Source Code Analyse

Result of 1):

49 threads like the following are waiting.


  | "SocketListener0-83" prio=1 tid=0x080bf588 nid=0x4849 waiting for monitor entry [67528000..6752a868]
  | 	at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:97)
  | 	- waiting to lock <0x7527b5d0> (a java.lang.Object)
  | 	at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:205)
  | 	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
  | 	at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
  | 	at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
  | 	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | 	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | 	at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
  | 	at org.jboss.ejb.Container.invoke(Container.java:723)
  | 	at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:324)
  | 	at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | 	at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
  | 	at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
  | 	at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
  | 	at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
  | 	at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104)
  | 	at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
  | 	at $Proxy152.getText(Unknown Source)
  | 	at com.sbs.es.applications.jabo.server.person.JaboInt_personData.getBeteiligten(JaboInt_personData.java:3010)
  | 	at com.sbs.es.applications.jabo.server.person.JaboInt_personData.getBeteiligten(JaboInt_personData.java:2167)
  | 	at com.sbs.es.applications.jabo.server.JaboBetreuerBean.readIt(JaboBetreuerBean.java:2477)
  | 	at com.sbs.es.applications.jabo.server.JaboBetreuerBean.JaBo_readBeteiligtenData(JaboBetreuerBean.java:2243)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:324)
  | 	at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:949)
  | 	at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
  | 	at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
  | 	at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:273)
  | 	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
  | 	at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
  | 	at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
  | 	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | 	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | 	at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
  | 	at org.jboss.ejb.Container.invoke(Container.java:723)
  | 	at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:324)
  | 	at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | 	at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
  | 	at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
  | 	at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
  | 	at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
  | 	at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104)
  | 	at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
  | 	at $Proxy158.JaBo_readBeteiligtenData(Unknown Source)
  | 	at com.sbs.es.applications.jabo.client.beans.User.myGoal(User.java:2994)
  | 	- locked <0x792af208> (a java.lang.Boolean)
  | 	at com.sbs.es.applications.jabo.client.beans.User.betrChangeable(User.java:2947)
  | 	at org.apache.jsp.funk10betr_jsp._jspService(funk10betr_jsp.java:1066)
  | 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
  | 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  | 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
  | 	at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:222)
  | 	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:135)
  | 	at com.sbs.es.framework.client.servlets.ESApplicationServlet.service(ESApplicationServlet.java:219)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
  | 	at com.sbs.es.framework.client.filter.whitelist.XSSWhitlistFilter.doFilter(XSSWhitlistFilter.java:82)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
  | 	at com.sbs.es.applications.jabo.client_server.tools.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:169)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
  | 	at com.sbs.es.framework.client.filter.csrfguard.CSRFGuardFilter.doFilter(CSRFGuardFilter.java:85)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
  | 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
  | 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
  | 	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:526)
  | 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
  | 	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
  | 	at org.jboss.jetty.Jetty.service(Jetty.java:460)
  | 	at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
  | 	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
  | 	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
  | 	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
  | 	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
  | 	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
  | 
  | 

they are waiting for the following thread:


  | 
  | 
  | "SocketListener0-62" prio=1 tid=0x08252ed8 nid=0x4849 runnable [67fbd000..67fbf868]
  | 	at java.net.SocketInputStream.socketRead0(Native Method)
  | 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
  | 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
  | 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
  | 	- locked <0x792f07d8> (a java.io.BufferedInputStream)
  | 	at java.io.DataInputStream.readByte(DataInputStream.java:331)
  | 	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:189)
  | 	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
  | 	at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
  | 	at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
  | 	at org.jboss.proxy.ejb.handle.StatefulHandleImpl.getEJBObject(StatefulHandleImpl.java:154)
  | 	at org.jboss.ejb.plugins.SessionObjectInputStream.resolveObject(SessionObjectInputStream.java:60)
  | 	at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1321)
  | 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  | 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
  | 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  | 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
  | 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  | 	at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
  | 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
  | 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
  | 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  | 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
  | 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  | 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  | 	at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateSession(StatefulSessionFilePersistenceManager.java:328)
  | 	at org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate(StatefulSessionInstanceCache.java:90)
  | 	at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:107)
  | 	- locked <0x7527b5d0> (a java.lang.Object)
  | 	at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:205)
  | 	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
  | 	at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
  | 	at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
  | 	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | 	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | 	at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
  | 	at org.jboss.ejb.Container.invoke(Container.java:723)
  | 	at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:324)
  | 	at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | 	at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
  | 	at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
  | 	at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
  | 	at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
  | 	at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104)
  | 	at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
  | 	at $Proxy232.JaBo_getQuartal(Unknown Source)
  | 	at com.sbs.es.applications.jabo.client.beans.User.hasBerechtigteWithQuartal(User.java:3037)
  | 	- locked <0x775ab570> (a java.lang.Boolean)
  | 	at org.apache.jsp.funk30_jsp._jspService(funk30_jsp.java:176)
  | 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
  | 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  | 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
  | 	at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:222)
  | 	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:135)
  | 	at com.sbs.es.framework.client.servlets.ESApplicationServlet.service(ESApplicationServlet.java:219)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
  | 	at com.sbs.es.framework.client.filter.whitelist.XSSWhitlistFilter.doFilter(XSSWhitlistFilter.java:82)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
  | 	at com.sbs.es.applications.jabo.client_server.tools.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:169)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
  | 	at com.sbs.es.framework.client.filter.csrfguard.CSRFGuardFilter.doFilter(CSRFGuardFilter.java:85)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
  | 	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
  | 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
  | 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
  | 	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:526)
  | 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
  | 	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
  | 	at org.jboss.jetty.Jetty.service(Jetty.java:460)
  | 	at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
  | 	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
  | 	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
  | 	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
  | 	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
  | 	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
  | 
  | 


Result of 2):
The Source Code shows no difference to other applications running on the same jboss.

i tried to search the forum but had no success. has anyone seen a problem like this? what kind of additional information is needed?

best regards,

defrian

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192712#4192712

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192712



More information about the jboss-user mailing list