• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to Upgrade GWT 2.0.4 to GWT 2.2.0

 
Ranch Hand
Posts: 33
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am a beginner in GWT. I was using GWT 2.0.4 and have update it to GWT 2.2.0 recently and since the update it is not working. I am using ANT to build my project but it showing errors like hell.
Almost all the problems are in gwt-user.jar and other jars bundled with GWT.

Here is what I have done to update GWT :
1. Downloaded GWT-2.2.0 SDK
2. Replaced GWT-2.0.4 with GWT-2.2.0
3. Updated the path of GWT SDK accordingly in my ANT build.properties file.

There is no error in the compilation of my own code yet.All the errors it shows are in gwt-user.jar
and many others.
Do I need to update the other JARs OR is there something else.
Below is the snippet of the stacktrace.
Please explain in step by step fashion if possible.
Complete stack trace can be provided if necessary.

[java] [ERROR] Errors in 'jar:file:/C:/Programs/tools/gwt-2.2.0/gwt-user.jar!/com/google/gwt/emul/java/math/Logical.java'
[java] [ERROR] Line 51: that.sign cannot be resolved or is not a field
[java] [ERROR] Line 51: val.sign cannot be resolved or is not a field
[java] [ERROR] Line 54: BigInteger.MINUS_ONE cannot be resolved
[java] [ERROR] Line 57: BigInteger.MINUS_ONE cannot be resolved
[java] [ERROR] Line 61: val.sign cannot be resolved or is not a field
[java] [ERROR] Line 62: that.sign cannot be resolved or is not a field
[java] [ERROR] Line 68: that.sign cannot be resolved or is not a field
[java] [ERROR] Line 70: val.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 70: that.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 86: The method getFirstNonzeroDigit() is undefined for the type BigInteger
[java] [ERROR] Line 87: The method getFirstNonzeroDigit() is undefined for the type BigInteger
[java] [ERROR] Line 91: positive.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 94: positive.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 100: negative.digits cannot be resolved or is not a field
[java] [ERROR] Line 100: positive.digits cannot be resolved or is not a field
[java] [ERROR] Line 103: negative.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 103: positive.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 105: negative.digits cannot be resolved or is not a field
[java] [ERROR] Line 105: positive.digits cannot be resolved or is not a field
[java] [ERROR] Line 109: negative.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 110: positive.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 111: positive.digits cannot be resolved or is not a field
[java] [ERROR] Line 115: The constructor BigInteger(int, int, int[]) is undefined
[java] [ERROR] Line 116: The method cutOffLeadingZeroes() is undefined for the type BigInteger
[java] [ERROR] Line 129: The method getFirstNonzeroDigit() is undefined for the type BigInteger
[java] [ERROR] Line 130: The method getFirstNonzeroDigit() is undefined for the type BigInteger
[java] [ERROR] Line 133: shorter.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 142: shorter.digits cannot be resolved or is not a field
[java] [ERROR] Line 142: longer.digits cannot be resolved or is not a field
[java] [ERROR] Line 144: shorter.digits cannot be resolved or is not a field
[java] [ERROR] Line 144: longer.digits cannot be resolved or is not a field
[java] [ERROR] Line 146: shorter.digits cannot be resolved or is not a field
[java] [ERROR] Line 146: longer.digits cannot be resolved or is not a field
[java] [ERROR] Line 149: shorter.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 150: longer.digits cannot be resolved or is not a field
[java] [ERROR] Line 150: shorter.digits cannot be resolved or is not a field
[java] [ERROR] Line 156: longer.numberLength cannot be resolved or is not a field
[java] [ERROR] Line 156: longer.digits cannot be resolved or is not a field
 
author
Posts: 4354
45
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, check the release notes for 2.1.0 and 2.2.0. Also, 2.3.0 is now available.

One thing they have added is the requirement to include additional Jars in Ant scripts in more recent versions such as: gwt-dev-windows.jar, gwt-servlet.jar, gwt-servlet-deps.jar, validation-api-1.0.0.GA.jar, validation-api-1.0.0.GA-sources.jar, gwt-user.jar

Also, as I pointed out in a blog article GWT 2.2 breaks plug-ins compiled before GWT 2.2, so you need to upgrade all plugins as part of the GWT upgrade process.

As for your specific error, nothing sticks although upgrading can trigger a slew of build errors so I would review the suggestions above and see if any of them resolve your issues as they did mine. What version of the Java JVM are using by the way?
 
A magnificient life is loaded with tough challenges. En garde tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic