users@glassfish.java.net

Re: NPE - java.lang.reflect.UndeclaredThrowableException

From: <forums_at_java.net>
Date: Thu, 2 Feb 2012 15:02:30 -0600 (CST)

I downloaded and compiled the example. I tested it with correct JNDI-name
and with wrong JNDI name. There is no diffrence. This is the Glassfish log
file:

[#|2012-02-02T23:00:46.773+0200|INFO|glassfish3.1.1|org.glassfish.admingui|_ThreadID=116;_ThreadName=Thread-2;|GUI
deployment: uploadToTempfile|#]
[#|2012-02-02T23:00:46.774+0200|INFO|glassfish3.1.1|org.glassfish.admingui|_ThreadID=116;_ThreadName=Thread-2;|uploadFileName=sample.osgijdbc.helloworld.jar|#]
[#|2012-02-02T23:00:46.825+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=114;_ThreadName=Thread-2;|Installed
org.glassfish.fighterfish.sample.osgijdbc.helloworld [262] from
reference:file:/opt/glassfish3/glassfish/domains/domain1/applications/sample.osgijdbc.helloworld/|#]
[#|2012-02-02T23:00:46.829+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=114;_ThreadName=Thread-2;|JDBCTestBundleActivator:
Activator started|#]
[#|2012-02-02T23:00:46.830+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=114;_ThreadName=Thread-2;|Started
org.glassfish.fighterfish.sample.osgijdbc.helloworld [262]|#]
[#|2012-02-02T23:00:46.844+0200|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=114;_ThreadName=Thread-2;|sample.osgijdbc.helloworld
was successfully deployed in 58 milliseconds.|#]
[#|2012-02-02T23:04:16.326+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=115;_ThreadName=Thread-2;|JDBCTestBundleActivator:
Activator stopped|#]
[#|2012-02-02T23:04:16.327+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=115;_ThreadName=Thread-2;|Stopped
org.glassfish.fighterfish.sample.osgijdbc.helloworld [262]|#]
[#|2012-02-02T23:04:16.333+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=115;_ThreadName=Thread-2;|Uninstalled
org.glassfish.fighterfish.sample.osgijdbc.helloworld [262]|#]
[#|2012-02-02T23:04:26.028+0200|WARNING|glassfish3.1.1|org.apache.catalina.connector.Request|_ThreadID=98;_ThreadName=Thread-2;|PWC4011:
Unable to set request character encoding to UTF-8 from context , because
request parameters have already been read, or ServletRequest.getReader() has
already been called|#]
[#|2012-02-02T23:04:26.117+0200|INFO|glassfish3.1.1|org.glassfish.admingui|_ThreadID=98;_ThreadName=Thread-2;|GUI
deployment: uploadToTempfile|#]
[#|2012-02-02T23:04:26.118+0200|INFO|glassfish3.1.1|org.glassfish.admingui|_ThreadID=98;_ThreadName=Thread-2;|uploadFileName=sample.osgijdbc.helloworld.jar|#]
[#|2012-02-02T23:04:26.184+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=116;_ThreadName=Thread-2;|Installed
org.glassfish.fighterfish.sample.osgijdbc.helloworld [263] from
reference:file:/opt/glassfish3/glassfish/domains/domain1/applications/sample.osgijdbc.helloworld/|#]
[#|2012-02-02T23:04:26.187+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=116;_ThreadName=Thread-2;|JDBCTestBundleActivator:
Activator started|#]
[#|2012-02-02T23:04:26.188+0200|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=116;_ThreadName=Thread-2;|Started
org.glassfish.fighterfish.sample.osgijdbc.helloworld [263]|#]
[#|2012-02-02T23:04:26.201+0200|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=116;_ThreadName=Thread-2;|sample.osgijdbc.helloworld
was successfully deployed in 55 milliseconds.|#]
 

Is this normal?


--
[Message sent by forum member 'rcbandit']
View Post: http://forums.java.net/node/883210