[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

SmokingAPipe do-not-reply at jboss.com
Tue Feb 6 17:25:46 EST 2007


I tried it like this:

    <selectitems:config entity-manager="#{smpc}" />
  | 
  |     <component name="smpc"
  |           class="org.jboss.seam.core.ManagedPersistenceContext">
  |         <property name="persistenceUnitJndiName">java:/EntityManagerFactories/smpcData</property>
  |     </component>
  | 

and then I got:

java.lang.IllegalStateException: entityManager is null
  | 	org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:27)
  | 	org.jboss.seam.framework.EntityQuery$$FastClassByCGLIB$$225925e6.invoke(<generated>)
  | 	net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 	org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | 	org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | 	org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)

Any ideas?  I tried changing order of things in components.xml etc but I still get this same exception.


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

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



More information about the jboss-user mailing list