You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/02/23 03:43:00 UTC
[jira] [Work logged] (CAMEL-14597) camel-blueprint - Using simple
language on setProperty() failed with IllegalAccessException in case of
blueprint
[ https://issues.apache.org/jira/browse/CAMEL-14597?focusedWorklogId=391278&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-391278 ]
ASF GitHub Bot logged work on CAMEL-14597:
------------------------------------------
Author: ASF GitHub Bot
Created on: 23/Feb/20 03:42
Start Date: 23/Feb/20 03:42
Worklog Time Spent: 10m
Work Description: xldai commented on pull request #3597: CAMEL-14597 fix the IllegalAccessException when private default const…
URL: https://github.com/apache/camel/pull/3597
…ructor
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 391278)
Remaining Estimate: 0h
Time Spent: 10m
> camel-blueprint - Using simple language on setProperty() failed with IllegalAccessException in case of blueprint
> ----------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-14597
> URL: https://issues.apache.org/jira/browse/CAMEL-14597
> Project: Camel
> Issue Type: Bug
> Components: came-core, camel-blueprint
> Affects Versions: 2.20.1, 2.24.2, 3.0.1, 2.25.0
> Environment: Java 8, Java 11
> Reporter: Xilai Dai
> Priority: Minor
> Attachments: test-simple-property.zip
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code}
> .setProperty("MyProperty").simple("${bean:java.lang.System?method=currentTimeMillis}")
> {code}
> This Java DSL setting Property using simple expression works well in case of the camelContext is created from Spring-DM/Spring configuration.
> But the IllegalAccessException error will be thrown in case of the camelContext is created from blueprint.
> {code}
> Caused by: java.lang.IllegalAccessException: Class org.apache.camel.util.ObjectHelper can not access a member of class java.lang.System with modifiers "private"
> at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102) ~[?:1.8.0_201]
> at java.lang.Class.newInstance(Class.java:436) ~[?:1.8.0_201]
> at org.apache.camel.util.ObjectHelper.newInstance(ObjectHelper.java:1734) ~[bundleFile:2.24.2]
> ... 22 more
> {code}
> The minimal project is attached to easy reproduce this issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)