• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internal Server Error due to NullPointerException while running the app.

 
Sandip Chatterjee
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody, just faced a splendid error this time while working on WebLogic Server. It is somewhat like this -

Error 500--Internal Server Error

java.lang.NullPointerException
at jsp_servlet._jsp._xyz.__xxx._jspService(__xxx.java:268)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)


This error appears on submitting a page.
 
Sandip Chatterjee
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone enlighten me on how to solve this pretty thing mentioned above?
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you put the full log like previous few logs which lead to this null pointer exception.

did you try to clean bounce the server by clearing the cache and tmp folders old data.
 
Sandip Chatterjee
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ramakant, thanks for your reply. Would surely put the full log once I have access to it once again.
But for the time being, please let me know, is it due to some server connectivity issues?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandip Chatterjee wrote:Hey Ramakant, thanks for your reply. Would surely put the full log once I have access to it once again.
But for the time being, please let me know, is it due to some server connectivity issues?


No. It is most likely due to an error that resulted from accessing a null reference in your JSP. Is ___xxx.java your JSP file ? I'm also guessing the stack trace was truncated there since the last frame on that stack points to _jspService() which would be implemented by WL.
 
Sandip Chatterjee
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yeah! _xxx.java is my JSP file.

Ok fine. But was that stack trace truncated due to the null reference in the JSP?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandip Chatterjee wrote:Oh yeah! _xxx.java is my JSP file.

Ok fine. But was that stack trace truncated due to the null reference in the JSP?


No I was implying that you may have truncated it. The crux is that there is a null reference used in your JSP somewhere. You can debug the JSP and find out where this is or you can open the generated JSP java file (which can be accessed using the 'keep-generated' option) and trace that line number to find out which line in the JSP it pertains to.
 
Sandip Chatterjee
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The log for the error is as follows:

<May 28, 2013 3:07:47 PM IST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@a8d6b3 - appName: '_workshop_auto_generated_ear_', name: '####', context-path: '/####'] Servlet failed with Exception
java.lang.NullPointerException
at jsp_servlet._jsp._xyz.__xxx._jspService(__xxx.java:268)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
Truncated. see log file for complete stacktrace
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic