Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-7414

Make missing managers.xml result in a clear error message/exception

    Details

    • Type: Task Task
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.M1
    • Component/s: SNMP adapter
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      If managers.xml cannot be found as a ClassLoader resource, the following is thrown:

      org.jboss.xb.binding.JBossXBException: Failed to parse source: null
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:190)
      at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.load(TrapEmitter.java:243)
      at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.start(TrapEmitter.java:105)

      First check that the resource can be found, and throw an appropriate Exception if not.

        Issue Links

          Activity

          Hide
          Andrew Rubinger
          added a comment -

          Now results in:

          java.lang.IllegalStateException: Cannot locate classloader resource: /managers.xml
          at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.load(TrapEmitter.java:240)
          at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.start(TrapEmitter.java:105)

          Show
          Andrew Rubinger
          added a comment - Now results in: java.lang.IllegalStateException: Cannot locate classloader resource: /managers.xml at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.load(TrapEmitter.java:240) at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.start(TrapEmitter.java:105)

            People

            • Assignee:
              Andrew Rubinger
              Reporter:
              Andrew Rubinger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: