users@glassfish.java.net

Re: NullPointerException when running verifier

From: Sahoo <Sahoo_at_Sun.COM>
Date: Wed, 07 Nov 2007 16:50:20 +0530

Can you check if there is a directory called $GF_HOME/domains/somain1/lib?

Normally one should not encounter this NPE. It is a separate matter that
PELaunch.java [1] is not guarding itself against null value that can be
returned by File.listFiles().

Thanks,
Sahoo

[1]
http://fisheye5.cenqua.com/browse/glassfish/appserv-core/src/java/com/sun/enterprise/server/PELaunch.java?r=1.27

glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm using Gentoo Linux, J2SDK 1.6.0_03, GlassFish V2 v2ur1-b07. I've noticed a problem running glassfish verifier (verifying EAR archive). I'm getting the following verification results:
>
> ---------------------------
> STATIC VERIFICATION RESULTS
> ---------------------------
>
>
> ----------------------------------
> NUMBER OF FAILURES/WARNINGS/ERRORS
> ----------------------------------
> # of Failures : 0
> # of Warnings : 0
> # of Errors : 1
>
> -----------------------------------------------------
> ERRORS THAT OCCURRED WHILE RUNNING STATIC VERIFICATION
> -----------------------------------------------------
>
> Error Name : Could not verify successfully.
> Error Description : java.lang.NullPointerException
> at com.sun.enterprise.server.PELaunch.getServerClassPath(PELaunch.java:525)
> at com.sun.enterprise.tools.verifier.VerificationHandler.initStandalone(VerificationHandler.java:190)
> at com.sun.enterprise.tools.verifier.VerificationHandler.<init>(VerificationHandler.java:109)
> at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:140)
> at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
>
>
> ----------------------------------
> END OF STATIC VERIFICATION RESULTS
> ----------------------------------
>
> Any hints on what might be the cause of this exception??
>
> Best regards,
>
> Olaf Tomczak
> [Message sent by forum member 'olafos' (olafos)]
>
> http://forums.java.net/jive/thread.jspa?messageID=244254
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>