Issue 33 in gwt-mobile-webkit: GWT 2.2 and gwt-html5-database incompatiblity

36 views
Skip to first unread message

gwt-mobi...@googlecode.com

unread,
Apr 3, 2011, 6:58:11 PM4/3/11
to gwt-mobi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 33 by big.coffee.lover: GWT 2.2 and gwt-html5-database
incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Compiling a project that uses GWT 2.2 and gwt-html5-database, the following
error is thrown.

[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at
com.google.code.gwt.database.rebind.DataServiceGenerator.generate(DataServiceGenerator.java:71)

Shawn


gwt-mobi...@googlecode.com

unread,
Apr 6, 2011, 8:04:13 AM4/6/11
to gwt-mobi...@googlegroups.com
Updates:
Labels: Gwt-2.2 API-Database

Comment #1 on issue 33 by bguijt: GWT 2.2 and gwt-html5-database
incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

(No comment was entered for this change.)

gwt-mobi...@googlecode.com

unread,
Apr 6, 2011, 8:08:16 AM4/6/11
to gwt-mobi...@googlegroups.com

Comment #2 on issue 33 by bguijt: GWT 2.2 and gwt-html5-database
incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Thanks for reporting. Will look at it as soon as I can.

Bart.

gwt-mobi...@googlecode.com

unread,
Apr 6, 2011, 9:26:01 AM4/6/11
to gwt-mobi...@googlegroups.com

Comment #3 on issue 33 by Peter.Nu...@googlemail.com: GWT 2.2 and
gwt-html5-database incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Just try to recompile the database with gwt 2.2

gwt-mobi...@googlecode.com

unread,
May 5, 2011, 10:07:43 AM5/5/11
to gwt-mobi...@googlegroups.com

Comment #4 on issue 33 by moor...@gmail.com: GWT 2.2 and gwt-html5-database
incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

It does appear to be a simple recompilation.

See this bug in another project for more details:
http://code.google.com/p/gwt-google-apis/issues/detail?id=447

gwt-mobi...@googlecode.com

unread,
Jun 22, 2011, 7:29:09 PM6/22/11
to gwt-mobi...@googlegroups.com

Comment #5 on issue 33 by ph...@tower.ie: GWT 2.2 and gwt-html5-database
incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

I tried recompiling against GWT 2.3.0 (on Windows Vista) but I got the
following error:

compile:
[mkdir] Created dir:
C:\Users\me\gwt\gwt-mobile-webkit\applicationcache\build\out\appcache\bin
[gwt.javac]
C:\Users\me\gwt\gwt-mobile-webkit\applicationcache\appcache\build.xml:21:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
[gwt.javac] Compiling 5 source files to
C:\Users\me\gwt\gwt-mobile-webkit\applicationcache\build\out\appcache\bin
[gwt.javac]
C:\Users\me\gwt\gwt-mobile-webkit\applicationcache\appcache\src\com\google\code\gwt\appcache\linker\IFrameAppCacheLinker.java:208:
doEmitCompilation(com.google.gwt.core.ext.TreeLogger,com.google.gwt.core.ext.LinkerContext,com.google.gwt.core.ext
.linker.CompilationResult,com.google.gwt.core.ext.linker.ArtifactSet) in
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker cannot be applied
to
(com.google.gwt.core.ext.TreeLogger,com.google.gwt.core.ext.LinkerContext,com.google.gwt.core.ext.linker.Com
pilationResult)
[gwt.javac] EmittedArtifact htmlArtifact = doEmitCompilation(logger,
context, cr);

Does this look like something silly on my part or is there a problem with
GWT 2.3?

Thanks,
Phil

gwt-mobi...@googlecode.com

unread,
Jun 25, 2011, 7:22:11 AM6/25/11
to gwt-mobi...@googlegroups.com
Updates:
Status: Accepted

Comment #6 on issue 33 by bguijt: GWT 2.2 and gwt-html5-database
incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Hi Phil,

It looks like you are compiling the 'appcache' module which is in a, let's
say, 'experimental' state :-) That code won't compile to any GWT 2.x
release.

However, if you CD into the /database module of your gwt-mobile-webkit
checkout, enter "ant clean dist" command, it would compile with any GWT
release (GWT 2.3 gives errors related to missing validation types, but
won't affect the result. Working on that).

HTH,
Bart

gwt-mobi...@googlecode.com

unread,
Jul 27, 2011, 6:54:15 AM7/27/11
to gwt-mobi...@googlegroups.com

Comment #7 on issue 33 by riccardo...@gmail.com: GWT 2.2 and
gwt-html5-database incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33


Hello

Done the following:

- Tried HelloDatabase in dev mode on Chrome (12.0.742.122 m), using GWT
2.3.0. Got the com.google.gwt.core.ext.typeinfo.JClassType exception.
- Tried the same with a GWT 2.1 in dev mode. Worked fine except for the
following:

12:40:40.159 [ERROR] [hellodatabase] Uncaught exception escaped
java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$
cannot be cast to java.util.Date
at
com.google.code.gwt.database.sample.hellodatabase.client.ClickRow$.getClicked$(ClickRow.java)
at
com.google.code.gwt.database.sample.hellodatabase.client.HelloDatabase$2$1$1.onSuccess(HelloDatabase.java:94)
at
com.google.code.gwt.database.client.service.callback.list.TransactionCallbackListCallback.onTransactionSuccess(TransactionCallbackListCallback.java:61)
at
com.google.code.gwt.database.client.impl.DatabaseImpl.handleSuccess(DatabaseImpl.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

But the clickcount went fine. The question would be: do you plan to fix the
issue, or is there any new workaround we may apply? I definitely understand
it's quite some deep re-writing of the existing code, being a compatibility
issue. But as you perfectly already know, it's quite a blocking one.

Please let me know if you need any further detail.

Riccardo

gwt-mobi...@googlecode.com

unread,
Aug 19, 2011, 8:38:20 AM8/19/11
to gwt-mobi...@googlegroups.com

Comment #8 on issue 33 by schragma...@gmail.com: GWT 2.2 and
gwt-html5-database incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Hi

When do you think there will be a new version, which is compatible with GWT
2.3?
I tried to check out and build it manually as suggested, but I ended up
with other compilation errors:

[ERROR] Line 71: The method getCanonicalName() is undefined for the type
Class<Database>
[ERROR] Line 72: The method getCanonicalName() is undefined for the
type Class<SQLTransaction>
[ERROR] Line 73: The method getCanonicalName() is undefined for the
type Class<DataServiceUtils>
[ERROR] Line 74: The method getCanonicalName() is undefined for the
type Class<VoidCallback>
[ERROR] Line 75: The method getCanonicalName() is undefined for the
type Class<ListCallback>
[ERROR] Line 76: The method getCanonicalName() is undefined for the
type Class<ScalarCallback>
[ERROR] Line 77: The method getCanonicalName() is undefined for the
type Class<RowIdListCallback>
[ERROR] Line 78: The method getCanonicalName() is undefined for the
type Class<DataServiceStatementCallback>
[ERROR] Line 79: The method getCanonicalName() is undefined for the
type Class<StatementCallbackVoidCallback>
[ERROR] Line 80: The method getCanonicalName() is undefined for the
type Class<StatementCallbackListCallback>
[ERROR] Line 81: The method getCanonicalName() is undefined for the
type Class<StatementCallbackRowIdListCallback>
[ERROR] Line 82: The method getCanonicalName() is undefined for the
type Class<TransactionCallbackVoidCallback>
[ERROR] Line 83: The method getCanonicalName() is undefined for the
type Class<TransactionCallbackScalarCallback>
[ERROR] Line 84: The method getCanonicalName() is undefined for the
type Class<TransactionCallbackListCallback>
[ERROR] Line 85: The method getCanonicalName() is undefined for the
type Class<TransactionCallbackRowIdListCallback>
[ERROR] Line 86: The method getCanonicalName() is undefined for the
type Class<DatabaseException>
[ERROR] Line 265: The method getCanonicalName() is undefined for the
type Class<ServiceMethodCreator>
[ERROR] Line 271: The method forName(String) is undefined for the
type Class
[ERROR] Line 272: The method newInstance() is undefined for the type
Class<capture#1-of ?>
[ERROR] Errors
in 'jar:file:/C:/Users/MSc/Desktop/gwt-html5-database_new.jar!/com/google/code/gwt/database/rebind/GeneratorUtils.java'
[ERROR] Line 103: The method getCanonicalName() is undefined for the
type Class<capture#1-of ?>
[ERROR] Line 166: The method getCanonicalName() is undefined for the
type Class<capture#2-of ?>
[ERROR] Line 176: The method getCanonicalName() is undefined for the
type Class<capture#3-of ?>
[ERROR] Cannot proceed due to previous errors

Thank you
Manuel

gwt-mobi...@googlecode.com

unread,
May 23, 2012, 8:19:09 AM5/23/12
to gwt-mobi...@googlegroups.com

Comment #9 on issue 33 by cspe...@gmail.com: GWT 2.2 and gwt-html5-database
incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Hi

I simply recompiled the sources of the gwt-html5-database project and now
it works again with GWT 2.4. But now I have to maintain this JAR by myself.
Can you please upload the recompiled version (1.5.2) to your maven
repository?

Regards
Christoph


gwt-mobi...@googlecode.com

unread,
Jun 27, 2012, 5:01:27 AM6/27/12
to gwt-mobi...@googlegroups.com

Comment #10 on issue 33 by dominik....@gmail.com: GWT 2.2 and
gwt-html5-database incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Facing the same problem, would appreciate an official version that works
with GWT 2.4

gwt-mobi...@googlecode.com

unread,
Jul 12, 2012, 5:02:51 PM7/12/12
to gwt-mobi...@googlegroups.com

Comment #11 on issue 33 by b.marcha...@gmail.com: GWT 2.2 and
gwt-html5-database incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

Same problem, I tried to recompile like Christoph did. I did use the 1.5.1
code and that did not solve the issue. please post new official version.

@ Christoph, could you actually post the jar you created, meanwhile it
would help guys like me :-)) ?

Benoit

gwt-mobi...@googlecode.com

unread,
Jul 12, 2012, 9:37:35 PM7/12/12
to gwt-mobi...@googlegroups.com

Comment #12 on issue 33 by big.coff...@gmail.com: GWT 2.2 and
gwt-html5-database incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

These are not official versions by any means, but are my gwt-html5-database
builds...

I don't post all the src as I built against a distributed GWT version and
not against GWT truck, didn't have the time to figure out the ant build
completely and just hardcoded my paths to the GWT_HOME I was using (= too
embarrassing to post my build file)

https://github.com/Shawn-in-Tokyo/gwt-mobile-webkit-builds

gwt-mobi...@googlecode.com

unread,
Jul 13, 2012, 4:18:43 PM7/13/12
to gwt-mobi...@googlegroups.com

Comment #13 on issue 33 by b.marcha...@gmail.com: GWT 2.2 and
gwt-html5-database incompatiblity
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=33

thanks a lot 'big coffee lover' :-)

Thanks to the provided 'temporary' jar, I could compile successfully ..

BUT when running the provided example, I get now the same error as Riccardo
(see comment 7)
java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$
cannot be cast to java.util.Date

May be I can develop around and avoid Dates ... but that does not look like
production quality. Riccardo reported the problem one year ago ... it is
worrying !!!!!

Reply all
Reply to author
Forward
0 new messages