Error calling QName Function (java.lang.UnsupportedOperationException)
Added by adian miko over 7 years ago
Hi, I need Help to call function on QName like this : count(/xbrli:xbrl/F210020300:Fac/met:md124[((./../MU:ld1) = xs:QName('MU:IDR')) and ((./../JK:ld7) = xs:QName('JK:e13')) and ((./../JK:ld8) = xs:QName('JK:e21'))])
I got Error Exception java.lang.UnsupportedOperationException. Currently i using Sahon-HE 9.5.1
Thanks.
Regard,
Adian
Replies (5)
Please register to reply
RE: Error calling QName Function (java.lang.UnsupportedOperationException)
-
Added by Michael Kay over 7 years ago
You've raised an issue on this as bug 3215. It's not helpful to have the same discussion in more than one place.
RE: Error calling QName Function (java.lang.UnsupportedOperationException)
-
Added by adian miko over 7 years ago
Hi michael,
this is my complete error exception :
at net.sf.saxon.xpath.JAXPXPathStaticContext.iteratePrefixes(JAXPXPathStaticContext.java:187)
at net.sf.saxon.expr.instruct.SavedNamespaceContext.<init>(SavedNamespaceContext.java:66)
at net.sf.saxon.functions.ConstructorFunctionLibrary.bind(ConstructorFunctionLibrary.java:117)
at net.sf.saxon.functions.FunctionLibraryList.bind(FunctionLibraryList.java:107)
at net.sf.saxon.expr.parser.ExpressionParser.parseFunctionCall(ExpressionParser.java:2399)
at net.sf.saxon.expr.parser.ExpressionParser.parseBasicStep(ExpressionParser.java:1722)
at net.sf.saxon.expr.parser.ExpressionParser.parseStepExpression(ExpressionParser.java:1636)
at net.sf.saxon.expr.parser.ExpressionParser.parseRelativePath(ExpressionParser.java:1562)
at net.sf.saxon.expr.parser.ExpressionParser.parsePathExpression(ExpressionParser.java:1529)
at net.sf.saxon.expr.parser.ExpressionParser.parseSimpleMappingExpression(ExpressionParser.java:1539)
at net.sf.saxon.expr.parser.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1419)
at net.sf.saxon.expr.parser.ExpressionParser.parseBinaryExpression(ExpressionParser.java:584)
at net.sf.saxon.expr.parser.ExpressionParser.parseExprSingle(ExpressionParser.java:525)
at net.sf.saxon.expr.parser.ExpressionParser.parseExpression(ExpressionParser.java:464)
at net.sf.saxon.expr.parser.ExpressionParser.parseBasicStep(ExpressionParser.java:1710)
at net.sf.saxon.expr.parser.ExpressionParser.parseStepExpression(ExpressionParser.java:1636)
at net.sf.saxon.expr.parser.ExpressionParser.parseRelativePath(ExpressionParser.java:1562)
at net.sf.saxon.expr.parser.ExpressionParser.parsePathExpression(ExpressionParser.java:1529)
at net.sf.saxon.expr.parser.ExpressionParser.parseSimpleMappingExpression(ExpressionParser.java:1539)
at net.sf.saxon.expr.parser.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1419)
at net.sf.saxon.expr.parser.ExpressionParser.parseExprSingle(ExpressionParser.java:525)
at net.sf.saxon.expr.parser.ExpressionParser.parseExpression(ExpressionParser.java:464)
at net.sf.saxon.expr.parser.ExpressionParser.parsePredicate(ExpressionParser.java:1677)
at net.sf.saxon.expr.parser.ExpressionParser.parseStepExpression(ExpressionParser.java:1646)
at net.sf.saxon.expr.parser.ExpressionParser.parseRemainingPath(ExpressionParser.java:1598)
at net.sf.saxon.expr.parser.ExpressionParser.parsePathExpression(ExpressionParser.java:1503)
at net.sf.saxon.expr.parser.ExpressionParser.parseSimpleMappingExpression(ExpressionParser.java:1539)
at net.sf.saxon.expr.parser.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1419)
at net.sf.saxon.expr.parser.ExpressionParser.parseExprSingle(ExpressionParser.java:525)
at net.sf.saxon.expr.parser.ExpressionParser.parseFunctionArgument(ExpressionParser.java:2578)
at net.sf.saxon.expr.parser.ExpressionParser.parseFunctionCall(ExpressionParser.java:2366)
at net.sf.saxon.expr.parser.ExpressionParser.parseBasicStep(ExpressionParser.java:1722)
at net.sf.saxon.expr.parser.ExpressionParser.parseStepExpression(ExpressionParser.java:1636)
at net.sf.saxon.expr.parser.ExpressionParser.parseRelativePath(ExpressionParser.java:1562)
at net.sf.saxon.expr.parser.ExpressionParser.parsePathExpression(ExpressionParser.java:1529)
at net.sf.saxon.expr.parser.ExpressionParser.parseSimpleMappingExpression(ExpressionParser.java:1539)
at net.sf.saxon.expr.parser.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1419)
at net.sf.saxon.expr.parser.ExpressionParser.parseExprSingle(ExpressionParser.java:525)
at net.sf.saxon.expr.parser.ExpressionParser.parseExpression(ExpressionParser.java:464)
at net.sf.saxon.expr.parser.ExpressionParser.parse(ExpressionParser.java:400)
at net.sf.saxon.expr.parser.ExpressionTool.make(ExpressionTool.java:101)
at net.sf.saxon.xpath.XPathEvaluator.createExpressionInternal(XPathEvaluator.java:268)
at net.sf.saxon.xpath.XPathEvaluator.compile(XPathEvaluator.java:409)
at be.xbrlcore.formula.GeneralVariable.compile(GeneralVariable.java:146)
at be.xbrlcore.formula.GeneralVariable.evaluate(GeneralVariable.java:85)
at be.xbrlcore.linkbase.FormulaLinkbase.assertValue(FormulaLinkbase.java:772)
at be.xbrlcore.linkbase.FormulaLinkbase$AssertValueCallable.call(FormulaLinkbase.java:2012)
at be.xbrlcore.linkbase.FormulaLinkbase$AssertValueCallable.call(FormulaLinkbase.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source
Thanks..
Adian
RE: Error calling QName Function (java.lang.UnsupportedOperationException)
-
Added by Michael Kay over 7 years ago
Thanks.
I'll look into it more carefully. But I can see it's a consequence of the ghastly design of the JAXP NamespaceContext object which doesn't allow you to get a complete list of the prefix/uri namespace bindings present, and therefore doesn't allow the data to be copied into Saxon's internal data structures to hold static context information. I think we found a solution in later releases, but I'll check.
RE: Error calling QName Function (java.lang.UnsupportedOperationException)
-
Added by adian miko over 7 years ago
Hi michael,
thanks for fast replay. i will waiting for good news from you.
Thanks
Adian
RE: Error calling QName Function (java.lang.UnsupportedOperationException)
-
Added by Michael Kay over 7 years ago
I have added a JUnit test that verifies this is working correctly in 9.7, so I am going to close the issue. We would only consider fixing 9.5 now under very exceptional circumstances.
Please register to reply