[ exist-Bugs-2888240 ] class cast exception when inserting a node into a document

View: New views
1 Messages — Rating Filter:   Alert me  

[ exist-Bugs-2888240 ] class cast exception when inserting a node into a document

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2888240, was opened at 2009-10-28 15:23
Message generated for change (Tracker Item Submitted) made by sokolovm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2888240&group_id=17691

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: mike sokolov (sokolovm)
Assigned to: Nobody/Anonymous (nobody)
Summary: class cast exception when inserting a node into a document

Initial Comment:
insert a document in the database: /doc.xml

Then run this xquery:

update insert <node /> into doc("/doc.xml")

and get an error like this:

2009-10-28 16:22:50,978 [P1-9] ERROR (XQueryServlet.java [process]:417) - org.exist.dom.DocumentImpl
java.lang.ClassCastException: org.exist.dom.DocumentImpl
        at org.exist.xquery.update.Modification.selectAndLock(Modification.java:151)
        at org.exist.xquery.update.Insert.eval(Insert.java:139)
        at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
        at org.exist.xquery.PathExpr.eval(PathExpr.java:244)
        at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61)
        at org.exist.xquery.XQuery.execute(XQuery.java:232)
        at org.exist.xquery.XQuery.execute(XQuery.java:183)




----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2888240&group_id=17691

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open