Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-3721

NullPointerException deploying a scheduled-listener with invalid scheduleidref attribute

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.10
    • Fix Version/s: 4.13
    • Component/s: Deployment
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Deploy an esb service where the scheduleidref attribute is referring to a non-existent schedule-provider:

      <providers>
        <schedule-provider name="scheduler">
          <simple-schedule scheduleid="3-sec-trigger" frequency="3" execCount="2" />
        </schedule-provider>
      </providers>
      
      <services>
        <service ...>
          <listeners>
            <scheduled-listener name="my_scheduled_listener"
              scheduleidref="XXX_3-sec-trigger"
      
      Show
      Deploy an esb service where the scheduleidref attribute is referring to a non-existent schedule-provider: <providers> <schedule-provider name= "scheduler" > <simple-schedule scheduleid= "3-sec-trigger" frequency= "3" execCount= "2" /> </schedule-provider> </providers> <services> <service ...> <listeners> <scheduled-listener name= "my_scheduled_listener" scheduleidref= "XXX_3-sec-trigger"

      Description

      Deploying a service with a schedule-listener using an incorrect value for the scheduleidref attribute results in a NullPointerException:

      ERROR [AbstractKernelController] Error installing to Start: name=jboss.esb.vfszip:/data/jboss/work/jboss-soa-p-5.2.0.GA/jboss-as/server/test/deploy/Quickstart_scheduled_services.esb/ state=Create
      java.lang.RuntimeException: java.lang.NullPointerException
      	at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:185)
      ...
      Caused by: java.lang.NullPointerException
      	at org.jboss.soa.esb.listeners.config.mappers.ScheduleMapper.map(ScheduleMapper.java:61)
      	at org.jboss.soa.esb.listeners.config.mappers.ESBAwareGenerator.addESBAwareConfig(ESBAwareGenerator.java:216)
      	at org.jboss.soa.esb.listeners.config.mappers.ESBAwareGenerator.generate(ESBAwareGenerator.java:102)
      	at org.jboss.soa.esb.listeners.config.mappers.XMLBeansModel.generateESBAwareConfig(XMLBeansModel.java:441)
      

      The existence of the referenced schedule-provider should be verified, and if it does not exist, a meaningful exception should be thrown instead of the NullPointerException.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  mputz Martin Weiler
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: