WebObjects 5.4.1 and NPE when registering WebServices classes
WebObjects 5.4.1 and NPE when registering WebServices classes
- Subject: WebObjects 5.4.1 and NPE when registering WebServices classes
- From: "Matthew W. Taylor" <email@hidden>
- Date: Fri, 15 Feb 2008 20:33:28 -0600
- Thread-topic: WebObjects 5.4.1 and NPE when registering WebServices classes
Starting with the recent release of 5.4.1, I have encountered a strange
anomaly when attempting to register web services using the methods described
in the ³Web Services Programming Guide²
<http://developer.apple.com/documentation/WebObjects/Web_Services/>
Specifically, when invoking the following during Application
initialization...
WOWebServiceRegistrar.registerWebService(MyWebService.class, true);
...this statement generates an error that resembles the following:
[2008-2-15 20:7:12 CST] <main> java.lang.NullPointerException
at
com.webobjects.appserver.WOWSDDRegistrar.registerWebService(WOWSDDRegistrar.
java:225)
at
com.webobjects.appserver.WOWebServiceRegistrar.registerWebService(WOWebServi
ceRegistrar.java:46)
at Application.didFinishLaunching(Application.java:56)
[more...]
The function didFinishLaunching, line 56 is where the registration statement
above was called. So, there is a NPE being generated somewhere in the
function registerWebService(Class<?> webServiceClass, boolean isRPC) within
the WOWSDDRegistrar class.
The WOWSDDRegistrar class appears to be BRAND NEW starting with 5.4.1; my
hunch is that there is an untested case somewhere in there when the value of
isRPC is true. When isRPC is false, the registration fails, but not because
of an NPE (consistent with 5.4.0 and earlier).
This is a bug that I hope can report soon so that it can be fixed in a
future point release, but until then, since 5.4.1 is distributed with the
10.5.2 server update, some end-users installing our WO apps are starting to
run into this problem and I would like to offer a work-around
Is there someone who has a better idea of the internals of WOWSDRegistrar
who can help me fashion some kind of work-around?
Thanks in advance...
-=- matt
Matthew W. Taylor
Multimedia Learning Center
Northwestern University
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden