[Dolphin] Problems with BlindCommandBatcher

helmut.at.work helmut.at.work" <helmut.at.work@gmail.com
Wed, 01 Apr 2015 09:18:07 +0200


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 expected. (OpenDolphin rocks :)

Now I add some more Columns and changed the defferMillis value of the Batcher to see the performance impact.
                                BlindCommandBatcher batcher = new BlindCommandBatcher();
                                batcher.setDeferMillis(1000);
                                batcher.setMergeValueChanges(true);

Exception "There already is a presentation model with id '6142' known to the 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.IllegalStateException: 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.dispatchHandle(ClientConnector.groovy:139)
                 at org.opendolphin.core.client.comm.ClientConnector.processResults(ClientConnector.groovy:120)
                 at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                 at java.lang.reflect.Method.invoke(Method.java:483)
                 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
                 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
                 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:368)
                 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
                 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
                 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
                 at org.opendolphin.core.client.comm.ClientConnector$_startCommandProcessing_closure3_closure12.doCall(ClientConnector.groovy:85)
                 at org.opendolphin.core.client.comm.ClientConnector$_startCommandProcessing_closure3_closure12.doCall(ClientConnector.groovy)
                 at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                 at java.lang.reflect.Method.invoke(Method.java:483)
                 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
                 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
                 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278)
                 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java: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/1597563532.run(Unknown Source)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
                 at com.sun.javafx.application.PlatformImpl$$Lambda$47/2052454759.run(Unknown Source)
                 at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
                 at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                 at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
                 at com.sun.glass.ui.win.WinApplication$$Lambda$38/471952006.run(Unknown Source)
                 at java.lang.Thread.run(Thread.java:745)