Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-389

Implementing a catch for an empty catch clause in the Connection.cs CheckConnected() method at line 777.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.5.5
    • None
    • ActiveMQ, NMS
    • .net 3.5 on win 7 in a vbox vm.

    Description

      This catch seems to work. I know its hacky matching on string but there is not an exception Id.

      catch (Exception ex1)
      {
      if(ex1.Message.Equals("java.lang.SecurityException : User name or password is invalid.\n"))

      { throw new ConnectionFailedException("java.lang.SecurityException : User name or password is invalid.", ex1); }

      }

      would love to get involved - will modify approach to suit, re patches, etc... just wanted to get this in to get ball rolling.

      Attachments

        Issue Links

          Activity

            People

              jgomes Jim Gomes
              ethanwinograd@hotmail.com Ethan Winograd
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified