Forums Register Login

RMI Method Not Found!!!

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Are you sure there isn't more than one definition of FormulaMapBean (in more than one package?)
+Pie Number of slices to send: Send
I'll move this over to Web Services where someone with direct experience is more likely to answer.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
My bad. Are you performing a narrow() on your object after the client receives it?
+Pie Number of slices to send: Send
Same question as in the other topic, Matt. What API are you using? JAX-RPC doesn't use narrow()!???
Kyle
+Pie Number of slices to send: Send
What is the title of this article???
On top of spaghetti all covered in cheese, there was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1182 times.
Similar Threads
Deleting file after method throws exception
CMP's ejbPostCreate: record not persisted
method unavailable
Service with handlers on JBoss. BIG Problem
Exposing EJB as Webservice...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:07:13.