fbpx

As I apply this GWT MVP project, i get an annoying SerializationException. Change the Java This is

(Last Updated On: October 10, 2010)
As I apply this GWT MVP project, i get an annoying SerializationException. Change the Java serialVersionUID?

0    [main] DEBUG org.apache.jasper.compiler.JspRuntimeContext  – Parent class loader is: ContextLoader@null
0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – Scratch dir for the JSP engine is: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_127_0_0_1_8888_war____-g0qk00\jsp
0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – IMPORTANT: Do not modify the generated servlets
(Contribute1Presenter.java:70) 2010-10-10 14:05:52,718 [INFO ] Calling doNext in Contribute1Presenter
(Contribute1Presenter.java:80) 2010-10-10 14:05:52,953 [ERROR] Handle Failure:
com.google.gwt.user.client.rpc.SerializationException:
null
at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:161)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:145)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at net.customware.gwt.dispatch.client.service.DispatchService_Proxy.execute(DispatchService_Proxy.java:33)
at net.customware.gwt.dispatch.client.DefaultDispatchAsync.execute(DefaultDispatchAsync.java:27)
at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.doNext(Contribute1Presenter.java:74)
at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.access$1(Contribute1Presenter.java:69)
at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter$2.onClick(Contribute1Presenter.java:107)
at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54)
at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)
at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116)
at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:100)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)

0    [main] DEBUG org.apache.jasper.compiler.JspRuntimeContext  – Parent class loader is: ContextLoader@null0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – Scratch dir for the JSP engine is: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_127_0_0_1_8888_war____-g0qk00\jsp0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – IMPORTANT: Do not modify the generated servlets(Contribute1Presenter.java:70) 2010-10-10 14:05:52,718 [INFO ] Calling doNext in Contribute1Presenter(Contribute1Presenter.java:80) 2010-10-10 14:05:52,953 [ERROR] Handle Failure:com.google.gwt.user.client.rpc.SerializationException:null    at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:161)    at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:145)    at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)    at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)    at net.customware.gwt.dispatch.client.service.DispatchService_Proxy.execute(DispatchService_Proxy.java:33)    at net.customware.gwt.dispatch.client.DefaultDispatchAsync.execute(DefaultDispatchAsync.java:27)    at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.doNext(Contribute1Presenter.java:74)    at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.access$1(Contribute1Presenter.java:69)    at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter$2.onClick(Contribute1Presenter.java:107)    at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54)    at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)    at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)    at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)    at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116)    at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:100)    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307)    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)    at java.lang.reflect.Method.invoke(Unknown Source)    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)    at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)    at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)    at java.lang.reflect.Method.invoke(Unknown Source)    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)    at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)    at java.lang.Thread.run(Unknown Source)

This will generate the following GT compiler warning which is obvisouly related: (I am using GWT 2.0.4)

Compiling module co.uk.hivedevelopment.greet.GreetMvp

Scanning for additional dependencies: jar:file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloMvp/war/WEB-INF/lib/gwt-dispatch-1.0.0-SNAPSHOT.jar!/net/customware/gwt/dispatch/client/DefaultDispatchAsync.java

Adding ’38’ new generated units

Validating newly compiled units

[WARN] Warnings in ‘generated://41F000321E9BFD855275D653B74C311A/net/customware/gwt/dispatch/client/service/DispatchService_TypeSerializer.java’

[WARN] Line 61: Referencing deprecated class ‘com.google.gwt.user.client.rpc.SerializableException’

See snapshot: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\DispatchService_TypeSerializer61132.java

Help????

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Subscribe For Latest Updates

Sign up to best of business news, informed analysis and opinions on what matters to you.
Invalid email address
We promise not to spam you. You can unsubscribe at any time.

NOTE!

Check NEW site on stock forex and ETF analysis and automation

Scroll to Top