javax.management.MalformedObjectNameException: key `qualifier' already defined

QuickFIX/J JIRA | Thomas Hügel | 10 years ago
  1. 0

    QuickFIX/J Jira

    quickfixj.org | 6 months ago
    javax.management.MalformedObjectNameException: key `qualifier' already defined
  2. 0

    QuickFIX/J Jira

    quickfixj.org | 3 months ago
    javax.management.MalformedObjectNameException: key `qualifier' already defined
  3. 0

    Hello, when exporting an jmx session with an session qualifier, the code in SessionJmxExporter.java, sets the property "qualifier" twice which causes the following exception: 22.05.2007 16:21:52 org.quickfixj.jmx.mbean.connector.ConnectorJmxExporter export SCHWERWIEGEND: Failed to export connector MBean javax.management.MalformedObjectNameException: key `qualifier' already defined at javax.management.ObjectName.addProperty(ObjectName.java:664) at javax.management.ObjectName.construct(ObjectName.java:559) at javax.management.ObjectName.<init>(ObjectName.java:1304) at javax.management.ObjectName.getInstance(ObjectName.java:1187) at org.quickfixj.jmx.mbean.ObjectNameFactory.createName(ObjectNameFactory.java:37) at org.quickfixj.jmx.mbean.session.SessionJmxExporter.createSessionName(SessionJmxExporter.java:50) at org.quickfixj.jmx.mbean.session.SessionJmxExporter.export(SessionJmxExporter.java:24) at org.quickfixj.jmx.mbean.connector.ConnectorJmxExporter.export(ConnectorJmxExporter.java:60) at org.quickfixj.jmx.JmxExporter.export(JmxExporter.java:60) I changed the code in SessionJMXExporter.java to private void addSessionIdProperties(SessionID sessionID, ObjectNameFactory nameFactory) { nameFactory.addProperty("beginString", sessionID.getBeginString()); nameFactory.addProperty("senderCompID", sessionID.getSenderCompID()); nameFactory.addProperty("targetCompID", sessionID.getTargetCompID()); //wrong: nameFactory.addProperty("qualifier", sessionID.getSessionQualifier()); nameFactory.addProperty("qualifiersess", sessionID.getSessionQualifier()); } and the exporting works. Regards Thomas Hügel

    QuickFIX/J JIRA | 10 years ago | Thomas Hügel
    javax.management.MalformedObjectNameException: key `qualifier' already defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hello, when exporting an jmx session with an session qualifier, the code in SessionJmxExporter.java, sets the property "qualifier" twice which causes the following exception: 22.05.2007 16:21:52 org.quickfixj.jmx.mbean.connector.ConnectorJmxExporter export SCHWERWIEGEND: Failed to export connector MBean javax.management.MalformedObjectNameException: key `qualifier' already defined at javax.management.ObjectName.addProperty(ObjectName.java:664) at javax.management.ObjectName.construct(ObjectName.java:559) at javax.management.ObjectName.<init>(ObjectName.java:1304) at javax.management.ObjectName.getInstance(ObjectName.java:1187) at org.quickfixj.jmx.mbean.ObjectNameFactory.createName(ObjectNameFactory.java:37) at org.quickfixj.jmx.mbean.session.SessionJmxExporter.createSessionName(SessionJmxExporter.java:50) at org.quickfixj.jmx.mbean.session.SessionJmxExporter.export(SessionJmxExporter.java:24) at org.quickfixj.jmx.mbean.connector.ConnectorJmxExporter.export(ConnectorJmxExporter.java:60) at org.quickfixj.jmx.JmxExporter.export(JmxExporter.java:60) I changed the code in SessionJMXExporter.java to private void addSessionIdProperties(SessionID sessionID, ObjectNameFactory nameFactory) { nameFactory.addProperty("beginString", sessionID.getBeginString()); nameFactory.addProperty("senderCompID", sessionID.getSenderCompID()); nameFactory.addProperty("targetCompID", sessionID.getTargetCompID()); //wrong: nameFactory.addProperty("qualifier", sessionID.getSessionQualifier()); nameFactory.addProperty("qualifiersess", sessionID.getSessionQualifier()); } and the exporting works. Regards Thomas Hügel

    QuickFIX/J JIRA | 10 years ago | Thomas Hügel
    javax.management.MalformedObjectNameException: key `qualifier' already defined
  6. 0

    Inspired by Actual Events: Spring, JMX, RMI, and depends-on

    blogspot.com | 6 months ago
    javax.management.MalformedObjectNameException: Key properties cannot be empty

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.management.MalformedObjectNameException

      key `qualifier' already defined

      at javax.management.ObjectName.addProperty()
    2. Java RT
      ObjectName.getInstance
      1. javax.management.ObjectName.addProperty(ObjectName.java:664)
      2. javax.management.ObjectName.construct(ObjectName.java:559)
      3. javax.management.ObjectName.<init>(ObjectName.java:1304)
      4. javax.management.ObjectName.getInstance(ObjectName.java:1187)
      4 frames
    3. Apache ServiceMix :: Bundles :: ${pkgArtifactId}
      JmxExporter.export
      1. org.quickfixj.jmx.mbean.ObjectNameFactory.createName(ObjectNameFactory.java:37)
      2. org.quickfixj.jmx.mbean.session.SessionJmxExporter.createSessionName(SessionJmxExporter.java:50)
      3. org.quickfixj.jmx.mbean.session.SessionJmxExporter.export(SessionJmxExporter.java:24)
      4. org.quickfixj.jmx.mbean.connector.ConnectorJmxExporter.export(ConnectorJmxExporter.java:60)
      5. org.quickfixj.jmx.JmxExporter.export(JmxExporter.java:60)
      5 frames