This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes RMI Method Not Found!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "RMI Method Not Found!!!" Watch "RMI Method Not Found!!!" New topic

RMI Method Not Found!!!

Jeff Weeks

Joined: Nov 17, 2003
Posts: 6
This is really confusing me folks... I don't understand...
I'm using the jwsdp to call a remote web service, and have been doing so with relative success until this point.
The code I'm having trouble on is as follows:

Pretty simple the getSTDClientStub() looks like this:

Again, pretty simple However, I get a method not found error!

"": Error #: 300 : method putFormula( not found in class at line 64, column 19
Which is incredibly odd, because both my IF file defines the method as:
int putFormula(FormulaMapBean bean) throws RemoteException;
And the IMPL implements it as such!
So, why on earth would it claim it can't find the method? The method even appears in JBuilder's list of available methods, but upon building, it simply wont compile!
Other methods in this class execute properly.
The only major different between this method, and the others (that work) is that this one accepts a custom class. However, I've added it to the config-interface.xml file, and rebuilt the service... still nothing wants to work!
Any ideas?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24183

Are you sure there isn't more than one definition of FormulaMapBean (in more than one package?)

[Jess in Action][AskingGoodQuestions]
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

I'll move this over to Web Services where someone with direct experience is more likely to answer.

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Matt R. Hansen
Ranch Hand

Joined: Sep 05, 2001
Posts: 71
This stub that you are using, is this what is generated after running the rmic compiler? If this is the case, instead of casting the type to the stub name, cast it to the original class type. If this doesn't make sense, let Me know and I will try to clarify.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Originally posted by Matt R. Hansen:
This stub that you are using, is this what is generated after running the rmic compiler?
I believe we're talking about web services stubs, not RMI stubs. This being the web services forum and all

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Matt R. Hansen
Ranch Hand

Joined: Sep 05, 2001
Posts: 71
My bad. Are you performing a narrow() on your object after the client receives it?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Same question as in the other topic, Matt. What API are you using? JAX-RPC doesn't use narrow()!???

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Matt R. Hansen
Ranch Hand

Joined: Sep 05, 2001
Posts: 71
What is the title of this article???
Don't get me started about those stupid light bulbs.
subject: RMI Method Not Found!!!
Similar Threads
method unavailable
Service with handlers on JBoss. BIG Problem
Exposing EJB as Webservice...
Deleting file after method throws exception
CMP's ejbPostCreate: record not persisted