Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9277807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:12:05+00:00 2026-06-18T17:12:05+00:00

I have a client trying to invoke a web service – public static void

  • 0

I have a client trying to invoke a web service –

public static void main(String[] args) throws RemoteException {
    SimpleServiceStub service = new SimpleServiceStub(
            "http://localhost:8080/axis2/services/SimpleService");
            ConcatRequest request = new ConcatRequest();
            request.setS1("abc");
            request.setS2("123");
            ConcatResponse response = service.concat(request);
            System.out.println(response.getConcatResponse());
}

The exception stacktrace is from within eclipse is –

Exception in thread "main" org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at com.ttdev.ss.SimpleServiceStub.fromOM(SimpleServiceStub.java:1419)
at com.ttdev.ss.SimpleServiceStub.concat(SimpleServiceStub.java:190)
at com.ttdev.ss.SimpleClient.main(SimpleClient.java:15)
Caused by: java.lang.NullPointerException
at com.ttdev.ss.SimpleServiceStub.fromOM(SimpleServiceStub.java:1413)
... 2 more

*EDIT* This is the stacktrace from axis

Exception in thread "HttpConnection-8080-1" java.lang.IllegalStateException: Response already committed
    at org.apache.axis2.transport.http.server.AxisHttpResponseImpl.assertNotCommitted(AxisHttpResponseImpl.java:75)
    at org.apache.axis2.transport.http.server.AxisHttpResponseImpl.sendError(AxisHttpResponseImpl.java:110)
    at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:315)
    at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
    at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

When I debug the code, I see a null parameter (first parameter) being passed within the generated stub class –

private  java.lang.Object fromOM(
    org.apache.axiom.om.OMElement param,
    java.lang.Class type,
    java.util.Map extraNamespaces) throws org.apache.axis2.AxisFault{

    try {

            if (com.ttdev.ss.SimpleServiceStub.ConcatRequest.class.equals(type)){

                       return com.ttdev.ss.SimpleServiceStub.ConcatRequest.Factory.parse(param.getXMLStreamReaderWithoutCaching());


            }

            if (com.ttdev.ss.SimpleServiceStub.ConcatResponse.class.equals(type)){

                       return com.ttdev.ss.SimpleServiceStub.ConcatResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());


            }

    } catch (java.lang.Exception e) {
    throw org.apache.axis2.AxisFault.makeFault(e);
    }
       return null;
    }

I tried with axis2 version 1.5.1 and 1.6.2 The server is local server and is version 1.6.2.

I can’t post the wsdl code here. It just does not show up!
But here’s the code used to generate the stub class –

WSDL2Code.main(new String[] {       
    "-S", "src/main/java",
    "-R", "src/main/resources/META-INF",
    "-ns2p", "http://ttdev.com/ss=com.ttdev.ss",
    "-uri", "src/main/resources/SimpleService.wsdl" });

Any help is appreciated. Btw, when I tried with CXF, it works. So either this is a bug or I did something wrong in generating the java code from the valid WSDL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T17:12:07+00:00Added an answer on June 18, 2026 at 5:12 pm

    It is a bug with version 1.6.2! I downgraded the server version to 1.5.1 and it works! I hope this helps other people struggling to find answers with axis2 (like I did).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to invoke method via webservice (SOAP) I have generated Web service
I'm trying to call a web-service of opentaps from eclipse in java. I have
I'm trying to write a simple web service client to interact with my simple
I trying to invoke a web service, which has an Basic HTTP Authentication. I
I have a web service client using axis. It's using document/literal style and supposed
I am trying to have a client and server talk to each other using
I am trying to have my client side validation (model binding) to support different
I am trying to dial a phone number from php (i have a client
I am trying to learn WCF. I have a simple client and server application
Within an asp.net MVC app, I'm trying to find rooms which have a guest/client,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.