error Ljava.lang.String; cannot be cast to [Ljava.lang.String]

One Star

error Ljava.lang.String; cannot be cast to [Ljava.lang.String]

I am trying to something which I think its plain vanilla but its throwing error.
My job is calling a RPC call, the input has three parameters UID, PWD, array.




ERROR:
connecting to socket on port 3542
Exception in component tXMLRPCInput_1
java.lang.ClassCastException: connected
disconnected
Job giTest2 ended at 16:44 20/06/2013.
Moderator

Re: error Ljava.lang.String; cannot be cast to [Ljava.lang.String]

Hi,
From the error, something wrong with your convert. The schema of "PARM-INT-ARRAY" return string and you want convert it to object for your Array?
Please see the component reference tXMLRPCInput to verify that you are using it correctly.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: error Ljava.lang.String; cannot be cast to [Ljava.lang.String]

Sabrina,
thanks for the quick response.
The PARM-INT-ARRAY is a Array for input parameter and the Method return is also an array.
hope that clarifies why I am using String[].
Hi,
From the error, something wrong with your convert. The schema of "PARM-INT-ARRAY" return string and you want convert it to object for your Array?
Please see the component reference tXMLRPCInput to verify that you are using it correctly.
Best regards
Sabrina
One Star

Re: error Ljava.lang.String; cannot be cast to [Ljava.lang.String]

Sabrina,
Let me be more specific. I want to make a RPC call to a service. The input are parameters: Userid,Pwd,Array of string. The return from this call comes back as Array.
That seems simple to me but so far I have not been able to make successful call.
When I change as following:
Name= "PARM-IN-ARRAY"
Value= globalMap.get("matchCodeArray")
class= java.lang.String.class
The job runs without error but all I get in the csv file is
[Ljava.lang.Object;@687bc899;
May be you can suggest me a better to do this.
Thanks in advance.