Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Services and the fly likes WebService Invocaton Error using DII Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WebService Invocaton Error using DII" Watch "WebService Invocaton Error using DII" New topic

WebService Invocaton Error using DII

ashirvad jain
Ranch Hand

Joined: Nov 09, 2006
Posts: 50
Environment : jdk1.5+Apache axis1.4+Tomcat6.0

Hello Frens,

I am able to make Client stub and able to invoke service using stub methods.

But when I am trying to change my code for DII inocation , it throwing me exception like below:


Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.getAxisClient(
at org.apache.axis.client.Service.<init>(
at client.DIIClient.main(
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
at org.apache.commons.logging.LogFactory.getLog(
at org.apache.axis.components.logger.LogFactory.getLog(
at org.apache.axis.handlers.BasicHandler.<clinit>(
... 3 more
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
... 7 more
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(
... 8 more

I am pasting the code snap here ,

*******************Actual code ,*****************

Service service=new Service();
Call call=(Call)service.createCall();
call.setTargetEndpointAddress(new URL("http://localhost:8080/axis/services/SimpleServiceSOAP"));
Vector responseElement=(Vector)call.invoke(new SOAPBodyElement[] {new SOAPBodyElement(makeAddRequest())});
SOAPBodyElement result=(SOAPBodyElement)responseElement.get(0);
System.out.println( "Reponse : "+result.getAsDOM().getTextContent());


The Sole purpose of this method is to make add Soap request for the call.


Please some one guide me where i am wrong, as i am trying to learn axis, please guide me i am missing somthing for proper invocation.

Please repond me ,

Thanks .

I agree. Here's the link:
subject: WebService Invocaton Error using DII
It's not a secret anymore!