users@glassfish.java.net

Re: NPE - java.lang.reflect.UndeclaredThrowableException

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Fri, 03 Feb 2012 10:43:26 +0530

Hi,

I just tried with a fresh 3.1.1 installation and the sample works just
fine. Relevant messages from log is shown below:

[#|2012-02-03T10:41:28.056+0530|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=admin-thread-pool-4848(5);|*JDBCTestBundleActivator:
Activator started*|#]

[#|2012-02-03T10:41:29.021+0530|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=admin-thread-pool-4848(5);|*JDBCTestBundleActivator:
com.sun.gjc.spi.jdbc40.ConnectionWrapper40_at_a20981*|#]

Could you pl verify your 3.1.1 installation? May be try reinstalling.

Thanks,
Sahoo
On Friday 03 February 2012 02:32 AM, forums_at_java.net wrote:
> 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
>
>