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

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

Did you check that http://svn.apache.org/viewvc?view=revision&revision=1724697 
? If you click on the "text changed" link you will see I did not use the  
setContentDisposition of the UtilHttp class in R14.12 where I did it by hand!

I have no problems with PDF in my locale up to date working copy when running 
the OFBiz instance:
{noformat}
     [java] 2016-01-26 15:43:21,392 |http-bio-8443-exec-7 |ApacheFopWorker      
         |I| FOP FontBaseURL: 
file:/C:/projectsASF/release14.12/framework/webapp/config/
     [java] 2016-01-26 15:43:21,397 |http-bio-8443-exec-7 |FOP                  
         |D| target-resolution set to: 72.0dpi (px2mm=0.35277778)
     [java] 2016-01-26 15:43:21,448 |http-bio-8443-exec-7 |FontCache            
         |W| I/O exception while reading font cache 
(org.apache.fop.fonts.FontCache; local class incompatible: stream classdesc
serialVersionUID = 9129238336422194339, local class serialVersionUID = 
605232520271754719). Discarding font cache file.
     [java] 2016-01-26 15:43:26,387 |http-bio-8443-exec-7 |FOUserAgent          
         |W| Unable to load font file: 
file:/C:/Windows/FONTS/SamsungImagination.otf. Reason: 
java.lang.UnsupportedOperationExce
ption: OpenType fonts with CFF data are not supported, yet
     [java] 2016-01-26 15:43:26,391 |http-bio-8443-exec-7 |FOUserAgent          
         |W| Unable to load font file: 
file:/C:/Windows/FONTS/SamsungImaginationBold.otf. Reason: 
java.lang.UnsupportedOperation
Exception: OpenType fonts with CFF data are not supported, yet
     [java] 2016-01-26 15:43:26,835 |http-bio-8443-exec-7 |FOUserAgent          
         |W| Unable to load font file: file:/C:/Windows/FONTS/teamviewer9.otf. 
Reason: java.lang.UnsupportedOperationException:
OpenType fonts with CFF data are not supported, yet
     [java] 2016-01-26 15:43:27,385 |http-bio-8443-exec-7 |FOUserAgent          
         |W| Font "NotoSans,normal,700" not found. Substituting with 
"NotoSans,normal,400".
     [java] 2016-01-26 15:43:27,486 |http-bio-8443-exec-7 |FOUserAgent          
         |W| Font "NotoSans,italic,400" not found. Substituting with 
"NotoSans,normal,400".
     [java] 2016-01-26 15:43:27,532 |http-bio-8443-exec-7 |FOUserAgent          
         |W| Content overflows the viewport of the fo:region-before on page 1 
in block-progression direction by 19200 millipoint
s. (See position 30:58)
     [java] 2016-01-26 15:43:27,667 |http-bio-8443-exec-7 |ConfigXMLReader      
         |I| controller loaded: 0.0s, 39 requests, 19 views in 
file:/C:/projectsASF/release14.12/framework/common/webcommon/WEB-
INF/common-controller.xml
     [java] 2016-01-26 15:43:27,678 |http-bio-8443-exec-7 |ConfigXMLReader      
         |I| controller loaded: 0.0s, 0 requests, 0 views in 
file:/C:/projectsASF/release14.12/framework/common/webcommon/WEB-IN
F/handlers-controller.xml
     [java] 2016-01-26 15:43:27,691 |http-bio-8443-exec-7 |ConfigXMLReader      
         |I| controller loaded: 0.0s, 4 requests, 0 views in 
file:/C:/projectsASF/release14.12/applications/commonext/webapp/WEB
-INF/controller.xml
     [java] 2016-01-26 15:43:27,694 |http-bio-8443-exec-7 |ServerHitBin         
         |I| Visit delegatorName=default, ServerHitBin delegatorName=default
     [java] 2016-01-26 15:43:27,699 |http-bio-8443-exec-7 |ControlServlet       
         |T| [[[order.pdf(Domain:https://localhost)] Request Done- 
total:7.237,since last([order.pdf(Domain...):7.237]]
{noformat}

Maybe I missed something else though?

> Exception when sending an order confirmation email
> --------------------------------------------------
>
>                 Key: OFBIZ-6792
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6792
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order, specialpurpose/ecommerce
>    Affects Versions: Release Branch 14.12, Trunk
>         Environment: Eclipse IDE
>            Reporter: Eric Kingston
>            Assignee: Jacques Le Roux
>             Fix For: 14.12.01, Upcoming Branch, Release Branch 15.12
>
>         Attachments: OFBIZ-6792.patch
>
>
> Receive the following exception while placing an order through the ecommerce 
> application.....
> groovy.lang.MissingPropertyException: No such property: response for class: 
> CompanyHeader
> Following is the relevant portion of the stack trace...
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
>  ~[groovy-all-2.2.1.jar:2.2.1]
> at 
> org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
>  ~[groovy-all-2.2.1.jar:2.2.1]
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
>  ~[groovy-all-2.2.1.jar:2.2.1]
> at CompanyHeader.run(CompanyHeader.groovy:48) ~[?:?]
> ...
> Apparently, the response object is not available within the context when the 
> sendOrderConfirmation service is run.  
> Steps to reproduce the exception....
> 1.  Checkout OFBiz 14.12 Release (revision was 1722928 at the time of 
> checkout).
> 2.  Run the default build.
> 3.  Load the demo data.
> 4.  Start the OFBiz instance (it will use the OOTB default derby db of 
> course).
> 5.  Within a browser goto URL..  http://localhost:8080/ecommerce 
> 6.  Proceed to place an order adding at least one item to the cart.
> 7.  While checking out you may or may not have to create an account.  I 
> created an account for this test.
> 8.  Proceed through all the checkout steps and submit the order.
> Monitor the log and you will see the exception occur within a few seconds.  
> This exception doesn't occur in the OFBiz 13.07 release branch.  In fact, the 
> response object is not referenced at all in the CompanyHeader.groovy from the 
> 13.07 branch.  Whoever inserted the code that references the response object 
> within the CompanyHeader.groovy script, must have neglected to test the 
> changes with the ecommerce application.  I only found the error while 
> migrating our instance of OFBiz to the 14.12 release.  Our custom ecommerce 
> application employs the sendOrderConfirmation service the same way the OOTB 
> ecommerce application does.
> I hope I have provided sufficient information for someone to resolve this 
> issue.  Thanks.



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

Reply via email to