You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by wil2008 <wc...@gmail.com> on 2008/08/30 13:54:50 UTC
Clicking "add to cart" repeatedly
I am new to Wicket (but not new to HTML, Java and Spring).
I tried to follow the examples in the ebook of "Wicket in Action".
Everything is fine until Chapter 3. I followed the cheese application which
demonstrates a plain shopping cart. I compiled and ran the front page
successfully (including the Index.html and Index.java, up to page 60). I
could "add to cart" and "remove" successfully. So far so good. When I
clicked "add to cart" repeatedly and slowly, it was still good. But If I
clicked quickly enough, the following bunch of "Unexpected RuntimeException"
appeared.
I am not sure this is particular to this specific example or is general for
other Wicket components.
Did I miss something? Does anyone come across something similar?
This is important if I am to propose Wicket in a serious project.
Thank you very much!
Wicket version: 1.3.4
<output>
Could not deserialize object using
`org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
object factory
at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
........
........
Caused by: java.lang.ClassNotFoundException: [Lmycheese.Cheese;
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
.............
............
</output>
--
View this message in context: http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19232702.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clicking "add to cart" repeatedly
Posted by jWeekend <jw...@cabouge.com>.
Does this happen under jetty too?
To try this you can use
mvn jetty:run
or
from your IDE run Start
Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk
wil2008 wrote:
>
> Sorry. The complete stack trace shown on the web page is as follows. I
> noted that
> they mirrored what have been logged by Tomcat.
>
> I was with Tomcat's default config. And I did not persist anything
> consciously yet.
> How to check if "persistent sessions" are in use in Tomcat? Thanks
>
> I am not sure if "ClassNotFoundException" is misleading somewhat. If
> really
> "ClassNotFoundException", the same class should still not be found
> whether I
> repeat the click slowly or rapidly. But it seems to me that this
> exception
> appears only when I repeat the click rapidly enough.
>
> Tomcat version : 1.6.0.18
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
>
>
> Thank you very much
>
> Wilfred
>
> (I later assembled an application with Spring + Freemarker doing similar
> demonstration on the same Tomcat. When I repeatedly clicked "add to
> cart", a
> cheese item did go to the cart on each click without breakdown no matter
> how
> quickly the repetition was. Weird)
>
>> *****************
>> Unexpected RuntimeException
>>
>> Root cause:
>>
>> java.lang.ClassNotFoundException: [Lmycheese.Cheese;
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>> at
>> org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:103)
>> at
>> org.apache.wicket.util.io.IObjectStreamFactory$1.resolveClass(IObjectStreamFactory.java:87)
>> at
>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
>> at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>> at
>> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
>> at org.apache.wicket.Component.readObject(Component.java:4223)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>> at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>> at
>> org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:393)
>> at
>> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
>> at
>> org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
>> at
>> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
>> at org.apache.wicket.Session.getPage(Session.java:751)
>> at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448)
>> at
>> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229)
>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> at
>> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>> at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>> at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> Complete stack:
>>
>> java.lang.RuntimeException: Could not deserialize object using
>> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
>> object factory
>> at
>> org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:406)
>> at
>> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
>> at
>> org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
>> at
>> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
>> at org.apache.wicket.Session.getPage(Session.java:751)
>> at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448)
>> at
>> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229)
>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
>>
>> display page view
>>
>>
>> *****************
>
> jwcarman wrote:
>>
>> full stack trace please? Are you using persistent sessions in tomcat?
>>
>> On Sat, Aug 30, 2008 at 7:54 AM, wil2008 <wc...@gmail.com> wrote:
>>>
>>> I am new to Wicket (but not new to HTML, Java and Spring).
>>> I tried to follow the examples in the ebook of "Wicket in Action".
>>> Everything is fine until Chapter 3. I followed the cheese application
>>> which
>>> demonstrates a plain shopping cart. I compiled and ran the front page
>>> successfully (including the Index.html and Index.java, up to page 60). I
>>> could "add to cart" and "remove" successfully. So far so good. When I
>>> clicked "add to cart" repeatedly and slowly, it was still good. But If I
>>> clicked quickly enough, the following bunch of "Unexpected
>>> RuntimeException"
>>> appeared.
>>>
>>> I am not sure this is particular to this specific example or is general
>>> for
>>> other Wicket components.
>>> Did I miss something? Does anyone come across something similar?
>>> This is important if I am to propose Wicket in a serious project.
>>> Thank you very much!
>>>
>>> Wicket version: 1.3.4
>>>
>>> <output>
>>> Could not deserialize object using
>>> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
>>> object factory
>>> at
>>> org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
>>> ........
>>> ........
>>> Caused by: java.lang.ClassNotFoundException: [Lmycheese.Cheese;
>>> at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>>> .............
>>> ............
>>> </output>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19232702.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19244017.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clicking "add to cart" repeatedly
Posted by wil2008 <wc...@gmail.com>.
Sorry. The complete stack trace shown on the web page is as follows. I noted
that
they mirrored what have been logged by Tomcat.
I was with Tomcat's default config. And I did not persist anything
consciously yet.
How to check if "persistent sessions" are in use in Tomcat? Thanks
I am not sure if "ClassNotFoundException" is misleading somewhat. If really
"ClassNotFoundException", the same class should still not be found whether
I
repeat the click slowly or rapidly. But it seems to me that this exception
appears only when I repeat the click rapidly enough.
Tomcat version : 1.6.0.18
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
Thank you very much
Wilfred
(I later assembled an application with Spring + Freemarker doing similar
demonstration on the same Tomcat. When I repeatedly clicked "add to cart",
a
cheese item did go to the cart on each click without breakdown no matter
how
quickly the repetition was. Weird)
> *****************
> Unexpected RuntimeException
>
> Root cause:
>
> java.lang.ClassNotFoundException: [Lmycheese.Cheese;
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
> at
> org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:103)
> at
> org.apache.wicket.util.io.IObjectStreamFactory$1.resolveClass(IObjectStreamFactory.java:87)
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
> at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
> at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
> at org.apache.wicket.Component.readObject(Component.java:4223)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
> at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
> at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:393)
> at
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
> at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
> at
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
> at org.apache.wicket.Session.getPage(Session.java:751)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448)
> at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
>
> Complete stack:
>
> java.lang.RuntimeException: Could not deserialize object using
> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
> object factory
> at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:406)
> at
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
> at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
> at
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
> at org.apache.wicket.Session.getPage(Session.java:751)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448)
> at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
>
> display page view
>
>
> *****************
jwcarman wrote:
>
> full stack trace please? Are you using persistent sessions in tomcat?
>
> On Sat, Aug 30, 2008 at 7:54 AM, wil2008 <wc...@gmail.com> wrote:
>>
>> I am new to Wicket (but not new to HTML, Java and Spring).
>> I tried to follow the examples in the ebook of "Wicket in Action".
>> Everything is fine until Chapter 3. I followed the cheese application
>> which
>> demonstrates a plain shopping cart. I compiled and ran the front page
>> successfully (including the Index.html and Index.java, up to page 60). I
>> could "add to cart" and "remove" successfully. So far so good. When I
>> clicked "add to cart" repeatedly and slowly, it was still good. But If I
>> clicked quickly enough, the following bunch of "Unexpected
>> RuntimeException"
>> appeared.
>>
>> I am not sure this is particular to this specific example or is general
>> for
>> other Wicket components.
>> Did I miss something? Does anyone come across something similar?
>> This is important if I am to propose Wicket in a serious project.
>> Thank you very much!
>>
>> Wicket version: 1.3.4
>>
>> <output>
>> Could not deserialize object using
>> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
>> object factory
>> at
>> org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
>> ........
>> ........
>> Caused by: java.lang.ClassNotFoundException: [Lmycheese.Cheese;
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>> .............
>> ............
>> </output>
>> --
>> View this message in context:
>> http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19232702.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19243657.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clicking "add to cart" repeatedly
Posted by James Carman <ja...@carmanconsulting.com>.
full stack trace please? Are you using persistent sessions in tomcat?
On Sat, Aug 30, 2008 at 7:54 AM, wil2008 <wc...@gmail.com> wrote:
>
> I am new to Wicket (but not new to HTML, Java and Spring).
> I tried to follow the examples in the ebook of "Wicket in Action".
> Everything is fine until Chapter 3. I followed the cheese application which
> demonstrates a plain shopping cart. I compiled and ran the front page
> successfully (including the Index.html and Index.java, up to page 60). I
> could "add to cart" and "remove" successfully. So far so good. When I
> clicked "add to cart" repeatedly and slowly, it was still good. But If I
> clicked quickly enough, the following bunch of "Unexpected RuntimeException"
> appeared.
>
> I am not sure this is particular to this specific example or is general for
> other Wicket components.
> Did I miss something? Does anyone come across something similar?
> This is important if I am to propose Wicket in a serious project.
> Thank you very much!
>
> Wicket version: 1.3.4
>
> <output>
> Could not deserialize object using
> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
> object factory
> at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
> ........
> ........
> Caused by: java.lang.ClassNotFoundException: [Lmycheese.Cheese;
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> .............
> ............
> </output>
> --
> View this message in context: http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19232702.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clicking "add to cart" repeatedly
Posted by Ritesh Trivedi <ri...@gmail.com>.
I have gotten ClassNotFoundException several times.
I repeatedly get it with 2 browser tabs opened and accessing the same page
and doing some actions on the same page. I havent received any response from
the Wicket team on this yet.
I have also seen it happening with pressing back and forward buttons a few
times.
wil2008 wrote:
>
> I am new to Wicket (but not new to HTML, Java and Spring).
> I tried to follow the examples in the ebook of "Wicket in Action".
> Everything is fine until Chapter 3. I followed the cheese application
> which demonstrates a plain shopping cart. I compiled and ran the front
> page successfully (including the Index.html and Index.java, up to page
> 60). I could "add to cart" and "remove" successfully. So far so good. When
> I clicked "add to cart" repeatedly and slowly, it was still good. But If I
> clicked quickly enough, the following bunch of "Unexpected
> RuntimeException" appeared.
>
> I am not sure this is particular to this specific example or is general
> for other Wicket components.
> Did I miss something? Does anyone come across something similar?
> This is important if I am to propose Wicket in a serious project.
> Thank you very much!
>
> Wicket version: 1.3.4
>
> <output>
> Could not deserialize object using
> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
> object factory
> at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
> ........
> ........
> Caused by: java.lang.ClassNotFoundException: [Lmycheese.Cheese;
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> .............
> ............
> </output>
>
--
View this message in context: http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19239430.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clicking "add to cart" repeatedly
Posted by Johan Compagner <jc...@gmail.com>.
What i find weird is that it is [xxxx so the cheese is an array of
cheese not the cheese class it self. Which i find a bit strange.
Because that string cant ofcourse not be resolved like that
On 8/30/08, wil2008 <wc...@gmail.com> wrote:
>
> I am new to Wicket (but not new to HTML, Java and Spring).
> I tried to follow the examples in the ebook of "Wicket in Action".
> Everything is fine until Chapter 3. I followed the cheese application which
> demonstrates a plain shopping cart. I compiled and ran the front page
> successfully (including the Index.html and Index.java, up to page 60). I
> could "add to cart" and "remove" successfully. So far so good. When I
> clicked "add to cart" repeatedly and slowly, it was still good. But If I
> clicked quickly enough, the following bunch of "Unexpected RuntimeException"
> appeared.
>
> I am not sure this is particular to this specific example or is general for
> other Wicket components.
> Did I miss something? Does anyone come across something similar?
> This is important if I am to propose Wicket in a serious project.
> Thank you very much!
>
> Wicket version: 1.3.4
>
> <output>
> Could not deserialize object using
> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
> object factory
> at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
> ........
> ........
> Caused by: java.lang.ClassNotFoundException: [Lmycheese.Cheese;
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> .............
> ............
> </output>
> --
> View this message in context:
> http://www.nabble.com/Clicking-%22add-to-cart%22-repeatedly-tp19232702p19232702.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clicking "add to cart" repeatedly
Posted by Martijn Dashorst <ma...@gmail.com>.
On Sat, Aug 30, 2008 at 1:54 PM, wil2008 <wc...@gmail.com> wrote:
> <output>
> Could not deserialize object using
> `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
> object factory
> at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
> ........
> ........
> Caused by: java.lang.ClassNotFoundException: [Lmycheese.Cheese;
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> .............
> ............
> </output>
Certainly not something we'd expect. This is weird: The
ClassNotFoundException suggests a classloader error, could be a bug in
Tomcat though.
Can you please post the whole stack trace?
Martijn
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org