• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebObjects 5.4.1 and NPE when registering WebServices classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebObjects 5.4.1 and NPE when registering WebServices classes


  • Subject: Re: WebObjects 5.4.1 and NPE when registering WebServices classes
  • From: Daryl Lee <email@hidden>
  • Date: Sat, 16 Feb 2008 13:02:24 -0800

Matthew,

This is a bug that will be fixed in the next WO update. In the meantime, the workaround is to call:

public static void registerWebService(String webServiceName, Class<?> webServiceClass,String[] allowedMethods, boolean isRPC) and passing 'null' for the allowedMethods parameter.

On Feb 15, 2008, at 6:33 PM, Matthew W. Taylor wrote:


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
_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: WebObjects 5.4.1 and NPE when registering WebServices classes
      • From: Fabrice Pipart <email@hidden>
References: 
 >WebObjects 5.4.1 and NPE when registering WebServices classes (From: "Matthew W. Taylor" <email@hidden>)

  • Prev by Date: Re: Fetch Specifications defined in the .eomodel *FIXED*
  • Next by Date: Client security bug (WAS: Fetch Specifications defined in the .eomodel)
  • Previous by thread: WebObjects 5.4.1 and NPE when registering WebServices classes
  • Next by thread: Re: WebObjects 5.4.1 and NPE when registering WebServices classes
  • Index(es):
    • Date
    • Thread