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 6473625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:29:17+00:00 2026-05-25T06:29:17+00:00

We have a Java server back-end that uses Apache XML-RPC to make its services

  • 0

We have a Java server back-end that uses Apache XML-RPC to make its services available to PHP apps (don’t ask me, it was already built this way when I arrived), and wished it to adhere to the unofficial XML-RPC introspection spec. In theory, Apache XML-RPC has support for that, but the example given on their page:

public class MyXmlRpcServlet extends XmlRpcServlet {
    protected XmlRpcHandlerMapping newXmlRpcHandlerMapping()
        throws XmlRpcException {
        PropertyHandlerMapping mapping =
            (PropertyHandlerMapping) newXmlRpcHandlerMapping();
        XmlRpcSystemImpl.addSystemHandler(mapping);
    }
}

will not compile. It is clearly missing a return statement, and I’ve tried to return the created ‘mapping’, but then at the first request the server (recursively?) repeats the call to newXmlRpcHandlerMapping() until throwing a java.lang.StackOverflowError.

Question is: Does anyone know how to add introspection to such an app? Either fixing this example, or providing a working one would be awesome. It doesn’t really need to be that spec (anything that would allow us to generate a listing of methods and their parameters would be nice), but it seems to be a cool standard (in the otherwise non-cool world of XML-RPC. 🙂 )

Thank you!

  • 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-05-25T06:29:17+00:00Added an answer on May 25, 2026 at 6:29 am

    Thanks to a coworker’s tip I got the answer: the overriden method is calling itself, not the superclass’ version. Here is the fixed code:

    public class MyXmlRpcServlet extends XmlRpcServlet {
        @Override
        protected XmlRpcHandlerMapping newXmlRpcHandlerMapping()
            throws XmlRpcException {
            PropertyHandlerMapping mapping = (PropertyHandlerMapping) super
                .newXmlRpcHandlerMapping();
            XmlRpcSystemImpl.addSystemHandler(mapping);
            return mapping;
    }
    }
    

    Once you add that and replace XmlRpcServlet in your web.xml with this version, you can call introspection methods!

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

Sidebar

Related Questions

Background: I have a Flex web app that communicates with a Java back-end via
I have a very simple Java RMI Server that looks like the following: import
I have a server written in Java that runs as a Windows service (thanks
i have a server - client application that runs on java 1.3; i want
I have a flex app that uses AMF to talk to a Spring Java
We have a Java web application that uses Spring and Hibernate and has a
I have a client-server application written in Java using CORBA for the communication. The
I have a piece of server-ish software written in Java to run on Windows
I have a server behind a firewall. It runs a web application (Java servlets
Hey all. I have a server written in java using the ServerSocket and Socket

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.