Friday, June 8, 2018

How is GWT Emulated compiled

Hi Group,

Does any one how is GWT emulated source gets compiled and used by GWT at runtime?

Thanks,
-Hrishikesh

--
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.

Thursday, June 7, 2018

Re: GWT Update to 2.8.2

The errors you are getting aren't related to your Locale supersource (or at least not directly), but to the fact that your project has conflicting JRE sources which don't make sense, and so cannot be compiled. Your version of "gwtx" cannot be used with any version of GWT released within the last 9 years or so.

The first set of errors in your log, from GWT's internal i18n/etc, are the same error you are going to get from every type in your entire application, because java.lang.Object is broken in your project:
[ERROR] java.lang.Object cannot be resolved to a type

Searching for Object.java shows us the root cause:
   [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

And in turn, searching for Throwable.java...

     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Throwable.java'
     [java]          [ERROR] java.io.PrintStream cannot be resolved to a type

...

     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/io/PrintStream.java'
     [java]          [ERROR] java.io.FilterOutputStream cannot be resolved to a type

And finally

     [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

which by itself appears crazy, until you see where IOException comes from: 'jar:file:/opt/wnc/3rdPartyJars/lib/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/io/emul/java/io/IOException.java'.

Since GoogleCode is long dead, we can't see the sources there, but you can see them in some exported github projects, such as https://github.com/ttt43ttt/gwtx/blob/master/src/main/java/gwtx/java/io/emul/java/io/IOException.java. You can see there that gwtx is missing this constructor, but GWT 2.8.2 correctly has it (see https://gwt.googlesource.com/gwt/+/2.8.2/user/super/com/google/gwt/emul/java/io/IOException.java#37).

This is the root issue - IOException is redefined in gwtx, and is incompatible with "modern" (i.e. less than 9 years old) gwt-user.jar. Fix this, and these other resulting issues should go away (though there may be more issues if you do not entirely remove gwtx.jar, and possibly also CoreGWT-src.jar as well, but I cannot say without actually seeing the sources inside).


On Thursday, June 7, 2018 at 8:07:23 AM UTC-5, dinesh kumar wrote:
I have emulated few of the classes for example : java.util.Locale

But now all my code is always referring to this class instead of jre library. How and where can we specify where to look for?



On Tuesday, June 5, 2018 at 12:27:44 PM UTC+5:30, 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
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Throwable.java'
     [java]          [ERROR] java.io.PrintStream cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Class.java'
     [java]          [ERROR] com.google.gwt.core.client.JavaScriptObject cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/String.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/CloneNotSupportedException.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/io/PrintStream.java'
     [java]          [ERROR] java.io.FilterOutputStream cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/io/PrintWriter.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StackTraceElement.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/ClassNotFoundException.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/reflect/Method.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/CharSequence.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Iterable.java'
     [java]          [ERROR] java.util.Spliterator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/javaemul/internal/NativeRegExp.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/nio/charset/Charset.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StringBuffer.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/util/Locale.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StringBuilder.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Comparator.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/io/UnsupportedEncodingException.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Exception.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/emul/java/io/OutputStream.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [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
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/IntStream.java'
     [java]          [ERROR] java.util.OptionalDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Spliterator.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/SortedMap.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/AbstractStringBuilder.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/LocaleInfo.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [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'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/io/emul/java/io/Closeable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/io/emul/java/io/Flushable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/LongStream.java'
     [java]          [ERROR] java.util.OptionalDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/OptionalDouble.java'
     [java]          [ERROR] java.lang.Throwable cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Integer.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/OptionalInt.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/emul/java/util/stream/DoubleStream.java'
     [java]          [ERROR] java.util.OptionalDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/Stream.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/BaseStream.java'
     [java]          [ERROR] java.lang.AutoCloseable cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/IntSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Double.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Long.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Map.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Appendable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/DateTimeFormatInfo.java'
     [java]          [ERROR] com.google.gwt.i18n.shared.DateTimeFormatInfo cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/LocalizedNames.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/DateTimeConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/com/google/gwt/i18n/client/impl/LocaleInfoImpl.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/NumberConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/OptionalLong.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/emul/java/util/LongSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/NumberFormatException.java'
     [java]          [ERROR] java.lang.IllegalArgumentException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Number.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/DoubleSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/function/Predicate.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/function/BinaryOperator.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Optional.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/emul/java/util/stream/Collector.java'
     [java]          [ERROR] java.util.Set cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/AutoCloseable.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Collection.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Set.java'
     [java]          [ERROR] java.util.Collection cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/DateTimeFormatInfo.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/IllegalArgumentException.java'
     [java]          [ERROR] java.lang.Throwable cannot be resolved to a type

--
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.

Re: GWT Update to 2.8.2

I have emulated few of the classes for example : java.util.Locale

But now all my code is always referring to this class instead of jre library. How and where can we specify where to look for?



On Tuesday, June 5, 2018 at 12:27:44 PM UTC+5:30, 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
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Throwable.java'
     [java]          [ERROR] java.io.PrintStream cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Class.java'
     [java]          [ERROR] com.google.gwt.core.client.JavaScriptObject cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/String.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/CloneNotSupportedException.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/io/PrintStream.java'
     [java]          [ERROR] java.io.FilterOutputStream cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/io/PrintWriter.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StackTraceElement.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/ClassNotFoundException.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/reflect/Method.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/CharSequence.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Iterable.java'
     [java]          [ERROR] java.util.Spliterator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/javaemul/internal/NativeRegExp.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/nio/charset/Charset.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StringBuffer.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/util/Locale.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StringBuilder.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Comparator.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/io/UnsupportedEncodingException.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Exception.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/emul/java/io/OutputStream.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [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
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/IntStream.java'
     [java]          [ERROR] java.util.OptionalDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Spliterator.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/SortedMap.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/AbstractStringBuilder.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/LocaleInfo.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [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'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/io/emul/java/io/Closeable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/io/emul/java/io/Flushable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/LongStream.java'
     [java]          [ERROR] java.util.OptionalDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/OptionalDouble.java'
     [java]          [ERROR] java.lang.Throwable cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Integer.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/OptionalInt.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/emul/java/util/stream/DoubleStream.java'
     [java]          [ERROR] java.util.OptionalDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/Stream.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/stream/BaseStream.java'
     [java]          [ERROR] java.lang.AutoCloseable cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/IntSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Double.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Long.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Map.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Appendable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/DateTimeFormatInfo.java'
     [java]          [ERROR] com.google.gwt.i18n.shared.DateTimeFormatInfo cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/LocalizedNames.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/DateTimeConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/com/google/gwt/i18n/client/impl/LocaleInfoImpl.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/NumberConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/OptionalLong.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/emul/java/util/LongSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/NumberFormatException.java'
     [java]          [ERROR] java.lang.IllegalArgumentException cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Number.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/DoubleSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/function/Predicate.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/function/BinaryOperator.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Optional.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/emul/java/util/stream/Collector.java'
     [java]          [ERROR] java.util.Set cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/AutoCloseable.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Collection.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/util/Set.java'
     [java]          [ERROR] java.util.Collection cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/DateTimeFormatInfo.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/IllegalArgumentException.java'
     [java]          [ERROR] java.lang.Throwable cannot be resolved to a type

--
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.

Wednesday, June 6, 2018

The file war\WEB-INF\lib\gwt-servlet.jar has a different size than GWT SDK library gwt-servlet.jar; perhaps it is a different version? gwt-servlet.jar

Has anybody ran through this error using GWT 2.7

Description Resource Path Location Type
The file war\WEB-INF\lib\gwt-servlet.jar has a different size than GWT SDK library gwt-servlet.jar; perhaps it is a different version? gwt-servlet.jar /XXXXXXX/war/WEB-INF/lib Unknown Google Web Toolkit Problem

Thanks.
Abdenour

--
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.

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.

Re: GWT Emulated classes

See also https://github.com/gwtproject/old_google_code_wiki/blob/master/ResourceOracle.wiki.md

On Tuesday, June 5, 2018 at 12:23:45 PM UTC+2, Jens wrote:
GWT has a feature called "super source" which allows you to override existing source files with your own implementation. GWT itself uses this technique to emulate JRE classes and you can use that technique as well to emulate additional classes.

Take a look at http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml and scroll a little down until you see the headline "Overriding one package implementation with another" to get a short description of "super source".

All JRE classes emulated by GWT can be found in https://github.com/gwtproject/gwt/tree/master/user/super/com/google/gwt/emul and when you look at https://github.com/gwtproject/gwt/blob/master/user/super/com/google/gwt/emul/Emulation.gwt.xml you can see the <super-source /> tag. This tag does not set a path attribute which means that the whole folder which contains the Emulation.gwt.xml file should be treated as super source.


-- J.

--
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.

Tuesday, June 5, 2018

Re: GWT Emulated classes

GWT has a feature called "super source" which allows you to override existing source files with your own implementation. GWT itself uses this technique to emulate JRE classes and you can use that technique as well to emulate additional classes.

Take a look at http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml and scroll a little down until you see the headline "Overriding one package implementation with another" to get a short description of "super source".

All JRE classes emulated by GWT can be found in https://github.com/gwtproject/gwt/tree/master/user/super/com/google/gwt/emul and when you look at https://github.com/gwtproject/gwt/blob/master/user/super/com/google/gwt/emul/Emulation.gwt.xml you can see the <super-source /> tag. This tag does not set a path attribute which means that the whole folder which contains the Emulation.gwt.xml file should be treated as super source.


-- J.

--
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.