[resolved] java.lang.IllegalArgumentException

One Star

[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/}hostnameSmiley TongueAR-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

Accepted Solutions
One Star

Re: [resolved] java.lang.IllegalArgumentException

Hi,
The solution is delete all the "routines" generated by the WebService and regenerate the WSDL2Java !!
Smiley Tongue

All Replies
One Star

Re: [resolved] java.lang.IllegalArgumentException

Hi,
The solution is delete all the "routines" generated by the WebService and regenerate the WSDL2Java !!
Smiley Tongue