ShubhenTibco / gwt-comet

Automatically exported from code.google.com/p/gwt-comet
0 stars 0 forks source link

Not able to instantiate CometSerializer on Browser Page refresh #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create A Comet Client
2.Start A comet Session
3.Close the Comet Client on Browser refresh using the windowcloseing event

What is the expected output? What do you see instead?
Application should instantiale the Comet serializer again 

MyCometSerialzer serialzer=GWT.create(MyCometSerialzer.class)

What version of the product are you using? On what operating system?
Comet 1.2.5

Please provide any additional information below.
 Error 

00:01:09.546 [ERROR] Generator 
'net.zschech.gwt.comet.rebind.CometSerializerGenerator' threw an exception 
while rebinding 'com.ril.vnoc.client.comet.JVOCCometSerializer'
java.lang.NullPointerException: null    at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.findReusableCachedFieldSeri
alizerIfAvailable(TypeSerializerCreator.java:339)   at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.createFieldSerializer(TypeS
erializerCreator.java:271)  at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.createFieldSerializers(Type
SerializerCreator.java:299)     at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.realize(TypeSerializerCreat
or.java:200)    at 
net.zschech.gwt.comet.rebind.CometSerializerGenerator.generateIncrementally(Come
tSerializerGenerator.java:119)  at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(Stan
dardGeneratorContext.java:670)  at 
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)   at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOrac
le.java:79)     at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:2
76)     at 
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:1
47)     at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:600)    at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)  at 
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)    at 
com.google.gwt.core.shared.GWT.create(GWT.java:72)  at 
com.google.gwt.core.client.GWT.create(GWT.java:86)  at 
com.ril.vnoc.client.comet.JVOCCometClient.<clinit>(JVOCCometClient.java:33)     at 
com.ril.vnoc.client.application.login.LoginPresenter.createCometClient(LoginPres
enter.java:98)  at 
com.ril.vnoc.client.application.login.LoginPresenter.access$2(LoginPresenter.jav
a:97)   at 
com.ril.vnoc.client.application.login.LoginPresenter$1$1.onSuccess(LoginPresente
r.java:84)  at 
com.ril.vnoc.client.application.login.LoginPresenter$1$1.onSuccess(LoginPresente
r.java:1)   at 
com.gwtplatform.dispatch.client.DispatchCall.onExecuteSuccess(DispatchCall.java:
157)    at 
com.gwtplatform.dispatch.rpc.client.RpcDispatchExecuteCall.access$1(RpcDispatchE
xecuteCall.java:1)  at 
com.gwtplatform.dispatch.rpc.client.RpcDispatchExecuteCall$1.onSuccess(RpcDispat
chExecuteCall.java:60)  at 
com.gwtplatform.dispatch.rpc.client.RpcDispatchExecuteCall$1.onSuccess(RpcDispat
chExecuteCall.java:1)   at 
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(Re
questCallbackAdapter.java:232)  at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:259)     at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.ja
va:412)     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:172
)   at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForRetu
rn(BrowserChannelServer.java:338)   at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:219)   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:9
1)  at com.google.gwt.core.client.impl.Impl.apply(Impl.java)    at 
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)  at 
sun.reflect.GeneratedMethodAccessor75.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:172
)   at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServ
er.java:293)    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelSe
rver.java:547)  at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by palshub...@gmail.com on 21 Apr 2015 at 9:29