Friday, September 1, 2017

Re: GWT 2.8 RC1 - Could not merge 2 super sourced packages

I faced same problem with DateTimeFormat class under GWT 2.6 trying to use it on sever side. It exists both in user and some other (don't remember right now) jar.

вторник, 15 ноября 2016 г., 13:33:09 UTC+3 пользователь Ali Jalal написал:
Hi,

Just try comparing classes inside "gwtx.jar\com\googlecode\gwtx\java" (for example: for "java.util" package, look inside "gwtx.jar\com\googlecode\gwtx\java\util\emul\java\util") and "gwt-user.jar\com\google\gwt\emul\java" and remove classes from gwtx.jar which exists in gwt-user.jar. In my case, java.util.Locale was the only one conflicting class which by deleting "com\googlecode\gwtx\java\util\emul\java\util\Locale.java" file from gwtx.jar, problem solved.

Regards,
Ali.

On Tue, Nov 15, 2016 at 11:16 AM, Saurabh Joshi <joshisau...@gmail.com> wrote:
Hi Ali,

I am facing the same issue what you have described (while upgrading from GWT 2.7 to 2.8) in your post also I am using GWTx library in my dependencies, so I wanted to try your solution but unfortunately I did not understand the solution.
Can you please elaborate on how did you remove java.util.Locale.java from emulated classes of GWTx?

Thanks,
Saurabh.

On Tuesday, 2 August 2016 14:02:01 UTC+5:30, Ali Jalal wrote:
I compared emulated classes in 'java.util' and 'java.beans' packages of GWT and GWTx and I found *java.util.Locale.java* which emulated in both packages. By removing java.util.Locale.java from emulated classes of GWTx, problem solved.

Thanks Thomas.


On Tue, Aug 2, 2016 at 9:44 AM, Ali Jalal <ali.j...@gmail.com> wrote:
Hi,

I compiled project with -strict and almost same errors logged (I think GWT compiler does not merge 2 super-source packages like 'java.util' and 'java.beans'). Here is the stacktrace:

     [java] Compiling module com.test.sample.Sample
     [java]    Tracing compile failure path for type 'com.google.gwt.cell.client.EditTextCell'
     [java]       [ERROR] Errors in 'com/google/gwt/cell/client/EditTextCell.java'
     [java]          [ERROR] Line 336: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.dom.builder.client.DomStylesBuilder'
     [java]       [ERROR] Errors in 'com/google/gwt/dom/builder/client/DomStylesBuilder.java'
     [java]          [ERROR] Line 113: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.dom.client.DataTransfer'
     [java]       [ERROR] Errors in 'com/google/gwt/dom/client/DataTransfer.java'
     [java]          [ERROR] Line 127: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.user.cellview.client.AbstractCellTable'
     [java]       [ERROR] Errors in 'com/google/gwt/user/cellview/client/AbstractCellTable.java'
     [java]          [ERROR] Line 744: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 477: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.user.client.ui.MultiWordSuggestOracle'
     [java]       [ERROR] Errors in 'com/google/gwt/user/client/ui/MultiWordSuggestOracle.java'
     [java]          [ERROR] Line 534: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.dom.client.HeadingElement'
     [java]       [ERROR] Errors in 'com/google/gwt/dom/client/HeadingElement.java'
     [java]          [ERROR] Line 91: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.user.client.ui.AbsolutePanel'
     [java]       [ERROR] Errors in 'com/google/gwt/user/client/ui/AbsolutePanel.java'
     [java]          [ERROR] Line 280: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.user.client.ui.UIObject'
     [java]       [ERROR] Errors in 'com/google/gwt/user/client/ui/UIObject.java'
     [java]          [ERROR] Line 657: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 775: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.safehtml.shared.UriUtils'
     [java]       [ERROR] Errors in 'com/google/gwt/safehtml/shared/UriUtils.java'
     [java]          [ERROR] Line 240: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 235: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 84: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.user.cellview.client.CellBasedWidgetImplTrident'
     [java]       [ERROR] Errors in 'com/google/gwt/user/cellview/client/CellBasedWidgetImplTrident.java'
     [java]          [ERROR] Line 253: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 191: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 157: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 245: ROOT cannot be resolved or is not a field
     [java]       [ERROR] Errors in 'com/google/gwt/user/cellview/client/CellBasedWidgetImpl.java'
     [java]          [ERROR] Line 74: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.user.cellview.client.CellBasedWidgetImpl'
     [java]       [ERROR] Errors in 'com/google/gwt/user/cellview/client/CellBasedWidgetImpl.java'
     [java]          [ERROR] Line 74: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.dom.builder.shared.HtmlStylesBuilder'
     [java]       [ERROR] Errors in 'com/google/gwt/dom/builder/shared/HtmlStylesBuilder.java'
     [java]          [ERROR] Line 111: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.view.client.DefaultSelectionEventManager'
     [java]       [ERROR] Errors in 'com/google/gwt/view/client/DefaultSelectionEventManager.java'
     [java]          [ERROR] Line 154: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 156: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'com.google.gwt.i18n.shared.DateTimeFormat'
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/shared/DateTimeFormat.java'
     [java]          [ERROR] Line 1399: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Line 1405: ROOT cannot be resolved or is not a field
     [java]    Tracing compile failure path for type 'java.util.logging.Level'
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/logging/Level.java'
     [java]          [ERROR] Line 90: ROOT cannot be resolved or is not a field
     [java]    Finding entry point classes
     [java]       Tracing compile failure path for type 'com.google.gwt.logging.client.LogConfiguration'
     [java]          [ERROR] Errors in 'com/google/gwt/logging/client/LogConfiguration.java'
     [java]             [ERROR] java.util.logging.Level cannot be resolved to a type
     [java]          [ERROR] Errors in 'com/google/gwt/emul/java/util/logging/Handler.java'
     [java]             [ERROR] java.util.logging.Level cannot be resolved to a type
     [java]          [ERROR] Errors in 'com/google/gwt/emul/java/util/logging/Logger.java'
     [java]             [ERROR] java.util.logging.Level cannot be resolved to a type
     [java]          [ERROR] Errors in 'com/google/gwt/emul/java/util/logging/Level.java'
     [java]             [ERROR] Line 90: ROOT cannot be resolved or is not a field
     [java]          [ERROR] Errors in 'com/google/gwt/emul/java/util/logging/LogRecord.java'
     [java]             [ERROR] java.util.logging.Level cannot be resolved to a type
     [java]          [ERROR] Errors in 'com/google/gwt/emul/java/util/logging/Formatter.java'
     [java]             [ERROR] java.util.logging.LogRecord cannot be resolved to a type
     [java]       Tracing compile failure path for type 'com.test.sample.client.SampleEntryPoint'
     [java]          [ERROR] Errors in 'file:/C:/Users/user/AppData/Local/Temp/sample/gwt-classpath/com/test/sample/client/SampleEntryPoint.java'
     [java]             [ERROR] com.test.core.client.service.DefaultAsyncCallback cannot be resolved to a type
     [java]          [ERROR] Errors in 'file:/C:/Users/user/AppData/Local/Temp/sample/gwt-classpath/com/test/core/client/entrypoint/BaseEntryPoint.java'
     [java]             [ERROR] com.google.gwt.user.client.ui.Widget cannot be resolved to a type
     [java]          [ERROR] Errors in 'file:/C:/Users/user/AppData/Local/Temp/sample/gwt-classpath/com/test/core/client/service/DefaultAsyncCallback.java'
     [java]             [ERROR] com.google.gwt.user.client.ui.Widget cannot be resolved to a type


Thanks.


On Mon, Aug 1, 2016 at 9:40 PM, Thomas Broyer <t.br...@gmail.com> wrote:
Try compiling with -strict to see what those 16 classes in error are. Given GWTx hasn't been updated for years, it's highly likely there's some conflicting emulated classes with modern GWT.

--
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-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


--
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-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

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