[ 
https://issues.apache.org/jira/browse/ARTEMIS-5206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17904543#comment-17904543
 ] 

ASF subversion and git services commented on ARTEMIS-5206:
----------------------------------------------------------

Commit bb7d567f5d620c942c8c3cb2b27de674277bd3f3 in activemq-artemis's branch 
refs/heads/main from Clebert Suconic
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=bb7d567f5d ]

ARTEMIS-5206 Provide description='' instead of null in some ActiveMQException 
instances


> Provide description = "" instead of null in certain exception instances
> -----------------------------------------------------------------------
>
>                 Key: ARTEMIS-5206
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5206
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>    Affects Versions: 2.38.0
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Trivial
>             Fix For: 2.39.0
>
>
> Certain exception types, for example ActiveMQRemoteDisconnectException are 
> showing the following exception trace when thrown:
> {code:java}
> org.apache.activemq.artemis.api.core.ActiveMQRemoteDisconnectException: null
>       at 
> org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl.connectionDestroyed(RemotingServiceImpl.java:600)
>  ~[classes/:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.invm.InVMAcceptor$Listener.connectionDestroyed(InVMAcceptor.java:296)
>  ~[classes/:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnection.internalClose(InVMConnection.java:157)
>  ~[classes/:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnection.disconnect(InVMConnection.java:166)
>  ~[classes/:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.invm.InVMAcceptor.disconnect(InVMAcceptor.java:246)
>  ~[classes/:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnector$Listener.connectionDestroyed(InVMConnector.java:274)
>  ~[classes/:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnection.internalClose(InVMConnection.java:157)
>  ~[classes/:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnection.close(InVMConnection.java:145)
>  ~[classes/:?]
> {code}
> It would be more aesthetically if they were providing "" as a description 
> instead of "null"
> This caught my attention on logs as I thought it was a NullPointerException.
> This is just a trivial change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to