Hi,

as Martin said the 8.x examples site is running fine for a while now. Beside this, also my user guide examples site is running without any problem since I did the restyling, which was almost a month ago.

Andrea.


On 31/07/2017 20:43, Martin Grigorov wrote:
examples7.x use Tomcat image from OpenShift, and it has the scripts by
default.

I think any of the free providers (like OpenShift, Heroku, ...) shutdown
the app if it is not used for some time. When someone requests the app they
start it again. I think this is what was happening here.

I've just checked the logs of examples8x and there are some interesting
problems:

1.
Caused by: java.lang.RuntimeException: An error occurred while getting the
model object for Component: [Component id = word, page =
org.apache.wicket.examples.hangman.Guess, path = word, type =
org.apache.wicket.markup.html.basic.Label, isVisible = true, isVersioned =
false, markup = [markup =
file:/var/lib/openshift/592dc27b89f5cfabc700006d/app-root/data/apache-tomcat-8.5.15/webapps/ROOT/WEB-INF/classes/org/apache/wicket/examples/hangman/Guess.html
<span wicket:id="word">WICK_T</span>, index = 0, current =  '<span
wicket:id="word">' (line 0, column 0)]]
         at
org.apache.wicket.Component.getDefaultModelObject(Component.java:1651)
         at
org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1672)
         at
org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:115)
         at
org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
         at
org.apache.wicket.Component.internalRenderComponent(Component.java:2595)
         ... 40 more
Caused by: java.lang.NullPointerException
         at
org.apache.wicket.examples.hangman.Guess.lambda$new$1f219a47$1(Guess.java:45)
         at
org.apache.wicket.Component.getDefaultModelObject(Component.java:1644)

2.
ERROR - DefaultExceptionMapper     - Unexpected error occurred
org.jboss.weld.context.NonexistentConversationException: WELD-000321: No
conversation found to restore for id 2
         at
org.jboss.weld.context.AbstractConversationContext.initialize(AbstractConversationContext.java:240)
         at
org.jboss.weld.context.http.LazyHttpConversationContextImpl.initialize(LazyHttpConversationContextImpl.java:90)
         at
org.jboss.weld.context.http.LazyHttpConversationContextImpl.checkContextInitialized(LazyHttpConversationContextImpl.java:124)
         at
org.jboss.weld.context.AbstractConversationContext.getCurrentConversation(AbstractConversationContext.java:483)
         at
org.jboss.weld.bean.builtin.ConversationBean.newInstance(ConversationBean.java:31)
         at
org.jboss.weld.bean.builtin.ConversationBean.newInstance(ConversationBean.java:16)
         at
org.jboss.weld.bean.builtin.AbstractDecorableBuiltInBean.create(AbstractDecorableBuiltInBean.java:52)
         at
org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)
         at
org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
         at
org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
         at
org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
         at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99)
         at
org.jboss.weldx.enterprise.context.Conversation$1584357708$Proxy$_$$_WeldClientProxy.getId(Unknown
Source)
         at
org.apache.wicket.cdi.ConversationPropagator.onRequestHandlerResolved(ConversationPropagator.java:108)

3. (fixed already)
ERROR - DefaultExceptionMapper     - Unexpected error occurred
java.lang.NullPointerException
         at
org.apache.wicket.core.request.handler.PageProvider.getPageClass(PageProvider.java:261)
         at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.getPageClass(RenderPageRequestHandler.java:163)

4. This one needs attention !
ERROR - JavaSerializer             - error writing object [Page class =
org.apache.wicket.examples.tree.NestedTreePage, id = 0, render count = 1]:
null
java.util.ConcurrentModificationException
         at java.util.ArrayList.writeObject(ArrayList.java:766)
         at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:498)
         at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
         at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
         at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
         at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
         at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
         at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
         at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
         at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
         at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
         at
org.apache.wicket.serialize.java.JavaSerializer$SerializationCheckerObjectOutputStream.writeObjectOverride(JavaSerializer.java:368)
         at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344)
         at
org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:82)
         at
org.apache.wicket.pageStore.AbstractPageStore.serializePage(AbstractPageStore.java:133)
         at
org.apache.wicket.pageStore.DefaultPageStore.createSerializedPage(DefaultPageStore.java:281)
         at
org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:61)
         at
org.apache.wicket.pageStore.AsynchronousPageStore$PageSavingRunnable.run(AsynchronousPageStore.java:225)
         at java.lang.Thread.run(Thread.java:748)


But none of them look bad enough to stop the app.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Jul 31, 2017 at 9:28 PM, Sebastien <[email protected]> wrote:

Hi Martin,

Yes, that's what I was referring to.
What I'm afraid of, is that this start & stop script may hide an underlying
problem... Do you remember such instabilities with examples7.x?

Thanks & best regards,
Sebastien.

On Mon, Jul 31, 2017 at 8:18 PM, Martin Grigorov <[email protected]>
wrote:

Hi Sebastien,

Do you talk about the OpenShift deployment of examples8x ?
I've added start and stop action hook scripts for it and since then it
seems to work fine.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


Reply via email to