cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoSuchMethodError in databricks

sarvesh242
Contributor

I have created a package. Now I am calling a method from this package in my notebook but it is throwing me java.lang.NoSuchMethodError in databricks. The method exists in the package. Can you please guide me regarding the same.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

sarvesh242
Contributor

Hi! I am sharing the error stack with you. I can't share the code with you due to confidentiality of the code. Can you please guide me ?

java.lang.NoSuchMethodError: com.iig.utils.common.IIGCommonConstants$.flowProperties()Ljava/lang/String;

at com.iig.new_rc_lookup.LookUpwithDB$.lookupProcess(<notebook>:320)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw$$iw$$iw$$iw.<init>(command-1436247:7)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw$$iw$$iw.<init>(command-1436247:64)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw$$iw.<init>(command-1436247:66)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw.<init>(command-1436247:68)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw.<init>(command-1436247:70)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw.<init>(command-1436247:72)

at line971bf4bc0ef84297868f8aaede16b43951.$read.<init>(command-1436247:74)

at line971bf4bc0ef84297868f8aaede16b43951.$read$.<init>(command-1436247:78)

at line971bf4bc0ef84297868f8aaede16b43951.$read$.<clinit>(command-1436247)

at line971bf4bc0ef84297868f8aaede16b43951.$eval$.$print$lzycompute(<notebook>:7)

at line971bf4bc0ef84297868f8aaede16b43951.$eval$.$print(<notebook>:6)

at line971bf4bc0ef84297868f8aaede16b43951.$eval.$print(<notebook>)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:793)

at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:1054)

at scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:645)

at scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:644)

View solution in original post

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @sarvesh gakhar​ , Can you please paste the error stack and code here?

sarvesh242
Contributor

Hi! I am sharing the error stack with you. I can't share the code with you due to confidentiality of the code. Can you please guide me ?

java.lang.NoSuchMethodError: com.iig.utils.common.IIGCommonConstants$.flowProperties()Ljava/lang/String;

at com.iig.new_rc_lookup.LookUpwithDB$.lookupProcess(<notebook>:320)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw$$iw$$iw$$iw.<init>(command-1436247:7)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw$$iw$$iw.<init>(command-1436247:64)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw$$iw.<init>(command-1436247:66)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw$$iw.<init>(command-1436247:68)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw$$iw.<init>(command-1436247:70)

at line971bf4bc0ef84297868f8aaede16b43951.$read$$iw.<init>(command-1436247:72)

at line971bf4bc0ef84297868f8aaede16b43951.$read.<init>(command-1436247:74)

at line971bf4bc0ef84297868f8aaede16b43951.$read$.<init>(command-1436247:78)

at line971bf4bc0ef84297868f8aaede16b43951.$read$.<clinit>(command-1436247)

at line971bf4bc0ef84297868f8aaede16b43951.$eval$.$print$lzycompute(<notebook>:7)

at line971bf4bc0ef84297868f8aaede16b43951.$eval$.$print(<notebook>:6)

at line971bf4bc0ef84297868f8aaede16b43951.$eval.$print(<notebook>)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:793)

at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:1054)

at scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:645)

at scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:644)

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.