[jboss-user] [JBoss Seam] - Re: Target Unreachable error w/ Seam 2.0.0.Beta1?

cupdike do-not-reply at jboss.com
Tue Jul 31 11:48:47 EDT 2007


Part of the exception message was cut off (see below for full message), but everything needed is in that message (the fact that 'ppPemsItemMv' returned null).  The problem was that the generated getter was as follows:

@Name("ppPemsItemMvList")
  | public class PpPemsItemMvList extends EntityQuery {
  | 
  | ...
  | 	public PpPemsItemMv getPpPemsItemMv() {
  | 		return ppPemsItemMv;
  | 	}
  | ...

When I changed the getter to this:
    public PpPemsItemMv getPpPemsItemMv() {
  |         return (ppPemsItemMv == null) ? new PpPemsItemMv() : ppPemsItemMv;
  |     }

It started working.  Note that when I tried to put an @Create on this getter, I got an exception which I don't quite understand (anyone can explain this?):

Caused by: java.lang.IllegalStateException: component has two @Create methods: ppPemsItemMvList 

In any event, I'm past this problem.

Thanks, Clark

p.s. Here is the full exception message.

10:18:15,725 WARN  [lifecycle] /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv' returned null on 'edu.j
  | huapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
  | javax.el.PropertyNotFoundException: /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv' returned null on '
  | edu.jhuapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
  |         at ...

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

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



More information about the jboss-user mailing list