[jboss-user] [JBoss Seam] - Re: Servlet Emulation and Request content problem

E6Fred do-not-reply at jboss.com
Tue Apr 10 13:54:51 EDT 2007


I have some good news and some bad news :

The good news  : I managed to make things work !
The bad news : It's not working all the time :-(

With the same JBoss running, I tried to call my servlet several times. All I want to see in the logs is :
[com.nuxeo.project.eurocis.bri.connector.ExporterServlet] Principal : Administrator

first attempt : my servlet call works fine ! (Seam component successfully get and the method call on the resulting object  named "documentManager" works)
second attempt (to see if I wasn't dreaming) : Same error as exposed in the previous post
third attempt : Error again
fourth attempt : error again
fifth attempt : servlet working !

I noticed in the traces that sometimes, the context is flushed before my code gets processed :-(

the working trace : 

  | 2007-04-10 19:36:53,530 INFO  [com.nuxeo.project.eurocis.bri.connector.ExporterServlet] GET
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: documentManager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.intercept.RootInterceptor] intercepted: documentManager.getDocumentManager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.outermostExceptionInterceptor
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.outermostExceptionInterceptor
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.documentManager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.documentManager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.interceptors.BijectionInterceptor] injecting dependencies of: documentManager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.Component] trying to inject with hierarchical context search: currentServerLocation
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentServerLocation
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.interceptors.BijectionInterceptor] disinjecting dependencies of: documentManager
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.outermostExceptionInterceptor
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.outermostExceptionInterceptor
  | 2007-04-10 19:36:53,530 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
  | 2007-04-10 19:36:53,546 INFO  [com.nuxeo.project.eurocis.bri.connector.ExporterServlet] Principal : Administrator
  | 2007-04-10 19:36:53,546 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2007-04-10 19:36:53,546 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request

the error trace :

  | 2007-04-10 19:36:43,139 INFO  [com.nuxeo.project.eurocis.bri.connector.ExporterServlet] GET
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.contexts.Lifecycle] After request, destroying contexts
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
  | 2007-04-10 19:36:43,139 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
  | 2007-04-10 19:36:43,139 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] uncaught exception handled by Seam
  | java.lang.IllegalStateException: No application context active

It would be great if I could disable this Context flushing or maybe it's something else ...

Any idea ?

Thanks

Fred


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036071#4036071

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036071



More information about the jboss-user mailing list