AnsweredAssumed Answered

Error when I use getNode with integer value

Question asked by maina on Sep 24, 2007
Hi all,

I'm trying to obtain the node reference of a folder via JCR.
I created in Alfresco web page a new space called 730.

Now I would like to obtain the node reference as:

Node companyHome = root.getNode("app:company_home");
Node node= root.getNode("cm:730");

The applicatione give me the exception error:

javax.jcr.RepositoryException: Error executing xpath:
   xpath: cm:730

I think the problem problably is located in the cm value : integer (730).
In fact if I add a node as node.addNode("cm:_730", "cm:folder") any exception is raised and if I call node.getNode("cm:_730"); I obtain the node reference correctly.

Many thanks.