I am a new ofbiz user. I am trying to localise the currency to Malawi Kwacha. When I make all necessary changes to ofbiz, the price is displayed with currency ISO code (MWK) instead of currency symbol mk infront of price digits. When I print checks (in pdf) ofbiz puts xx infront of price digits such as xx89.00. I suspect that the malawi currency symbol might be missing in the tables ofbiz uses to translate currency ISO code to currency symbol. I have serched on Internet and found out that Malawi currency symbol is not included in all the currency symbol tables I have seen so far. When I try to produce a pdf invoice, here is the error that is produced: The Following Errors Occurred: Unable to transform FO file: org.apache.fop.apps.FOPException: org.xml.sax.SAXParseException; lineNumber: 527; columnNumber: 167; The content of elements must consist of well-formed character data or markup.javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 527; columnNumber: 167; The content of elements must consist of well-formed character data or markup.Any help will be greatly appreciated.
RegardsTiwonge Kawonga |
Which release are you using?
Thanks & Regards -- Deepak Dixit www.hotwaxsystems.com On Mon, Dec 28, 2015 at 5:07 PM, Tiwonge Kawonga < [hidden email]> wrote: > I am a new ofbiz user. I am trying to localise the currency to Malawi > Kwacha. When I make all necessary changes to ofbiz, the price is displayed > with currency ISO code (MWK) instead of currency symbol mk infront of price > digits. When I print checks (in pdf) ofbiz puts xx infront of price digits > such as xx89.00. I suspect that the malawi currency symbol might be missing > in the tables ofbiz uses to translate currency ISO code to currency symbol. > I have serched on Internet and found out that Malawi currency symbol is not > included in all the currency symbol tables I have seen so far. When I try > to produce a pdf invoice, here is the error that is produced: The Following > Errors Occurred: Unable to transform FO file: > org.apache.fop.apps.FOPException: org.xml.sax.SAXParseException; > lineNumber: 527; columnNumber: 167; The content of elements must consist of > well-formed character data or > markup.javax.xml.transform.TransformerException: > org.xml.sax.SAXParseException; lineNumber: 527; columnNumber: 167; The > content of elements must consist of well-formed character data or > markup.Any help will be greatly appreciated. > RegardsTiwonge Kawonga > |
Hi,
I am using ofbiz 13.07.02 Regards Tiwonge Sent from Yahoo Mail on Android From:"Deepak Dixit" <[hidden email]> Date:Mon, 28 Dec, 2015 at 3:02 PM Subject:Re: ofbiz cannot generate pdf invoices Which release are you using? Thanks & Regards -- Deepak Dixit www.hotwaxsystems.com On Mon, Dec 28, 2015 at 5:07 PM, Tiwonge Kawonga <[hidden email]> wrote: I am a new ofbiz user. I am trying to localise the currency to Malawi Kwacha. When I make all necessary changes to ofbiz, the price is displayed with currency ISO code (MWK) instead of currency symbol mk infront of price digits. When I print checks (in pdf) ofbiz puts xx infront of price digits such as xx89.00. I suspect that the malawi currency symbol might be missing in the tables ofbiz uses to translate currency ISO code to currency symbol. I have serched on Internet and found out that Malawi currency symbol is not included in all the currency symbol tables I have seen so far. When I try to produce a pdf invoice, here is the error that is produced: The Following Errors Occurred: Unable to transform FO file: org.apache.fop.apps.FOPException: org.xml.sax.SAXParseException; lineNumber: 527; columnNumber: 167; The content of elements must consist of well-formed character data or markup.javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 527; columnNumber: 167; The content of elements must consist of well-formed character data or markup.Any help will be greatly appreciated. RegardsTiwonge Kawonga |
In reply to this post by Tiwonge Kawonga-2
Here is part of log print out that may help you to help me.
|E| Error rendering screen [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: java.lang.IllegalArgumentException: Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: java.lang.NullPointerException: Cannot get property 'countryGeoId' on null object. Rolling back transaction. 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 |TransactionUtil |W| [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: java.lang.Exception: Error rendering screen [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: java.lang.IllegalArgumentException: Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: java.lang.NullPointerException: Cannot get property 'countryGeoId' on null object at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) [ofbiz-entity-test.jar:?] Thanx in advance Tiwonge Kawonga |
That error looks like a bug in CompanyHeader.groovy, it's not check that an
address was retrieved before trying to access it. You can work around that issue by adding a "General Location" postal address for the company party. It might not help your currency issue, but will get you one step further along. Regards Scott On 3 January 2016 at 06:15, Tiwonge Kawonga <[hidden email]> wrote: > Here is part of log print out that may help you to help me. > |E| Error rendering screen > [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: > java.lang.IllegalArgumentException: Error running script at location > [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: > java.lang.NullPointerException: Cannot get property 'countryGeoId' on null > object. Rolling back transaction. > 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 > |TransactionUtil |W| [TransactionUtil.setRollbackOnly] > Calling transaction setRollbackOnly; this stack trace shows where this is > happening: > java.lang.Exception: Error rendering screen > [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: > java.lang.IllegalArgumentException: Error running script at location > [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: > java.lang.NullPointerException: Cannot get property 'countryGeoId' on null > object > at > org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) > [ofbiz-entity-test.jar:?] > > Thanx in advance > Tiwonge Kawonga > |
Thanx. You and Swapnil Mane pointed into the right direction which has resolved the issue.
Regards Tiwonge Sent from Yahoo Mail on Android From:"Scott Gray" <[hidden email]> Date:Sun, 3 Jan, 2016 at 4:42 AM Subject:Re: ofbiz cannot generate pdf invoices That error looks like a bug in CompanyHeader.groovy, it's not check that an address was retrieved before trying to access it. You can work around that issue by adding a "General Location" postal address for the company party. It might not help your currency issue, but will get you one step further along. Regards Scott On 3 January 2016 at 06:15, Tiwonge Kawonga <[hidden email]> wrote: > Here is part of log print out that may help you to help me. > |E| Error rendering screen > [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: > java.lang.IllegalArgumentException: Error running script at location > [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: > java.lang.NullPointerException: Cannot get property 'countryGeoId' on null > object. Rolling back transaction. > 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 > |TransactionUtil |W| [TransactionUtil.setRollbackOnly] > Calling transaction setRollbackOnly; this stack trace shows where this is > happening: > java.lang.Exception: Error rendering screen > [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: > java.lang.IllegalArgumentException: Error running script at location > [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: > java.lang.NullPointerException: Cannot get property 'countryGeoId' on null > object > at > org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) > [ofbiz-entity-test.jar:?] > > Thanx in advance > Tiwonge Kawonga > |
Administrator
|
From your report, I believe I fixed the issue in trunk at r1722712 using Groovy safe navigation operator
Please create a Jira issue for me to backport to releases branches and create a mean to report in our releases notes Thanks! Jacques Le 03/01/2016 05:27, Tiwonge Kawonga a écrit : > Thanx. You and Swapnil Mane pointed into the right direction which has resolved the issue. > > > Regards > > Tiwonge > > Sent from Yahoo Mail on Android > > From:"Scott Gray" <[hidden email]> > Date:Sun, 3 Jan, 2016 at 4:42 AM > Subject:Re: ofbiz cannot generate pdf invoices > > That error looks like a bug in CompanyHeader.groovy, it's not check that an > address was retrieved before trying to access it. > > You can work around that issue by adding a "General Location" postal > address for the company party. It might not help your currency issue, but > will get you one step further along. > > Regards > Scott > > > On 3 January 2016 at 06:15, Tiwonge Kawonga <[hidden email]> > wrote: > >> Here is part of log print out that may help you to help me. >> |E| Error rendering screen >> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >> java.lang.IllegalArgumentException: Error running script at location >> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >> object. Rolling back transaction. >> 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 >> |TransactionUtil |W| [TransactionUtil.setRollbackOnly] >> Calling transaction setRollbackOnly; this stack trace shows where this is >> happening: >> java.lang.Exception: Error rendering screen >> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >> java.lang.IllegalArgumentException: Error running script at location >> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >> object >> at >> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) >> [ofbiz-entity-test.jar:?] >> >> Thanx in advance >> Tiwonge Kawonga >> > |
Jacques,
I am still new to ofbiz and I don't know how to create a jira. But I can explain what was the problem. In setting up the party (the company) I did not specify that one of the purposes of the postal address is for general correspondence. Once I did that, the problem disappeared. Thank you for following up on the issue. Regards Tiwonge Sent from Yahoo Mail on Android From:"Jacques Le Roux" <[hidden email]> Date:Sun, 3 Jan, 2016 at 1:49 PM Subject:Re: ofbiz cannot generate pdf invoices From your report, I believe I fixed the issue in trunk at r1722712 using Groovy safe navigation operator Please create a Jira issue for me to backport to releases branches and create a mean to report in our releases notes Thanks! Jacques Le 03/01/2016 05:27, Tiwonge Kawonga a écrit : > Thanx. You and Swapnil Mane pointed into the right direction which has resolved the issue. > > > Regards > > Tiwonge > > Sent from Yahoo Mail on Android > > From:"Scott Gray" <[hidden email]> > Date:Sun, 3 Jan, 2016 at 4:42 AM > Subject:Re: ofbiz cannot generate pdf invoices > > That error looks like a bug in CompanyHeader.groovy, it's not check that an > address was retrieved before trying to access it. > > You can work around that issue by adding a "General Location" postal > address for the company party. It might not help your currency issue, but > will get you one step further along. > > Regards > Scott > > > On 3 January 2016 at 06:15, Tiwonge Kawonga <[hidden email]> > wrote: > >> Here is part of log print out that may help you to help me. >> |E| Error rendering screen >> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >> java.lang.IllegalArgumentException: Error running script at location >> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >> object. Rolling back transaction. >> 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 >> |TransactionUtil |W| [TransactionUtil.setRollbackOnly] >> Calling transaction setRollbackOnly; this stack trace shows where this is >> happening: >> java.lang.Exception: Error rendering screen >> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >> java.lang.IllegalArgumentException: Error running script at location >> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >> object >> at >> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) >> [ofbiz-entity-test.jar:?] >> >> Thanx in advance >> Tiwonge Kawonga >> > |
Administrator
|
This is how to create a Jira, you can use the texts you used so far to fill the description. The aim is to have you contributing more in the future :)
https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices Thanks! Jacques Le 03/01/2016 13:03, Tiwonge Kawonga a écrit : > Jacques, > > I am still new to ofbiz and I don't know how to create a jira. But I can explain what was the problem. In setting up the party (the company) I did not specify that one of the purposes of the postal address is for general correspondence. Once I did that, the problem disappeared. > > > Thank you for following up on the issue. > > > Regards > > Tiwonge > > Sent from Yahoo Mail on Android > > From:"Jacques Le Roux" <[hidden email]> > Date:Sun, 3 Jan, 2016 at 1:49 PM > Subject:Re: ofbiz cannot generate pdf invoices > > From your report, I believe I fixed the issue in trunk at r1722712 using Groovy safe navigation operator > > Please create a Jira issue for me to backport to releases branches and create a mean to report in our releases notes > > Thanks! > > Jacques > > > Le 03/01/2016 05:27, Tiwonge Kawonga a écrit : >> Thanx. You and Swapnil Mane pointed into the right direction which has resolved the issue. >> >> >> Regards >> >> Tiwonge >> >> Sent from Yahoo Mail on Android >> >> From:"Scott Gray" <[hidden email]> >> Date:Sun, 3 Jan, 2016 at 4:42 AM >> Subject:Re: ofbiz cannot generate pdf invoices >> >> That error looks like a bug in CompanyHeader.groovy, it's not check that an >> address was retrieved before trying to access it. >> >> You can work around that issue by adding a "General Location" postal >> address for the company party. It might not help your currency issue, but >> will get you one step further along. >> >> Regards >> Scott >> >> >> On 3 January 2016 at 06:15, Tiwonge Kawonga <[hidden email]> >> wrote: >> >>> Here is part of log print out that may help you to help me. >>> |E| Error rendering screen >>> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >>> java.lang.IllegalArgumentException: Error running script at location >>> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >>> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >>> object. Rolling back transaction. >>> 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 >>> |TransactionUtil |W| [TransactionUtil.setRollbackOnly] >>> Calling transaction setRollbackOnly; this stack trace shows where this is >>> happening: >>> java.lang.Exception: Error rendering screen >>> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >>> java.lang.IllegalArgumentException: Error running script at location >>> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >>> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >>> object >>> at >>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) >>> [ofbiz-entity-test.jar:?] >>> >>> Thanx in advance >>> Tiwonge Kawonga >>> > |
Ok, I will do that.
Thanx. Tiwonge Sent from Yahoo Mail on Android From:"Jacques Le Roux" <[hidden email]> Date:Sun, 3 Jan, 2016 at 2:53 PM Subject:Re: ofbiz cannot generate pdf invoices This is how to create a Jira, you can use the texts you used so far to fill the description. The aim is to have you contributing more in the future :) https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices Thanks! Jacques Le 03/01/2016 13:03, Tiwonge Kawonga a écrit : > Jacques, > > I am still new to ofbiz and I don't know how to create a jira. But I can explain what was the problem. In setting up the party (the company) I did not specify that one of the purposes of the postal address is for general correspondence. Once I did that, the problem disappeared. > > > Thank you for following up on the issue. > > > Regards > > Tiwonge > > Sent from Yahoo Mail on Android > > From:"Jacques Le Roux" <[hidden email]> > Date:Sun, 3 Jan, 2016 at 1:49 PM > Subject:Re: ofbiz cannot generate pdf invoices > > From your report, I believe I fixed the issue in trunk at r1722712 using Groovy safe navigation operator > > Please create a Jira issue for me to backport to releases branches and create a mean to report in our releases notes > > Thanks! > > Jacques > > > Le 03/01/2016 05:27, Tiwonge Kawonga a écrit : >> Thanx. You and Swapnil Mane pointed into the right direction which has resolved the issue. >> >> >> Regards >> >> Tiwonge >> >> Sent from Yahoo Mail on Android >> >> From:"Scott Gray" <[hidden email]> >> Date:Sun, 3 Jan, 2016 at 4:42 AM >> Subject:Re: ofbiz cannot generate pdf invoices >> >> That error looks like a bug in CompanyHeader.groovy, it's not check that an >> address was retrieved before trying to access it. >> >> You can work around that issue by adding a "General Location" postal >> address for the company party. It might not help your currency issue, but >> will get you one step further along. >> >> Regards >> Scott >> >> >> On 3 January 2016 at 06:15, Tiwonge Kawonga <[hidden email]> >> wrote: >> >>> Here is part of log print out that may help you to help me. >>> |E| Error rendering screen >>> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >>> java.lang.IllegalArgumentException: Error running script at location >>> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >>> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >>> object. Rolling back transaction. >>> 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 >>> |TransactionUtil |W| [TransactionUtil.setRollbackOnly] >>> Calling transaction setRollbackOnly; this stack trace shows where this is >>> happening: >>> java.lang.Exception: Error rendering screen >>> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >>> java.lang.IllegalArgumentException: Error running script at location >>> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >>> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >>> object >>> at >>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) >>> [ofbiz-entity-test.jar:?] >>> >>> Thanx in advance >>> Tiwonge Kawonga >>> > |
In reply to this post by Tiwonge Kawonga-2
Looping In user's mailing list for the archive purpose.
Thanks Scott for sharing your thoughts on this and Jacques for quick fix :-) I have added the user's mailing list in CC in my previous communication, but don't know it doesn't deliver to mailing list, anyways achieving this communication so this can help us in future :-) - Best Regards Swapnil M Mane Enterprise Software Engineer HotWax Systems <http://www.hotwaxsystems.com/> - *The global leader in innovative enterprise commerce solutions **powered by Apache OFBiz.* ApacheCon US 2015 Silver Sponsor <http://events.linuxfoundation.org/events/archive/2015/apachecon-north-america> <http://about.me/swapnilmmane?promo=email_sig> On Sun, Jan 3, 2016 at 12:20 AM, Swapnil Mane < [hidden email]> wrote: > Glad, we are able to help you. > Have fun in using Apache OFBiz :-) > > > - Best Regards > Swapnil M Mane > Enterprise Software Engineer > HotWax Systems <http://www.hotwaxsystems.com/> - *The global leader in > innovative enterprise commerce solutions **powered by Apache OFBiz.* > ApacheCon US 2015 Silver Sponsor > <http://events.linuxfoundation.org/events/archive/2015/apachecon-north-america> > <http://about.me/swapnilmmane?promo=email_sig> > > > On Sun, Jan 3, 2016 at 12:11 AM, Tiwonge Kawonga <[hidden email]> > wrote: > >> Thanks, it has worked. I have added general correspondence to the purpose >> of contact mechanism (postal address). >> >> Sent from Yahoo Mail on Android >> <https://overview.mail.yahoo.com/mobile/?.src=Android> >> ------------------------------ >> *From*:"Swapnil Mane" <[hidden email]> >> *Date*:Sat, 2 Jan, 2016 at 7:58 PM >> *Subject*:Re: ofbiz cannot generate pdf invoices >> >> Hello Tiwonge, >> >> It seems that there is some organizational data is missing. >> Can you please verify that you have prepared contact data for company >> party, here is example >> >> <ContactMech contactMechId="9000" contactMechTypeId="POSTAL_ADDRESS"/> >> >> <PartyContactMechPurpose partyId="Company" contactMechId="9000" >> contactMechPurposeTypeId="GENERAL_LOCATION" fromDate="2000-01-01 >> 00:00:00.000"/> >> >> <PostalAddress contactMechId="9000" toName="Company XYZ" address1="2003 >> Open Blvd" city="Open City" postalCode="999999" countryGeoId="USA" >> stateProvinceGeoId="CA" geoPointId="9000"/> >> >> I think your have created a party with id="Company", something like this >> '<Party partyId="Company" partyTypeId="PARTY_GROUP"/>' >> >> As per the OFBiz code, it trying to access the 'countryGeoId' from the >> 'PostalAddress' of the company party. >> >> >> - Best Regards >> >> Swapnil M Mane >> Enterprise Software Engineer >> HotWax Systems <http://www.hotwaxsystems.com/> - *The global leader in >> innovative enterprise commerce solutions **powered by Apache OFBiz.* >> ApacheCon US 2015 Silver Sponsor >> <http://events.linuxfoundation.org/events/archive/2015/apachecon-north-america> >> <http://about.me/swapnilmmane?promo=email_sig> >> >> >> >> On Sat, Jan 2, 2016 at 10:45 PM, 'Tiwonge Kawonga' via swapnil.mane < >> [hidden email]> wrote: >> >>> Here is part of log print out that may help you to help me. >>> |E| Error rendering screen >>> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >>> java.lang.IllegalArgumentException: Error running script at location >>> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >>> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >>> object. Rolling back transaction. >>> 2016-01-02 18:26:57,719 |-0.0.0.0-8443-exec-8 >>> |TransactionUtil |W| [TransactionUtil.setRollbackOnly] >>> Calling transaction setRollbackOnly; this stack trace shows where this is >>> happening: >>> java.lang.Exception: Error rendering screen >>> [component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo]: >>> java.lang.IllegalArgumentException: Error running script at location >>> [component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy]: >>> java.lang.NullPointerException: Cannot get property 'countryGeoId' on null >>> object >>> at >>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) >>> [ofbiz-entity-test.jar:?] >>> >>> Thanx in advance >>> Tiwonge Kawonga >>> >> >> > |
Free forum by Nabble | Edit this page |