This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebService Invocaton Error using DII

ashirvad jain
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic