Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14
I migrated from wicket 1.4 to 6.14, when trying to update an radio button I'm getting the below exception, java.io.NotSerializableException: org.apache.wicket.resource.loader.ComponentStringResourceLoader Below is the the implementation for the RadioChoice, and when i debugged it doesn't go inside the onUpdate method as well, //Gets the list of content boxes available ListContentBoxSettings settings = ServiceLocator.getInstance().find(ContentBoxSettingsService.class).list(); RadioChoice dimensionSettings = new RadioChoice(dimensionSettings, settings, new ChoiceRenderer(dimensionString, id)); this.dimensionSettings.setModel( new PropertyModel(dimensionSettings.getModelObject(), settings)); this.dimensionSettings.add(new AjaxFormChoiceComponentUpdatingBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { ContentBoxSettings settings = (ContentBoxSettings) getFormComponent().getDefaultModelObject(); model.setIframeCode(CommonUtils.generateContentBoxIFrameCode(settings.getWidth(), settings.getHeight(), shortPath)); target.add(iframeCode); } }); The structure of the ContentBoxSettings model is, public class ContentBoxSettings implements Serializable { private static final long serialVersionUID = 9620522563L; private Long id; private int width; private int height; } Any suggestions to overcome this issue? Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Gets-an-NotSerializableException-on-RadioChoice-update-after-migrating-to-wicket-6-14-tp4665040.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14
A problem occurred while checking object with type: org.apache.wicket.resource.loader.ComponentStringResourceLoader Field hierarchy is: 5 [class=com.fanminder.merchant.app.programs.offers.PublishOfferPage, path=5] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private org.apache.wicket.util.lang.Bytes org.apache.wicket.markup.html.form.Form.maxSize[18] [class=com.fanminder.merchant.app.programs.contentbox.ContentBoxSetupModalWindow, path=5:contentBoxSetupModal] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.fanminder.merchant.app.programs.contentbox.ContentBoxSetupPanel, path=5:contentBoxSetupModal:content-box-setup-modal] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.fanminder.merchant.app.programs.contentbox.ContentBoxSetupForm, path=5:contentBoxSetupModal:content-box-setup-modal:contentBoxSetupForm] private final org.apache.wicket.resource.loader.ComponentStringResourceLoader com.fanminder.merchant.app.programs.contentbox.ContentBoxSetupForm.componentStringResourceLoader [class=org.apache.wicket.resource.loader.ComponentStringResourceLoader] - field that is causing the problem at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:387) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:432) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.writeObjectOverride(CheckingObjectOutputStream.java:713) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at org.apache.wicket.serialize.java.JavaSerializer$SerializationCheckerObjectOutputStream.writeObjectOverride(JavaSerializer.java:268) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:78) at org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:376) at org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:150) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:412) at org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181) at org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:98) at org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:73) at org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:258) at org.apache.wicket.Application$2.onDetach(Application.java:1640) at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:105) at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:101) at org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:120) at
Re: Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14
Thanks Martin, the above exception got fixed. but right now im getting the below exception, org.apache.wicket.WicketRuntimeException: Attempted to set property value on a null object. Property expression: settings Value: com.fanminder.entity.ContentBoxSettings[ id=2 ] at org.apache.wicket.core.util.lang.PropertyResolver.setValue(PropertyResolver.java:133) at org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:132) at org.apache.wicket.Component.setDefaultModelObject(Component.java:3072) at org.apache.wicket.markup.html.form.FormComponent.setModelObject(FormComponent.java:1578) at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1104) at org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:148) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:626) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.fanminder.HibernateFilter.doFilter(HibernateFilter.java:24) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1815) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Gets-an-NotSerializableException-on-RadioChoice-update-after-migrating-to-wicket-6-14-tp4665040p4665054.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
The AjaxSubmitLink does not respond after migrating to wicket 6
I migrated the application from wicket 1.4 to 6.13.0. After the migration the AjaxSubmitLink gets rendered with, href=javascript:;. Anyone knows the reason for this issue? Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: The AjaxSubmitLink does not respond after migrating to wicket 6
It does have the below javascript error, Wicket.Ajax.registerPreCallHandler is not a function -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294p4664296.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: The AjaxSubmitLink does not respond after migrating to wicket 6
I fixed the registerPreCallHandler is not a function error. But im still facing the issue where the AjaxSubmitLink gets rendered with, href=javascript:; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294p4664311.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Is there an equivalent for ResourceReference in wicket 6
I'm migrating wicket from 1.4 to 6.13. Read that the ResourceReference class has been removed in 1.5 version. Does anyone know whether there is an equivalent to achieve the same functionality? container.getHeaderResponse().renderJavascriptReference( new ResourceReference(FansTable.class, fanspage.js)); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-equivalent-for-ResourceReference-in-wicket-6-tp4664014.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there an equivalent for ResourceReference in wicket 6
Thanks it worked! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-equivalent-for-ResourceReference-in-wicket-6-tp4664014p4664083.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org