Yes, I don't get any log4j errors anymore. However the eclipse wizard
plug-in keeps on not working with the following error message (except
the log4j thing it's the same problem as in my starting post on this topic):

Unhandled event loop exception
Reason:
java.lang.NullPointerException

I guess it is a bug in axis2. (The wizard is working fine without axis2
code..)

Any idea what the reason might be?


Martin Gainty wrote:
> dont forget log4.properties must be on the classpath --
> Viel Gluck,
> Martin --
>
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> ----- Original Message ----- From: <[EMAIL PROTECTED]>
> To: <axis-user@ws.apache.org>
> Sent: Friday, June 02, 2006 9:14 AM
> Subject: Re: Problems with Axis2
>
> Hi,
>
> the easiest way to initialize Log4J; put this line in the main() of
> your client:
> org.apache.log4j.BasicConfigurator.configure();
>
> All the log-output then is given to the console.
>
> HTH
>
> Bille
>
>> -----Ursprüngliche Nachricht-----
>> Von: axis-user@ws.apache.org
>> Gesendet: 02.06.06 14:29:57
>> An: axis-user@ws.apache.org
>> Betreff: Problems with Axis2
>
>> 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