Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.
Labels (4)
3 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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.