users@glassfish.java.net

Re: appclient doesn't work

From: <glassfish_at_javadesktop.org>
Date: Mon, 25 Jan 2010 06:21:38 PST

Hi, Tim!

I have previously mentioned that this problem occur when I use with jdk 6 update 8 + Glassfish v3 Enterprise.
I tried on two different OSs and PCs - Windowx XP SP2 and Windowx XP SP3.
I tried several examples from different books, Java EE samples and Java EE tutorials.

I again reproduced this error - see screenshots.
1. Java SE6 update 18
2. Java EE 6
3. Netabeans 6.8

For example, sample project from Java EE Tutorial - cart (ejb):
http://docs.sun.com/app/docs/doc/820-7627/bnbod?a=view

After attempting to run this sample:

Initial deploying cart to C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\ejb\cart\dist\gfdeploy\cart
Completed initial distribution of cart
post-run-deploy:
run-deploy:
Warning: Could not find file C:\glassfishv3\glassfish\domains\domain1\generated\xml\cart\cartClient.jar to copy.
Copying 1 file to C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\ejb\cart\dist
Copying 4 files to C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\ejb\cart\dist\cartClient
java.lang.NullPointerException
        at org.glassfish.appclient.client.acc.ACCLogger$1.run(ACCLogger.java:149)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.glassfish.appclient.client.acc.ACCLogger.reviseLogger(ACCLogger.java:146)
        at org.glassfish.appclient.client.acc.ACCLogger.init(ACCLogger.java:93)
        at org.glassfish.appclient.client.acc.ACCLogger.<init>(ACCLogger.java:80)
        at org.glassfish.appclient.client.AppClientFacade.createBuilder(AppClientFacade.java:360)
        at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:247)
        at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:75)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Java Result: 1
run-cart-app-client:
[Message sent by forum member 'sinedanat' (sinedanat_at_mail.ru)]

http://forums.java.net/jive/thread.jspa?messageID=382779