eclipse-ee4j / grizzly

Grizzly
https://eclipse-ee4j.github.io/grizzly
Other
150 stars 70 forks source link

Possible NPE in StandaloneMainUtil when -a or --application is missing #162

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 16 years ago

Doing:

java -jar grizzly/trunk/modules/bundles/grizzlet/target/grizzly-grizzlet-webserver-1.8-SNAPSHOT.jar 8080 target com.sun.grizzly.grizzlet.ChatGrizzlet

Produce:

Exception in thread "main" java.lang.NullPointerException at com.sun.grizzly.standalone.StandaloneMainUtil.appendWarContentToClassPath(StandaloneMainUtil.java:150) at com.sun.grizzly.standalone.StandaloneMainUtil.createSelectorThread(StandaloneMainUtil.java:95) at com.sun.grizzly.standalone.grizzlet.GrizzletContainer.createSelectorThread(GrizzletContainer.java:71) at com.sun.grizzly.standalone.StandaloneMainUtil.start(StandaloneMainUtil.java:77) at com.sun.grizzly.standalone.grizzlet.GrizzletContainer.main(GrizzletContainer.java:65)

Here the --application is missing.

Environment

Operating System: All Platform: All

Affected Versions

[1.8.0]

glassfishrobot commented 6 years ago
glassfishrobot commented 16 years ago

@glassfishrobot Commented Reported by jfarcand@java.net

glassfishrobot commented 16 years ago

@glassfishrobot Commented jfarcand@java.net said: Fixed (Kudo to Harpreet Singh for finding the issue!)

Sending modules/cometd/src/main/java/com/sun/grizzly/standalone/cometd/Cometd.java Sending modules/grizzlet/src/main/java/com/sun/grizzly/standalone/grizzlet/GrizzletContainer.java Sending modules/http/src/main/java/com/sun/grizzly/standalone/StandaloneMainUtil.java Sending modules/http-servlet/src/main/java/com/sun/grizzly/standalone/servlet/ServletLauncher.java Transmitting file data .... Committed revision 1229.

glassfishrobot commented 16 years ago

@glassfishrobot Commented jfarcand@java.net said: Fix milestones

glassfishrobot commented 16 years ago

@glassfishrobot Commented jfarcand@java.net said: Fix version

glassfishrobot commented 16 years ago

@glassfishrobot Commented Was assigned to jfarcand@java.net

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GRIZZLY-162

glassfishrobot commented 14 years ago

@glassfishrobot Commented Marked as fixed on Wednesday, December 16th 2009, 6:14:16 pm