I just committed a bug fix to version control that resolves this issue.
LTKJava wrongly assumed that the version attribute is required in LTK-XML
messages. If the version attribute is not set, LTKJava will now set the
version to "001". 
 
    - Christian
 


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Dietrich
Sent: Mittwoch, 11. Juni 2008 18:11
To: LLRP Toolkit Development List
Subject: Re: [ltk-d] simple Java example



Adding the Version=”1” attribute to the XML message did fix the problem.

 


  _____  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Dietrich
Sent: Monday, June 09, 2008 5:12 PM
To: LLRP Toolkit Development List
Subject: [ltk-d] simple Java example

 

All,

 

I was trying to run the simple java example on the following XML file

 

<ADD_ROSPEC_RESPONSE

    xmlns="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0";

   xmlns:llrp="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0";

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  

   xsi:schemaLocation="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0
http://www.llrp.org/ltk/schema/core/encoding/xml/1.0/llrp.xsd"; 

 MessageID="0">

  <LLRPStatus>

    <StatusCode>M_Success</StatusCode>

    <ErrorDescription></ErrorDescription>

  </LLRPStatus>

  </ADD_ROSPEC_RESPONSE>

 

When I download the jar, and put ‘.’ Into my classpath, I execute and get
the following response.  To me the XML looks good and my editor validates it
properly against the LTK schema.  

 

java -jar LTKJava_lib_with_dep_0_1_1-alpha.jar -x  -f addrospecresponse.xml 

LLRP Message is not valid addrospecresponse.xml

null

 

Any ideas?  Seems like the tools help menu is also incorrect.  Doing “java
xxx.jar –x file.xml” does do anything.  I need to do add a –f before the
filename.  “java xxx.jar –x –f file.xml”

 

Regards,

 

Paul

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to