Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] java.lang.IllegalArgumentException

Hi everyone,
I got this error message in the tWebServiceInput when I want to run my job.
I defined a WSDL : "http://spw-index-001:8101/WSCodexExport/CodexGenericExportService.asmx?WSDL"
And i Use Advanced settings (few lines) :
routines.CodexGenericExportServiceSoap_PortType codexWS = new routines.CodexGenericExportServiceLocator().getCodexGenericExportServiceSoap();
routines.CodexGenericExportServiceSoap_BindingStub stub = (routines.CodexGenericExportServiceSoap_BindingStub)codexWS;
java.util.Calendar calBegin = new java.util.GregorianCalendar(); calBegin.add(java.util.Calendar.DAY_OF_YEAR,-30);
//calBegin.setTime(context.DateDebut);
java.util.Calendar calFin = new java.util.GregorianCalendar();
//calFin.setTime(context.DateFin);
//exécution du WS et récupération des informations
routines.GenericTransaction[] result = codexWS.getGenericTransactions(calBegin, calFin);
for (int i = 0; i < result.length; i++) {
...

The full error message is :
13 déc. 2010 16:45:35 org.apache.axis.client.Call invoke
GRAVE: Exception:
java.lang.IllegalArgumentException
at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:176)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:502)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at routines.CodexGenericExportServiceSoap_BindingStub.getGenericTransactions(CodexGenericExportServiceSoap_BindingStub.java:544)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.tWebServiceInput_3Process(T_WebService_POs.java:2164)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.runJobInTOS(T_WebService_POs.java:4676)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.main(T_WebService_POs.java:4535)
Caused by: java.lang.IllegalArgumentException
at routines.TransactionState.fromValue(TransactionState.java:55)
at routines.TransactionState.fromString(TransactionState.java:60)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.encoding.ser.EnumDeserializer.makeValue(EnumDeserializer.java:53)
at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:172)
... 13 more
Exception in component tWebServiceInput_3
AxisFault
faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.IllegalArgumentException
faultActor:
faultNode:
faultDetail:
{ http://xml.apache.org/axis/}stackTrace:java.lang.IllegalArgumentException
at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:176)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:502)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at routines.CodexGenericExportServiceSoap_BindingStub.getGenericTransactions(CodexGenericExportServiceSoap_BindingStub.java:544)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.tWebServiceInput_3Process(T_WebService_POs.java:2164)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.runJobInTOS(T_WebService_POs.java:4676)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.main(T_WebService_POs.java:4535)
Caused by: java.lang.IllegalArgumentException
at routines.TransactionState.fromValue(TransactionState.java:55)
at routines.TransactionState.fromString(TransactionState.java:60)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.encoding.ser.EnumDeserializer.makeValue(EnumDeserializer.java:53)
at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:172)
... 13 more
{ http://xml.apache.org/axis/}hostname0683p000009MAB6.pngAR-DW-J00380
java.lang.IllegalArgumentException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.client.Call.invoke(Call.java:2470)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at routines.CodexGenericExportServiceSoap_BindingStub.getGenericTransactions(CodexGenericExportServiceSoap_BindingStub.java:544)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.tWebServiceInput_3Process(T_WebService_POs.java:2164)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.runJobInTOS(T_WebService_POs.java:4676)
at front_dwh2.t_webservice_pos_0_1.T_WebService_POs.main(T_WebService_POs.java:4535)
Caused by: java.lang.IllegalArgumentException
at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:176)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:502)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
... 6 more
Caused by: java.lang.IllegalArgumentException
at routines.TransactionState.fromValue(TransactionState.java:55)
at routines.TransactionState.fromString(TransactionState.java:60)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.encoding.ser.EnumDeserializer.makeValue(EnumDeserializer.java:53)
at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:172)
... 13 more
I don't understand what is about ?
I'm novice in Talend and Java.
Thanks for your help.
Best regards,
David
Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
The solution is delete all the "routines" generated by the WebService and regenerate the WSDL2Java !!
0683p000009MAB6.png

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi,
The solution is delete all the "routines" generated by the WebService and regenerate the WSDL2Java !!
0683p000009MAB6.png