Hi ,
I have attached a small code below solving your problem
completely.
For passing any complexObject, you need to register it and
its any underlying classes as bodyClass. For more details, refer to
ComplexObjectTransfer example.
In this case, you will need to register the both the Point as
well as Array class. Normally , if you just pass array of
ints/strings, you don't need to register the Array as bodyClass,
but if you are passing complex objects in array, you will need to
register both the complex class as well as Array.
Here is the code solving your issue. I pass array of points
and also clear it