Monday, August 31, 2015

java.lang.NoSuchMethodError: weblogic.rmi.internal.MethodDescriptor.

The full error message is: java.lang.NoSuchMethodError: weblogic.rmi.internal.MethodDescriptor.(Ljava/lang/reflect/Method;Ljava/lang/Class;ZZZZII)V and this can happen if you use in WL 12 an EJB client stub generated by WL 10.3.5 (I think the issue is not there if the stub is generated by 10.3.6).

Simply said, the MethodDescriptor constructors have been changed in WebLogic and that specific one has been removed.

In wl12 the class is packaged in wlthint3client.jar, weblogic.server.merged.jar, com.bea.core.weblogic.rmi.client_4.0.0.0.jar ,,

You have only 2 solutions: either to use a wlfullclient.jar from the previous release of WL, or to regenerate the stub with WL12 appc.

see also and

As mentioned by Özkan Pakdil in the comment, it's much simpler to "delete *******_stub.class from client jar and deploy the ear that way so at the end wl12 generates it on the fly"


ozzy said...

there is another way to solve this.

vernetto said...

thank you so much! I have updated the post with your solution