• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Method Not Found!!!

 
Jeff Weeks
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure there isn't more than one definition of FormulaMapBean (in more than one package?)
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move this over to Web Services where someone with direct experience is more likely to answer.
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My bad. Are you performing a narrow() on your object after the client receives it?
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same question as in the other topic, Matt. What API are you using? JAX-RPC doesn't use narrow()!???
Kyle
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the title of this article???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic