Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-603

Remove e.printStackTrace() from code

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • None
    • None

    Description

      ActiveMQActivationSpec.validate() method should not call e.printStackTrace(); in catch block. It should be properly logged:
      try {
      ...
      catch (IntrospectionException e)

      { e.printStackTrace(); }

      The same issue is in:
      InVMAcceptor.stop()
      NettyAcceptor.stop()
      ClusterManager.clear()
      ClusterManager.intercept()
      ColocatedHAManager.stop()
      ClusterConnectionImpl.disconnectRecord()
      ClusterConnectionImpl.removeRecord()
      ActiveMQServerImpl.freezeConnections()
      ColocatedActivation.allVotesCast()
      ColocatedActivation.getActivationChannelHandler()
      FileLockNodeManager.startLiveNode()
      InVMNodeManager.startLiveNode()
      RefsOperation.afterRollback()
      ServerSessionImpl.xaForget()
      SharedNothingBackupActivation.run()
      SharedStoreBackupActivation.run()
      ManagementServiceImpl.unregisterAcceptors()

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chani@me.com Dmitrii Tikhomirov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: