Uploaded image for project: 'Spring Batch Admin'
  1. Spring Batch Admin
  2. BATCHADM-92

BatchMBeanExporter creation fails due to malformed object name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.1
    • Component/s: Manager
    • Labels:
      None
    • Environment:
      Windows XP, Tomcat 6 on JRE 6

      Description

      After integrating spring batch admin with an existing web application, on restarting the server after running a job, the context fails to initialize with the following exception
      org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.batch.admin.jmx.SimpleStepExecutionMetrics@18b3e62] with key 'spring.application:type=JobExecution,name=analysisJob,step=performAnalysis:partition3'; nested exception is javax.management.MalformedObjectNameException: Invalid character `:' in value
      at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:602)
      at org.springframework.batch.admin.jmx.BatchMBeanExporter.registerSteps(BatchMBeanExporter.java:125)
      at org.springframework.batch.admin.jmx.BatchMBeanExporter.doStart(BatchMBeanExporter.java:281)
      at org.springframework.batch.admin.jmx.BatchMBeanExporter.start(BatchMBeanExporter.java:234)
      at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:166)
      ... 24 more
      Caused by: javax.management.MalformedObjectNameException: Invalid character `:' in value
      at javax.management.ObjectName.parseValue(ObjectName.java:958)
      at javax.management.ObjectName.checkValue(ObjectName.java:990)
      at javax.management.ObjectName.construct(ObjectName.java:709)
      at javax.management.ObjectName.<init>(ObjectName.java:1446)
      at javax.management.ObjectName.getInstance(ObjectName.java:1346)
      at org.springframework.jmx.support.ObjectNameManager.getInstance(ObjectNameManager.java:95)
      at org.springframework.jmx.export.naming.MetadataNamingStrategy.getObjectName(MetadataNamingStrategy.java:128)
      at org.springframework.jmx.export.MBeanExporter.getObjectName(MBeanExporter.java:728)
      at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:631)
      at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:598)
      ... 28 more
      Jan 14, 2011 7:11:54 PM org.apache.catalina.core.StandardContext listenerStart

        Attachments

          Activity

            People

            Assignee:
            david_syer Dave Syer
            Reporter:
            venkatsivaraj Venkatesh Sivaraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: