[
https://issues.apache.org/jira/browse/CAMEL-10349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16303304#comment-16303304
]
ASF GitHub Bot commented on CAMEL-10349:
----------------------------------------
davsclaus commented on issue #1190: CAMEL-10349, javaScript setHeader
conversion fault
URL: https://github.com/apache/camel/pull/1190#issuecomment-353875553
The Karaf team have not yet fixed this properly, installing camel-script now
fails with
```
karaf@root()> feature:install camel-script-javascript
Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=camel-script-javascript; type=karaf.feature;
version="[2.21.0.SNAPSHOT,2.21.0.SNAPSHOT]";
filter:="(&(osgi.identity=camel-script-javascript)(type=karaf.feature)(version>=2.21.0.SNAPSHOT)(version<=2.21.0.SNAPSHOT))"
[caused by: Unable to resolve camel-script-javascript/2.21.0.SNAPSHOT: missing
requirement [camel-script-javascript/2.21.0.SNAPSHOT] osgi.identity;
osgi.identity=camel-script; type=karaf.feature;
version="[2.21.0.SNAPSHOT,2.21.0.SNAPSHOT]" [caused by: Unable to resolve
camel-script/2.21.0.SNAPSHOT: missing requirement
[camel-script/2.21.0.SNAPSHOT] osgi.identity;
osgi.identity=org.apache.camel.camel-script; type=osgi.bundle;
version="[2.21.0.SNAPSHOT,2.21.0.SNAPSHOT]"; resolution:=mandatory [caused by:
Unable to resolve org.apache.camel.camel-script/2.21.0.SNAPSHOT: missing
requirement [org.apache.camel.camel-script/2.21.0.SNAPSHOT]
osgi.wiring.package;
filter:="(osgi.wiring.package=jdk.nashorn.api.scripting)"]]]
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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
> Assignee: Fabrizio Spataro
>
> I may have found a bug derived from 2.18
> Before 2.18, i can specified an header like:
> {code}
> <setHeader headerName="myHeader">
> <javaScript>[ {"firstField": "firstValue", "secondField":"secondValue"}
> ]</javaScript>
> </setHeader>
> {code}
> 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.4.14#64029)