Hi all,

I have configured the scheduled task with dummy message as [1]. It
successfully executes the flow at the first time. In the next trigger, it
goes into the sequence and throws the exception [2]. Please note that it
successfully trigger the second execution if I set the interval as 1hour
(3600). What could be the reason for this issue and how can I resolve this?

[1]
<task class="org.apache.synapse.startup.tasks.MessageInjector"
  group="synapse.simple.quartz" name="sTask" xmlns="
http://ws.apache.org/ns/synapse";>
  <trigger interval="7200"/>
  <property name="sequenceName" value="testSequence" xmlns:task="
http://www.wso2.org/products/wso2commons/tasks"/>
  <property name="message" xmlns:task="
http://www.wso2.org/products/wso2commons/tasks";>
   * <request xmlns=""/>*
  </property>
  <property name="injectTo" value="sequence" xmlns:task="
http://www.wso2.org/products/wso2commons/tasks"/>
</task>

[2]
ERROR - SequenceMediator Error while building message
java.lang.NullPointerException
    at
org.apache.axis2.context.AbstractContext.needPropertyDifferences(AbstractContext.java:239)
    at
org.apache.axis2.context.AbstractContext.setProperty(AbstractContext.java:202)
    at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:107)
    at
org.apache.synapse.mediators.AbstractListMediator.buildMessage(AbstractListMediator.java:140)
    at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:83)
    at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
    at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
    at
org.apache.synapse.mediators.MediatorWorker.run(MediatorWorker.java:80)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Thanks

-- 
Shakila Sivagnanarajah
Software Engineer
Mobile :+94 (0) 768 856837
[email protected]
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to