You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2024/12/10 15:07:00 UTC

[jira] [Updated] (ARTEMIS-5206) Provide description = "" instead of null in certain exception instances

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

Clebert Suconic updated ARTEMIS-5206:
-------------------------------------
    Description: 
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.

  was:
Certain exception types, for example ActiveMQRemoteDisconnectException are showing the following exception trace when thrown:

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/:?]



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.


> 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: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact