glassfish
  1. glassfish
  2. GLASSFISH-18688

appclient NullPointerException when no argument

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b34
    • Fix Version/s: 4.0_b36
    • Component/s: standalone_client
    • Labels:
      None

      Description

      Appclient shows NullPointerException when there is no argument.

      C:\>appclient
      java.lang.NullPointerException
      at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:407)
      at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:269)
      at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContain
      erAgent.java:83)
      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)

      C:\>

        Activity

        Hide
        Tim Quinn added a comment -

        Fix checked in.

        Project: glassfish
        Repository: svn
        Revision: 53820
        Author: tjquinn
        Date: 2012-05-04 14:50:16 UTC
        Link:

        Log Message:
        ------------
        Fix for 18688

        Entering the appclient command with no arguments at all on the command line caused a NPE.

        These changes cause appclient to display the usage text if the user supplies no arguments at all on the command line.

        Revisions:
        ----------
        53820

        Modified Paths:
        ---------------
        trunk/main/appserver/appclient/client/acc/src/main/java/org/glassfish/appclient/client/acc/CommandLaunchInfo.java
        trunk/main/appserver/appclient/client/acc/src/main/java/org/glassfish/appclient/client/AppClientFacade.java

        Show
        Tim Quinn added a comment - Fix checked in. Project: glassfish Repository: svn Revision: 53820 Author: tjquinn Date: 2012-05-04 14:50:16 UTC Link: Log Message: ------------ Fix for 18688 Entering the appclient command with no arguments at all on the command line caused a NPE. These changes cause appclient to display the usage text if the user supplies no arguments at all on the command line. Revisions: ---------- 53820 Modified Paths: --------------- trunk/main/appserver/appclient/client/acc/src/main/java/org/glassfish/appclient/client/acc/CommandLaunchInfo.java trunk/main/appserver/appclient/client/acc/src/main/java/org/glassfish/appclient/client/AppClientFacade.java

          People

          • Assignee:
            Tim Quinn
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: