org.omg.CORBA.BAD_OPERATION: The delegate has not been set! - exception on back button
Hi there, I am working on the project using Wicket and EJB3.0 on Glassfish AS. I've got such case: There is a page with some test, using Sateful bean. When you press a start button, the model using the bean is created, bean is beeing looked up on each start button pressed. When I change the page and then use back button and press start button again i get such exception: [#|2009-11-09 13:10:01,395 ERROR none:none[-1.0] httpSSLWorkerThread-8080-1 (org.apache.wicket.util.lang.Objects:1134): Error serializing object class com.aster.prov.speed.web.HomePage [object=[Page class = com.aster.prov.speed.web.HomePage, id = 3, version = 0, ajax = 4]]|#] org.omg.CORBA.BAD_OPERATION: The delegate has not been set! vmcid: 0x0 minor code: 0 completed: No at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:53) at com.sun.corba.ee.spi.presentation.rmi.StubAdapter.getDelegate(StubAdapter.java:174) at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.selfAsBaseClass(BCELStubBase.java:214) at com.aster.prov.speed.ejb.__SpeedServiceRemote_Remote_DynamicStub.writeReplace(com/aster/prov/speed/ejb/__SpeedServiceRemote_Remote_DynamicStub.java) at sun.reflect.GeneratedMethodAccessor548.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1032) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1107) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at com.sun.ejb.containers.RemoteBusinessWrapperBase.writeObject(RemoteBusinessWrapperBase.java:106) at sun.reflect.GeneratedMethodAccessor431.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1120) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203) at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332) at org.apache.wicket.Session.requestDetached(Session.java:1404) at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1454) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
Date format in DataTable
Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Date format in DataTable
I do use PropertyColumn. I will try it out and let you know. Thanks for help. Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Date format in DataTable
It worked out. My solution is: private static final String DATE_FORMAT = -MM-dd HH:mm:ss; private static final SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); ... @Override protected IModel createLabelModel(IModel rowModel) { return new ModelString(sdf.format(new PropertyModelDate(rowModel, getPropertyExpression()).getObject())); } Thank you for help. Regards, Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Multiple AttributeModifier-s on a single tag
Hi there, I'm trying to add two AttributeModifiers on WebMarkupContainer and it doesn't work. Only one of them is working, the last added one. Could anybody show me how to do it properly? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multiple AttributeModifier-s on a single tag
Sorry for the mess, my fault of course. It was working from the beginning, just my css was not in the scope and I couldn't see any results. Sorry once again and thanks for commitment. Regards, Wojtek Michael O'Cleirigh pisze: Hi Wojtek, Use the SimpleAttributeAppender from wicketstuff-misc: org.wicketstuff.misc.behaviors.SimpleAttributeAppender Here is the maven dependency detail: dependency groupIdorg.wicketstuff/groupId artifactIdmisc/artifactId version1.4-SNAPSHOT/version /dependency Regards, Mike I'm trying to add two AttributeModifiers on WebMarkupContainer and it doesn't work. Only one of them is working, the last added one. Could anybody show me how to do it properly? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
streaming charts in wicket
Hi there, another problem on my way... I want to implement a dynamic chart, ie. refreshing its model every 5 sec and showing updated values. I found nice solution for charts - open flash charts and would be great if i use it. There is wicket integration solution over here: http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html. The problem is that it just generates the chart once, doesn't update its model. I can imagine it needs to comunicate via ajax but no idea how to do it. Did anyone face sth similar? I was trying to use dumb solution - ajax updating of swf panel, but of course it didn't worked out. Any help appreciated. Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff-progressbar and Wicket 1.4.1 problem
Hi there, I'm working on progress bar in my app, i'm trying to use wicketstuff-progressbar project and get: java.lang.NoSuchMethodError: org.wicketstuff.progressbar.ProgressBar.add(Lorg/apache/wicket/behavior/IBehavior;)Lorg/apache/wicket/Component; at org.wicketstuff.progressbar.ProgressBar.init(ProgressBar.java:101) Did anybody meet such problem? I use it with the latest - Wicket 1.4.1 and most probably this is the reason. Any walkaround? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxSelfUpdatingBehavior and nested values updating
Hi, I want to add self-updating panel which displays some nested properties ie. two coordinates (x,y - let's say the Point class object). The point is updated by ejb or webservice. I tried to use the example from wicket-examples page - clock using AjaxSelfUpdatingBehavior. But example case updates just one value, so the model is easy - AbstractReadOnlyModelString. My case is similar, I could use AbstractReadOnlyModelPoint which getObject() calls my ejb or webservice and returns the Point object. The problem is how to populate nested properties to the Labels on each update of AjaxSelfUpdatingBehavior. I'm still fresh to the models, could anybody help me? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingBehavior and nested values updating
Great, this is exactly what i need. I just didn't know how to convert one model to another or that you can get property of model object directly from model :) I appreciate your commitment. Regards, Wojtek Jeremy Thomerson pisze: AbstractReadOnlyModelPoint point = new AbstractReadOnlyModel() { ... return point from your service ... } PropertyModelDouble lat = new PropertyModelDouble(point, latitude); PropertyModelDouble lng = new PropertyModelDouble(point, longitude); Label latLabel = new Label(lat, lat); Label lngLabel = new Label(lng, lng); -- Jeremy Thomerson http://www.wickettraining.com 2009/10/7 zabian zabia...@gmail.com Hi, I want to add self-updating panel which displays some nested properties ie. two coordinates (x,y - let's say the Point class object). The point is updated by ejb or webservice. I tried to use the example from wicket-examples page - clock using AjaxSelfUpdatingBehavior. But example case updates just one value, so the model is easy - AbstractReadOnlyModelString. My case is similar, I could use AbstractReadOnlyModelPoint which getObject() calls my ejb or webservice and returns the Point object. The problem is how to populate nested properties to the Labels on each update of AjaxSelfUpdatingBehavior. I'm still fresh to the models, could anybody help me? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org