wood burning stoves 2.0*
The moose likes Struts and the fly likes Servlet failed with Exception java.lang.NullPointerException RequestProcessor.getInternal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Servlet failed with Exception java.lang.NullPointerException RequestProcessor.getInternal" Watch "Servlet failed with Exception java.lang.NullPointerException RequestProcessor.getInternal" New topic
Author

Servlet failed with Exception java.lang.NullPointerException RequestProcessor.getInternal

prashanth sanjeevi
Greenhorn

Joined: Apr 25, 2010
Posts: 2
Exception:
####<Apr 25, 2010 3:30:42 AM CDT> <Error> <HTTP> <vpfsc1> <vzbiadm_srv01> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1272184242582> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@bd57da - appName: 'example', name: 'example.war', context-path: '/example'] Servlet failed with Exception
java.lang.NullPointerException
at org.apache.struts.action.RequestProcessor.getInternal(RequestProcessor.java:1129)
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:528)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3392)
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)

I am using struts2.0 with spring1.2.6 and hibernate3. All of a sudden we got the above exception in weblogic 10.1. Initially i got the CGLIB error which went away after putting asm.jar in weblogic classpath (dont know why weblogic requires certain jars in server startup).
==============================
The list of jars available in server startup are :
antlr-2.7.6.jar cglib-nodep-2.1_3.jar commons_fileupload.jar jaxb1-impl.jar
antlr-2.7.6rc1.jar commons-beanutils-1.7.0.jar dom4j-1.6.1.jar jta.jar
appinit-vpadmin.jar commons-codec-1.3.jar ehcache-1.2.4.jar log4j-1.2.8.jar
asm.jar commons-collections-3.2.jar hibernate3.jar mail.jar
c3p0-0.9.0.jar commons-digester.jar jaxb-api.jar spring-1.2.6.jar
cglib-2.1.3.jar commons-lang.jar jaxb-impl.jar struts.jar
cglib-2.2.jar commons-logging-1.1.jar jaxb-libs.jar
============================
The jars present in my lib.
JAMon.jar ehcache-1.2.4.jar saaj.jar
XmlSchema-1.0.3.jar etms_cmn.jar serializer.jar
_wl_cls_gen.jar etms_proxy.jar sitemesh-2.4.1.jar
activation-1.1.jar hibernate3.jar slf4j-api-1.5.8.jar
activation.jar hsqldb.jar slf4j-log4j12-1.5.8.jar
ajax-wrapper-comp.jar ical4j-1.0-rc2.jar spring-1.2.6.jar
antlr-2.7.6rc1.jar impactcommon.jar spring.jar
aopalliance.jar javaxzombie.jar sshtools.jar
asm.jar jawr-3.2.jar standard.jar
axis-ant.jar jaxb-api-2.0.jar stax-api-1.0.1.jar
axis-jaxrpc-1.4.jar jaxb-impl-2.0.1.jar stax-utils-snapshot-20040917.jar
axis.jar jaxb-xjc-2.0.1.jar struts-el.jar
bclight-etms.jar jaxen-1.1-beta-9.jar struts.jar
bcprov-jdk15-133.jar jaxrpc.jar
c3p0-0.9.0.jar jaxws-api-2.0.jar webserviceutils.jar
cglib-2.1.3.jar jcommon-1.0.10.jar wro4j-core-1.1.2.jar
cglib-nodep-2.1_3.jar jdom-1.0.jar wsdl4j-1.5.1.jar
commons-attributes-api-2.1.jar jfreechart-1.0.6.jar wsdl4j-1.5.2.jar
commons-beanutils-1.7.0.jar jmock-1.0.1.jar wsdl4j.jar
commons-codec-1.3.jar json_simple-1.1.jar wss4j-1.5.0.jar
commons-collections-3.2.jar jsr173_api-1.0.jar wstx-asl-2.9.3.jar
commons-configuration-1.2.jar jstl.jar xalan.jar
commons-digester.jar jta.jar xbean-2.1.0.jar
commons-discovery-0.2.jar junit-3.8.1.jar xbean-spring-2.5.jar
commons-email-1.1.jar log4j-1.2.6.jar xercesImpl-2.6.2.jar
commons-httpclient-3.0.jar mail-1.4.jar xfire-all-1.2.1.jar
commons-io-1.4.jar mail.jar xfire-jsr181-api-1.0-M1.jar
commons-lang-2.1.jar ojdbc14.jar xml-apis-1.0.b2.jar
commons-lang.jar opensaml-1.0.1.jar xmlsec-1.3.0.jar
commons-logging-1.1.jar org.mortbay.jetty-5.1.3.jar xmltask-v1.12.jar
commons_fileupload.jar poi-2.5.1-final-20040804.jar xpp3_min-1.1.3.4.I.jar
customerprofile-1.0-SNAPSHOT.jar quartz-1.6.0.jar xstream-1.2.jar
displaytag-1.1.jar saaj-api-1.3.jar
dom4j-1.6.1.jar saaj-impl-1.3.jar

========================
I have set the logging to debug for hibernate ,struts and spring but not able to pick up any other exceptions. The exception that was caught was from the managed server of weblogic. I have been sitting on this error for a few days now. But no luck! Thank you so much of your time!!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet failed with Exception java.lang.NullPointerException RequestProcessor.getInternal