You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Deepak Dixit (JIRA)" <ji...@apache.org> on 2015/04/11 13:12:12 UTC

[jira] [Commented] (OFBIZ-6077) Error when creating a quote report

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

Deepak Dixit commented on OFBIZ-6077:
-------------------------------------

FOP throwing NPE because there is no NPE check on Quote report ft ftl for quoteItems .
Added has_content check now report with out item generating properly. 

Create separate issue to fix the table-layout="auto" related warning.
Thanks Jacques for reporting the issue ;)

> Error when creating a quote report
> ----------------------------------
>
>                 Key: OFBIZ-6077
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6077
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Trunk, 13.07.01
>            Reporter: Jacques Le Roux
>            Assignee: Deepak Dixit
>              Labels: quote
>
> Create a quote (w/o items), click on Report menu entry 
> ordermgr/control/QuoteReport?quoteId=CQ10000
> You get this error in log
> {code}
> 2015-02-16 07:58:10,762 |http-bio-8443-exec-3 |FOUserAgent                   |W| "fo:table-body" is missing child elements. Required content model: marker* (table-row+|table-cell+) (See position 202:32)
> 2015-02-16 07:58:10,763 |http-bio-8443-exec-3 |ScreenFopViewHandler          |E| Unable to transform FO file: org.apache.fop.apps.FOPException
> java.lang.NullPointerException; Screen XSL:FO text was:
> {code}
> I think when you try to send the report by email you get a related error (did not check). These error has been reported at OFBIZ-6076
> {code}
> 015-02-16 08:00:32,405 |http-bio-8443-exec-9 |FOUserAgent                   |W| The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (See position 139:40)
> 015-02-16 08:00:32,407 |http-bio-8443-exec-9 |FOUserAgent                   |W| The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (See position 161:81)
> 015-02-16 08:00:32,410 |http-bio-8443-exec-9 |FOUserAgent                   |W| The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (See position 190:39)
> 015-02-16 08:00:32,413 |http-bio-8443-exec-9 |FOUserAgent                   |W| "fo:table-body" is missing child elements. Required content model: marker* (table-row+|table-cell+) (See position 209:32)
> 015-02-16 08:00:32,414 |http-bio-8443-exec-9 |EmailServices                 |E| Error rendering PDF attachment for email: org.apache.fop.apps.FOPExceptionava.lang.NullPointerException
> org.apache.fop.apps.FOPException
>        at org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:160) ~[ofbiz-webapp.jar:?]
>        at org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:533) [ofbiz-common.jar:?]
> {code}       
> Same error with stable demo, I did not test with R14.12, but I suppose it's there also. Both works in the old demo (R12.04).



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