javaee / grizzly

Writing scalable server applications in the Java™ programming language has always been difficult. Before the advent of the Java New I/O API (NIO), thread management issues made it impossible for a server to scale to thousands of users. The Grizzly NIO framework has been designed to help developers to take advantage of the Java™ NIO API.
https://javaee.github.io/grizzly/
Other
221 stars 60 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 16 years ago

Reported by jfarcand@java.net

glassfishrobot commented 16 years ago

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

jfarcand@java.net said: Fix milestones

glassfishrobot commented 16 years ago

jfarcand@java.net said: Fix version

glassfishrobot commented 16 years ago

Was assigned to jfarcand@java.net

glassfishrobot commented 7 years ago

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

glassfishrobot commented 14 years ago

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