File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "RMI Method Not Found!!!" Watch "RMI Method Not Found!!!" New topic
Author

RMI Method Not Found!!!

Jeff Weeks
Greenhorn

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!

"STDService.java": Error #: 300 : method putFormula(com.kellogg.london.common.beans.standards.FormulaMapBean) not found in class com.kellogg.london.services.standards.StandardsJWSIF_Stub 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?
Thanks,
Jeff
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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
Sheriff

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
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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
author
Ranch Hand

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


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

Joined: Sep 05, 2001
Posts: 71
What is the title of this article???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Method Not Found!!!