axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: embedded webservices
Date Thu, 06 Jun 2002 17:50:41 GMT

----- Original Message -----
From: "Adrian 'Dagurashibanipal' von Bidder" <>
To: <>
Sent: Thursday, June 06, 2002 2:14 AM
Subject: Re: embedded webservices

On Wed, 2002-06-05 at 15:44, Adrian 'Dagurashibanipal' von Bidder wrote:
> Yo!
> Hmmmm. Nobody else seems to be interested in this :-(
> Ok, I think I'm on the right track now: I'm registering my own
> axis.EngineConfigFactory, and deploy AxisServlet from Jetty.
> But I see that it seems to absolutely need an attachment direcory, and

>The exact problem is right now in DefaultAxisServerFactory:112:
>if(ret != null){
>    attachmentsdirservlet= (String)
>    ret.getOption(AxisEngine.PROP_ATTACHMENT_DIR);
>    File attdirFile= new File(attachmentsdirservlet);
>where new File() throws a nullptr exception.
>(1) How can I avoid this? I'll try to set a globalOption in my
>EngineConfig object.
>(2) shouldn't this be caught, and a better error message be reported?
>NullPointerException is somewhat ugly...

looks like a bug to me. you could file it, though I doubt anyone but you
would rush to fix it.

If you add the handling to not create the attachmentdir File if there is no
attachment, what else breaks?

View raw message