isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Haywood <...@haywood-associates.co.uk>
Subject Re: What is this error about?
Date Sun, 15 Sep 2013 11:00:48 GMT
On 15 September 2013 11:49, james agada <okwuiagada@gmail.com> wrote:

> I am not using the addTo or remove from templates anywhere. If I can
> find out which part of the code the problem is coming from, I will
> quiet easily past it.
> What I will like to know is what can lead to this kind of error.
>
>
I can see that using lifecycle callbacks [1] to create/update/delete
further objects could cause this.   But I doubt you aren't doing this.

So, there is a command being created as a side-effect some other way.  You
could help by putting a breakpoint in IsisTransaction#addCommand, and -
after a flush has been executed earlier in the stack trace - seeing why it
is being called.

If you're unable to do that / not sure how, we could arrange a remote
debugging session this week some evening; it would be useful for me to know
why this is occurring.

In the meantime, the fix I'm putting in ISIS-533 might address the issue,
whatever.

Let me know.

Dan



[1]
http://isis.apache.org/applib-guide/how-tos/how-to-07-070-How-to-hook-into-the-object-lifecycle-using-callbacks.html



> Sent from my iPhone
>
> On Sep 15, 2013, at 8:28 AM, GESCONSULTOR <o.bou@gesconsultor.com> wrote:
>
> > Hi james.
> >
> > Have you used both the JDO annotations and the addToXXX / removeFromXXX
> isis eclipse templates ?
> >
> > The latter ones should not be used with JDO as DataNucleus automatically
> manages the relationships when doing getContainer().flush().
> >
> > More info here [1].
> >
> > If that's not the case, can you paste on the mail the code defining the
> relationship?
> >
> >
> > [1]
> http://isis.apache.org/components/objectstores/jdo/managed-1-to-m-relationships.html
> >
> >
> >
> > El 14/09/2013, a las 21:16, james agada <okwuiagada@gmail.com> escribió:
> >
> >>  - java.util.ConcurrentModificationException
> >>  -
> >>  -
> >>
>  java.util.AbstractList$Itr#checkForComodification(AbstractList.java:372)
> >>  - java.util.AbstractList$Itr#next(AbstractList.java:343)
> >>  -
> >>
>  java.util.Collections$UnmodifiableCollection$1#next(Collections.java:1008)
> >>  -
> >>
>  org.apache.isis.objectstore.jdo.datanucleus.DataNucleusObjectStore#executeCommands(DataNucleusObjectStore.java:360)
> >>  -
> >>
>  org.apache.isis.objectstore.jdo.datanucleus.DataNucleusObjectStore#execute(DataNucleusObjectStore.java:355)
> >>  -
> >>
>  org.apache.isis.core.runtime.system.transaction.IsisTransaction#doFlush(IsisTransaction.java:365)
> >>  -
> >>
>  org.apache.isis.core.runtime.system.transaction.IsisTransaction#flush(IsisTransaction.java:331)
> >>  -
> >>
>  org.apache.isis.core.runtime.system.transaction.IsisTransactionManager#flushTransaction(IsisTransactionManager.java:298)
> >>  -
> >>
>  org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel#executeActionOnTargetAndProcessResults(ActionPanel.java:181)
> >>  -
> >>
>  org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel#executeActionAndProcessResults(ActionPanel.java:137)
> >>  -
> >>
>  org.apache.isis.viewer.wicket.ui.components.actions.ActionParametersFormPanel$ActionParameterForm$1#onSubmit(ActionParametersFormPanel.java:126)
> >>  -
> org.apache.wicket.markup.html.form.Form#delegateSubmit(Form.java:1253)
> >>  - org.apache.wicket.markup.html.form.Form#process(Form.java:925)
> >>  -
> org.apache.wicket.markup.html.form.Form#onFormSubmitted(Form.java:771)
> >>  -
> org.apache.wicket.markup.html.form.Form#onFormSubmitted(Form.java:704)
> >>  -
> >>
>  sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
> >>  -
> >>
>  sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:39)
> >>  -
> >>
>  sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:25)
> >>  - java.lang.reflect.Method#invoke(Method.java:597)
> >>  -
> >>
>  org.apache.wicket.RequestListenerInterface#internalInvoke(RequestListenerInterface.java:258)
> >>  -
> >>
>  org.apache.wicket.RequestListenerInterface#invoke(RequestListenerInterface.java:216)
> >>  -
> >>
>  org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler#invokeListener(ListenerInterfaceRequestHandler.java:240)
> >>  -
> >>
>  org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler#respond(ListenerInterfaceRequestHandler.java:226)
> >>  -
> >>
>  org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor#respond(RequestCycle.java:861)
> >>  -
> >>
>  org.apache.wicket.request.RequestHandlerStack#execute(RequestHandlerStack.java:64)
> >>  -
> >>
>  org.apache.wicket.request.cycle.RequestCycle#execute(RequestCycle.java:261)
> >>  -
> >>
>  org.apache.wicket.request.cycle.RequestCycle#processRequest(RequestCycle.java:218)
> >>  -
> >>
>  org.apache.wicket.request.cycle.RequestCycle#processRequestAndDetach(RequestCycle.java:289)
> >>  -
> >>
>  org.apache.wicket.protocol.http.WicketFilter#processRequestCycle(WicketFilter.java:259)
> >>  -
> >>
>  org.apache.wicket.protocol.http.WicketFilter#processRequest(WicketFilter.java:201)
> >>  -
> >>
>  org.apache.wicket.protocol.http.WicketFilter#doFilter(WicketFilter.java:282)
> >>  -
> >>
>  org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1326)
> >>  -
> >>
>  org.apache.shiro.web.servlet.AbstractShiroFilter#executeChain(AbstractShiroFilter.java:449)
> >>  -
> >>
>  org.apache.shiro.web.servlet.AbstractShiroFilter$1#call(AbstractShiroFilter.java:365)
> >>  -
> >>
>  org.apache.shiro.subject.support.SubjectCallable#doCall(SubjectCallable.java:90)
> >>  -
> >>
>  org.apache.shiro.subject.support.SubjectCallable#call(SubjectCallable.java:83)
> >>  -
> >>
>  org.apache.shiro.subject.support.DelegatingSubject#execute(DelegatingSubject.java:383)
> >>  -
> >>
>  org.apache.shiro.web.servlet.AbstractShiroFilter#doFilterInternal(AbstractShiroFilter.java:362)
> >>  -
> >>
>  org.apache.shiro.web.servlet.OncePerRequestFilter#doFilter(OncePerRequestFilter.java:125)
> >>  -
> >>
>  org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1326)
> >>  -
> >>
>  org.eclipse.jetty.servlet.ServletHandler#doHandle(ServletHandler.java:479)
> >>  -
> >>
>  org.eclipse.jetty.server.handler.ScopedHandler#handle(ScopedHandler.java:119)
> >>  -
> >>
>  org.eclipse.jetty.security.SecurityHandler#handle(SecurityHandler.java:520)
> >>  -
> >>
>  org.eclipse.jetty.server.session.SessionHandler#doHandle(SessionHandler.java:227)
> >>  -
> >>
>  org.eclipse.jetty.server.handler.ContextHandler#doHandle(ContextHandler.java:940)
> >>  -
> >>
>  org.eclipse.jetty.servlet.ServletHandler#doScope(ServletHandler.java:409)
> >>  -
> >>
>  org.eclipse.jetty.server.session.SessionHandler#doScope(SessionHandler.java:186)
> >>  -
> >>
>  org.eclipse.jetty.server.handler.ContextHandler#doScope(ContextHandler.java:874)
> >>  -
> >>
>  org.eclipse.jetty.server.handler.ScopedHandler#handle(ScopedHandler.java:117)
> >>  -
> >>
>  org.eclipse.jetty.server.handler.ContextHandlerCollection#handle(ContextHandlerCollection.java:250)
> >>  -
> >>
>  org.eclipse.jetty.server.handler.HandlerCollection#handle(HandlerCollection.java:149)
> >>  -
> >>
>  org.eclipse.jetty.server.handler.HandlerWrapper#handle(HandlerWrapper.java:110)
> >>  - org.eclipse.jetty.server.Server#handle(Server.java:349)
> >>  -
> >>
>  org.eclipse.jetty.server.HttpConnection#handleRequest(HttpConnection.java:441)
> >>  -
> >>
>  org.eclipse.jetty.server.HttpConnection$RequestHandler#content(HttpConnection.java:921)
> >>  - org.eclipse.jetty.http.HttpParser#parseNext(HttpParser.java:784)
> >>  - org.eclipse.jetty.http.HttpParser#parseAvailable(HttpParser.java:223)
> >>  -
> >>
>  org.eclipse.jetty.server.AsyncHttpConnection#handle(AsyncHttpConnection.java:46)
> >>  -
> >>
>  org.eclipse.jetty.io.nio.SelectChannelEndPoint#handle(SelectChannelEndPoint.java:545)
> >>  -
> >>
>  org.eclipse.jetty.io.nio.SelectChannelEndPoint$1#run(SelectChannelEndPoint.java:43)
> >>  -
> >>
>  org.eclipse.jetty.util.thread.QueuedThreadPool#runJob(QueuedThreadPool.java:598)
> >>  -
> >>
>  org.eclipse.jetty.util.thread.QueuedThreadPool$3#run(QueuedThreadPool.java:533)
> >>  - java.lang.Thread#run(Thread.java:680)
> >>
> >> POWERED BY: APACHE ISIS <http://isis.apache.org/>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message