XUPDATE from SA to OA

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Tadashi Okoshi (slash+@cs.cmu.edu)
Date: 02/03/03


When I run the PSF SA and OA, OA outpus following error after it
gets update from the SA.

-------------------------------------------------------------------------
Daemon.run(): Waiting for new connection on port 6789
Daemon.run(): Received connection.
Packet.Receive(): Expecting packet of length 1162
Servant.run(): Received packet: /tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/parkingSpace[@id='1']/usage/in-use yes /tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/parkingSpace[@id='2']/usage/in-use yes /tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/parkingSpace[@id='3']/usage/in-use yes
/tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/parkingSpace[@id='4']/usage/in-use yes /tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/parkingSpace[@id='5']/usage/in-use yes /tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/parkingSpace[@id='6']/usage/in-use yes /tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/available-spaces/total 6 /tokoshiParkingROOT/usRegion/state/county/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block[@id='3']/@expiry 1044307165763 ENDMESSAGE

java.lang.Exception: Message not in correct format
        at com.intel.sensors.oa.Protocol.parseIncomingMessage(Protocol.java:137)
        at com.intel.sensors.oa.Servant.run(Servant.java:94)
        at com.intel.sensors.oa.Daemon.run(Daemon.java:81)
        at java.lang.Thread.run(Thread.java:479)
-------------------------------------------------------------------------

I don't see the format like
"B <SA's IP> <TOTAL # of XUPDATE> <XUPDATE commands>" shown in the handout.

When I modify the message to follow the format above, Xindice looks working.
(There are some errors appearing, though).

-------------------------------------------------------------------------
XindiceInterface.applyXUpdate(): <xu:modifications version='1.0' xmlns:xu='http
://www.xmldb.org/xupdate'> <xu:update select="/tokoshiPTROT/usRegion/state/cou
nty/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/organization[@id='CMU']/
building[@id='Wean">Hall']/person/[@id='Heartiago</xu:update></xu:modifications
>
org.apache.xindice.client.corba.db.APIException: IDL:org/apache/xindice/client/
corba/db/APIException:1.0
        at org.apache.xindice.client.corba.db.APIExceptionHelper.read(APIExcept
ionHelper.java:112)
        at org.apache.xindice.client.corba.db._CollectionStub.queryCollection(_
CollectionStub.java:833)
        at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.upd
ateResult(XUpdateQueryServiceImpl.java:165)
(snip)
-------------------------------------------------------------------------

So, why doesn't PSF SA output the message in the format with
"B IPaddr num-of-cmds..." ?

Am I missing some information and am going to a wrong way!?

Tadashi


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.5 : 06/10/04 EDT