[jboss-jira] [JBoss JIRA] Commented: (JBREM-541) null pointer when receiving detection message

John Mazzitelli (JIRA) jira-events at jboss.com
Fri Jul 14 12:19:11 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBREM-541?page=comments#action_12339613 ] 
            
John Mazzitelli commented on JBREM-541:
---------------------------------------

I should mention what invoker locator URLs I am using.

In the JBossAS, my connector's invoker locator is shown in this debug message:

12:04:25,166 INFO  [ServletServerInvoker] Invoker started for locator: InvokerLocator [servlet://192.168.0.5:8080/servlet-invoker/ServerInvokerServlet?jon.communications.connector.jontype=server]

In that J2SE app, my connector's invoker locator is shown in this debug message: 

12:05:00,597 DEBUG [main] (jboss.remoting.transport.socket.SocketServerInvoker)- Invoker started for locator: InvokerLocator [socket://192.168.0.5:16163/?backlog=200&clientMaxPoolSize=304&enableTcpNoDelay=true&jon.communications.connector.jontype=agent&maxPoolSize=303&numAcceptThreads=1&socketTimeout=60000]

I should also mention that regardless of the fact that the detector is failing, I can successfully send messages from the J2SE app to the JBossAS servlet invoker.  So, connectivity is there and the rest of remoting works.

> null pointer when receiving detection message
> ---------------------------------------------
>
>                 Key: JBREM-541
>                 URL: http://jira.jboss.com/jira/browse/JBREM-541
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.0.0.Beta2 (Boon)
>            Reporter: John Mazzitelli
>         Assigned To: Tom  Elrod
>             Fix For: 2.0.0.CR1 (Boon)
>
>
> I am seeing a NullPointerException that causes my multicast detector to fail.
> I have a JBoss 4.0.4.CR2 install that has my connector and multicast detector deployed.  I also deployed the servlet-invoker war because i am using the servlet transport.
> I start up the JBossAS fine.  No errors.  I then start up a second JVM that contains my J2SE app that also has a JBoss-Remoting connector and multicast detector in it.
> After that second VM starts, I can see the JBossAS receives the multicast message, but it throws the following exception:
> 11:58:53,118 DEBUG [MulticastDetector] Error receiving detection
> java.lang.NullPointerException
> 	at org.jboss.remoting.detection.AbstractDetector.detect(AbstractDetector.java:402)
> 	at org.jboss.remoting.detection.multicast.MulticastDetector.listen(MulticastDetector.java:232)
> 	at org.jboss.remoting.detection.multicast.MulticastDetector.access$100(MulticastDetector.java:43)
> 	at org.jboss.remoting.detection.multicast.MulticastDetector$Listener.run(MulticastDetector.java:260)
> In that J2SE VM, I get this exception:
> 12:05:21,106 DEBUG [Remoting Multicast Detector - Listener Thread: 0] (jboss.remoting.detection.multicast.MulticastDetector)- Error receiving detection
> java.net.SocketException: socket closed
> 	at java.net.PlainDatagramSocketImpl.receive0(Native Method)
> 	at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
> 	at java.net.DatagramSocket.receive(DatagramSocket.java:712)
> 	at org.jboss.remoting.detection.multicast.MulticastDetector.listen(MulticastDetector.java:244)
> 	at org.jboss.remoting.detection.multicast.MulticastDetector.access$000(MulticastDetector.java:45)
> 	at org.jboss.remoting.detection.multicast.MulticastDetector$Listener.run(MulticastDetector.java:289)
> I have trace mode enabled but those are the only messages I see wrt the detector.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list