[jira] Created: (OFBIZ-1869) FOPException

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1869) FOPException

Nicolas Malin (Jira)
FOPException
------------

                 Key: OFBIZ-1869
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1869
             Project: OFBiz
          Issue Type: Bug
          Components: content
    Affects Versions: SVN trunk
            Reporter: Bilgin Ibryam
            Priority: Minor
             Fix For: SVN trunk


To reproduce the bug, go to Order - > Find Orders, then select some orders and try to print by selecting a printer from dropdown field.
Here is the error log:

2008-07-10 12:37:09,871 (default-invoker-Thread-9) [     OutputServices.java:201:ERROR]
     [java] ---- exception report ----------------------------------------------------------
     [java] Error rendering [application/postscript]: java.lang.NullPointerException
     [java] Exception: org.apache.fop.apps.FOPException
     [java] Message: null
     [java] ---- stack trace ---------------------------------------------------------------
     [java] java.lang.NullPointerException
     [java] org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:151)
     [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:136)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] java.lang.reflect.Method.invoke(Method.java:585)
     [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
     [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
     [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
     [java] org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
     [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
     [java] java.lang.Thread.run(Thread.java:595)
     [java] ---------
     [java] java.lang.NullPointerException
     [java] org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:264)
     [java] org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171)
     [java] org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:962)
     [java] org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
     [java] org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source)
     [java] org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
     [java] org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
     [java] org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
     [java] org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
     [java] org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
     [java] org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
     [java] org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [java] org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [java] org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [java] org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     [java] org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
     [java] org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:147)
     [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:136)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] java.lang.reflect.Method.invoke(Method.java:585)
     [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
     [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
     [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
     [java] org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
     [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
     [java] java.lang.Thread.run(Thread.java:595)
     [java] --------------------------------------------------------------------------------
     [java] 2008-07-10 12:37:09,874 (default-invoker-Thread-9) [  ServiceDispatcher.java:522:ERROR] Error in Service [sendPrintFromScreen]: Error rendering [application/postscript]: java.lang.NullPointerException


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1869) FOPException

Nicolas Malin (Jira)

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

Adrian Crum commented on OFBIZ-1869:
------------------------------------

I took a quick look at this. The problem isn't in the java code - it's in the

component://order/widget/ordermgr/OrderPrintScreens.xml#OrderPDF

screen. Maybe there is some invalid FOP code in there somewhere. I don't have time to look into it further.


> FOPException
> ------------
>
>                 Key: OFBIZ-1869
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1869
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> To reproduce the bug, go to Order - > Find Orders, then select some orders and try to print by selecting a printer from dropdown field.
> Here is the error log:
> 2008-07-10 12:37:09,871 (default-invoker-Thread-9) [     OutputServices.java:201:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] Error rendering [application/postscript]: java.lang.NullPointerException
>      [java] Exception: org.apache.fop.apps.FOPException
>      [java] Message: null
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.NullPointerException
>      [java] org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:151)
>      [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:136)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java] java.lang.reflect.Method.invoke(Method.java:585)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>      [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
>      [java] org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>      [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
>      [java] java.lang.Thread.run(Thread.java:595)
>      [java] ---------
>      [java] java.lang.NullPointerException
>      [java] org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:264)
>      [java] org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171)
>      [java] org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:962)
>      [java] org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
>      [java] org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source)
>      [java] org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
>      [java] org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
>      [java] org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>      [java] org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
>      [java] org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
>      [java] org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
>      [java] org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>      [java] org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>      [java] org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>      [java] org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>      [java] org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>      [java] org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:147)
>      [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:136)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java] java.lang.reflect.Method.invoke(Method.java:585)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>      [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
>      [java] org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>      [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
>      [java] java.lang.Thread.run(Thread.java:595)
>      [java] --------------------------------------------------------------------------------
>      [java] 2008-07-10 12:37:09,874 (default-invoker-Thread-9) [  ServiceDispatcher.java:522:ERROR] Error in Service [sendPrintFromScreen]: Error rendering [application/postscript]: java.lang.NullPointerException

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1869) FOPException

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilgin Ibryam closed OFBIZ-1869.
--------------------------------

    Resolution: Fixed
      Assignee: Bilgin Ibryam

Adrian, thanks for checking this.
The OrderPDF screen is working fine when accessed with order.pdf request
Replacing HtmlScreenRenderer with FoScreenRenderer, solved the issue.

Committed in rev. 675872


> FOPException
> ------------
>
>                 Key: OFBIZ-1869
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1869
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> To reproduce the bug, go to Order - > Find Orders, then select some orders and try to print by selecting a printer from dropdown field.
> Here is the error log:
> 2008-07-10 12:37:09,871 (default-invoker-Thread-9) [     OutputServices.java:201:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] Error rendering [application/postscript]: java.lang.NullPointerException
>      [java] Exception: org.apache.fop.apps.FOPException
>      [java] Message: null
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.NullPointerException
>      [java] org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:151)
>      [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:136)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java] java.lang.reflect.Method.invoke(Method.java:585)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>      [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
>      [java] org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>      [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
>      [java] java.lang.Thread.run(Thread.java:595)
>      [java] ---------
>      [java] java.lang.NullPointerException
>      [java] org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:264)
>      [java] org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171)
>      [java] org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:962)
>      [java] org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
>      [java] org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source)
>      [java] org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
>      [java] org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
>      [java] org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>      [java] org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
>      [java] org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
>      [java] org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
>      [java] org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>      [java] org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>      [java] org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>      [java] org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>      [java] org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>      [java] org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:147)
>      [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:136)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java] java.lang.reflect.Method.invoke(Method.java:585)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
>      [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>      [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
>      [java] org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>      [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
>      [java] java.lang.Thread.run(Thread.java:595)
>      [java] --------------------------------------------------------------------------------
>      [java] 2008-07-10 12:37:09,874 (default-invoker-Thread-9) [  ServiceDispatcher.java:522:ERROR] Error in Service [sendPrintFromScreen]: Error rendering [application/postscript]: java.lang.NullPointerException

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.