R: 6.913 [ ERROR ][CPFDemarshaller] An XML SAX parsing error occurred processing file

Dear Sirs,

Here below is the file that can't be read on gnulinu system with rock:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "cpf.dtd">
<properties>
<struct name="injuriesData" type="/rosetta/injuriesInformation">
<description>data representing the used injuries model</description>
<struct name="injData1" type="/std/vector</double>">
<description>Part</description>
<simple name="Element0" type="double"><description>Sequence Element</description><value>65</value></simple>
<simple name="Element1" type="double"><description>Sequence Element</description><value>90</value></simple>
<simple name="Element2" type="double"><description>Sequence Element</description><value>20</value></simple>
<simple name="Element3" type="double"><description>Sequence Element</description><value>75</value></simple>
</struct>

......................

..........................

the error is on line

<struct name="injData1" type="/std/vector</double>">

This file is read without any problem on host with orocos 2.3.1 and xenomai

If I change the above file replacing the above line
with the following one:

<struct name="injData1" type="array">

changing the file as is shown below, the file is read successfully on host with rock.
Why this difference?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "cpf.dtd">
<properties>
<struct name="injuriesData" type="/rosetta/injuriesInformation">
<description>data representing the used injuries model</description>
<struct name="injData1" type="array">
<description>Part</description>
<simple name="Element0" type="double"><description>Sequence Element</description><value>0</value></simple>
<simple name="Element1" type="double"><description>Sequence Element</description><value>0</value></simple>
<simple name="Element2" type="double"><description>Sequence Element</description><value>0</value></simple>
<simple name="Element3" type="double"><description>Sequence Element</description><value>0</value></simple>
</struct>

..............

Thnk you in advance.

G. Rizzi
----Messaggio originale----

Da: gprizzi [..] ...

Data: 1-mag-2011 19.11

A: <orocos-users [..] ...>

Ogg: [Orocos-users] 6.913 [ ERROR ][CPFDemarshaller] An XML SAX parsing error occurred processing file

Dear Sirs,

I am using a fresh installed rock toolchain configured with ocl, omniorb, gnulinux.
One of my components crashes with the following error:

0.012 [ Info ][Logger] No ORO_LOGLEVEL environment variable set.
0.012 [ Info ][Logger] OROCOS version '2.3.1' compiled with GCC 4.4.3. Running in GNU/Linux.
0.012 [ Info ][Logger] Orocos Logging Activated at level : [ Warning] ( 4 )
0.014 [ Info ][Logger] Reference System Time is : 1304269170965617626 ticks ( 1.30427e+09 seconds ).
0.014 [ Info ][Logger] Logging is relative to this time.
0.014 [ Info ][Logger] RTT_COMPONENT_PATH was set to: /usr/local/lib/rock/lib/orocos/:/usr/src/rock/install/lib/orocos/: . Searching in: /usr/local/lib/rock/lib/orocos/:/usr/src/rock/install/lib/orocos/::/
0.014 [ Info ][Logger] plugin 'rtt' not loaded before.
0.015 [ Info ][Logger] Loading plugin libraries from directory /usr/src/rock/install/lib/orocos/gnulinux/./plugins ...
0.066 [ Info ][Logger] Loaded RTT Service 'os' from 'os-gnulinux'
0.167 [ Info ][Logger] Loaded RTT Service 'scripting' from 'rtt-scripting-gnulinux'
0.204 [ Info ][Logger] Loaded RTT Service 'print' from 'print-gnulinux'
0.204 [ Info ][Logger] Loaded RTT Service 'marshalling' from 'rtt-marshalling-gnulinux'
0.251 [ Info ][Logger] Loaded RTT Service 'Lua' from 'rttlua-plugin-gnulinux'
0.251 [ Info ][Logger] typekit 'rtt' not loaded before.
0.251 [ Info ][Logger] Loading typekit libraries from directory /usr/local/lib/rock/lib/orocos/./types ...
0.449 [ Info ][TypekitRepository::Import] Loading Typekit /orogen/rosetta.
0.452 [ Info ][Logger] Loaded RTT TypeKit/Transport '/orogen/rosetta' from 'rosetta-typekit-gnulinux'
0.465 [ Info ][TypekitRepository::Import] Loading Transport CORBA:///orogen/rosetta.

6.907 [ Info ][PropertyLoader:configure] Reading Property 'injuriesData' from file 'InjuriesInterface.cpf'.
6.913 [ ERROR ][CPFDemarshaller] An XML SAX parsing error occurred processing file
6.913 [ ERROR ][CPFDemarshaller] A '<' character cannot be used in attribute 'type', except through &amp;lt;
6.913 [ ERROR ][CPFDemarshaller] Column 58 Line 6
6.914 [ ERROR ][PropertyLoader:configure] Some error occured while parsing InjuriesInterface.cpf
6.914 [ ERROR ][./Rosetta::main()] cannot configure kifInt
7.143 [ Info ][Logger] Orocos Logging Deactivated.

The same component successfully reads the configuration file on a different host with
orocos toolchain 2.3.1 configured with omniorb and xenomai.

Can you suggest me which differences in the configuration between the two hosts can give this error?

Thank you in advance

R: 6.913 [ ERROR ][CPFDemarshaller] An XML SAX parsing error occ

On Sunday 01 May 2011 19:27:22 gprizzi [..] ... wrote:
> Dear Sirs,
>
> Here below is the file that can't be read on gnulinu system with rock:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE properties SYSTEM "cpf.dtd">
> <properties>
> <struct name="injuriesData" type="/rosetta/injuriesInformation">
> <description>data representing the used injuries model</description>
> <struct name="injData1" type="/std/vector</double>">
> <description>Part</description>
> <simple name="Element0" type="double"><description>Sequence
> Element</description><value>65</value></simple> <simple name="Element1"
> type="double"><description>Sequence
> Element</description><value>90</value></simple> <simple name="Element2"
> type="double"><description>Sequence
> Element</description><value>20</value></simple> <simple name="Element3"
> type="double"><description>Sequence
> Element</description><value>75</value></simple> </struct>
>
> ......................
>
> ..........................
>
>
> the error is on line
>
> <struct name="injData1" type="/std/vector</double>">
>
> This file is read without any problem on host with orocos 2.3.1 and xenomai

Probably, that host uses TinyXML, while this build is using Xerces, which does
more checks on correctness. You need to write:

<struct name="injData1" type="/std/vector&lt;/double&gt;">

So never use '<' in XML, except when opening a tag.

Was this file generated or self-written ?

Peter

R: 6.913 [ ERROR ][CPFDemarshaller] An XML SAX parsing error occ

On 05/11/2011 10:17 AM, Peter Soetens wrote:
> Was this file generated or self-written ?
As far as I got his report, it is generated by the typekit generated by
orogen (i.e. typegen)

Sylvain