Thanks for the workaround, I had the same problem
:-)

On Feb 16, 2008, at 10:02 PM, Daryl Lee wrote:

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/dlee %40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/fabrice%40easyshadow.com

This email sent to [EMAIL PROTECTED]

www.easyshadow.com
EasyMediaOnline
Digital Signage Software

Easyshadow
Palais de la Scala
1 avenue Henri Dunant
Suite 1155
MC - 98000 Monaco

Skype: fabrice.pipart
Tel.  +377 97 98 21 04 (direct)
Fax. +377 97 70 88 07


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to