Hi Rob,
Please check out the latest snapshot.
Christian
On Wed, Dec 3, 2014 at 4:39 PM, Christian Grün christian.gruen@gmail.com wrote:
Hi Rob,
It seems to be yet another new issue related to dynamic functions with the same type of exception, but (presumably) caused by another thing (just too much can happen here). I have opened a new GitHub entry [1].
Cheers, Christian
[1] https://github.com/BaseXdb/basex/issues/1038
On Wed, Dec 3, 2014 at 1:34 PM, Rob Stapper r.stapper@lijbrandt.nl wrote:
Now with running snippet that triggers the error.
- Rob
Van: basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] Namens Rob Stapper Verzonden: woensdag 3 december 2014 11:38 Aan: BaseX Onderwerp: [basex-talk] Error
Hi Christian,
I’m getting the error-message[ 1] shown below.
I’m using the GUI of the latest BaseX-snapshot: basex 8.0 beta aaca13a .
I’m not able (yet) to provide you with a small running snippet where this error occurs
but I can provide the piece of code where it starts going wrong:
This piece of code triggers the error:
=======================================
declare function local:sequenceElement.processor
( $sequenceElement as element( ) , $initialMap as map(*) ) { fold-left( $sequenceElement/child::* , $initialMap , local:element.processor#2 ) } ;
=======================================
If I change it into this piece of code all works fine:
=======================================
declare function local:sequenceElement.processor
( $sequenceElement as element( ) , $initialMap as map(*) ) { fold-left( $sequenceElement/child::* , $initialMap , function( $currentMap , $element ) { local:element.processor( $currentMap, $element) } ) } ;
=======================================
I have a feeling that this is a re-introduced bug, solved a while ago by Leo Woerteler.
I hope this is enough information to solve the issue.
Please let me know if you need more information.
TIA,
Rob Stapper
[ 1]
Error:
Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk@mailman.uni-konstanz.de
Version: BaseX 8.0 beta aaca13a
Java: Oracle Corporation, 1.7.0_71
OS: Windows Vista, x86
Stack Trace:
java.lang.ClassCastException: org.basex.query.value.type.AtomType cannot be cast to org.basex.query.value.type.FuncType
at org.basex.query.func.Closure.item(Closure.java:272) at org.basex.query.func.Closure.value(Closure.java:314) at org.basex.query.QueryContext.value(QueryContext.java:402) at org.basex.query.expr.gflwor.Let$LetEval.next(Let.java:187) at org.basex.query.expr.gflwor.GFLWOR$2.next(GFLWOR.java:74) at org.basex.query.iter.Iter.value(Iter.java:54) at org.basex.query.expr.ParseExpr.value(ParseExpr.java:67) at org.basex.query.QueryContext.value(QueryContext.java:402) at org.basex.query.func.StaticFunc.invValue(StaticFunc.java:199) at org.basex.query.func.FuncCall.invoke(FuncCall.java:87) at org.basex.query.func.FuncCall.value(FuncCall.java:61) at org.basex.query.QueryContext.value(QueryContext.java:402) at org.basex.query.value.item.FuncItem.invValue(FuncItem.java:127) at org.basex.query.func.FuncCall.invoke(FuncCall.java:87) at org.basex.query.func.FuncCall.value(FuncCall.java:159) at org.basex.query.value.item.FItem.invokeValue(FItem.java:43) at org.basex.query.func.fn.FnFoldLeft.iter(FnFoldLeft.java:28) at org.basex.query.expr.TypeCheck.iter(TypeCheck.java:85) at org.basex.query.expr.ParseExpr.item(ParseExpr.java:49) at org.basex.query.expr.ParseExpr.toItem(ParseExpr.java:467) at org.basex.query.expr.ParseExpr.toMap(ParseExpr.java:619) at org.basex.query.func.map.MapForEach.iter(MapForEach.java:17) at org.basex.query.expr.gflwor.GFLWOR$2.next(GFLWOR.java:78) at org.basex.query.MainModule$1.next(MainModule.java:117) at org.basex.query.QueryContext.execute(QueryContext.java:614) at org.basex.query.QueryProcessor.execute(QueryProcessor.java:100) at org.basex.core.cmd.AQuery.query(AQuery.java:82) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:360) at org.basex.core.Command.execute(Command.java:94) at org.basex.gui.GUI.exec(GUI.java:470) at org.basex.gui.GUI.access$5(GUI.java:427) at org.basex.gui.GUI$8.run(GUI.java:414)
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. www.avast.com
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. www.avast.com