You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Jane Riese <jr...@lanl.gov> on 2002/04/04 01:03:53 UTC

XUpdate and jdk1.4

Hi -

I am testing Xindice 1.0 using jdk1.4 and have
problems with the XUpdateQueryService not working.
The errror message is:

DEBUG> 
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMNodeIterator
        at org.apache.xindice.core.xupdate.XObjectImpl.nodeset(XObjectImpl.java:105)
        at org.xmldb.xupdate.lexus.commands.CommandObject.selectNodes(CommandObject.java:139)
        at org.xmldb.xupdate.lexus.commands.UpdateCommand.execute(UpdateCommand.java:104)
        at org.apache.xindice.core.xupdate.XUpdateImpl.execute(XUpdateImpl.java:153)
        at org.apache.xindice.core.xupdate.XUpdateQueryResolver$XUpdateQuery.execute(XUpdateQueryResolver.java:163)
        at org.apache.xindice.core.xupdate.XUpdateQueryResolver.query(XUpdateQueryResolver.java:106)
        at org.apache.xindice.core.query.QueryEngine.query(QueryEngine.java:147)
        at org.apache.xindice.core.Collection.queryDocument(Collection.java:867)
        at org.apache.xindice.client.corba.CollectionServant.queryDocument(CollectionServant.java:451)
        at org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPOA.java:355)
        at org.openorb.adapter.poa.POA.dispatch(POA.java:975)
        at org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:750)
        at org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1467)
        at org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1410)
        at org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
        at org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557)

The code works fine with jdk1.3.  Has anyone run into this before?  
Also, what is the status of the XUpdate API and Xindice?  Is it time
to start eliminating uses of this API from my code?

Thanks,

Jane Riese

Re: XUpdate and jdk1.4

Posted by Lars Martin <La...@smb-tec.com>.
On Wed, 03 Apr 2002 16:03:53 -0700
Jane Riese <jr...@lanl.gov> wrote:

> Hi -
> 
> I am testing Xindice 1.0 using jdk1.4 and have

Does JDK1.4 come with an own XML parser? May be there are some troubles
with your classpath settings and different versions of XML parsers?

Did you test your XUpdate command in standalonde mode? You can start
the Lexus main class with the proper command line switches. Do you
get the same ClassCastException? May be it's a communication
problem Xindice <-> Lexus.

Regards.

> problems with the XUpdateQueryService not working.
> The errror message is:
> 
> DEBUG> 
> java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMNodeIterator
>         at org.apache.xindice.core.xupdate.XObjectImpl.nodeset(XObjectImpl.java:105)
>         at org.xmldb.xupdate.lexus.commands.CommandObject.selectNodes(CommandObject.java:139)
>         at org.xmldb.xupdate.lexus.commands.UpdateCommand.execute(UpdateCommand.java:104)
>         at org.apache.xindice.core.xupdate.XUpdateImpl.execute(XUpdateImpl.java:153)
>         at org.apache.xindice.core.xupdate.XUpdateQueryResolver$XUpdateQuery.execute(XUpdateQueryResolver.java:163)
>         at org.apache.xindice.core.xupdate.XUpdateQueryResolver.query(XUpdateQueryResolver.java:106)
>         at org.apache.xindice.core.query.QueryEngine.query(QueryEngine.java:147)
>         at org.apache.xindice.core.Collection.queryDocument(Collection.java:867)
>         at org.apache.xindice.client.corba.CollectionServant.queryDocument(CollectionServant.java:451)
>         at org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPOA.java:355)
>         at org.openorb.adapter.poa.POA.dispatch(POA.java:975)
>         at org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:750)
>         at org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1467)
>         at org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1410)
>         at org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
>         at org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557)
> 
> The code works fine with jdk1.3.  Has anyone run into this before?  
> Also, what is the status of the XUpdate API and Xindice?  Is it time
> to start eliminating uses of this API from my code?
> 
> Thanks,
> 
> Jane Riese
> 


--
______________________________________________________________________
Lars Martin                             mailto:Lars.Martin@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com