synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evanthika Amarasiri (JIRA)" <j...@apache.org>
Subject [jira] Closed: (SYNAPSE-194) Integer values cannot be used when creating a Task
Date Fri, 09 May 2008 11:14:55 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Evanthika Amarasiri closed SYNAPSE-194.
---------------------------------------


As per Ruwan the integer values should be handled by the Task class and not the Task mediator.
Tested on 1.2_QA_B1. The issue will be closed

> Integer values cannot be used when creating a Task
> --------------------------------------------------
>
>                 Key: SYNAPSE-194
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-194
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Ubuntu7.04, JDK1.5.0_06, Firefox 2.0.0.9
>            Reporter: Evanthika Amarasiri
>            Assignee: Asankha C. Perera
>             Fix For: 1.1.1-QA-B2
>
>
> Tried to create a Task which takes in two integer values and sends them to a service
which adds them up and sends the response back. When the task was executed, I received the
following exception on the Synapse console.
> 2007-12-17 13:54:00,902 [10.100.1.97-testc-ubuntu] [SimpleThreadPoolWorker-2] DEBUG SimpleQuartzJob
Executing task : synapse.simple.quartz.CalculatorTask
> 2007-12-17 13:54:00,903 [10.100.1.97-testc-ubuntu] [SimpleThreadPoolWorker-2] DEBUG SimpleQuartzJob
Found Property : <syn:property xmlns:syn="http://ws.apache.org/ns/synapse" name="x" value="1"
/>
> 2007-12-17 13:54:00,903 [10.100.1.97-testc-ubuntu] [SimpleThreadPoolWorker-2] ERROR PropertyHelper
Error setting property : x as a String property into class mediator : class com.math.calc.task.CalculatorTask
: com.math.calc.task.CalculatorTask.setX(java.lang.String)com.math.calc.task.CalculatorTask.setX(java.lang.String)
> 2007-12-17 13:54:00,903 [10.100.1.97-testc-ubuntu] [SimpleThreadPoolWorker-2] ERROR JobRunShell
Job synapse.simple.quartz.CalculatorTask threw an unhandled Exception: 
> org.apache.synapse.SynapseException: Error setting property : x as a String property
into class mediator : class com.math.calc.task.CalculatorTask : com.math.calc.task.CalculatorTask.setX(java.lang.String)
>         at org.apache.synapse.config.xml.PropertyHelper.handleException(PropertyHelper.java:189)
>         at org.apache.synapse.config.xml.PropertyHelper.setStaticProperty(PropertyHelper.java:146)
>         at org.apache.synapse.startup.quartz.SimpleQuartzJob.execute(SimpleQuartzJob.java:46)
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
>         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
> Caused by: java.lang.NoSuchMethodException: com.math.calc.task.CalculatorTask.setX(java.lang.String)
>         at java.lang.Class.getMethod(Class.java:1581)
>         at org.apache.synapse.config.xml.PropertyHelper.setStaticProperty(PropertyHelper.java:138)
>         ... 3 more
> 2007-12-17 13:54:00,904 [10.100.1.97-testc-ubuntu] [SimpleThreadPoolWorker-2] ERROR ErrorLogger
Job (synapse.simple.quartz.CalculatorTask threw an exception.
> org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception:
org.apache.synapse.SynapseException: Error setting property : x as a String property into
class mediator : class com.math.calc.task.CalculatorTask : com.math.calc.task.CalculatorTask.setX(java.lang.String)]
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
> Caused by: org.apache.synapse.SynapseException: Error setting property : x as a String
property into class mediator : class com.math.calc.task.CalculatorTask : com.math.calc.task.CalculatorTask.setX(java.lang.String)
>         at org.apache.synapse.config.xml.PropertyHelper.handleException(PropertyHelper.java:189)
>         at org.apache.synapse.config.xml.PropertyHelper.setStaticProperty(PropertyHelper.java:146)
>         at org.apache.synapse.startup.quartz.SimpleQuartzJob.execute(SimpleQuartzJob.java:46)
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
>         ... 1 more
> Caused by: java.lang.NoSuchMethodException: com.math.calc.task.CalculatorTask.setX(java.lang.String)
>         at java.lang.Class.getMethod(Class.java:1581)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message