• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Internal Server Error due to NullPointerException while running the app.

 
Greenhorn
Posts: 21
Eclipse IDE Oracle Java
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone enlighten me on how to solve this pretty thing mentioned above?
 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • 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 Oracle Java
  • 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?
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • 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 Oracle Java
  • 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
MyEclipse IDE Firefox Browser Linux
  • 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 Oracle Java
  • 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
 
I am Arthur, King of the Britons. And this is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!