tea Timer

Greenhorn
+ Follow
since Feb 16, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by tea Timer


Is your Controller class extending TilesRequestProcessor or RequestProcessor?


I'm actually extending RequestProcessor. But your solutions sounds feasible. I'm go to try it afterwards.

What is still unclear to me is the fact that on our clustered test environment the problem has never been occured (unlike the production env).

Thanks for the great help! Have a nice day.
/tea
19 years ago
Hi
Thanks for your reply. Do you mean, that I have to change the controller definition in struts-config.xml? Actually this definition looks as follows:

We use a customized request processor which only overrides the method processRoles(...).

However, the TilesRequestProcessor isn't configured in struts-config.xml. I have already seen a struts-config.xml with the following controller-element:

What is the consequence of a definition without specifing the class? This processor thing is confusing.

Thanks to throw light on this.
Regards
/tea
19 years ago
Hi all,
We have a webapplication based on struts which runs in a clustered environment. On one servernode we get an ugly Nullpointer that occurs in the RequestProcessor class. In the RequestProcessor the reference to the ActionServlet is null. This is quiet strange because the RequestProcessor is created and initialized by the ActionServlet itsself (checked the struts sources and found the call [request]processor.init(this, config); in the action servlet).

We also use Tiles which subclasses the RequestProcessor. Maybe this is useful to mention.

Could this be a replication problem?
Could anyone help me?

Thanks in advance. Regards
/tea

Log attached:
[CODE]
####<15.02.2006 13.41 Uhr CET> <Error> <HTTP> <ws003> <edec-MS01-P> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020>
<[ServletContext(id=158365299,name=e-quota,context-path=/e-quota)] Servlet failed with Exception
java.lang.NullPointerException
at org.apache.struts.action.RequestProcessor.getServletContext()Ljavax.servlet.ServletContext;(RequestProcessor.java:1118)
at org.apache.struts.action.RequestProcessor.doForward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletRespons
e V(RequestProcessor.java:1056)
at org.apache.struts.action.RequestProcessor.processForwardConfig(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.
apache.struts.config.ForwardConfig V(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(RequestProcesso
r.java:229)
at org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(ActionServlet.java
:1194)
at org.apache.struts.action.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(ActionServlet.java:4
14)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Fil
terChainImpl V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse V(Optimized Method)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(Optimized Method)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction Ljava.lang.Obj
ect;(Optimized Method)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedS
ubject;Ljava.security.PrivilegedAction Ljava.lang.Object;(Optimized Method)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletRespon
seImpl V(Optimized Method)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread V(Optimized Method)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest V(Optimized Method)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread V(Unknown Source)
19 years ago