cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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_Fatma
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)

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!