Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

unpredictable HTTP 500 error

Hi,

sometimes we get a HTTP 500 error out of the blue for PU's , like the one pasted below. It's usually gone when we redeploy, but there is no telling how long we can go without getting the stacktrace after that. Sometimes it works one time, other times it works for a while... We are running the XAP-7.0.0-premium-rc2 package, and we were hoping someone knows more about this problem, maybe someone even knows a solution?

Thanks in advance,

Ton Wessling

/* stacktrace ****/

HTTP ERROR: 500

Resource com.gigaspaces.lrmi.nio.CPeer had already been released prior to call.; nested exception is java.lang.RuntimeException: Resource com.gigaspaces.lrmi.nio.CPeer had already been released prior to call.

RequestURI=/fe-1.0-SNAPSHOT/cas/sCtr Caused by:

org.openspaces.core.UncategorizedSpaceException: Resource com.gigaspaces.lrmi.nio.CPeer had already been released prior to call.; nested exception is java.lang.RuntimeException: Resource com.gigaspaces.lrmi.nio.CPeer had already been released prior to call. at org.openspaces.core.exception.DefaultExceptionTranslator.translate(DefaultExceptionTranslator.java:51) at org.openspaces.core.DefaultGigaSpace.execute(DefaultGigaSpace.java:712) at org.openspaces.core.DefaultGigaSpace.execute(DefaultGigaSpace.java:700) at org.openspaces.remoting.ExecutorSpaceRemotingProxyFactoryBean.invokeRemote(ExecutorSpaceRemotingProxyFactoryBean.java:252) at org.openspaces.remoting.ExecutorSpaceRemotingProxyFactoryBean.invoke(ExecutorSpaceRemotingProxyFactoryBean.java:197) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy73.getSomeValue(Unknown Source) at my.company.project.clnt.someservice.impl.SomeServiceServiceClient.getSomeValue(SomeServiceServiceClient.java:129) at my.company.project.ui.fe.SomePage.handleRequest(SomePage.java:65) at my.company.project.ui.common.MyServlet.delegateToPages(MyServlet.java:48) at my.company.project.ui.common.MyServlet.service(MyServlet.java:26) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) at org.openspaces.pu.container.jee.stats.RequestStatisticsFilter.doFilter(RequestStatisticsFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) 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:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Caused by: java.lang.RuntimeException: Resource com.gigaspaces.lrmi.nio.CPeer had already been released prior to call. at com.j_spaces.kernel.pool.Resource.release(Resource.java:89) at com.j_spaces.kernel.pool.ResourcePool.freeResource(ResourcePool.java:164) at com.j_spaces.kernel.pool.BlockingResourcePool.freeResource(BlockingResourcePool.java:89) at com.gigaspaces.lrmi.ConnectionPool.freeConnection(ConnectionPool.java:80) at com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:64) at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:366) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:354) at $Proxy72.execute(Unknown Source) at com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.execute(LRMIRemoteSpaceImpl.java:674) at com.j_spaces.core.cluster.JSpaceClusteredProxy.executeOnSpace(JSpaceClusteredProxy.java:797) at com.j_spaces.core.cluster.JSpaceClusteredProxy._execute(JSpaceClusteredProxy.java:738) at com.j_spaces.core.cluster.JSpaceClusteredProxy.execute(JSpaceClusteredProxy.java:628) at org.openspaces.core.DefaultGigaSpace.execute(DefaultGigaSpace.java:710) ... 31 more

Caused by:

java.lang.RuntimeException: Resource com.gigaspaces.lrmi.nio.CPeer had already been released prior to call. at com.j_spaces.kernel.pool.Resource.release(Resource.java:89) at com.j_spaces.kernel.pool.ResourcePool.freeResource(ResourcePool.java:164) at com.j_spaces.kernel.pool.BlockingResourcePool.freeResource(BlockingResourcePool.java:89) at com.gigaspaces.lrmi.ConnectionPool.freeConnection(ConnectionPool.java:80) at com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:64) at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:366) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:354) at $Proxy72.execute(Unknown Source) at com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.execute(LRMIRemoteSpaceImpl.java:674) at com.j_spaces.core.cluster.JSpaceClusteredProxy.executeOnSpace(JSpaceClusteredProxy.java:797) at com.j_spaces.core.cluster.JSpaceClusteredProxy._execute(JSpaceClusteredProxy.java:738) at com.j_spaces.core.cluster.JSpaceClusteredProxy.execute(JSpaceClusteredProxy.java:628) at org.openspaces.core.DefaultGigaSpace.execute(DefaultGigaSpace.java:710) at org.openspaces.core.DefaultGigaSpace.execute(DefaultGigaSpace.java:700) at org.openspaces.remoting.ExecutorSpaceRemotingProxyFactoryBean.invokeRemote(ExecutorSpaceRemotingProxyFactoryBean.java:252) at org.openspaces.remoting.ExecutorSpaceRemotingProxyFactoryBean.invoke(ExecutorSpaceRemotingProxyFactoryBean.java:197) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy73.getSomeValue(Unknown Source) at my.company.project.clnt.someservice.impl.SomeServiceServiceClient.getSomeValue(SomeServiceServiceClient.java:129) at my.company.project.ui.fe.SomePage.handleRequest(SomePage.java:65) at my.company.project.ui.common.MyServlet.delegateToPages(MyServlet.java:48) at my.company.project.ui.common.MyServlet.service(MyServlet.java:26) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) at org.openspaces.pu.container.jee.stats.RequestStatisticsFilter.doFilter(RequestStatisticsFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server ... (more)

asked 2009-06-29 09:39:26 -0500

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

This is a bug that we've just fixed and will be part of the GA.

Eitan

answered 2009-06-29 10:02:19 -0500

eitany gravatar image
edit flag offensive delete link more

Comments

ah, that sounds great.. Do you have any indication when that will be avalilable and/or a workaround until it is available?

Thanks,

Ton

twessling gravatar image twessling  ( 2009-06-29 10:08:01 -0500 )edit

It should be out during July. Regarding a workaround, unfortunately it is a concurrency issue with the lower level of the remoting that uses executors. If you can't wait until the GA you can switch to sync remoting which is deprecated from 7.0 just for this time period.

Eitan

eitany gravatar image eitany  ( 2009-06-29 10:18:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-06-29 09:39:26 -0500

Seen: 61 times

Last updated: Jun 29 '09