cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: CForms - load / save to different targets
Date Fri, 24 Sep 2004 22:20:23 GMT
On 24.09.2004 11:01, Jorg Heymans wrote:

> Original Exception: org.apache.commons.jxpath.JXPathException: Exception 
> trying to create xpath selectedGroups; Factory is not set on the 
> JXPathContext - cannot create path: /selectedGroups

That's similar to a NullPointerException. Your variable is null, so 
JXPath can not crawl along the path - and it does not know how to create 
the path. One solution is Robin's proposal, another one is a modified 
getter which I often use:

public Object getObject() {
     if (this.object = null) {
         this.object = new Object();
     }
     return this.object;
}

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message