[ 
https://issues.apache.org/jira/browse/OFBIZ-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14900538#comment-14900538
 ] 

Jacques Le Roux commented on OFBIZ-6588:
----------------------------------------

It's not clear to me if we should provide a "PDF Content ID" or not before 
pressing the button, any ideas?

I tried by using "APACHE_OFBIZ_PDF" (Mime Type Id=PDF) but then got this error

Error generating PDF: java.io.IOException: PDF header signature not found.

> buildSurveyResponseFromPdf generates an NPE
> -------------------------------------------
>
>                 Key: OFBIZ-6588
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6588
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>              Labels: survey
>
> {code}
>      [java] 2015-08-28 21:29:43,574 |ttp-bio-8443-exec-42 |ControlServlet     
>            |T| [[[buildSurveyResponseFromPdf(Domain:https://localhost)] 
> Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>      [java] 2015-08-28 21:29:43,580 |ttp-bio-8443-exec-42 |PdfSurveyServices  
>            |E| Error generating PDF: java.lang.NullPointerException
>      [java] java.lang.NullPointerException
>      [java]   at 
> org.ofbiz.content.survey.PdfSurveyServices.buildSurveyResponseFromPdf(PdfSurveyServices.java:263)
>  [ofbiz-content.jar:?]
>      [java]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_45]
>      [java]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_45]
>      [java]   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_45]
>      [java]   at java.lang.reflect.Method.invoke(Method.java:497) 
> ~[?:1.8.0_45]
>      [java]   at 
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
>  [ofbiz-service.jar:?]
>      [java]   at 
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
>  [ofbiz-service.jar:?]
>      [java]   at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) 
> [ofbiz-service.jar:?]
>      [java]   at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) 
> [ofbiz-service.jar:?]
>      [java]   at 
> org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
>  [ofbiz-service.jar:?]
>      [java]   at 
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:340)
>  [ofbiz-webapp.jar:?]
>      [java]   at 
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:759) 
> [ofbiz-webapp.jar:?]
>      [java]   at 
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:476) 
> [ofbiz-webapp.jar:?]
>      [java]   at 
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) 
> [ofbiz-webapp.jar:?]
>      [java]   at 
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:88) 
> [ofbiz-webapp.jar:?]
>      [java]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) 
> [servlet-api-3.0.jar:?]
>      [java]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) 
> [servlet-api-3.0.jar:?]
>      [java]   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:324) 
> [ofbiz-webapp.jar:?]
>      [java]   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) 
> [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 
> [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>  [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) 
> [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) 
> [tomcat-7.0.59-catalina.jar:7.0.59]
>      [java]   at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
>  [tomcat-7.0.59-tomcat-coyote.jar:7.0.59]
>      [java]   at 
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
>  [tomcat-7.0.59-tomcat-coyote.jar:7.0.59]
>      [java]   at 
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
>  [tomcat-7.0.59-tomcat-coyote.jar:7.0.59]
>      [java]   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:1.8.0_45]
>      [java]   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:1.8.0_45]
>      [java]   at 
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>  [tomcat-7.0.59-tomcat-coyote.jar:7.0.59]
>      [java]   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
>      [java] 2015-08-28 21:29:43,581 |ttp-bio-8443-exec-42 |ServiceDispatcher  
>            |E| Error in Service [buildSurveyResponseFromPdf]: Error 
> generating PDF: java.lang.NullPointerException
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to