camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to impl bean-side of proxy w/Future return?
Date Fri, 15 Jul 2011 05:18:30 GMT
On Fri, Jul 15, 2011 at 12:36 AM, Jason Dillon <jason@planet57.com> wrote:
>>> <snip>
>>> java.util.concurrent.ExecutionException: java.lang.IllegalAccessException: Class
org.apache.camel.component.bean.MethodInfo can not access a member of class com.sonatype.overlord.xpi.AsyncProxyBeanCamelTest$1
with modifiers "public"
>>
>> Are you have the implementation as an inner class in that unit test?
>> It seems like that since there is a $1 on the classname. If so make
>> sure its public static so its visible for introspection.
>
> I've got a few tests which use inner classes for the proxy intf + service impl which
work fine.
>
> The issue here is that the exception doesn't report what method it was looking for, only
that it can't access it.
>

I have created a ticket to improve the exception message
https://issues.apache.org/jira/browse/CAMEL-4230


> --jason
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message