Expand my Community achievements bar.

Error invoking a service

Avatar

Former Community Member
I don't know if I should post it here, but ....



I wrote a simple peace of code :



Properties ConnectionProps = new Properties();

ConnectionProps.setProperty("DSC_DEFAULT_SOAP_ENDPOINT", "http://MyMachineName:8080");

ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","SOAP");

ConnectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");

ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");

ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");

//Create a ServiceClientFactory object

ServiceClientFactory myFactory = ServiceClientFactory.createInstance(ConnectionProps);

//Create an ApplicationManager object

//ApplicationManager appManager = new ApplicationManager(myFactory);

//Create a ServiceRegistryClient object

ServiceRegistryClient serviceReg = new ServiceRegistryClient(myFactory);



ServiceConfiguration configuration = serviceReg.getServiceConfiguration("MyApp", 1, 0 );



I got this error : (Machine name or IP)



AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:

faultString: java.lang.ClassCastException: org.apache.axis.transport.http.HTTPSender

faultActor:

faultNode:

faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException: org.apache.axis.transport.http.HTTPSender

at org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)

at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)

at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)

at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410)

at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)

at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)

at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

at org.apache.axis.client.Call.invoke(Call.java:2767)

at org.apache.axis.client.Call.invoke(Call.java:2443)

at org.apache.axis.client.Call.invoke(Call.java:2366)

at org.apache.axis.client.Call.invoke(Call.java:1812)

at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend(SoapAxisDispatcher.java:123)



I really don't know what's wrong and what I should do.



Thx in advance
1 Reply

Avatar

Level 9
Looks to me like you may have a mismatching version of Apache Axis. Make sure your client is using the same version as the one on the server.

Howard

http://www.avoka.com