Can't find bundle for base name (jasper 4.6)

1,299 views
Skip to first unread message

norber...@multimageweb.com

unread,
Oct 1, 2013, 1:50:35 PM10/1/13
to idem...@googlegroups.com
hi

i try to setup multilingual jasper invoice form in idempiere. i have create a plugin install it. files are available at http://localost:8080/JasperReportFiles/

  • invoiceform_mm.jrxml
  • InvoiceTaxSubReport.jasper
  • invoiceform_mm.properties
  • invoiceform_mm_en_US.properties
  • invoiceform_mm_sk_SK.properties

i setup in report & processes the follow address http://localost:8080/JasperReportFiles/invoiceform_mm.jrxml. looks the report starting, but got the bellow error message, which looks me the report can't find bundle files. Locally in iReport 4.6 works properly. No error messages, and language are showing properly.

17:57:04.144===========> ProcessUtil.startJavaProcess: org.compiere.report.ReportStarter [56]
java.util.MissingResourceException: Can't find bundle for base name invoiceform_mm, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:1028)
at net.sf.jasperreports.engine.util.JRResourcesUtil.loadResourceBundle(JRResourcesUtil.java:660)
at net.sf.jasperreports.engine.util.JRResourcesUtil.loadResourceBundle(JRResourcesUtil.java:598)
at net.sf.jasperreports.engine.fill.JRFillDataset.loadResourceBundle(JRFillDataset.java:570)
at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:605)
at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1280)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:900)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)
at org.compiere.report.ReportStarter.startProcess0(ReportStarter.java:614)
at org.compiere.report.ReportStarter.startProcess(ReportStarter.java:345)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:172)
at org.compiere.apps.AbstractProcessCtl.startProcess(AbstractProcessCtl.java:466)
at org.compiere.apps.AbstractProcessCtl.run(AbstractProcessCtl.java:272)
at org.adempiere.webui.apps.WProcessCtl.process(WProcessCtl.java:158)
at org.adempiere.webui.apps.ProcessModalDialog$ProcessDialogRunnable.doRun(ProcessModalDialog.java:514)
at org.adempiere.util.ContextRunnable.run(ContextRunnable.java:38)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)

any experience pls.
norbert

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees and may not be reviewed or used in any way by other recipients. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message and any attachments thereto from your system.

Carlos Antonio Ruiz Gomez

unread,
Oct 2, 2013, 9:30:17 AM10/2/13
to idem...@googlegroups.com
Hi Norbert, I have the attached sample (packin) working in english/spanish (uploaded in demo.idempiere.com)

You can check the 1.dat file within the packin (is a zip) for the sources.

Regards,

Carlos Ruiz
JasperOSGiTest.zip

Daniel Tamm

unread,
Oct 2, 2013, 9:56:43 AM10/2/13
to idem...@googlegroups.com
This is the bug described in detail:


I solved it in my production environment since we're using property files ending with langcode_countrycode. I must fix I think.

/Daniel

redhuan d. oon

unread,
Apr 20, 2015, 6:37:11 AM4/20/15
to idem...@googlegroups.com
A documentation for this nice work is explained here: http://wiki.idempiere.org/en/Multi-Lingual_Jasper
Reply all
Reply to author
Forward
0 new messages