Re: [jboss-user] [EJB 3.0] - NPE in StateslessContainer at line 396
by Nagin Kothari
Nagin Kothari [http://community.jboss.org/people/nagin.kothari] replied to the discussion
"NPE in StateslessContainer at line 396"
To view the discussion, visit: http://community.jboss.org/message/540691#540691
--------------------------------------------------------------
I am using Jboss 6.0.0M2
Following is complete stacktrace
java.lang.NullPointerException
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(
StatelessContainer.java:396)at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(
InvokableContextClassProxyHack.java:53)at org.jboss.aop.Dispatcher.invoke(
Dispatcher.java:91)at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(
AOPRemotingInvocationHandler.java:82)at org.jboss.remoting.ServerInvoker.invoke(
ServerInvoker.java:897)at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(
ServerThread.java:768)at org.jboss.remoting.transport.socket.ServerThread.processInvocation(
ServerThread.java:721)at org.jboss.remoting.transport.socket.ServerThread.dorun(
ServerThread.java:548)at org.jboss.remoting.transport.socket.ServerThread.run(
ServerThread.java:234)at org.jboss.remoting.MicroRemoteClientInvoker.invoke(
MicroRemoteClientInvoker.java:163)at org.jboss.remoting.Client.invoke(
Client.java:1634)at org.jboss.remoting.Client.invoke(
Client.java:548)at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(
InvokeRemoteInterceptor.java:62)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(
ClientTxPropagationInterceptor.java:67)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(
SecurityClientInterceptor.java:65)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(
IsLocalInterceptor.java:74)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.aspects.remoting.PojiProxy.invoke(
PojiProxy.java:61)at $Proxy44.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(
SessionProxyInvocationHandlerBase.java:188)at $Proxy43.authenticateUser(Unknown Source)
at com.acknow.servlets.login.GreetingServiceImpl.greetServer(
GreetingServiceImpl.java:45)at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(
RPC.java:562)at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(
RemoteServiceServlet.java:188)at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(
RemoteServiceServlet.java:224)at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(
AbstractRemoteServiceServlet.java:62)at javax.servlet.http.HttpServlet.service(
HttpServlet.java:637)at javax.servlet.http.HttpServlet.service(
HttpServlet.java:717)at org.mortbay.jetty.servlet.ServletHolder.handle(
ServletHolder.java:487)at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1097)at com.acknow.webcore.WebAccessFilter.doFilter(
WebAccessFilter.java:39)at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1088)at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:360)at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:216)at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:181)at org.mortbay.jetty.handler.ContextHandler.handle(
ContextHandler.java:729)at org.mortbay.jetty.webapp.WebAppContext.handle(
WebAppContext.java:405)at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:152)at org.mortbay.jetty.handler.RequestLogHandler.handle(
RequestLogHandler.java:49)at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:152)at org.mortbay.jetty.Server.handle(
Server.java:324)at org.mortbay.jetty.HttpConnection.handleRequest(
HttpConnection.java:505)at org.mortbay.jetty.HttpConnection$RequestHandler.content(
HttpConnection.java:843)at org.mortbay.jetty.HttpParser.parseNext(
HttpParser.java:647)at org.mortbay.jetty.HttpParser.parseAvailable(
HttpParser.java:211)at org.mortbay.jetty.HttpConnection.handle(
HttpConnection.java:380)at org.mortbay.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:395)at org.mortbay.thread.QueuedThreadPool$PoolThread.run(
QueuedThreadPool.java:488)at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(
InvokeRemoteInterceptor.java:74)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(
ClientTxPropagationInterceptor.java:67)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(
SecurityClientInterceptor.java:65)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(
IsLocalInterceptor.java:74)at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:101)at org.jboss.aspects.remoting.PojiProxy.invoke(
PojiProxy.java:61)at $Proxy44.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(
SessionProxyInvocationHandlerBase.java:188)at $Proxy43.authenticateUser(Unknown Source)
at com.acknow.servlets.login.GreetingServiceImpl.greetServer(
GreetingServiceImpl.java:45)at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(
RPC.java:562)at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(
RemoteServiceServlet.java:188)at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(
RemoteServiceServlet.java:224)at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(
AbstractRemoteServiceServlet.java:62)at javax.servlet.http.HttpServlet.service(
HttpServlet.java:637)at javax.servlet.http.HttpServlet.service(
HttpServlet.java:717)at org.mortbay.jetty.servlet.ServletHolder.handle(
ServletHolder.java:487)at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1097)at com.acknow.webcore.WebAccessFilter.doFilter(
WebAccessFilter.java:39)at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1088)at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:360)at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:216)at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:181)at org.mortbay.jetty.handler.ContextHandler.handle(
ContextHandler.java:729)at org.mortbay.jetty.webapp.WebAppContext.handle(
WebAppContext.java:405)at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:152)at org.mortbay.jetty.handler.RequestLogHandler.handle(
RequestLogHandler.java:49)at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:152)at org.mortbay.jetty.Server.handle(
Server.java:324)at org.mortbay.jetty.HttpConnection.handleRequest(
HttpConnection.java:505)at org.mortbay.jetty.HttpConnection$RequestHandler.content(
HttpConnection.java:843)at org.mortbay.jetty.HttpParser.parseNext(
HttpParser.java:647)at org.mortbay.jetty.HttpParser.parseAvailable(
HttpParser.java:211)at org.mortbay.jetty.HttpConnection.handle(
HttpConnection.java:380)at org.mortbay.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:395)at org.mortbay.thread.QueuedThreadPool$PoolThread.run(
QueuedThreadPool.java:488)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540691#540691]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss Portal] - Running multiple applications under single profile
by Gajanan Nimkande
Gajanan Nimkande [http://community.jboss.org/people/gajanan.nimkande] created the discussion
"Running multiple applications under single profile"
To view the discussion, visit: http://community.jboss.org/message/540670#540670
--------------------------------------------------------------
Hi All,
We are using jboss as application server for our production. We need to run multiple applications to run whole suit of functionalities our client needs. There are 15 application modules (functionalities) developed by our various teams. First I create multiple instances of jboss sever under server direcotry of jboss and deploy each application in each instances, it deployed properly but when the server runs for long while and different users accessing it from different workstations for different application the any of application goes down suddenly. When checked in log or on console the OutOfMemory exception seen and needs to restart the application.
Now I tried to deploy these multiple application on single instance instead of earch instance, I observe the occurances has been reduced significantly, but here I could not deploy more than four applications at a time on single instance other wise the same exception occurs. The problem persist on Windows platform only, on Linux sucessfully deployed 12 applications and are running satisfactorily with good performance.
The issue is for Windows platform, I tried the permgen option and also increases the heamzise to 1024MB our server has 4GB of physical memory.
I request everyone to suggest is there any way to find out the cause or overcome this issue. I am using Jboss-4.2.2.GA version and jdk5.
Thanks in advance.
Gajanan Nimkande
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540670#540670]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months