Re: How to use new IPageStore
Thanks a million Sven! On Tue, 23 Apr 2019 at 04:02, Sven Meier wrote: > > Hi Maxim, > > wicketstuff-datastore has examples for this, like: > > setPageManagerProvider(new DefaultPageManagerProvider(this) > { > @Override > protected IPageStore newPersistentStore() > { > > HazelcastInstance instance = > Hazelcast.newHazelcastInstance(); > > return new SerializingPageStore(new > HazelcastDataStore(getName(), instance), > getFrameworkSettings().getSerializer()); > } > }); > > I.e. a SerializingPageStore does the conversion to/from serialized pages. > > Have fun > Sven > > > Am 22.04.19 um 17:17 schrieb Maxim Solodovnik: > > Hello Sven, > > > > I'm trying to migrate OpenMeetings code to wicket9 > > The migration was easy, moving to junit5 was doable > > All tests are green > > > > BUT real application throws Exceptions :( > > > > I'm setting Hazelcast as follows: [1] > > I have checked the code And found no way to pass SerializedPage to > > HazelcastDataStore > > > > SerializedPage is class and it is final > > > > Could you please guide me what am I doing wrong? > > > > > > [1] > > https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java#L225 > > > > ERROR 04-22 21:55:56.068 o.a.w.u.l.ListenerCollection:124 > > [nio-5443-exec-1] - Error invoking listener: > > org.apache.wicket.Application$2@68756190 > > org.apache.wicket.WicketRuntimeException: CassandraDataStore works > > with serialized pages only > > at > > org.wicketstuff.datastores.hazelcast.HazelcastDataStore.addPersistedPage(HazelcastDataStore.java:122) > > at > > org.apache.wicket.pageStore.AbstractPersistentPageStore.addPage(AbstractPersistentPageStore.java:128) > > at > > org.apache.wicket.pageStore.InSessionPageStore.addPage(InSessionPageStore.java:139) > > at > > org.apache.wicket.pageStore.RequestPageStore.detach(RequestPageStore.java:99) > > at org.apache.wicket.page.PageManager.detach(PageManager.java:79) > > > > > > -- > > WBR > > Maxim aka solomax -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to use new IPageStore
Hi Maxim, wicketstuff-datastore has examples for this, like: setPageManagerProvider(new DefaultPageManagerProvider(this) { @Override protected IPageStore newPersistentStore() { HazelcastInstance instance = Hazelcast.newHazelcastInstance(); return new SerializingPageStore(new HazelcastDataStore(getName(), instance), getFrameworkSettings().getSerializer()); } }); I.e. a SerializingPageStore does the conversion to/from serialized pages. Have fun Sven Am 22.04.19 um 17:17 schrieb Maxim Solodovnik: Hello Sven, I'm trying to migrate OpenMeetings code to wicket9 The migration was easy, moving to junit5 was doable All tests are green BUT real application throws Exceptions :( I'm setting Hazelcast as follows: [1] I have checked the code And found no way to pass SerializedPage to HazelcastDataStore SerializedPage is class and it is final Could you please guide me what am I doing wrong? [1] https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java#L225 ERROR 04-22 21:55:56.068 o.a.w.u.l.ListenerCollection:124 [nio-5443-exec-1] - Error invoking listener: org.apache.wicket.Application$2@68756190 org.apache.wicket.WicketRuntimeException: CassandraDataStore works with serialized pages only at org.wicketstuff.datastores.hazelcast.HazelcastDataStore.addPersistedPage(HazelcastDataStore.java:122) at org.apache.wicket.pageStore.AbstractPersistentPageStore.addPage(AbstractPersistentPageStore.java:128) at org.apache.wicket.pageStore.InSessionPageStore.addPage(InSessionPageStore.java:139) at org.apache.wicket.pageStore.RequestPageStore.detach(RequestPageStore.java:99) at org.apache.wicket.page.PageManager.detach(PageManager.java:79) -- WBR Maxim aka solomax
How to use new IPageStore
Hello Sven, I'm trying to migrate OpenMeetings code to wicket9 The migration was easy, moving to junit5 was doable All tests are green BUT real application throws Exceptions :( I'm setting Hazelcast as follows: [1] I have checked the code And found no way to pass SerializedPage to HazelcastDataStore SerializedPage is class and it is final Could you please guide me what am I doing wrong? [1] https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java#L225 ERROR 04-22 21:55:56.068 o.a.w.u.l.ListenerCollection:124 [nio-5443-exec-1] - Error invoking listener: org.apache.wicket.Application$2@68756190 org.apache.wicket.WicketRuntimeException: CassandraDataStore works with serialized pages only at org.wicketstuff.datastores.hazelcast.HazelcastDataStore.addPersistedPage(HazelcastDataStore.java:122) at org.apache.wicket.pageStore.AbstractPersistentPageStore.addPage(AbstractPersistentPageStore.java:128) at org.apache.wicket.pageStore.InSessionPageStore.addPage(InSessionPageStore.java:139) at org.apache.wicket.pageStore.RequestPageStore.detach(RequestPageStore.java:99) at org.apache.wicket.page.PageManager.detach(PageManager.java:79) -- WBR Maxim aka solomax