You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "james strachan (JIRA)" <ji...@activemq.org> on 2006/03/17 12:29:25 UTC

[jira] Resolved: (AMQ-621) Consumer get java.lang.nullPointerException

     [ http://jira.activemq.org/jira//browse/AMQ-621?page=all ]
     
james strachan resolved AMQ-621:
--------------------------------

     Resolution: Fixed
    Fix Version: 4.0 M5

I think this is now fixed - please let us know if you still have problems and we can reopen it again

> Consumer get java.lang.nullPointerException
> -------------------------------------------
>
>          Key: AMQ-621
>          URL: http://jira.activemq.org/jira//browse/AMQ-621
>      Project: ActiveMQ
>         Type: Bug

>   Components: JMS client
>     Versions: 4.0 M4
>  Environment: Solaris.
>     Reporter: Binhua Wang
>      Fix For: 4.0 M5

>
>
> setup: (1) activemq up running with ssl
>             (2) JMS client (application) was compiled purely used sun solaris environment with jdk1.5.0_03 and jms1.1.jar. Debugging mode was turned on.
>             (3) use jndi.properties file provided at activemq.
> Execution:
>          Producer simply sent 1000 text messages with 46 characters each on a queue.
>          Consumer use synchrouse receive mode: receive()
> Observation:
>          (1) Both producer and receiver successfully handsaked with activemq (by looking into logs about ssl certification verification and negociation.
>          (2) Producer continuously pushed messages into queue and consumer received messages.
>          (3) After several hundred message delivered and received, consumer got null pointer exception as below:
>        
>          ....
>          main, WRITE: TLSv1 Application Data, length = 46
>          Client received: No. 450:Sever message: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
>          Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, READ: TLSv1 Application Data, length = 161
>          main, WRITE: TLSv1 Application Data, length = 46
>          Client received: No. 451:Sever message: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
>          Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, READ: TLSv1 Application Data, length = 161
>          Mar 8, 2006 2:38:10 PM org.apache.activemq.ActiveMQConnection onAsyncException
>          WARNING: Async exception with no exception listener: java.io.IOException: Unexpected Error: java.lang.NullPointerException
>         java.io.IOException: Unexpected Error: java.lang.NullPointerException
>         at org.activeio.adapter.SyncToAsyncChannel.run(SyncToAsyncChannel.java:161)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
>         at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:146)
>         at org.activeio.command.AsyncChannelToAsyncCommandChannel$1.onPacket(AsyncChannelToAsyncCommandChannel.java:69)
>         at org.apache.activemq.transport.activeio.PacketAggregatingAsyncChannel.onPacket(PacketAggregatingAsyncChannel.java:92)
>         at org.activeio.FilterAsyncChannel.onPacket(FilterAsyncChannel.java:87)
>         at org.apache.activemq.transport.activeio.ActivityMonitor.onPacket(ActivityMonitor.java:42)
>         at org.activeio.adapter.SyncToAsyncChannel.run(SyncToAsyncChannel.java:155)
>         ... 3 more
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, called close()
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, called closeInternal(true)
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, SEND TLSv1 ALERT:  warning, description = close_notify
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, WRITE: TLSv1 Alert, length = 18
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, called close()
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, called closeInternal(true)
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, called close()
> Socket Connection: /127.0.0.1:55693 -> localhost/127.0.0.1:61618, called closeInternal(true)
>  

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