Upgrading from beta 1 to CR1.  We use a custom PhaseListener executing 
afterPhase RESTORE_VIEW.  

Unfortunately we're having several problems migrating this to CR1 (was working 
in beta 1).  This PhaseListener itself accesses Seam components so the timing 
of it is obviously crucial to the timing of the Seam context lifecycles.

The error received is:


  | 20:28:37,253 ERROR [STDERR] Caused by: java.lang.IllegalStateException: No 
conversation context active
  | 20:28:37,254 ERROR [STDERR]     at 
org.jboss.seam.ScopeType.getContext(ScopeType.java:88)
  | 20:28:37,254 ERROR [STDERR]     at 
org.jboss.seam.Component.newInstance(Component.java:1160)
  | 20:28:37,282 ERROR [STDERR]     at 
org.jboss.seam.Component.getInstance(Component.java:1107)
  | 20:28:37,282 ERROR [STDERR]     at 
org.jboss.seam.Component.getInstance(Component.java:1090)
  | 20:28:37,283 ERROR [STDERR]     at 
org.jboss.seam.Component.getInstanceToInject(Component.java:1214)
  | 20:28:37,283 ERROR [STDERR]     at 
org.jboss.seam.Component.injectFields(Component.java:892)
  | 

The only injected value for this particular component is an EntityManager.  I 
understand that EntityManager's are conversation scoped, so that exception 
makes sense...

What can we do here to make sure that we can get at a Seam managed entity 
manager when no conversation context is active?  I'm not sure I understand the 
implications of what changed since beta 1.

Any insight to this lifecycle might be helpful.

Thanks,

Ryan





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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to