Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in com.hazelcast.nio.ConnectionManager, version 2.5 #530

Closed
ckoehnen-code42 opened this issue Jun 28, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@ckoehnen-code42
Copy link

commented Jun 28, 2013

Hi,

We have yet to reproduce, but we hit a null pointer trying to restart. Thank you.

--Chris Koehnen


06.26.13 10:08:51.751 ERROR jetty-web-6140 com.backup42.common.command.CliExecutor ] Exception running command! cmd=hazelcast.restart, java.lang.NullPointerException, java.lang.NullPointer
Exception
java.lang.NullPointerException
at com.hazelcast.nio.ConnectionManager.shutdownSocketAcceptor(ConnectionManager.java:442)
at com.hazelcast.nio.ConnectionManager.stop(ConnectionManager.java:408)
at com.hazelcast.nio.ConnectionManager.onRestart(ConnectionManager.java:384)
at com.hazelcast.impl.LifecycleServiceImpl.restart(LifecycleServiceImpl.java:132)
at com.code42.core.space.HazelcastRestartCmd.exec(HazelcastRestartCmd.java:36)
at com.code42.core.space.HazelcastRestartCmd.exec(HazelcastRestartCmd.java:14)
at com.code42.core.impl.AbstractBaseCmd.execWithSessionCheck(AbstractBaseCmd.java:96)
at com.code42.core.impl.AbstractCmd.runExec(AbstractCmd.java:25)
at com.code42.core.impl.GuiceCoreRuntime.run(GuiceCoreRuntime.java:149)
at com.code42.core.impl.CoreBridge.run(CoreBridge.java:472)
at com.code42.core.space.HazelcastRestartCommand.execute(HazelcastRestartCommand.java:25)
at com.backup42.common.command.CliExecutor.run(CliExecutor.java:248)
at com.backup42.common.command.CliExecutor.runAll(CliExecutor.java:222)
at com.code42.cli.CliRunCmd.exec(CliRunCmd.java:207)
at com.code42.cli.CliRunCmd.exec(CliRunCmd.java:68)
at com.code42.core.impl.AbstractBaseCmd.execWithSessionCheck(AbstractBaseCmd.java:96)
at com.code42.core.impl.AbstractCmd.runExec(AbstractCmd.java:25)
at com.code42.core.impl.GuiceCoreRuntime.run(GuiceCoreRuntime.java:149)
at com.code42.core.ICoreRuntime$run.call(Unknown Source)
at com.code42.api.v1.CliResource$_post_closure2.doCall(CliResource.groovy:102)
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:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:883)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at com.code42.api.v1.CliResource$_post_closure2.doCall(CliResource.groovy)
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:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:883)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at com.code42.core.ws.lib.RESTResource.standardExceptionCheck(RESTResource.groovy:516)
at com.code42.core.ws.lib.RESTResource$standardExceptionCheck.callCurrent(Unknown Source)
at com.code42.api.v1.CliResource.post(CliResource.groovy:90)
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:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at org.codehaus.groovy.runtime.metaclass.TransformMetaMethod.invoke(TransformMetaMethod.java:55)
at groovy.lang.MetaClassImpl$2.invoke(MetaClassImpl.java:1070)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1053)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:883)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:705)
at com.code42.core.ws.lib.RESTResource.invokeMethod(RESTResource.groovy)
at com.code42.rest.RESTServlet.invokeMethod(RESTServlet.java:725)
at com.code42.rest.RESTServlet.service(RESTServlet.java:243)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1361)
at com.code42.core.ws.impl.CoreMultiPartFilter.doFilter(CoreMultiPartFilter.java:107)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at com.code42.http.gzip.GzipHandlerWrapper.handle(GzipHandlerWrapper.java:54)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:348)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:894)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:948)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:191)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:662)

@pveentjer

This comment has been minimized.

Copy link
Member

commented Jun 28, 2013

Can you try with hazelcast 2.6?

I'll have a look at the NPE.

@pveentjer

This comment has been minimized.

Copy link
Member

commented Jun 28, 2013

Should be merged in the next 2.x release.

@pveentjer pveentjer closed this in 137e23f Jun 29, 2013

mdogan added a commit that referenced this issue Jun 29, 2013

Merge pull request #531 from pveentjer/fix/2.x/npe-in-connectionmanager
fix #530 a npe in the connectionmanager. Appearently the socketAccepto...

@ghost ghost assigned pveentjer Jun 29, 2013

@ckoehnen-code42

This comment has been minimized.

Copy link
Author

commented Jul 1, 2013

Thank you!

--Chris Koehnen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.