Getting a PDF out of the Headless Client

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Getting a PDF out of the Headless Client

Postby rarbuthnot » Tue Dec 12, 2006 6:07 pm

We are unable to generate a PDF using the pdf_output plugin via Servoy
Headless Client because of the following exception:

Code: Select all
Cannot print document
java.lang.ClassCastException: com.servoy.j2db.server.headlessclient.a
java.lang.ClassCastException: com.servoy.j2db.server.headlessclient.a
        at com.servoy.j2db.a.g.<init>(Unknown Source)
        at com.servoy.j2db.FormPanel.print(Unknown Source)
        at com.servoy.j2db.FormPanel$JSForm.js_print(Unknown Source)
        at inv10.invoke()
        at
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:550)
        at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:466)
        at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1254)
        at org.mozilla.javascript.gen.c285.call(hcPDFCustomerInvoice:18)
        at com.servoy.j2db.scripting.f.executeFunction(Unknown Source)
        at com.servoy.j2db.FormPanel.a(Unknown Source)
        at com.servoy.j2db.FormPanel.a(Unknown Source)
        at com.servoy.j2db.server.headlessclient.a.executeMethod(Unknown
Source)
        at org.apache.jsp.executeMethod$jsp._jspService(executeMethod
$jsp.java:96)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.jasper.servlet.JspServlet
$JspServletWrapper.service(JspServlet.java:202)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
        at java.lang.Thread.run(Thread.java:595)


We're using Servoy version 2.2.7 and pdf_output plugin.

Any help would be appreciated. Thanks.
rarbuthnot
 
Posts: 77
Joined: Tue May 02, 2006 8:18 pm
Location: chicago

Re: Getting a PDF out of the Headless Client

Postby ROCLASI » Mon Sep 28, 2009 2:06 pm

Seems I get bitten by the same issue.
Is it even possible to create a PDF using a batchprocessor (headless client)?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Getting a PDF out of the Headless Client

Postby lvostinar » Mon Sep 28, 2009 2:24 pm

What error (stack) do you receive ?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: Getting a PDF out of the Headless Client

Postby ROCLASI » Mon Sep 28, 2009 3:01 pm

Code: Select all
java.lang.ClassCastException: com.servoy.j2db.dataui.DataRenderer
       at com.servoy.j2db.server.headlessclient.WebForm.initView(Unknown Source)
       at com.servoy.j2db.FormController.setView(Unknown Source)
       at com.servoy.j2db.FormManager.a(Unknown Source)
       at com.servoy.j2db.dataui.FormLookupPanel.bO(Unknown Source)
       at com.servoy.j2db.dataui.FormLookupPanel.getFormPanel(Unknown Source)
       at com.servoy.j2db.dataui.SpecialTabPanel.notifyVisible(Unknown Source)
       at com.servoy.j2db.dataprocessing.DataAdapterList.notifyVisible(Unknown Source)
       at com.servoy.j2db.dataui.DataRenderer.notifyVisible(Unknown Source)
       at com.servoy.j2db.b.j.<init>(Unknown Source)
       at com.servoy.j2db.b.j.<init>(Unknown Source)
       at com.servoy.j2db.b.i.a(Unknown Source)
       at com.servoy.j2db.b.g.try(Unknown Source)
       at com.servoy.j2db.server.headlessclient.WebForm$6.run(Unknown Source)
       at com.servoy.j2db.server.headlessclient.h.invokeAndWait(Unknown Source)
       at com.servoy.j2db.server.headlessclient.WebForm$5.run(Unknown Source)
       at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2009-09-28 14:03   AWT-EventQueue-0   ERROR   com.servoy.j2db.util.Debug   Cannot print document
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Getting a PDF out of the Headless Client

Postby lvostinar » Mon Sep 28, 2009 4:01 pm

You can open a case about this, not sure from the stack what goes wrong.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: Getting a PDF out of the Headless Client

Postby ROCLASI » Mon Sep 28, 2009 5:40 pm

Case #245326 added
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 1 guest