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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
