Hi Shakila,

Since you can reproduce the issues can we further investigate by debugging
[1].

[1]
https://github.com/wso2/wso2-axis2/blob/master/modules/kernel/src/org/apache/axis2/context/AbstractContext.java

On Fri, Apr 28, 2017 at 5:10 PM, Shakila Sivagnanarajah <[email protected]>
wrote:

> 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 <076%20885%206837>
> [email protected]
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Associate Director / Architect
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to