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

2007-07-31 Thread cupdike
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
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-07-31 Thread damianharvey
Is there anything further down your stacktrace eg. a "caused by..."?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069037
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user