You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Dirk Joosen (JIRA)" <xm...@xml.apache.org> on 2008/10/10 12:25:44 UTC

[jira] Created: (XMLBEANS-383) XQueryXPath example fails to run.

XQueryXPath example fails to run. 
----------------------------------

                 Key: XMLBEANS-383
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-383
             Project: XMLBeans
          Issue Type: Bug
          Components: Samples
    Affects Versions: Version 2.4 
         Environment: Mac osX 10.5
            Reporter: Dirk Joosen
             Fix For: Version 2.4 


I try the example XQueryXPath with the following versions:
XMLBeans 2.4.0
saxonb9-1-0-2j.
I'm able to build the project ant build without any failueres.
The tests however fails:
unning ExecQuery.selectEmpsByStateCursor

Exception in thread "main" java.lang.IllegalArgumentException: Sender can only handle document or element nodes
	at net.sf.saxon.event.Sender.send(Sender.java:174)
	at net.sf.saxon.event.Sender.send(Sender.java:50)
	at net.sf.saxon.Configuration.buildDocument(Configuration.java:2973)
	at org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:83)
	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl$DelegateQueryEngine.cursorExecute(Query.java:384)
	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl.cursorExecute(Query.java:282)
	at org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:80)
	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336)
	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331)
	at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839)
	at org.apache.xmlbeans.samples.xquery.ExecQuery.updateWorkPhone(ExecQuery.java:75)
	at org.apache.xmlbeans.samples.xquery.XQueryXPath.executeQueries(XQueryXPath.java:75)
	at org.apache.xmlbeans.samples.xquery.XQueryXPathTest.main(XQueryXPathTest.java:29)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


Re: [jira] Commented: (XMLBEANS-383) XQueryXPath example fails to run.

Posted by krischan83 <ch...@gmx.net>.
Hi,

I also tried the example today and got the same error.
(used the saxonb9-0-0-4j package)
However only jdk1.5 is available at my workstation - could the raise the
problem?

Best
Christian


JIRA xmlbeans-dev@xml.apache.org wrote:
> 
> Wing Yew Poon commented on XMLBEANS-383:
> ----------------------------------------
> 
> I ran the sample using saxonb9-0-0-4j. It works fine for me.
> When XMLBeans 2.4.0 was released, it was tested using the then-current
> Saxon release, saxonb9-0-0-4j.
> Can you try it with that release and see?
> 
>>
>> I try the example XQueryXPath with the following versions:
>> XMLBeans 2.4.0
>> saxonb9-1-0-2j.
>> I'm able to build the project ant build without any failueres.
>> The tests however fails:
>> unning ExecQuery.selectEmpsByStateCursor
>> Exception in thread "main" java.lang.IllegalArgumentException: Sender can
>> only handle document or element nodes
>> 	at net.sf.saxon.event.Sender.send(Sender.java:174)
>> ......
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28XMLBEANS-383%29-XQueryXPath-example-fails-to-run.-tp19915743p20159284.html
Sent from the Xml Beans - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-383) XQueryXPath example fails to run.

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652088#action_12652088 ] 

Radu Preotiuc-Pietro commented on XMLBEANS-383:
-----------------------------------------------

Same here, the example works fine (using JDK 1.5.0_11)

If you have already tried the XMLBeans 2.4.0/SaxonB 9.0.0.4 and still get the error, then the only thing I can see different is that you are running Mac osX.

Are you sure that SaxonB works with Mac osX? We have reports that XMLBeans does work, but it looks like the XMLBeans/Saxon combination is broken on either the Saxon side or the interconnection side.


> XQueryXPath example fails to run. 
> ----------------------------------
>
>                 Key: XMLBEANS-383
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-383
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: Version 2.4 
>         Environment: Mac osX 10.5
>            Reporter: Dirk Joosen
>             Fix For: Version 2.4 
>
>
> I try the example XQueryXPath with the following versions:
> XMLBeans 2.4.0
> saxonb9-1-0-2j.
> I'm able to build the project ant build without any failueres.
> The tests however fails:
> unning ExecQuery.selectEmpsByStateCursor
> Exception in thread "main" java.lang.IllegalArgumentException: Sender can only handle document or element nodes
> 	at net.sf.saxon.event.Sender.send(Sender.java:174)
> 	at net.sf.saxon.event.Sender.send(Sender.java:50)
> 	at net.sf.saxon.Configuration.buildDocument(Configuration.java:2973)
> 	at org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:83)
> 	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl$DelegateQueryEngine.cursorExecute(Query.java:384)
> 	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl.cursorExecute(Query.java:282)
> 	at org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:80)
> 	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336)
> 	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331)
> 	at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839)
> 	at org.apache.xmlbeans.samples.xquery.ExecQuery.updateWorkPhone(ExecQuery.java:75)
> 	at org.apache.xmlbeans.samples.xquery.XQueryXPath.executeQueries(XQueryXPath.java:75)
> 	at org.apache.xmlbeans.samples.xquery.XQueryXPathTest.main(XQueryXPathTest.java:29)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-383) XQueryXPath example fails to run.

Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638596#action_12638596 ] 

Wing Yew Poon commented on XMLBEANS-383:
----------------------------------------

I ran the sample using saxonb9-0-0-4j. It works fine for me.
When XMLBeans 2.4.0 was released, it was tested using the then-current Saxon release, saxonb9-0-0-4j.
Can you try it with that release and see?

> XQueryXPath example fails to run. 
> ----------------------------------
>
>                 Key: XMLBEANS-383
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-383
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: Version 2.4 
>         Environment: Mac osX 10.5
>            Reporter: Dirk Joosen
>             Fix For: Version 2.4 
>
>
> I try the example XQueryXPath with the following versions:
> XMLBeans 2.4.0
> saxonb9-1-0-2j.
> I'm able to build the project ant build without any failueres.
> The tests however fails:
> unning ExecQuery.selectEmpsByStateCursor
> Exception in thread "main" java.lang.IllegalArgumentException: Sender can only handle document or element nodes
> 	at net.sf.saxon.event.Sender.send(Sender.java:174)
> 	at net.sf.saxon.event.Sender.send(Sender.java:50)
> 	at net.sf.saxon.Configuration.buildDocument(Configuration.java:2973)
> 	at org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:83)
> 	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl$DelegateQueryEngine.cursorExecute(Query.java:384)
> 	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl.cursorExecute(Query.java:282)
> 	at org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:80)
> 	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336)
> 	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331)
> 	at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839)
> 	at org.apache.xmlbeans.samples.xquery.ExecQuery.updateWorkPhone(ExecQuery.java:75)
> 	at org.apache.xmlbeans.samples.xquery.XQueryXPath.executeQueries(XQueryXPath.java:75)
> 	at org.apache.xmlbeans.samples.xquery.XQueryXPathTest.main(XQueryXPathTest.java:29)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-383) XQueryXPath example fails to run.

Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cezar Andrei resolved XMLBEANS-383.
-----------------------------------

    Resolution: Cannot Reproduce

Please reopen if more info is available.

> XQueryXPath example fails to run. 
> ----------------------------------
>
>                 Key: XMLBEANS-383
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-383
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: Version 2.4 
>         Environment: Mac osX 10.5
>            Reporter: Dirk Joosen
>             Fix For: Version 2.4 
>
>
> I try the example XQueryXPath with the following versions:
> XMLBeans 2.4.0
> saxonb9-1-0-2j.
> I'm able to build the project ant build without any failueres.
> The tests however fails:
> unning ExecQuery.selectEmpsByStateCursor
> Exception in thread "main" java.lang.IllegalArgumentException: Sender can only handle document or element nodes
> 	at net.sf.saxon.event.Sender.send(Sender.java:174)
> 	at net.sf.saxon.event.Sender.send(Sender.java:50)
> 	at net.sf.saxon.Configuration.buildDocument(Configuration.java:2973)
> 	at org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:83)
> 	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl$DelegateQueryEngine.cursorExecute(Query.java:384)
> 	at org.apache.xmlbeans.impl.store.Query$DelegateQueryImpl.cursorExecute(Query.java:282)
> 	at org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:80)
> 	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336)
> 	at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331)
> 	at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839)
> 	at org.apache.xmlbeans.samples.xquery.ExecQuery.updateWorkPhone(ExecQuery.java:75)
> 	at org.apache.xmlbeans.samples.xquery.XQueryXPath.executeQueries(XQueryXPath.java:75)
> 	at org.apache.xmlbeans.samples.xquery.XQueryXPathTest.main(XQueryXPathTest.java:29)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org