velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sourav Basu <basu2...@yahoo.co.in>
Subject Value of String Array[] not obtained in vm file when calling a method in a Java class running against jre v1.5 update 12
Date Wed, 24 Oct 2007 19:02:40 GMT
Hi All,

I am facing the below mentioned issue after upgrading jdk/jre from v1.4.2 update 13 to v1.5
update 12. 
 
 The value of a String Array is not obtained in the .vm file when calling a method in a Java
class running against jre v1.5 update 12. The vm file is calling the java method using SOAP
service. The String Array contains values at the java class level, however, when the array
is returned to the vm file, it is obtained as null. 
 
 The same method works fine when tested with jdk/jre 1.4.2 update 13. 
 
Following is a code snippet to help you better understand the problem:

Java code:

public String[] getCompanies() {
    String[] str = iceService.getCompanies();
    logger.debug("[getCompanies] getCompanies");
    return str;
}

Velocity code:

#foreach ($companyName in $soapService.getCompanies())
    <tr><td><li>$companyName</td></tr>
#end

The velocity code is displaying the value of $companyName as NULL.


 Please provide inputs on this issue as soon as possible. 
 
Thanks,
Sourav
         
                   Description   
        The below mentioned issue is being faced after upgrading jdk/jre from v1.4.2 update
13 to v1.5 update 12. The value of a String Array is not obtained in the .vm file when calling
a method in a Java class running against jre v1.5 update 12. The vm file is calling the java
method using SOAP service. The String Array contains values at the java class level, however,
when the array is returned to the vm file, it is obtained as null. The same method works fine
when tested with jdk/jre 1.4.2 update 13. Please provide inputs on this issue urgently, as
it is affecting the working of my application. Thanks.

     Show ยป
   
   
 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message