[ovirt-devel] GWT developer mode not working on fc23?

Vojtech Szocs vszocs at redhat.com
Wed Jun 15 15:19:05 UTC 2016


Hi Roman,

the latest Firefox version that supports NPAPI (Netscape plugin API),
which is needed when debugging GWT webapps via GWT browser plugin
(a.k.a the "classic" dev mode) is Firefox 26. In later FF releases,
they removed NPAPI which broke GWT debug browser plugin. Same story
for Chrome as well.

The "new" (and recommended) way to debug GWT webapps is "super" dev
mode: http://lists.ovirt.org/pipermail/devel/2016-February/012268.html

The "super" dev mode debugs GWT application in browser, using source
maps to map Java source code to generated JavaScript. The downside is
that you can't use Java IDE here.

I know that GWT debugging via Java IDE can be very slow, so I suggest
trying Chrome + "super" dev mode.

Vojtech


----- Original Message -----
> From: "Roman Mohr" <rmohr at redhat.com>
> To: "Alexander Wels" <awels at redhat.com>
> Cc: "devel" <devel at ovirt.org>, "Tomas Jelinek" <tjelinek at redhat.com>, "Vojtech Szocs" <vszocs at redhat.com>
> Sent: Tuesday, June 7, 2016 2:38:22 PM
> Subject: Re: GWT developer mode not working on fc23?
> 
> On Tue, Jun 7, 2016 at 2:28 PM, Alexander Wels <awels at redhat.com> wrote:
> > On Tuesday, June 07, 2016 02:15:07 PM Roman Mohr wrote:
> >> On Tue, Jun 7, 2016 at 2:00 PM, Roman Mohr <rmohr at redhat.com> wrote:
> >> > Hi,
> >> >
> >> > I wanted to debug some GWT code the first time on fc23. No matter if I
> >> > try to debug 4.0 or 3.6 I always see in my browser and in the gwt
> >> >
> >> > developer console:
> >> >         00:01:36.758 [ERROR] Unable to load module entry point class
> >> >
> >> > com.gwtplatform.mvp.client.ApplicationControllerImpl (see associated
> >> > exception for details)
> >> >
> >> > com.google.gwt.core.client.JavaScriptException: (NS_ERROR_FAILURE)
> >> > @com.google.gwt.storage.client.StorageImpl::getItem(Ljava/lang/String;Ljav
> >> > a/lang/String;)([string: 'localStorage', string:
> >> > 'ENGINE_WebAdmin_LogHead']): Component
> >> > returned failure code: 0x80004005 (NS_ERROR_FAILURE)
> >> > [nsIDOMStorage.getItem]
> >> > at
> >> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserCha
> >> > nnelServer.java:249) at
> >> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> >> > 136) at
> >> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
> >> > at
> >> > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> >> > 284) at
> >> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost
> >> > .java:91) at
> >> > com.google.gwt.storage.client.StorageImpl.getItem(StorageImpl.java) at
> >> > com.google.gwt.storage.client.Storage.getItem(Storage.java:257) at
> >> > org.ovirt.engine.ui.common.system.ClientStorageImpl.getLocalItemImpl(Clie
> >> > ntStorageImpl.java:53) at
> >> > org.ovirt.engine.ui.common.system.ClientStorageImpl.getLocalItem(ClientSt
> >> > orageImpl.java:46) at
> >> > org.ovirt.engine.ui.common.logging.LocalStorageLogHandler.readInt(LocalSt
> >> > orageLogHandler.java:56) at
> >> > org.ovirt.engine.ui.common.logging.LocalStorageLogHandler.setActive(Local
> >> > StorageLogHandler.java:48) at
> >> > org.ovirt.engine.ui.common.logging.LocalStorageLogHandler.init(LocalStora
> >> > geLogHandler.java:40) at
> >> > org.ovirt.engine.ui.common.system.BaseApplicationInit.initLocalStorageLog
> >> > Handler(BaseApplicationInit.java:120) at
> >> > org.ovirt.engine.ui.common.system.BaseApplicationInit.onBootstrap(BaseApp
> >> > licationInit.java:102) at
> >> > com.gwtplatform.mvp.client.ApplicationControllerImpl.init(ApplicationCont
> >> > rollerImpl.java:11) at
> >> > com.gwtplatform.mvp.client.ApplicationControllerImpl.onModuleLoad(Applica
> >> > tionControllerImpl.java:15) at
> >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > at
> >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >> > :62) at
> >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >> > mpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
> >> > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
> >> > at
> >> > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandl
> >> > er.java:200) at
> >> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserCh
> >> > annelServer.java:526) at
> >> > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.ja
> >> > va:364) at java.lang.Thread.run(Thread.java:745)
> >>
> >> And I am using Firefox 17 for it.
> >>
> >
> > Does FF17 have local storage? The exception appears to indicate it can't
> > load
> 
> I just know it worked before I upgraded from fc22.
> 
> > stuff from local storage. In particular it can't write/read some logging
> > stuff.
> > The problem with GWT debugger is you can't have too new of a FF/Chrome or
> > the
> > plugin won't run. I am actually running FF25 here and it is working fine.
> > Anything newer and the plugin is no longer supported.
> >
> FF 25 works.
> 
> Thanks :)
> Roman
> 
> >> > Thanks,
> >> > Roman
> >
> 



More information about the Devel mailing list