
Anonymous
Not applicable
2013-06-20
05:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
245 Views
3 Replies

Anonymous
Not applicable
2013-06-21
12:34 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
245 Views

Anonymous
Not applicable
2013-06-21
11:18 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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[].
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
245 Views

Anonymous
Not applicable
2013-06-21
11:26 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
245 Views
