簡體   English   中英

jmeter 中的 java.lang.NoSuchMethodError 用於 jar 文件中的方法

[英]java.lang.NoSuchMethodError in jmeter for the methods inside the jar file

I have a jar file where i have one java class.I add that to jmeter and call that jar in sampler.When the request is hit I face java.lang.NoSuchMethodError for one of the methods inside that java class.That method doesn' t need any maven dependencies as I use default java functions inside it.I tried manually including that jar to jmeter lib folder but no luck.

哪個“采樣器”以及如何“調用”它?

  • 您的代碼中有錯字,即您試圖調用不存在的 function
  • Or there is a typo in your code in terms of passing parameters to the function, in case if it's overloaded the candidate is determined in the runtime depending on the argument types, like function expects an integer and you're passing a string to it or像這樣的東西

在 JMeter 中,您可以通過 3 種方式使用 Java 代碼:

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM