AnsweredAssumed Answered

Alfresco's JCR API does not support required xs:dateTime

Question asked by lfuller on Apr 2, 2007
Latest reply on Apr 2, 2007 by lfuller
An xpath query of "//*[@cm:created > xs:dateTime('2001-01-01T00:00:00.000Z')]"

results in an exception:

Caused by: org.jaxen.UnresolvableException: No Such Function dateTime
   at org.jaxen.SimpleFunctionContext.getFunction(SimpleFunctionContext.java:141)
   at org.jaxen.ContextSupport.getFunction(ContextSupport.java:251)
   at org.jaxen.Context.getFunction(Context.java:205)
   at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:181)
   at org.jaxen.expr.DefaultRelationalExpr.evaluate(DefaultRelationalExpr.java:88)
   at org.jaxen.expr.DefaultPredicate.evaluate(DefaultPredicate.java:105)
   at org.jaxen.expr.PredicateSet.applyPredicate(PredicateSet.java:176)
   at org.jaxen.expr.PredicateSet.evaluatePredicates(PredicateSet.java:151)
   at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:292)
   at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:154)
   at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPath.java:121)
   at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:112)
   at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:688)
   at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:227)
   at org.alfresco.repo.search.NodeServiceXPath.selectNodes(NodeServiceXPath.java:187)
   at org.alfresco.repo.search.impl.NodeSearcher.selectNodes(NodeSearcher.java:130)

Has anyone else ran into this bug?

Outcomes