JBoss Community

Issue with reflections

created by John Wasmat in JBoss AS 7 Development - View the full discussion

Hello,

 

I have a JBoss server running with a certain JAVA_HOME. I have a pub sub JMS application running in eclipse. I do some looks using reflections in the JMS application. The JMS application doesnt throw any error while looking up with reflections but when the server is running it fails to retrieve the class name. The following is the reflection error.

 

java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

 

Is this an issue with the JVM? I`m assuming tht whenever I run an application from eclipse its using a different JVM. Also if not is it tht JBoss and the application from ecipse are referring to the same jdk which is causing the problem? Thanks for reading this post. Any help is appreciated.

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community