Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-3978

An underscore "_" in a jobname causes a null jobname error.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix or Usage Issue
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Transport: Quartz
    • Labels:
      None
    • Configuration:
      Hide

      <quartz:connector name="MyTimer" />

      Show
      <quartz:connector name="MyTimer" />

      Description

      Using an underscore in a job name, as below:

      <quartz:inbound-endpoint name="TimerTester"
      jobName="job_one"
      connector-ref="MyTimer"
      cronExpression="0 0/2 6-20 * * ?">

      </quartz:inbound-endpoint>

      Causes Mule startup to fail with this error:

      ERROR 2008-11-21 09:30:32,802 [WrapperListener_start_runner] org.mule.MuleServer:
      ********************************************************************************
      Message : Failed to start Quartz receiver
      Type : org.mule.api.endpoint.EndpointException
      Code : MULE_ERROR-60042
      JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/endpoint/EndpointException.html
      ********************************************************************************
      Exception stack is:
      1. Job name cannot be empty. (java.lang.IllegalArgumentException)
      org.quartz.JobDetail:178 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html)
      2. Failed to start Quartz receiver (org.mule.api.endpoint.EndpointException)
      org.mule.transport.quartz.QuartzMessageReceiver:150 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/endpoint/EndpointException.html)
      ********************************************************************************
      Root Exception stack trace:
      java.lang.IllegalArgumentException: Job name cannot be empty.
      at org.quartz.JobDetail.setName(JobDetail.java:178)
      at org.mule.transport.quartz.QuartzMessageReceiver.doStart(QuartzMessageReceiver.java:70)
      at org.mule.transport.AbstractConnectable.start(AbstractConnectable.java:289)
      at org.mule.service.AbstractService.startListeners(AbstractService.java:654)
      at org.mule.service.AbstractService.start(AbstractService.java:347)
      at org.mule.service.AbstractService.start(AbstractService.java:297)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.mule.lifecycle.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:274)
      at org.mule.lifecycle.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:130)
      at org.mule.lifecycle.GenericLifecycleManager.firePhase(GenericLifecycleManager.java:85)
      at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:164)
      at org.mule.MuleServer.run(MuleServer.java:259)
      at org.mule.MuleServer.start(MuleServer.java:244)
      at org.mule.module.boot.MuleServerWrapper.start(MuleServerWrapper.java:48)
      at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)

      ********************************************************************************

      ERROR 2008-11-21 09:30:32,843 [WrapperListener_start_runner] org.mule.MuleServer:
      ********************************************************************************

      • A Fatal error has occurred while the server was running: *
      • Job name cannot be empty. (java.lang.IllegalArgumentException) *
      • *
      • The error is fatal, the system must shutdown *
      • Server started: 11/21/08 9:30 AM *
      • Server shutdown: 11/21/08 9:30 AM *
        ********************************************************************************

      Whereas setting the jobname like this:

      <quartz:inbound-endpoint name="TimerTester"
      jobName="jobone"
      connector-ref="MyTimer"
      cronExpression="0 0/2 6-20 * * ?">

      </quartz:inbound-endpoint>

      works fine.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rickotten@cas.org Rick Otten
            • Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: