You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bummer <sa...@gmail.com> on 2007/05/30 09:43:19 UTC

Re: Error calling JSR181 component

The jsr181 ochestration sample gave the same error (.... current event is not
START_ELEMENT ....)

In the CityTimeImpl.java class
[...]
  public GetCityTimeResponse getCityTime(GetCityTimeRequest
GetCityTimeRequest) {
            
            GetInfoByCity GetInfoByCity = new GetInfoByCity();
            GetInfoByCity.setUSCity(GetCityTimeRequest.getCity());
            
            GetInfoByCityResponse r = usZip.getInfoByCity(GetInfoByCity);
            Element e = (Element)
r.getGetInfoByCityResult().getContent().get(0);
            e = (Element) e.getElementsByTagName("Table").item(0);
            e = (Element) e.getElementsByTagName("ZIP").item(0);
            String ZipCode = e.getTextContent();
            
            //String lt = localTime.localTimeByZipCode(ZipCode); // at this
part it errored 

            GetCityTimeResponse rep = new GetCityTimeResponse();
            rep.getString().add("23:23");
            //rep.setTime(lt);  // wsgen didn't generate "setTime" function
            return rep;
        }
[...]





ender wrote:
> 
> I tried it with the latest trunk from the SVN, as well as the latest 3.1
> branch, and it gives the same error with each of them.
> 
> Greetings
> Stein Desmet
> 
> 
> 
> gnodet wrote:
>> 
>> Which exact version do you use ?
>> I think some bugs that could be relatd have been fixed in 3.1 branch,
>> so if you could compile and try with the latest 3.1 source code,
>> this may fix the problem.
>> Else, you should raise a JIRA and attach all the files needed to
>> reproduce
>> the problem. Thanks.
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-calling--JSR181-component-tf3433923s12049.html#a10869039
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Error calling JSR181 component

Posted by Gert Vanthienen <ge...@skynet.be>.
L.S.,

Can you raise a JIRA and attach your failing SA to it (as well as some 
instructions on how to reproduce it)?  We'll try to look into it as soon 
as possible...

Regards,

Gert

Bummer wrote:
> The jsr181 ochestration sample gave the same error (.... current event is not
> START_ELEMENT ....)
> 
> In the CityTimeImpl.java class
> [...]
>   public GetCityTimeResponse getCityTime(GetCityTimeRequest
> GetCityTimeRequest) {
>             
>             GetInfoByCity GetInfoByCity = new GetInfoByCity();
>             GetInfoByCity.setUSCity(GetCityTimeRequest.getCity());
>             
>             GetInfoByCityResponse r = usZip.getInfoByCity(GetInfoByCity);
>             Element e = (Element)
> r.getGetInfoByCityResult().getContent().get(0);
>             e = (Element) e.getElementsByTagName("Table").item(0);
>             e = (Element) e.getElementsByTagName("ZIP").item(0);
>             String ZipCode = e.getTextContent();
>             
>             //String lt = localTime.localTimeByZipCode(ZipCode); // at this
> part it errored 
> 
>             GetCityTimeResponse rep = new GetCityTimeResponse();
>             rep.getString().add("23:23");
>             //rep.setTime(lt);  // wsgen didn't generate "setTime" function
>             return rep;
>         }
> [...]
> 
> 
> 
> 
> 
> ender wrote:
>> I tried it with the latest trunk from the SVN, as well as the latest 3.1
>> branch, and it gives the same error with each of them.
>>
>> Greetings
>> Stein Desmet
>>
>>
>>
>> gnodet wrote:
>>> Which exact version do you use ?
>>> I think some bugs that could be relatd have been fixed in 3.1 branch,
>>> so if you could compile and try with the latest 3.1 source code,
>>> this may fix the problem.
>>> Else, you should raise a JIRA and attach all the files needed to
>>> reproduce
>>> the problem. Thanks.
>>>
>>>
>>
>