Hi all

I'm working on a document generation application that will generate RTF
documents on the fly for viewing in the Web browser.

I have an RTF file that I created in MS-Word. As a test, I have changed its
extension to .jsp and placed it where it is visible to my jsp engine (IBM
WebSphere 3).  When I try to load the file using its url, the server takes
ages (ok as I know it is "compiling" the jsp into a servlet) then bombs with
the error I've included at the bottom.  I've tried adding some jsp
directives, such as content-type and buffer="none", but the error is the
same.  I've also removed all the graphics that were originally present,
again to no avail.

Does anyone have experience with RTF and JSP?  Can it be done?  If not, my
project is in trouble!

Cheers

Carl.

Here's the exception:

java.io.UTFDataFormatException
        at java.lang.Throwable.(Compiled Code)
        at java.lang.Exception.(Compiled Code)
        at java.io.IOException.(Compiled Code)
        at java.io.UTFDataFormatException.(Compiled Code)
        at java.io.DataOutputStream.writeUTF(Compiled Code)
        at java.io.ObjectOutputStream.writeUTF(Compiled Code)
        at java.io.ObjectOutputStream.writeObject(Compiled Code)
        at java.io.ObjectOutputStream.outputArray(Compiled Code)
        at java.io.ObjectOutputStream.writeObject(Compiled Code)
        at
com.sun.jsp.compiler.Jsp1_0ParseEventListener.endPageProcessing(Compiled
Code)
        at com.sun.jsp.compiler.Main.compile(Compiled Code)
        at com.sun.jsp.runtime.JspLoader.compile(Compiled Code)
        at com.sun.jsp.runtime.JspLoader.loadJSP(Compiled Code)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compiled
Code)
        at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
        at com.sun.jsp.runtime.JspServlet.serviceJspFile(Compiled Code)
        at com.sun.jsp.runtime.JspServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Compiled Code)
        at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Compiled Code)
        at com.ibm.servlet.engine.webapp.IdleServletState.service(Compiled
Code)
        at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Compiled Code)
        at com.ibm.servlet.engine.webapp.ServletInstance.service(Compiled
Code)
        at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Compiled
Code)
        at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Compiled
Code)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(C
ompiled Code)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Compiled
Code)
        at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(Compiled Code)
        at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(Compiled Code)
        at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Compiled
Code)
        at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Compiled
Code)
        at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Compiled
Code)
        at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(Compiled
Code)
        at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(Co
mpiled Code)
        at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(Compiled
Code)
        at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(Com
piled Code)
        at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(Compiled Code)
        at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(Compiled Code)
        at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(Compiled Code)
        at java.lang.Thread.run(Compiled Code)



This message is for the named person's use only.  It may contain
confidential, proprietary or legally privileged information.  No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender.  You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.  Any
views expressed in this message are those of the individual sender, except
where the message states otherwise and the sender is authorised to state
them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is
indicative only, is subject to change and does not constitute an offer to
deal at any price quoted.
Any reference to the terms of executed transactions should be treated as
preliminary only and subject to our formal written confirmation.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to