Below is the stacktrace when I run the sample program on WebLogic r10g:
java.lang.InternalError: erroneous handlers
at servlets.TestServlet.doGet(TestServlet.java:37)
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(Stu
bSecurityHelper.java:227)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHe
lper.java:125)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:29
2)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:4
3)
at
weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilte
r.java:27)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:4
3)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.ru
n(WebAppServletContext.java:3496)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSub
ject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServl
etContext.java:2180)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletConte
xt.java:2086)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:
1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
public void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
response.setContentType("application/pdf");
try{
Document document = new Document();
PdfWriter.getInstance(document,
response.getOutputStream());
document.open();
document.add(new Paragraph("Hey there!!!"));
document.add(new Paragraph(new Date().toString()));
document.close();
} catch (DocumentException e){
e.printStackTrace();
}
}}
And below is the sample code:
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText® is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php