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

1 REPLY 1

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)

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group