Check your app server installation and JDK installation. It looks like your
are running your application server with a 1.3 JDK when the server requires
a 1.4 JDK. The StringBuffer.append(StringBuffer) method was added in JDK 1.4.


-Richard

At 08:01 AM 1/10/2005, you wrote:
 I know this that I need to convert it to string. The control is with
appserver and in our code. Here I am passing only req and res
[RequestDispatcher.forward(req.res)] only and not stringBuffer . So I I
don't know  how to fix it.I want a way so that I can tackle this situation.
Where the web container is not update to handle this situation.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of Martin Gainty
Sent: Monday, January 10, 2005 8:38 PM
To: JSP-INTEREST@JAVA.SUN.COM
Subject: Re: Error while using RequestDispatcher.forward(req.res)

take a look at your ServletException and convert your string append(String)
argument to NewStringBuffer
StringBufferRoot.append(StringBufferObjectToAppend.toString());
http://java.sun.com/j2se/1.3/docs/api/java/lang/StringBuffer.html
Martin-
----- Original Message -----
From: "Amar Dhole" <[EMAIL PROTECTED]>
To: <JSP-INTEREST@JAVA.SUN.COM>
Sent: Monday, January 10, 2005 9:49 AM
Subject: Error while using RequestDispatcher.forward(req.res)


> Hi all, > > I am getting following error while using requestdispatcher my code is > like > > RequestDispatcher dispatcher = > getServletContext().getRequestDispatcher(encodedURL); > dispatcher.forward(req, res); > > I am using was4.0.6 with jdk1.3. I know that there is no support for > StringBuffer.append(StringBuffer) till jdk1.4. > In jdk 1.4 sun has added the support for it. can any one tell me why I > am getting the following error. I am stuck now. > > thnks , in advance. > > Error in onService: > <MqException: BEGIN> > Code: JAV-8020 > ID: C0A80313_MQURFK332K8TJ5FQ > DATETIME: 2005-01-10T20:11:29+05:30 > EXCEPTIONMESSAGE: javax.servlet.ServletException: java.lang.StringBuffer: > method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not > found > STACKTRACE: javax.servlet.ServletException: java.lang.StringBuffer: > method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not > found at > com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager > .java:848) > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl > eServlet.java:167) > at > com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle > t.java:297) > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle > Servlet.java:110) > at > com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 > 2) > at > com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan > ager.java:1012) > at > com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag > er.java:913) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W > ebAppRequestDispatcher.java:721) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest > Dispatcher.java:374) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD > ispatcher.java:118) > at com.martquest.eml.MqServlet.dispatchReq(MqServlet.java:758) > at > com.martquest.eml.virgo.servlets.catalog.RecordMasterServlet.doRelationshipD > elete(RecordMasterServlet.java:3909) > at > com.martquest.eml.virgo.servlets.catalog.RecordMasterServlet.routeAction(Rec > ordMasterServlet.java:329) > at > com.martquest.eml.virgo.servlets.catalog.RecordMasterServlet.onService(Recor > dMasterServlet.java:170) > at com.martquest.eml.MqServlet.service(MqServlet.java:550) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager > .java:827) > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl > eServlet.java:167) > at > com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle > t.java:297) > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle > Servlet.java:110) > at > com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 > 2) > at > com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan > ager.java:1012) > at > com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag > er.java:913) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W > ebAppRequestDispatcher.java:721) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest > Dispatcher.java:374) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD > ispatcher.java:118) > at > com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java: > 134) > at > com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. > java:239) > at > com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn > vocation.java:67) > at > com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ > estProcessor.java:151) > at > com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener > .java:317) > at > com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja > va:60) > at > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:391) > > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:274) > at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144) > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com >

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

Reply via email to