Random Compilation Errors in GWT Development Shell

11 views
Skip to first unread message

kursat

unread,
Nov 20, 2008, 12:08:28 PM11/20/08
to Google Web Toolkit
Hi everyone,

I have a question for experts.

I have a project that uses spring(latest)+hibernate4gwt 1.1.1 (ejb3
pojos)+gwt 1.5.3. I recently added hibernate4gwt module, done proper
configurations and it compiles successfully and runs as expected in
server mode + any browser.

Then, I have an Eclipse launch configuration for GWT development shell
with -noserver option in order to debug GUI. I added hibernate4gwt jar
file to this configuration, start it.

Now every time I run GWT development shell, I get different
"Compilation Unit" errors. These compilation units are always EJB3
pojos but each time, error changes. One time it complains about one
pojo one time another. These errors are always "not finding a
definition for an annotation". The problem is that, in each run,
complained annotation is different. I can not seem to find any logic
about the root cause of the error.

I doubt that this is a bug of GWT development shell, because command
line compilation has no errors.

Can any one give any suggestions about this weird problem? I can not
find any resource about this error because there is not well defined
error.

For example: I get this error one time:

Processing types in compilation unit: jar:file:/D:/yeniprojeler/
workspace/keys-lib/hibernate4gwt/hibernate4gwt-1.1.jar!/net/sf/
hibernate4gwt/emul/java5/ejb3/org/hibernate/annotations/
NamedNativeQuery.java
Found type 'NamedNativeQuery'

Found type 'NamedNativeQuery'


[ERROR]
java.lang.ClassNotFoundException:
org.hibernate.annotations.FlushModeType
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral
(TypeOracleMediator.java:753)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
(TypeOracleMediator.java:680)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod
(TypeOracleMediator.java:976)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods
(TypeOracleMediator.java:1044)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
(TypeOracleMediator.java:1434)
at com.google.gwt.dev.javac.TypeOracleMediator.refresh
(TypeOracleMediator.java:382)
at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:137)
at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:
477)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:252)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:72)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)


In the second run, I get this error:

Processing types in compilation unit: jar:file:/D:/yeniprojeler/
workspace/keys-lib/hibernate4gwt/hibernate4gwt-1.1.jar!/net/sf/
hibernate4gwt/emul/java5/ejb3/org/hibernate/annotations/MapKey.java
Found type 'MapKey'

[ERROR]
java.lang.ClassNotFoundException: javax.persistence.Column
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral
(TypeOracleMediator.java:753)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValueArray
(TypeOracleMediator.java:716)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
(TypeOracleMediator.java:666)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod
(TypeOracleMediator.java:976)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods
(TypeOracleMediator.java:1044)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
(TypeOracleMediator.java:1434)
at com.google.gwt.dev.javac.TypeOracleMediator.refresh
(TypeOracleMediator.java:382)
at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:137)
at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:
477)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:252)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:72)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

In the third run, I get another error unrelated with the errors above.

What is your ideas, where shall I look first?

Thanks for your help.

kursat

unread,
Nov 20, 2008, 1:47:41 PM11/20/08
to Google Web Toolkit
For addition:

I discovered that, there is another error occuring before compilaiton
unit errors.
I'm not sure if this is related because this errors happens switching
between modules. (I have two modules, one for login page, one for main
application. Login page loads, I submit my login form, this error
happens before "Loading" page of my main module)

[ERROR] Uncaught exception escaped
java.util.ConcurrentModificationException: null
at java.util.AbstractList$Itr.checkForComodification
(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at com.google.gwt.user.client.ui.ClickListenerCollection.fireClick
(ClickListenerCollection.java:33)
at com.google.gwt.user.client.ui.Image.onBrowserEvent(Image.java:484)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
1287)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
(IDispatchProxy.java:155)
Reply all
Reply to author
Forward
0 new messages