Re: [Dev] Error while triggering the scheduled task

2017-04-28 Thread Malaka Silva
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 
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]
>group="synapse.simple.quartz" name="sTask" xmlns="http://ws.apache.org/
> ns/synapse">
>   
>   http://www.wso2.org/products/wso2commons/tasks"/>
>   http://www.wso2.
> org/products/wso2commons/tasks">
>* *
>   
>   http://www.wso2.
> org/products/wso2commons/tasks"/>
> 
>
> [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>
> shak...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> 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/

https://store.wso2.com/store/

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


[Dev] Error while triggering the scheduled task

2017-04-28 Thread Shakila Sivagnanarajah
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]
http://ws.apache.org/ns/synapse;>
  
  http://www.wso2.org/products/wso2commons/tasks"/>
  http://www.wso2.org/products/wso2commons/tasks;>
   * *
  
  http://www.wso2.org/products/wso2commons/tasks"/>


[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
shak...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev