Java problem with localization

I am using JFreeChart. The files “jfreechart-1.0.6.jar” and “jcommon-1.0.10.jar” are imported into a Java script library called “Charting”. Also in “Charting” is a method “chartSeries” which contains the code to draw the chart. The “chartSeries” method is called via LS2J.

Everything works until I call a method “createTimeSeriesChart” which is in “jfreechart-1.0.6.jar”. I get the error below.

The strange thing is the same code I am using worked fine when called from a Java agent, so this must be something to do with moving it into a Java script library and/or using LS2J.

Does anyone have any suggestions?

TIA,

Mark.

---- ERROR MESSAGE ----

java.lang.ExceptionInInitializerError

Java Stack Trace=java.lang.ExceptionInInitializerError

at org.jfree.chart.ChartFactory.createTimeSeriesChart(ChartFactory.java:1627)

at Charting.chartSeries(Charting.java:54)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at lotus.domino.JavaConnectInvoker.invoke(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at lotus.domino.JavaConnectLoader.invoke(Unknown Source)

Caused by: java.util.MissingResourceException: Can’t find bundle for base name org.jfree.chart.plot.LocalizationBundle, locale en_GB

at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:825)

at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:794)

at java.util.ResourceBundle.getBundle(ResourceBundle.java:532)

at org.jfree.chart.plot.XYPlot.<clinit>(XYPlot.java:292)

... 14 more

Subject: Java problem with localization

Does anyone have a workaround on this? Getting the same message java.lang.ExceptionInInitializerError trying to work with jfreechart via LS2J. Same here, appears to work fine in Java Agent, but unsuccessful when calling the same jfreechart code using LS2J

Subject: Java problem with localization

forgot to add - running on Notes 7.02