KunjanSharma / gwt-chronoscope

Automatically exported from code.google.com/p/gwt-chronoscope
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Java compile error: type mismatch: cannot convert from Element to Element #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install the chronoscope-0.7.jar into a GWT project classpath.
2. add <inherits name='org.timepedia.chronoscope.Chronoscope'/> to GWT module.
3. compile the GWT project.

What is the expected output? 
a working prototype chart.

What do you see instead?
Compiling module com.lim.viper.Viper
   Validating newly compiled units
      [ERROR] Errors in 'jar:file:/C:/dev/Viper/war/WEB-INF/lib/chronoscope-0.7.jar!/org/timepedia/chronoscope/client/browser/DomTextLayer.java'
         [ERROR] Line 289: Type mismatch: cannot convert from Element to Element

What version of the product are you using? On what operating system?
chronoscope-0.7.jar

Please provide any additional information below.
I am highly motivated to get this thing to work since it has the 
features/functionality I really need and nothing else does.

Original issue reported on code.google.com by joel.re...@gmail.com on 20 Jul 2010 at 5:49

GoogleCodeExporter commented 9 years ago
would really REALLY appreciate ANY and all help here.

Original comment by joel.re...@gmail.com on 20 Jul 2010 at 5:51

GoogleCodeExporter commented 9 years ago
thanks in advance.

Original comment by joel.re...@gmail.com on 20 Jul 2010 at 5:51

GoogleCodeExporter commented 9 years ago
Hi, Joel.

I've had a same problem.
Please notice that in GWT 2.0 there are 2 classes:

- com.google.gwt.dom.client.Element
- com.google.gwt.user.client.Element

Moreover:
com.google.gwt.user.client.Element extends com.google.gwt.dom.client.Element

It looks like somewhere you get wrong type (Element instead of Element!)
Probably a type cast or changing type of your input or output parameter can fix 
the compilation errors.

Make sure you've got correct type in runtime.
Hope this helped.

--
Kind regards,
Ignat Alexeyenko.

Original comment by ignatale...@gmail.com on 26 Jul 2010 at 2:08

GoogleCodeExporter commented 9 years ago
We'll put a new build up soon on the download page, but in the meantime you can 
use the maven repo or download a more recent jar here 
 http://timefire-repository.googlecode.com/svn/mavenrepo/org/timepedia/chronoscope/

Original comment by socon...@gmail.com on 27 Jul 2010 at 7:47

GoogleCodeExporter commented 9 years ago
Hi, 

I am using eclipse gwt plugin and the chronoscope jars downloaded from this 
page in order to compile the HelloChart demo code that is at this site (which I 
cut and pasted into a GWT app that I created) and I am unable to resolve the 
compile errors.  I have spent many hours (over 5 hours) trying to resolve the 
compile errors but the nightmare never ends.  I tried using various versions of 
gwt (1.7, 2.0, 2.04) and other jars (gwt-incubator.jar, gwrexporter.jar etc).   
When I compile it seems to be looking for the actual source code for 
Chronoscope and complains about Chronoscope defined types it can't find. Trying 
to figure out how to set this up shouldn't be this complicated.  I have 
extensively searched google for any type of  documentation that would help me 
and haven't found anything helpful.   Do you know what jars I need to export 
externally in order to get a simple Chronoscope demo example set up? If I can 
get this setup I am willing to do note some time writing up the documentation 
so that other developers can get started easily.  Thanks for your time.  

Sincerely,
Manish Patel
Senior Software Engineer
AT&T Government Solutions  

Original comment by faldhr...@gmail.com on 28 Jul 2010 at 1:28

GoogleCodeExporter commented 9 years ago
it would be nice if you put a GWT demo in a form that is most widely used: An 
eclipse GWT project.  just a suggestion.

Original comment by joel.re...@gmail.com on 29 Jul 2010 at 9:33

GoogleCodeExporter commented 9 years ago
I'm using the chronoscope widget which I deployed from the chronoscope 
javascript project chronoscope-js.zip which I downloaded from this site.  It 
worked well.  I'll use that for now. 

Thanks,
Manish

Original comment by faldhr...@gmail.com on 30 Jul 2010 at 6:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I was able to compile using the latest source, but when running, I'm getting:

[ERROR] [chrono] Return type of method 
org.timepedia.chronoscope.client.event.PlotHoverEvent.getDomainPoints() is not 
Exportable.

Original comment by tom...@gmail.com on 2 Aug 2010 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by manuel.carrasco.m on 11 Aug 2010 at 8:27

GoogleCodeExporter commented 9 years ago
Hello all,

Many changes has been made in the repo and the documentation to fix this issue:

- I have updated the download list page with different versions of chronoscope 
- I have written a page explaining the dependencies needed to use chronoscope 
in a gwt project.
http://code.google.com/p/gwt-chronoscope/wiki/GwtAPI#Stable_version

- There is also a project in the svn repo which you could use as a reference:
svn checkout http://gwt-chronoscope.googlecode.com/svn/HelloChart-Maven

Please verify that everything works for you and give feedback.

Thank you for reporting

-Manolo

Original comment by manuel.carrasco.m on 20 Aug 2010 at 4:16