Hi Carl,
The new stack trace with debug on:
<Aug 9, 2006 1:19:33 PM GMT+00:00> <Error> <HTTP> <[WebAppServletContext(7163142,dtsApp,/dtsApp)] Servlet failed with Exception
java.lang.NoSuchMethodError
at com.citi.dts.dashboard.DshBrdBranchUnitWorker.handleRequest(DshBrdBranchUnitWorker.java:52)
at com.citi.dts.controller.DTSRequestHandler.doPost(DTSRequestHandler.java:113)
at com.citi.dts.controller.DTSRequestHandler.doGet(DTSRequestHandler.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:288)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:212)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2765)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2433)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:172)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:145)
> Some more details :
I have a abstract class(SampleAbstract) in which i have the only single method which is declared as abstract that is:
public abstract
String handleRequest(HttpServletRequest request,HttpServletResponse response) throws Exception;
Now every class -- for e.g DshBrdBranchUnitWorker as in above stack trace --- is extending this abstract class and implementing the handleRequest() method.
I have checked the signature in every class.It is same as above that is :
public String handleRequest(HttpServletRequest request,HttpServletResponse) throws Exception
{
} in the implementation.
The sample code i can provide you is :
In every class it is like this only.ErrorLogger is made by us for logging purpose.ErrorLogger is a class which is in a different package and that package i have imported correctly.
The ErrorLogger.info() ,ErrorLogger.error() etc are the static methods inside that class and are existing.
Can you please tell me where its is going wrong.
The constructor is getting called properly.This i have checked using System.out.println() inside Constructor.
One thing more:
See as i previously said the thing is working in the office environment.
But it is not working in Production environment.
And while working in office i compile the whole project everytime.
Also i am just integrating this newly made module in the Production not the whole project .
As the other module files are working correctly and only the module i have newly made is not working.And the DTSRequestHandler class is the old modules's file which was already there existing previously.I am just using it.
Is there a possibilty that DTSRequestHandler had been compiled in some other java version and this new module i have compiled in:
java version "1.3.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_05)
Java HotSpot(TM) Client VM (build 1.3.0_05, mixed mode) and hence facing the error.I am guessing this because i read from the documentation that the java.lang.NoSuchMethodError occurs at runtime because the docs says:
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.
Thanks,
Jignesh
[ August 09, 2006: Message edited by: Jignesh Gohel ]