artsrun-gasparyan / jwebsocket

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

NPE when instantiating EventsPlugin based examples of jws.jcdemp, jws.events.test #206

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Run the 'jws.jcdemo' or 'jws.events.test' plugins which are based on 
EventsPlugin. Followed the steps identified in the EventsPlugin Developer 
guide. 

2. Just before the plugin is getting instantiated in the EventsPlugin 
Constructor it is executing the given piece of code given below. The mLog is 
null because it is not initialized properly and is throwing NPE. The logging 
configuration is getting picked up from JWEBSOCKET_HOMEconf/log4j.xml file. 

        if (mLog.isDebugEnabled()) {
            mLog.debug("Creating EventsPlugIn instance for '" + getNamespace() + "' application...");
        }

3. Any suggestions to get this to work is greatly appreciated.

What is the expected output? What do you see instead?
I am hoping to instantiate these plugins properly and see a working 
EventsPlugin in action. I tried all the three EventsPlugin examples and the 
result is NPE at the same location.  

What version of the product are you using? On what operating system?
jWebsocket 1.0 on Windows 7 with Tomcat 7.0.52

Please provide any additional information below.

Original issue reported on code.google.com by srmc...@gmail.com on 31 Mar 2014 at 8:13