wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Internal Server Error due to NullPointerException while running the app. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Internal Server Error due to NullPointerException while running the app." Watch "Internal Server Error due to NullPointerException while running the app." New topic
Author

Internal Server Error due to NullPointerException while running the app.

Sandip Chatterjee
Greenhorn

Joined: Apr 30, 2013
Posts: 20

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

Joined: Apr 30, 2013
Posts: 20

Can anyone enlighten me on how to solve this pretty thing mentioned above?
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

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.


Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
Sandip Chatterjee
Greenhorn

Joined: Apr 30, 2013
Posts: 20

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

Joined: Feb 24, 2006
Posts: 6661
    
    5

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.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Sandip Chatterjee
Greenhorn

Joined: Apr 30, 2013
Posts: 20

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

Joined: Feb 24, 2006
Posts: 6661
    
    5

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

Joined: Apr 30, 2013
Posts: 20

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Internal Server Error due to NullPointerException while running the app.
 
Similar Threads
struts2 error
Finding the java file of the compiled jsp file in Weblogic 9.2
java.lang.ClassCastException: Model.Employee cannot be cast to Model.Employee
Limit on Data/Key-Value Pairs in Form Submission
[EJB:010142] error for cascade-delete