On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

java.lang.reflect.InvocationTargetException while invoking webservice

karthik.b.venkatarama
karthik.b.venkatarama Karthik Venkatarama

Hi,

I have deployed a SBO as a webservice, but on trying to invoke this from the client side , its returining java.lang.reflect.InvocationTargetException and the error message is as shown below:

AxisFault

faultCode: Server.userException

faultSubcode:

faultString: java.lang.reflect.InvocationTargetException

faultActor:

faultNode:

faultDetail:

hostname:w1007893

#################################################

The sample code is as mentioned below:

-


DocbaseCredentialsServiceLocator credentialsLocator = new DocbaseCredentialsServiceLocator();

credentialsLocator.setDocbaseCredentialsEndpointAddress(endPointAddress);

credentialsLocator.setMaintainSession(true);

DocbaseCredentials credentials = credentialsLocator.getDocbaseCredentials();

credentialsLocator.getDocbaseCredentials(new java.net.URL(endPointAddress));

DocbaseCredentialsInfo info = new DocbaseCredentialsInfo(repository, domain, password, username);

try{

token = credentials.newCredentials(info, true); {color:#ff0000}// THE exception occurs here

System.out.println("Acquired Token=" + token);

}catch(Throwable g){

g.printStackTrace();

}

##############################################

Can anybody post me how to go about this.

Tagged:

Answers

  • jzinkovich
    jzinkovich Jennifer Zinkovich
    edited 2008 12 #2

    I got a similar exception. When I was generating the client subs via JAX-WS 2.0 but calling a service that was JAX-WS 2.1. Are you using DFS 6 or DFS 6.5? And are you using the DFS remote jars or how are you generating your client.