3 Replies Latest reply on Oct 27, 2014 5:13 PM by Jorge Morales

    rtgov ip and switchyard file binding

    Alexander Sokolovsky Newbie

      Dear All,

       

      I create simple switchyard project that moves xml file from one folder to another.

       

      Xml file example:

      <?xml version="1.0" encoding="UTF-8"?>

      <Data xmlns="urn:ru.rdif:test1:Data:1.0">

            <Item>

                  <Id>12345</Id>

                  <Value>qwerty</Value>

           </Item>

      </Data>


      I prepare rtgov IP project and define typeProcessors:

      [{

        "name":"test1",

        "version":"1.0.0-SNAPSHOT",

        "typeProcessors":{

             "{urn:ru.rdif:test1:Data:1.0}Data":{

                  "contexts":[{

                       "type":"Conversation",

                       "evaluator":{

                            "type":"xpath",

                            "expression":"/Data/Item/Id"

                       }

                  }],

                  "properties":[{

                       "name":"customer",

                       "evaluator":{

                            "type":"xpath",

                            "expression":"/Data/Item/Value"

                       }

                  },{

                       "name":"item",

                       "evaluator":{

                            "type":"xpath",

                            "expression":"/Data/Item/Id"

                       }

                  },{

                       "name":"contentType",

                       "header":"org.switchyard.contentType",

                       "evaluator":{

                            "type":"mvel",

                            "expression":"toString()"

                       }

                  }]

             }

        }

      }]

       

      When I run project I get the following errors:

      12:32:39,474 SEVERE [org.overlord.rtgov.activity.processor.TypeProcessor] (Camel (camel-5) thread #10 - file:///Users/amsokol/Development/workspace-1/--in) Context expression '/Data/Item/Id' failed to obtain a value from information: java.io.BufferedInputStream@475615f7

      12:32:39,475 SEVERE [org.overlord.rtgov.activity.processor.TypeProcessor] (Camel (camel-5) thread #10 - file:///Users/amsokol/Development/workspace-1/--in) Property expression '/Data/Item/Value' failed to obtain a value from information: java.io.BufferedInputStream@475615f7

      12:32:39,475 SEVERE [org.overlord.rtgov.activity.processor.TypeProcessor] (Camel (camel-5) thread #10 - file:///Users/amsokol/Development/workspace-1/--in) Property expression '/Data/Item/Id' failed to obtain a value from information: java.io.BufferedInputStream@475615f7

       

      Does it mean rtgov is not supporting switchyard file binding?

      or may be I do something wrong?

       

      Thank you for help,

      Alexander