• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Null Pointer exception while reading the property file in WAS-5

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have installed our J2EE enterprise application on WAS 5 recently. While reading form a property file, I always get a Null Pointer exception.

The property file is defientely there in the proper path and with proper permissions.

(The same code works fine in WebSphere 4.0.6 environment).

This is the error I am getting on WebSphere 5 server:
[2/21/05 20:15:58:786 GMT] 1c6d905c SystemErr R java.lang.NullPointerException
[2/21/05 20:15:58:786 GMT] 1c6d905c SystemErr R at services.iibv.http.servlet.BrokerServlet.performTask(BrokerServlet.java:180)
[2/21/05 20:15:58:786 GMT] 1c6d905c SystemErr R at services.iibv.http.servlet.BrokerServlet.doGet(BrokerServlet.java:46)
[2/21/05 20:15:58:786 GMT] 1c6d905c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
[2/21/05 20:15:58:787 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[2/21/05 20:15:58:788 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[2/21/05 20:15:58:788 GMT] 1c6d905c SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[2/21/05 20:15:58:788 GMT] 1c6d905c SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[2/21/05 20:15:58:788 GMT] 1c6d905c SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[2/21/05 20:15:58:788 GMT] 1c6d905c SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
[2/21/05 21:35:54:319 GMT] 64eb2c90 SystemErr R java.lang.NullPointerException
[2/21/05 21:35:54:320 GMT] 64eb2c90 SystemErr R at java.util.Hashtable.get(Hashtable.java(Compiled Code))
[2/21/05 21:35:54:320 GMT] 64eb2c90 SystemErr R at com.ibm.rmi.transport.ConnectionTableImpl.shutdown(ConnectionTableImpl.java:136)
[2/21/05 21:35:54:320 GMT] 64eb2c90 SystemErr R at com.ibm.rmi.transport.ConnectionTableImpl.cleanUp(ConnectionTableImpl.java:173)
[2/21/05 21:35:54:320 GMT] 64eb2c90 SystemErr R at com.ibm.rmi.transport.ListenerThread.run(ListenerThread.java:276

Are there any changes in handiling the property files in WAS-5 ?

Can any one please help ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic