Wednesday, June 6, 2018

Re: GWT Update to 2.8.2

The error that looks like it might be the source of the problems is this one:
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/io/FilterOutputStream.java'
     [java]          [ERROR] Line 74: The constructor IOException(Throwable) is undefined

But that constructor has been in there (and public) since 2008.

Then, when I look at the error for the IOException.java file, I see that the path to the class is different:
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/io/emul/java/io/IOException.java'

What is gwtx-1.5.2? Is it defining IOException differently than GWT itself expects?

I also see a jar named CoreGWT-src.jar, which apparently contains java.lang.Object, meaning it isn't in gwt-user.jar where we would expect to see it. What version of GWT did you use before 2.8.2, and are you expecting that these other jars replace core GWT functionality? Perhaps they also need an update to work with GWT 2.8.2?

I am finding https://code.google.com/archive/p/gwtx/#! when searching for gwtx, but that was designed to work with GWT 1.5.2 or so, which also came out in 2008 (roughly the same time as IOException getting that missing constructor added). Perhaps you are trying to upgrade a project in one shot from 1.x to 2.8.2? If so, ten years of missed updates is likely going to require that you double check all of your other project jars and make sure they are up to date (or in the case of gwtx, probably remove them entirely).

On Tuesday, June 5, 2018 at 3:53:08 AM UTC-5, dinesh kumar wrote:
Yes, still getting same error.


On Tuesday, June 5, 2018 at 2:08:36 PM UTC+5:30, Thomas Broyer wrote:


On Tuesday, June 5, 2018 at 8:57:44 AM UTC+2, dinesh kumar wrote:
I have updated to GWT 2.8.2 and getting a compilation error : 

Compilation unit 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_se.java' is removed due to invalid reference(s):
     [java]          java.lang.String
     [java]       Compilation unit 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/NumberConstants.java' is removed due to invalid reference(s):
     [java]          java.lang.String
     [java]       Compilation unit 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/dom/builder/client/DomMediaBuilderBase.java' is removed due to invalid reference(s):
     [java]          java.lang.String
     [java]       Compilation unit 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_lkt.java' is removed due to invalid reference(s):
     [java]          java.lang.String
     [java]       Compilation unit 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/impl/cldr/DateTimeFormatInfoImpl_jgo.java' is removed due to invalid reference(s):
     [java]          java.lang.String

.
.
.
..
   [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Object.java'
     [java]          [ERROR] java.lang.Throwable cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/core/client/JavaScriptObject.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type

Have you cleaned your .gwt-unitCache? IIRC that might be a reason. 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment