Below is a simple quartz set up, with a payload of 'foo' run every ten seconds. the log output shows a null payload. Can anyone help me with this. The payload isn't appearing in the message. Docs say that if the payload property isn't set, the message is null, just as below, but the property IS set. Looking at the source the tests only check to see that that the property is set on the job, not if it shows up in a message.
Any help appreciated.
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="
http://www.mulesource.org/schema/mule/core/2.1"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="
http://www.springframework.org/schema/beans"
xmlns:context="
http://www.springframework.org/schema/context"
xmlns:file="
http://www.mulesource.org/schema/mule/file/2.1" xmlns:ftp="
http://www.mulesource.org/schema/mule/ftp/2.1"
xmlns:jms="
http://www.mulesource.org/schema/mule/jms/2.1" xmlns:stdio="
http://www.mulesource.org/schema/mule/stdio/2.1"
xmlns:smtp="
http://www.mulesource.org/schema/mule/smtp/2.1"
xmlns:email="
http://www.mulesource.org/schema/mule/email/2.1"
xmlns:quartz="
http://www.mulesource.org/schema/mule/quartz/2.1"
xmlns:http="
http://www.mulesource.org/schema/mule/http/2.1" xmlns:pop3="
http://www.mulesource.org/schema/mule/pop3/2.1"
xmlns:vm="
http://www.mulesource.org/schema/mule/vm/2.1" xmlns:xm="
http://www.mulesource.org/schema/mule/xml/2.1"
xmlns:tcp="
http://www.mulesource.org/schema/mule/tcp/2.1"
xmlns:management="
http://www.mulesource.org/schema/mule/management/2.1"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.mulesource.org/schema/mule/management/2.1 http://www.mulesource.org/schema/mule/management/2.1/mule-management.xsd http://www.mulesource.org/schema/mule/http/2.1 http://www.mulesource.org/schema/mule/http/2.1/mule-http.xsd http://www.mulesource.org/schema/mule/core/2.1 http://www.mulesource.org/schema/mule/core/2.1/mule.xsd
http://www.mulesource.org/schema/mule/ftp/2.1 http://www.mulesource.org/schema/mule/ftp/2.1/mule-ftp.xsd
http://www.mulesource.org/schema/mule/file/2.1 http://www.mulesource.org/schema/mule/file/2.1/mule-file.xsd
http://www.mulesource.org/schema/mule/jms/2.1 http://www.mulesource.org/schema/mule/jms/2.1/mule-jms.xsd
http://www.mulesource.org/schema/mule/smtp/2.1 http://www.mulesource.org/schema/mule/smtp/2.1/mule-smtp.xsd
http://www.mulesource.org/schema/mule/stdio/2.1 http://www.mulesource.org/schema/mule/stdio/2.1/mule-stdio.xsd
http://www.mulesource.org/schema/mule/vm/2.1 http://www.mulesource.org/schema/mule/vm/2.1/mule-vm.xsd http://www.mulesource.org/schema/mule/email/2.1 http://www.mulesource.org/schema/mule/email/2.1/mule-email.xsd
http://www.mulesource.org/schema/mule/quartz/2.1 http://www.mulesource.org/schema/mule/quartz/2.1/mule-quartz.xsd
http://www.mulesource.org/schema/mule/xml/2.1 http://www.mulesource.org/schema/mule/xml/2.1/mule-xml.xsd http://www.mulesource.org/schema/mule/tcp/2.1 http://www.mulesource.org/schema/mule/tcp/2.1/mule-tcp.xsd http://www.mulesource.org/schema/mule/pop3/2.1 http://www.mulesource.org/schema/mule/pop3/2.1/mule-pop3.xsd">
<description>
Demo for quartz payloads in 2.1.1 mule
</description>
<quartz:connector name="quartzConnector" />
<model name="QuartzModel">
<default-service-exception-strategy />
<service name="QuartzService">
<inbound>
<quartz:inbound-endpoint name="quartzPoll"
repeatCount="-1" repeatInterval="10000" jobName="quartzJob"
connector-ref="quartzConnector">
<quartz:event-generator-job>
<quartz:payload>foo</quartz:payload>
</quartz:event-generator-job>
</quartz:inbound-endpoint>
</inbound>
<log-component />
</service>
</model>
</mule>
Agents Running: None *
**********************************************************************
14:59:32,826 | INFO | org.mule.component.simple.LogComponent | 41 |
********************************************************************************
* Message received in service: QuartzService. Content is: '{NullPayload}' *
********************************************************************************
14:59:42,779 | INFO | org.mule.component.simple.LogComponent | 41 |
********************************************************************************
* Message received in service: QuartzService. Content is: '{NullPayload}' *
********************************************************************************
14:59:52,779 | INFO | org.mule.component.simple.LogComponent | 41 |
********************************************************************************
* Message received in service: QuartzService. Content is: '{NullPayload}' *
********************************************************************************
15:00:02,779 | INFO | org.mule.component.simple.LogComponent | 41 |
********************************************************************************
* Message received in service: QuartzService. Content is: '{NullPayload}' *
********************************************************************************