Login  Register

Re: Users - Error creating PDF of Order

Posted by David E. Jones on Jan 09, 2006; 4:53am
URL: http://ofbiz.116.s1.nabble.com/Re-Users-Error-creating-PDF-of-Order-tp136872p136873.html


I just looked at this real quick, try the changes in SVN rev 6477.

-David


On Jan 8, 2006, at 7:25 AM, Mark Mantarro wrote:

>
> Sorry for taking so long to reply, Thanks for your comments…  but I  
> still don’t have the answer.
>
>
> I downloaded and tested with the demo data and the PDF rendering  
> works, so the code is good.  So it must be something in the  
> upgrade.  When I re-read the change comments, I am still stuck on  
> the comment: : it will now retrieve company information and logo  
> from the database settings”
>
>
> What database settings?  Where do I set them in the app?  Does my  
> party or facility need a specific role or contactmech that is new?  
> I had modified the companyLogo.fo.ftl file to have my logo and  
> return address.  Obviously , this will now come from the database.  
> Also, I found these error messages in the log concerning data/
> entity issues:
>
>
> E:/Downloads/ofbiz/svncode/ofbiz_6473/specialized/wholesale/
> entitydef/entitymodel.xml
>
> 22593 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity PartyRoleAndPartyDetail because one  
> already exists with the name: statusId
>
> 22723 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity ProductInventoryItem because one already  
> exists with the name: facilityId
>
> 22733 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity ProductInventoryItem because one already  
> exists with the name: facilityId
>
> 22733 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity ProductInventoryItem because one already  
> exists with the name: comments
>
> 22953 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity PartyRelationshipAndType because one  
> already exists with the name: statusId
>
> 22953 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity OrderHeaderPersonGroupRoleNote because  
> one already exists with the name: externalId
>
> 22963 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity OrderHeaderPersonGroupRoleNote because  
> one already exists with the name: statusId
>
> 22963 (main) [    ModelViewEntity.java:626:INFO ] Throwing out  
> field alias in view entity OrderHeaderPersonGroupRoleNote because  
> one already exists with the name: comments
>
>
> From: Mark Mantarro [mailto:[hidden email]]
> Sent: Thursday, December 29, 2005 11:58 PM
> To: '[hidden email]'
> Subject: Error creating PDF of Order
>
>
> Hello,
>
>
> I’ve been running on r5664, but am looking to move up to the newest  
> version.  I updated to r6418 and then r6445 but I can not get the  
> PDF option to render when viewing an order.  From the error message  
> it looks like an improvement in r6108 “New and improved company  
> header for order receipts and other PDFs: it will now retrieve  
> company information and logo from the database settings.” is the  
> culprit.
>
>
> How do I check and correct my company info and logo in the  
> database?  Is that really the problem?
>
>
> Here is the log excerpt….  Can’t wait to understand this better so  
> I can contribute….
>
>
> Mark M
>
>
>
> Expression postalAddress is undefined on line 13, column 31 in  
> companyHeader.fo.ftl.
>
> The problematic instruction:
>
> ----------
>
> ==> ${postalAddress.address1?if_exists} [on line 13, column 29 in  
> companyHeader.fo.ftl]
>
> ----------
>
>
> Java backtrace for programmers:
>
> ----------
>
> freemarker.core.InvalidReferenceException: Expression postalAddress  
> is undefined on line 13, column 31 in companyHeader.fo.ftl.
>
>
>
> Exception: org.ofbiz.base.util.GeneralException
>
> Message: Error rendering screen [CompanyLogo]:  
> java.lang.RuntimeException: Error rendering included template at  
> location [component://order/webapp/ordermgr/order/
> companyHeader.fo.ftl]: freemarker.core.InvalidReferenceException:  
> Expression postalAddress is undefined on line 13, column 31 in  
> companyHeader.fo.ftl. (Error rendering included template at  
> location [component://order/webapp/ordermgr/order/
> companyHeader.fo.ftl]: freemarker.core.InvalidReferenceException:  
> Expression postalAddress is undefined on line 13, column 31 in  
> companyHeader.fo.ftl.)
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users