eclipse-ee4j / glassfish-shoal

Shoal
Other
5 stars 9 forks source link

Grizzly transport: sendMessage gets a NPE in NIOContext.configureOpType #106

Closed glassfishrobot closed 13 years ago

glassfishrobot commented 14 years ago

The following occurred in a gms developer test that a gms client sent a message to another instance and the other instance was attempting to send a reply back and it received the error below. We have a workaround to get around the failure BUT it is just a short term hack to get testers by the issue. Will be consulting with Grizzly developers on this issue to identify if it is a misuse by Shoal or an issue needing resolution in grizzly.

Here is the stack trace.

java.lang.NullPointerException when calling registered application callback method com.sun.enterprise.ee.cms.tests.GMSAdminAgent.processNotification. The method should have handled this exception. java.lang.NullPointerException at com.sun.grizzly.NIOContext.configureOpType(NIOContext.java:431) at com.sun.grizzly.connectioncache.client.CacheableConnectorHandler.notifyCallbackHandlerPseudoConnect(CacheableConnectorHandler.java:221) at com.sun.grizzly.connectioncache.client.CacheableConnectorHandler.doConnect(CacheableConnectorHandler.java:168) at com.sun.grizzly.connectioncache.client.CacheableConnectorHandler.connect(CacheableConnectorHandler.java:122) at com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper.send(GrizzlyTCPConnectorWrapper.java:104) at com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper.doSend(GrizzlyTCPConnectorWrapper.java:86) at com.sun.enterprise.mgmt.transport.AbstractMessageSender.send(AbstractMessageSender.java:34) at com.sun.enterprise.mgmt.transport.grizzly.GrizzlyNetworkManager.send(GrizzlyNetworkManager.java:478) at com.sun.enterprise.mgmt.ClusterManager.send(ClusterManager.java:458) at com.sun.enterprise.ee.cms.impl.base.GroupCommunicationProviderImpl.sendMessage(GroupCommunicationProviderImpl.java:316) at com.sun.enterprise.ee.cms.impl.base.GroupHandleImpl.sendMessage(GroupHandleImpl.java:128) at com.sun.enterprise.ee.cms.tests.GMSAdminAgent.processNotification(GMSAdminAgent.java:449) at com.sun.enterprise.ee.cms.impl.client.MessageActionImpl.processMessage(MessageActionImpl.java:86) at com.sun.enterprise.ee.cms.impl.client.MessageActionImpl.consumeSignal(MessageActionImpl.java:69) at com.sun.enterprise.ee.cms.impl.common.Router.notifyMessageAction(Router.java:377) at com.sun.enterprise.ee.cms.impl.common.Router.notifyMessageAction(Router.java:402) at com.sun.enterprise.ee.cms.impl.common.SignalHandler.analyzeSignal(SignalHandler.java:128) at com.sun.enterprise.ee.cms.impl.common.SignalHandler.handleSignal(SignalHandler.java:106) at com.sun.enterprise.ee.cms.impl.common.SignalHandler.run(SignalHandler.java:91) at java.lang.Thread.run(Thread.java:637)

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 6 years ago
glassfishrobot commented 14 years ago

@glassfishrobot Commented Reported by @jfialli

glassfishrobot commented 14 years ago

@glassfishrobot Commented @jfialli said: Was using Grizzly 1.9.19 beta2 when this occurred.

glassfishrobot commented 13 years ago

@glassfishrobot Commented @jfialli said: NPE is fixed in Grizzly transport.

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA SHOAL-106

glassfishrobot commented 13 years ago

@glassfishrobot Commented Marked as fixed on Thursday, October 7th 2010, 3:33:20 am