You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/07/04 10:09:00 UTC
[jira] [Commented] (CAMEL-22217) camel-console: BrowseDevConsole doCallJson may throw ClassCastException
[ https://issues.apache.org/jira/browse/CAMEL-22217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17995730#comment-17995730 ]
Claus Ibsen commented on CAMEL-22217:
-------------------------------------
Okay I backported to 4.10.x
> camel-console: BrowseDevConsole doCallJson may throw ClassCastException
> -----------------------------------------------------------------------
>
> Key: CAMEL-22217
> URL: https://issues.apache.org/jira/browse/CAMEL-22217
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: James Netherton
> Assignee: James Netherton
> Priority: Minor
> Fix For: 4.10.7, 4.13.0
>
>
> It's due to trying to convert the default value for the message timestamp, which is set up as an int instead of long. Hence
> {code}
> java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')
> at org.apache.camel.impl.console.BrowseDevConsole.doCallJson(BrowseDevConsole.java:188) ~[camel-console-4.13.0-SNAPSHOT.jar:4.13.0-SNAPSHOT]
> at org.apache.camel.impl.console.BrowseDevConsole.doCallJson(BrowseDevConsole.java:36) ~[camel-console-4.13.0-SNAPSHOT.jar:4.13.0-SNAPSHOT
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)