This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Oct 17, 2011, 3:43 PM
29 Posts

Repeat control data source error

  • Category: Server Side JavaScript
  • Platform: Linux
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
Hello everybody!
I have joust encountered with an error: i have a repeat control, which has a library function as a data source. It all worked fine, but when I upgraded to 8.5.3 I am receiving the following error: Error while executing JavaScript computed expression
put(int index,FBSValue value) not supported in JavaWrapperObject
 
here goes the script itself: 
var arr = new java.util.Vector;
   2: arr = getTradePointsAverages(arr);
   3: return arr;
nothing special. The library is listed in the xpage data resources panel. 
 
What may be the problem? 
Thanks for help.
Oct 19, 2011, 10:18 AM
54 Posts
Re: Repeat control data source error
Hi,
 
Can you show what's in the getTradePointsAverages(arr) function?
 
The error message says something that you (or domino) are using the "put" method. However the java.util.Vector class doesn't support that . Try using the "add" method (see java.util.Vector API http://download.oracle.com/javase/1.4.2/docs/api/java/util/Vector.html)
 
Don't know is this the problem. It's odd that this worked in 8.5.2.

Oct 19, 2011, 11:49 AM
272 Posts
Re: Repeat control data source error
Hi,
 
it seems that something internally has changed in com.ibm.jscript.types.JavaWrapperObject. because the method put(int paramInt, FBSValue paramFBSValue) always throws a runtime error. This behavior is the same as in 8.5.2.
The question is why this method is called now in 8.5.3, not in 8.5.2...
 
Maybe you can post the getTradePointsAverages method, then we can make a closer look on it.
 
Sven

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal