users@glassfish.java.net

Re: appclient doesn't work

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Jan 2010 13:45:41 PST

Hi all:

I got the same error in my production system. After I check the above reply , I realize , it has been fixed in Dev Daily Build. But can I use a daily build in my production env?

I use j2ee since 2000. and I don't know why till ejb3.1 spec, an ejb client still so immature solution for developers. In GF3, all these demo program shows how to use the appclient script to run the ejb client code.

Let's take a look how to it works.

When you release you code to your customer, do you want to release the glassfish/bin/appclient ? plus the ./../moduels/gf_client.jar ? plus the sun-acc.xml? plus even an logging bug? maybe plus the whole Glassfish3 directory, right? god know need which file in there.

you know why Java su.ck? cause so many idiot java programmer in this world and get high salaries.
you know why Sun bankrupt? cause Sun hired all these idiot java programmers.

God bless us. Don't ruin our JAVA.

glassfish/bin/appclient -client TTASClient.jar -targetserver 192.168.40.11:3700 -xml sun-acc.xml
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)
[Message sent by forum member 'tujinius' (tujinius_at_yahoo.com)]

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