[Dolphin] Problems with BlindCommandBatcher

Dierk König Dierk König
Wed, 1 Apr 2015 11:53:34 +0200


Hi Helmut ,

Thanks for the kind words!

Well, I can only repeat the error message :-) your server side created a new PM with that ID (it appears that you are setting it yourself, ie not auto-generated) and the client already has such a PM. 

For more advise, I would need to see the log or the code. 

Cheers
Dierk

sent from:mobile 

> Am 01.04.2015 um 09:18 schrieb helmut.at.work <helmut.at.work@gmail.com>:
> 
> Hello,
> 
> I played around with the lazy loading feature.
> I'm using JDK8  Java and Maven (sorry no Groovy knowledge)
> I was able to refactor the "LazyLoadingView" to Java. All worked as expect=
ed. (OpenDolphin rocks :)
> 
> Now I add some more Columns and changed the defferMillis value of the Batc=
her to see the performance impact.
>                               BlindCommandBatcher batcher = new BlindCom=
mandBatcher();
>                               batcher.setDeferMillis(1000);
>                               batcher.setMergeValueChanges(true);
> 
> Exception "There already is a presentation model with id '6142' known to t=
he client." if I scroll down the table.
> It only occurs with a value > 50.
> Any Ideas?
> 
> Greetings Helmut
> 
> 
> Exception in thread "JavaFX Application Thread" java.lang.IllegalStateExce=
ption: There already is a presentation model with id '6142' known to the client.
>                at org.opendolphin.core.client.comm.ClientConnector.handle(=
ClientConnector.groovy:190)
>                at org.opendolphin.core.client.comm.ClientConnector$handle$=
1.callCurrent(Unknown Source)
>                at org.opendolphin.core.client.comm.ClientConnector.dispatc=
hHandle(ClientConnector.groovy:139)
>                at org.opendolphin.core.client.comm.ClientConnector.process=
Results(ClientConnector.groovy:120)
>                at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Sou=
rce)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati=
ngMethodAccessorImpl.java:43)
>                at java.lang.reflect.Method.invoke(Method.java:483)
>                at org.codehaus.groovy.reflection.CachedMethod.invoke(Cache=
dMethod.java:90)
>                at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:23=
3)
>                at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.i=
nvokeMethod(ClosureMetaClass.java:368)
>                at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.jav=
a:909)
>                at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.c=
allCurrent(PogoMetaClassSite.java:66)
>                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.ca=
llCurrent(AbstractCallSite.java:145)
>                at org.opendolphin.core.client.comm.ClientConnector$_startC=
ommandProcessing_closure3_closure12.doCall(ClientConnector.groovy:85)
>                at org.opendolphin.core.client.comm.ClientConnector$_startC=
ommandProcessing_closure3_closure12.doCall(ClientConnector.groovy)
>                at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Sou=
rce)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati=
ngMethodAccessorImpl.java:43)
>                at java.lang.reflect.Method.invoke(Method.java:483)
>                at org.codehaus.groovy.reflection.CachedMethod.invoke(Cache=
dMethod.java:90)
>                at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:23=
3)
>                at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.i=
nvokeMethod(ClosureMetaClass.java:278)
>                at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.jav=
a:909)
>                at groovy.lang.Closure.call(Closure.java:423)
>                at groovy.lang.Closure.call(Closure.java:417)
>                at groovy.lang.Closure.run(Closure.java:504)
>                at com.sun.javafx.application.PlatformImpl.lambda$null$164(=
PlatformImpl.java:292)
>                at com.sun.javafx.application.PlatformImpl$$Lambda$48/15975=
63532.run(Unknown Source)
>                at java.security.AccessController.doPrivileged(Native Metho=
d)
>                at com.sun.javafx.application.PlatformImpl.lambda$runLater$=
165(PlatformImpl.java:291)
>                at com.sun.javafx.application.PlatformImpl$$Lambda$47/20524=
54759.run(Unknown Source)
>                at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Invoke=
LaterDispatcher.java:95)
>                at com.sun.glass.ui.win.WinApplication._runLoop(Native Meth=
od)
>                at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinA=
pplication.java:102)
>                at com.sun.glass.ui.win.WinApplication$$Lambda$38/471952006=
.run(Unknown Source)
>                at java.lang.Thread.run(Thread.java:745)
> 
> 
> 
> 
> _______________________________________________
> Dolphin mailing list
> Dolphin@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/dolphin