camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabrizio Spataro (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-10349) javaScript setHeader conversion fault
Date Tue, 27 Sep 2016 20:47:20 GMT
Fabrizio Spataro created CAMEL-10349:
----------------------------------------

             Summary: javaScript setHeader conversion fault
                 Key: CAMEL-10349
                 URL: https://issues.apache.org/jira/browse/CAMEL-10349
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.18.0
            Reporter: Fabrizio Spataro



I may have found a bug derived from 2.18 

Before 2.18, i can specified an header like: 

<setHeader headerName="myHeader">
 <javaScript>[ {"firstField": "firstValue", "secondField":"secondValue"} ]</javaScript>
</setHeader>

I pass it into a method inside my bean. It was cast to ArrayList<HashMap<String,Object>>

After 2.18 upgrade i had an error 

'java.lang.ClassCastException: jdk.nashorn.api.scripting.ScriptObjectMirror cannot be cast
to java.util.List'

Can you help me? Is it a camel bug or an jdk8 issue?




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message