java.lang.NoSuchMethodError - Ljava/lang/String;)Ljava/lang/String; -
my code giving error below;
exception in thread "main" java.lang.nosuchmethoderror: com/myapp/client.cyphercbc(ljava/lang/string;)ljava/lang/string;
but it's working fine in local environment. code far below;
try{ system.out.println("encrypted cbc passwd : " +client.cyphercbc("cypherthepassword")); }catch(exception e){ e.printstacktrace(); }
this due run-time jar or class mismatch. "client" class there @ time compile application has static method "cyphercbc" gets string parameter, @ run-time class loader has loaded "client" class doesn't have kind of method (same name same signature).
if can debug application @ runtime, put break-point @ line exception thrown, try evaluate following expression,
client.class.getresource("client.class")
, can find class has been leaded from, can decompile , try troubleshoot issue.
Comments
Post a Comment