Failure of Inporting TeeChart Java ver.
Posted: Fri Feb 18, 2011 5:35 am
Buying TeeChart Java ver. is under consideration.
But While we tested TeeChartJava2Evaluation(2009-04-27)_Example_Swing , there is an error.
Testing process:
1. Export Chart for .tej.
2. Import that file -> Error occurs.
So, I attach test files and a project source made in Eclipse.
Test Contents:
1) Success importing .xml files (TeeChart.xml)
chart1.setChart(chart1.getImport().getTemplate().fromXML("C:/TeeChart.xml")); ==> Success using .xml files
2) Fail importing .tej files (TeeChart.tej)
chart1.setChart(chart1.getImport().getTemplate().fromFile("C:/TeeChart.tej")); ==> Fail drawing Chart to import .xml files
Error message:
Please download Sample Files: http://125.129.124.44/report/ymhl/TeeCh ... import.zip
and check this errors
But While we tested TeeChartJava2Evaluation(2009-04-27)_Example_Swing , there is an error.
Testing process:
1. Export Chart for .tej.
2. Import that file -> Error occurs.
So, I attach test files and a project source made in Eclipse.
Test Contents:
1) Success importing .xml files (TeeChart.xml)
chart1.setChart(chart1.getImport().getTemplate().fromXML("C:/TeeChart.xml")); ==> Success using .xml files
2) Fail importing .tej files (TeeChart.tej)
chart1.setChart(chart1.getImport().getTemplate().fromFile("C:/TeeChart.tej")); ==> Fail drawing Chart to import .xml files
Error message:
Code: Select all
java.lang.NullPointerException
at java.lang.Class.searchFields(Unknown Source)
at java.lang.Class.getField0(Unknown Source)
at java.lang.Class.getField(Unknown Source)
at com.steema.teechart.misc.Enum.readResolve(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadResolve(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.steema.teechart.imports.Imports$Template.fromStream(Unknown Source)
at com.steema.teechart.imports.Imports$Template.fromFile(Unknown Source)
at m2soft.test.teechart.TemplateDemo.loadFile(TemplateDemo.java:48)
at m2soft.test.teechart.TemplateDemo.<init>(TemplateDemo.java:40)
at m2soft.test.teechart.TemplateDemo.createAndShowGUI(TemplateDemo.java:74)
at m2soft.test.teechart.TemplateDemo.access$0(TemplateDemo.java:61)
at m2soft.test.teechart.TemplateDemo$2.run(TemplateDemo.java:116)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
and check this errors