[jboss-dev-forums] [JBoss AS 7 Development] - Issue with reflections
John Wasmat
do-not-reply at jboss.com
Mon Jul 2 20:24:41 EDT 2012
John Wasmat [https://community.jboss.org/people/johnwasmat] created the discussion
"Issue with reflections"
To view the discussion, visit: https://community.jboss.org/message/745582#745582
--------------------------------------------------------------
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
[https://community.jboss.org/message/745582#745582]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120702/3d7ef35d/attachment.html
More information about the jboss-dev-forums
mailing list