[ 
https://issues.apache.org/jira/browse/ARTEMIS-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram reassigned ARTEMIS-1574:
---------------------------------------

    Assignee: Justin Bertram

> NullPointerException when client tries to connect with SSL on non-SSL port
> --------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1574
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1574
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.3.0
>            Reporter: Tou Vue
>            Assignee: Justin Bertram
>
> Artemis is configured with a TCP acceptor. 
> The client tries to connect with SSL and we get the following in the Artemis 
> log. 
> Expected a friendly message instead of null pointer exception.  
> 13:56:29,559 WARN  [io.netty.channel.DefaultChannelPipeline] An 
> exceptionCaught() event was fired, and it reached at the tail of the 
> pipeline. It usually means the last handler in the pipeline did not handle 
> the exception.: io.netty.handler.codec.DecoderException: 
> java.lang.NullPointerException
>       at 
> io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> org.apache.activemq.artemis.core.protocol.ProtocolHandler$ProtocolDecoder.channelRead(ProtocolHandler.java:128)
>  [artemis-server-2.3.0.jar:2.3.0]
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1342)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:934)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) 
> [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) 
> [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) 
> [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_121]
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.activemq.artemis.core.protocol.ProtocolHandler$ProtocolDecoder.decode(ProtocolHandler.java:182)
>  [artemis-server-2.3.0.jar:2.3.0]
>       at 
> io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       at 
> io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
>  [netty-all-4.1.14.Final.jar:4.1.14.Final]
>       ... 16 more



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to