Failure of Inporting TeeChart Java ver.

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Failure of Inporting TeeChart Java ver.

Post by Seth » 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:

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)
Please download Sample Files: http://125.129.124.44/report/ymhl/TeeCh ... import.zip
and check this errors

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Failure of Inporting TeeChart Java ver.

Post by Yeray » Mon Feb 21, 2011 2:35 pm

Hi Seth,

With your application and your .jar file I've reproduced the java.lang.NullPointerException you mention.
Then I've tried with NetBeans and your .jar throws an java.io.InvalidClassException exception.
However, your .xml loads without problems both in Eclipse and NetBeans. With your .xml loaded in NetBeans, I've exported the chart to a new .jar file. This new .jar loads successfully in NetBeans but in Eclipse. Find it attached here. Could you please try it in your Eclipse?
TeeChart.zip
(5.58 KiB) Downloaded 1003 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: Failure of Inporting TeeChart Java ver.

Post by Seth » Wed Feb 23, 2011 7:04 am

Hi Yeray

I tested your sample file with getImport().getTemplate().fromFile() in Eclipse , but it had InvalidClassException, too.

Error Message:
java.io.InvalidClassException: com.steema.teechart.TeeBase; local class incompatible: stream classdesc serialVersionUID = 75565439472837495, local class serialVersionUID = -1669827993778815851

And, TeeChart.tej that I've sent you have been saved with [Show Export Dialog] offerd TeeChartJava2Evaluation(2009-04-27)_Example_SwingTeeChart.Features.jar of Exporting.

Pleas check again.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Failure of Inporting TeeChart Java ver.

Post by Yeray » Fri Feb 25, 2011 5:07 pm

Hi Seth,

Thanks for the feedback. I've added it to the defect list to be fixed in future releases (TJ71015420).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply