You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2008/01/07 20:30:34 UTC
[jira] Resolved: (SYNAPSE-194) Integer values cannot be used when
creating a Task
[ https://issues.apache.org/jira/browse/SYNAPSE-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asankha C. Perera resolved SYNAPSE-194.
---------------------------------------
Resolution: Invalid
Fix Version/s: (was: 1.1.1-QA-B1)
1.1.1
Assignee: Asankha C. Perera
The configuration XML can only specify string values, which the Task class needs to appropriately convert to the correct type and use
> 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
>
>
> 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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org