• 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
WOWebService causing an error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOWebService causing an error


  • Subject: WOWebService causing an error
  • From: Fudik <email@hidden>
  • Date: Fri, 6 Jul 2007 12:49:58 -0400

Hi,

I hope I am not the only one having this problem (typically I have
quite unique problems ;-)

I have narrowed it down to the following:


//DepositManager.java class //------------------------------------------------

import com.webobjects.foundation.*;
import com.webobjects.appserver.*;

public class DepositManager {

	public DepositManager() {}

	public static void initWebService() {
		WOWebServiceRegistrar.registerWebService("DepositManager",
DepositManager.class, new String[] {"deposit"}, true);
	}

	public String deposit(String doc) {
		NSLog.out.appendln("Depositing message ... ");
		return "OK";
	}
}


//Application.java //----------------------------- import com.webobjects.foundation.*; import com.webobjects.appserver.*; import com.webobjects.eocontrol.*;

public class Application extends WOApplication {

   public static void main(String argv[]) {
       WOApplication.main(argv, Application.class);
   }

   public Application() {
       super();
       System.out.println("Welcome to " + this.name() + "!");

       /* ** Put your application initialization code here ** */
		DepositManager.initWebService();
   }

}

the rest of the Session.java, DirectAciton.java and Main.java as
standard, without any modifications

I am running WebObjects 5.4 (which is great, since it fixed a lot of
problems for me)

I am able to get the WSDL generated for this service, np.

when I try to call the method in this WebService: deposit with proper
argumets I get the following error:

[2007-7-6 17:30:39 EDT] <WorkerThread2> AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.StringIndexOutOfBoundsException: String index
out of range: -1
 faultActor:
 faultNode:
 faultDetail:
	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
	at java.lang.String.substring(String.java:1768)
	at com.webobjects.appserver._private.WOWebService.performActionNamed(WOWebService.java:311)
	at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
	at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
	at com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109)
	at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1636)
	at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
	at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
	at java.lang.Thread.run(Thread.java:613)

	{http://xml.apache.org/axis/}hostname:d221-70-194.commercial.cgocable.net

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at com.webobjects.appserver._private.WOWebService.performActionNamed(WOWebService.java:398)
	at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
	at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
	at com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109)
	at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1636)
	at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
	at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
	at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
	at java.lang.String.substring(String.java:1768)
	at com.webobjects.appserver._private.WOWebService.performActionNamed(WOWebService.java:311)
	... 7 more


Please let me know if any one else has this problem, I am trying to see if this is a bug or something specific with my setup.

Thanks

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


  • Prev by Date: Re: Unable to create page 'IIxrY0tStknjYQDhjDa6s0'
  • Next by Date: Re: Unable to create page 'IIxrY0tStknjYQDhjDa6s0'
  • Previous by thread: Re: Unable to create page 'IIxrY0tStknjYQDhjDa6s0'
  • Next by thread: Re: WOWebService causing an error
  • Index(es):
    • Date
    • Thread