yrift / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
0 stars 0 forks source link

NullPointerException when JWEBSOCKET_HOME unset #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Do not set a value for the env variable JWEBSOCKET_HOME
2. Start jWebSocket server.

What is the expected output? What do you see instead?
Expect a nice error message saying that the JWEBSOCKET_HOME environment 
variable is missing.  Instead get this:

jWebSocket Ver. 0.9.0.0623 beta (32bit)
(C) 2010 jWebSocket.org by Innotrade GmbH, Germany, Herzogenrath
Distributed under GNU LGPL License Version 3.0 
(http://www.gnu.org/licenses/lgpl.html)
Log files per default in jWebSocket.log if not overwritten in jWebSocket.xml.
Exception in thread "main" java.lang.NullPointerException
    at org.jwebsocket.factory.JWebSocketFactory.start(JWebSocketFactory.java:42)
    at org.jwebsocket.console.JWebSocketServer.main(JWebSocketServer.java:38)

What version of the product are you using? On what operating system?
0.9.5, Linux

Please provide any additional information below.

Original issue reported on code.google.com by graham.m...@gmail.com on 23 Jul 2010 at 2:20

GoogleCodeExporter commented 8 years ago
1. Delete the JWEBSOCKET_HOME variable from the system environmental variables.
2. i am using windows 7 (64-bit) but also test on windows vista. same error.
3. Version using is the  0.9.5.0623

Original comment by angel.fi...@gmail.com on 24 Jul 2010 at 9:10

GoogleCodeExporter commented 8 years ago
I am Using Tomcat Version 6.0.28 install on shared
1. jWebSocketServer-Bundle-0.9.5
2. jWebSocketSamples-0.9.5

3. configure the tomcat for shared library
4. using the tomcat administration install the jWebSocketAppServer-0.9.5.war. 

when i try to start it, generate the error.

Original comment by angel.fi...@gmail.com on 25 Jul 2010 at 12:04

GoogleCodeExporter commented 8 years ago
this is fixed in version .10

Original comment by mailtopu...@gmail.com on 31 Jul 2010 at 4:44

GoogleCodeExporter commented 8 years ago
This has been verified now, jWebSocket now optionally can be loaded from 
classpath at %classpath%/conf/jWebSocket.xml.

Original comment by fivefeetfurther@gmail.com on 5 Aug 2010 at 9:53