Hi,
I am trying to use axis2 in my eclipse plugin with the JDK 1.5

I generated a stub and a callback handler of a WSDL with the WSDL2Jave
eclipse plugin.

I tried to use the auto-generated classes both ways: callback and direct
calling a function.

However nothing *happens*, the plugin/eclipse just hangs;
all i get is this:
log4j:WARN No appenders could be found for logger
(org.apache.axiom.om.impl.builder.StAXOMBuilder).
log4j:WARN Please initialize the log4j system properly.
Unhandled event loop exception
Reason:
java.lang.NullPointerException

Debugging resulted in this:
in Window.class
################### CODE STARTS ###################
private void runEventLoop(Shell loopShell) {
[...]
try {
                if (!display.readAndDispatch())
                    display.sleep();
            } catch (Throwable e) {
                exceptionHandler.handleException(e);      /* <- This
exception is thrown! */
            }
        display.update();
}
################### CODE ENDS ###################

my code causing this problem (callback way, same for directly calling):
################### CODE STARTS ###################
    private void testService() {
        cbh = new GetEntryServiceCallbackHandler(this) {
            public void receiveResultgetSupportedFormats(
                       
uk.ac.ebi.www.ws.services.urn_dbfetch.GetEntryServiceStub.GetSupportedFormatsResponse13
param1) {
                if (param1 == null)
                    testServiceResponse("Error 4");
                else
                    testServiceResponse(param1.toString());
            }
            public void
receiveErrorgetSupportedFormats(java.lang.Exception e) {
                testServiceResponse("Error 3");
            }
        };

        try {
            service = new GetEntryServiceStub();
        }
        catch (Exception e) {
            testServiceResponse("Error 1");
            service = null;
        }
       
        if (service != null) {
            try {
                service.startgetSupportedFormats(cbh);
            }
            catch (RemoteException e) {
                testServiceResponse("Error 2");
                formats = null;
            }
        }
    }
   
    private void testServiceResponse(String response)
    {
        label2.setText(response);
    }
################### CODE ENDS ###################


How can I solve this problem? where to start!?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to