How can I fix the NoClassDefFoundError error that occurs when using evosuite to generate test cases?How generate Tests with evosuite on UbuntuEvosuite test generation from command line on linuxLifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost] and Caused by: java.lang.NoClassDefFoundErrorservicereference.getBundle() - No such method errorAndroid App Crash. Error reading input streamCamel: version upgrade error: java.lang.IncompatibleClassChangeErrorWhen I start running my java application through Tomcat server, I encountered this kind of error. What should I do?java.lang.NoSuchMethodError: org.json.JSONObject.putOnce(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;OperationNotSupportedException: Operation not supported for streaming result (ResultSet)Mapbox, Search and Placeplugin Activity crash GsaIOException: Error code: 393238 | Buffer overflow, no available space

Credit card offering 0.5 miles for every cent rounded up. Too good to be true?

Short story written from alien perspective with this line: "It's too bright to look at, so they don't"

Why is the relationship between frequency and pitch exponential?

Avoiding cliches when writing gods

What does War Machine's "Canopy! Canopy!" line mean in "Avengers: Endgame"?

Pronoun introduced before its antecedent

PhD student with mental health issues and bad performance

Can a magnetic field of an object be stronger than its gravity?

What happened to all the nuclear material being smuggled after the fall of the USSR?

Do adult Russians normally hand-write Cyrillic as cursive or as block letters?

In this example, which path would a monster affected by the Dissonant Whispers spell take?

correct term describing the action of sending a brand-new ship out into its first seafaring trip

What's the correct term for a waitress in the Middle Ages?

Explain Ant-Man's "not it" scene from Avengers: Endgame

Old black and white movie: glowing black rocks slowly turn you into stone upon touch

How to make a setting relevant?

Company is asking me to work from overseas, but wants me to take a paycut

How certain is a caster of when their spell will end?

1980s (or earlier) book where people live a long time but they have short memories

Responsibility for visa checking

You've spoiled/damaged the card

What happens to foam insulation board after you pour concrete slab?

The ring of global sections of a regular scheme

How to split a string in two substrings of same length using bash?



How can I fix the NoClassDefFoundError error that occurs when using evosuite to generate test cases?


How generate Tests with evosuite on UbuntuEvosuite test generation from command line on linuxLifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost] and Caused by: java.lang.NoClassDefFoundErrorservicereference.getBundle() - No such method errorAndroid App Crash. Error reading input streamCamel: version upgrade error: java.lang.IncompatibleClassChangeErrorWhen I start running my java application through Tomcat server, I encountered this kind of error. What should I do?java.lang.NoSuchMethodError: org.json.JSONObject.putOnce(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;OperationNotSupportedException: Operation not supported for streaming result (ResultSet)Mapbox, Search and Placeplugin Activity crash GsaIOException: Error code: 393238 | Buffer overflow, no available space






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I got this error when I used evosuite to generate test cases with my android project.



In the beginning, there was such an error:“can not find this class:android.support.v7.widget.Toolbar” I solved this problem by adding Android's jar package:collections-28.0.0.jar into CP path, and then the following error occurred in the process of automatically generating use cases for multiple files:



[MASTER] 21:22:39.979 [logback-2] ERROR TestClusterGenerator - Problem for com.rapidapp.base.account.AppBaseService. Failed to add dependencies for class android.support.v7.widget.Toolbar: java.lang.NoClassDefFoundError: android/support/v7/widget/Toolbar$SavedState
[java.lang.Class.getDeclaringClass0(Native Method), java.lang.Class.getDeclaringClass(Class.java:1235), java.lang.Class.getEnclosingClass(Class.java:1277), java.lang.Class.getSimpleBinaryName(Class.java:1443), java.lang.Class.getSimpleName(Class.java:1309), java.lang.Class.isAnonymousClass(Class.java:1411), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:155), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:338), org.evosuite.setup.TestClusterGenerator.addDependencyClass(TestClusterGenerator.java:975), org.evosuite.setup.TestClusterGenerator.resolveDependencies(TestClusterGenerator.java:358), org.evosuite.setup.TestClusterGenerator.generateCluster(TestClusterGenerator.java:137), org.evosuite.setup.DependencyAnalysis.analyze(DependencyAnalysis.java:118), org.evosuite.setup.DependencyAnalysis.analyzeClass(DependencyAnalysis.java:132), org.evosuite.TestSuiteGenerator.initializeTargetClass(TestSuiteGenerator.java:110), org.evosuite.TestSuiteGenerator.generateTestSuite(TestSuiteGenerator.java:130), org.evosuite.rmi.service.ClientNodeImpl$1.run(ClientNodeImpl.java:145), java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511), java.util.concurrent.FutureTask.run(FutureTask.java:266), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)]



Finally, a use case is not generated.










share|improve this question




























    0















    I got this error when I used evosuite to generate test cases with my android project.



    In the beginning, there was such an error:“can not find this class:android.support.v7.widget.Toolbar” I solved this problem by adding Android's jar package:collections-28.0.0.jar into CP path, and then the following error occurred in the process of automatically generating use cases for multiple files:



    [MASTER] 21:22:39.979 [logback-2] ERROR TestClusterGenerator - Problem for com.rapidapp.base.account.AppBaseService. Failed to add dependencies for class android.support.v7.widget.Toolbar: java.lang.NoClassDefFoundError: android/support/v7/widget/Toolbar$SavedState
    [java.lang.Class.getDeclaringClass0(Native Method), java.lang.Class.getDeclaringClass(Class.java:1235), java.lang.Class.getEnclosingClass(Class.java:1277), java.lang.Class.getSimpleBinaryName(Class.java:1443), java.lang.Class.getSimpleName(Class.java:1309), java.lang.Class.isAnonymousClass(Class.java:1411), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:155), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:338), org.evosuite.setup.TestClusterGenerator.addDependencyClass(TestClusterGenerator.java:975), org.evosuite.setup.TestClusterGenerator.resolveDependencies(TestClusterGenerator.java:358), org.evosuite.setup.TestClusterGenerator.generateCluster(TestClusterGenerator.java:137), org.evosuite.setup.DependencyAnalysis.analyze(DependencyAnalysis.java:118), org.evosuite.setup.DependencyAnalysis.analyzeClass(DependencyAnalysis.java:132), org.evosuite.TestSuiteGenerator.initializeTargetClass(TestSuiteGenerator.java:110), org.evosuite.TestSuiteGenerator.generateTestSuite(TestSuiteGenerator.java:130), org.evosuite.rmi.service.ClientNodeImpl$1.run(ClientNodeImpl.java:145), java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511), java.util.concurrent.FutureTask.run(FutureTask.java:266), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)]



    Finally, a use case is not generated.










    share|improve this question
























      0












      0








      0








      I got this error when I used evosuite to generate test cases with my android project.



      In the beginning, there was such an error:“can not find this class:android.support.v7.widget.Toolbar” I solved this problem by adding Android's jar package:collections-28.0.0.jar into CP path, and then the following error occurred in the process of automatically generating use cases for multiple files:



      [MASTER] 21:22:39.979 [logback-2] ERROR TestClusterGenerator - Problem for com.rapidapp.base.account.AppBaseService. Failed to add dependencies for class android.support.v7.widget.Toolbar: java.lang.NoClassDefFoundError: android/support/v7/widget/Toolbar$SavedState
      [java.lang.Class.getDeclaringClass0(Native Method), java.lang.Class.getDeclaringClass(Class.java:1235), java.lang.Class.getEnclosingClass(Class.java:1277), java.lang.Class.getSimpleBinaryName(Class.java:1443), java.lang.Class.getSimpleName(Class.java:1309), java.lang.Class.isAnonymousClass(Class.java:1411), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:155), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:338), org.evosuite.setup.TestClusterGenerator.addDependencyClass(TestClusterGenerator.java:975), org.evosuite.setup.TestClusterGenerator.resolveDependencies(TestClusterGenerator.java:358), org.evosuite.setup.TestClusterGenerator.generateCluster(TestClusterGenerator.java:137), org.evosuite.setup.DependencyAnalysis.analyze(DependencyAnalysis.java:118), org.evosuite.setup.DependencyAnalysis.analyzeClass(DependencyAnalysis.java:132), org.evosuite.TestSuiteGenerator.initializeTargetClass(TestSuiteGenerator.java:110), org.evosuite.TestSuiteGenerator.generateTestSuite(TestSuiteGenerator.java:130), org.evosuite.rmi.service.ClientNodeImpl$1.run(ClientNodeImpl.java:145), java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511), java.util.concurrent.FutureTask.run(FutureTask.java:266), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)]



      Finally, a use case is not generated.










      share|improve this question














      I got this error when I used evosuite to generate test cases with my android project.



      In the beginning, there was such an error:“can not find this class:android.support.v7.widget.Toolbar” I solved this problem by adding Android's jar package:collections-28.0.0.jar into CP path, and then the following error occurred in the process of automatically generating use cases for multiple files:



      [MASTER] 21:22:39.979 [logback-2] ERROR TestClusterGenerator - Problem for com.rapidapp.base.account.AppBaseService. Failed to add dependencies for class android.support.v7.widget.Toolbar: java.lang.NoClassDefFoundError: android/support/v7/widget/Toolbar$SavedState
      [java.lang.Class.getDeclaringClass0(Native Method), java.lang.Class.getDeclaringClass(Class.java:1235), java.lang.Class.getEnclosingClass(Class.java:1277), java.lang.Class.getSimpleBinaryName(Class.java:1443), java.lang.Class.getSimpleName(Class.java:1309), java.lang.Class.isAnonymousClass(Class.java:1411), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:155), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:338), org.evosuite.setup.TestClusterGenerator.addDependencyClass(TestClusterGenerator.java:975), org.evosuite.setup.TestClusterGenerator.resolveDependencies(TestClusterGenerator.java:358), org.evosuite.setup.TestClusterGenerator.generateCluster(TestClusterGenerator.java:137), org.evosuite.setup.DependencyAnalysis.analyze(DependencyAnalysis.java:118), org.evosuite.setup.DependencyAnalysis.analyzeClass(DependencyAnalysis.java:132), org.evosuite.TestSuiteGenerator.initializeTargetClass(TestSuiteGenerator.java:110), org.evosuite.TestSuiteGenerator.generateTestSuite(TestSuiteGenerator.java:130), org.evosuite.rmi.service.ClientNodeImpl$1.run(ClientNodeImpl.java:145), java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511), java.util.concurrent.FutureTask.run(FutureTask.java:266), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)]



      Finally, a use case is not generated.







      java android evosuite






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 13:39









      PX ChengPX Cheng

      346




      346






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I have experienced This exception before, when (trying) to run code which had been compiled on one operating system on another. Also, when updates have occurred to the OS.



          Though you might have thought that backwards compatibility should remove this later, it is not always the case!






          share|improve this answer























          • Do you have a way to solve this problem?

            – PX Cheng
            Mar 25 at 1:43











          • From what I can recall, the first time we encountered this it was due to migrating a system to new architecture. The functionality was determined to be dangerous and was deprecated. The second time, an automatic update of the OS had been performed by puppet the (web) server was still running, but the ground had changed under its feet (so to speak) and just needed to be restarted. In your case, I can't say as I have no experience with evosuite or android.

            – Bill Naylor
            Mar 25 at 8:24











          • Thank you anyway, I will continue to find a solution, and I will synchronize it here when I find it.

            – PX Cheng
            Mar 25 at 11:57











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324384%2fhow-can-i-fix-the-noclassdeffounderror-error-that-occurs-when-using-evosuite-to%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I have experienced This exception before, when (trying) to run code which had been compiled on one operating system on another. Also, when updates have occurred to the OS.



          Though you might have thought that backwards compatibility should remove this later, it is not always the case!






          share|improve this answer























          • Do you have a way to solve this problem?

            – PX Cheng
            Mar 25 at 1:43











          • From what I can recall, the first time we encountered this it was due to migrating a system to new architecture. The functionality was determined to be dangerous and was deprecated. The second time, an automatic update of the OS had been performed by puppet the (web) server was still running, but the ground had changed under its feet (so to speak) and just needed to be restarted. In your case, I can't say as I have no experience with evosuite or android.

            – Bill Naylor
            Mar 25 at 8:24











          • Thank you anyway, I will continue to find a solution, and I will synchronize it here when I find it.

            – PX Cheng
            Mar 25 at 11:57















          0














          I have experienced This exception before, when (trying) to run code which had been compiled on one operating system on another. Also, when updates have occurred to the OS.



          Though you might have thought that backwards compatibility should remove this later, it is not always the case!






          share|improve this answer























          • Do you have a way to solve this problem?

            – PX Cheng
            Mar 25 at 1:43











          • From what I can recall, the first time we encountered this it was due to migrating a system to new architecture. The functionality was determined to be dangerous and was deprecated. The second time, an automatic update of the OS had been performed by puppet the (web) server was still running, but the ground had changed under its feet (so to speak) and just needed to be restarted. In your case, I can't say as I have no experience with evosuite or android.

            – Bill Naylor
            Mar 25 at 8:24











          • Thank you anyway, I will continue to find a solution, and I will synchronize it here when I find it.

            – PX Cheng
            Mar 25 at 11:57













          0












          0








          0







          I have experienced This exception before, when (trying) to run code which had been compiled on one operating system on another. Also, when updates have occurred to the OS.



          Though you might have thought that backwards compatibility should remove this later, it is not always the case!






          share|improve this answer













          I have experienced This exception before, when (trying) to run code which had been compiled on one operating system on another. Also, when updates have occurred to the OS.



          Though you might have thought that backwards compatibility should remove this later, it is not always the case!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 24 at 16:02









          Bill NaylorBill Naylor

          7117




          7117












          • Do you have a way to solve this problem?

            – PX Cheng
            Mar 25 at 1:43











          • From what I can recall, the first time we encountered this it was due to migrating a system to new architecture. The functionality was determined to be dangerous and was deprecated. The second time, an automatic update of the OS had been performed by puppet the (web) server was still running, but the ground had changed under its feet (so to speak) and just needed to be restarted. In your case, I can't say as I have no experience with evosuite or android.

            – Bill Naylor
            Mar 25 at 8:24











          • Thank you anyway, I will continue to find a solution, and I will synchronize it here when I find it.

            – PX Cheng
            Mar 25 at 11:57

















          • Do you have a way to solve this problem?

            – PX Cheng
            Mar 25 at 1:43











          • From what I can recall, the first time we encountered this it was due to migrating a system to new architecture. The functionality was determined to be dangerous and was deprecated. The second time, an automatic update of the OS had been performed by puppet the (web) server was still running, but the ground had changed under its feet (so to speak) and just needed to be restarted. In your case, I can't say as I have no experience with evosuite or android.

            – Bill Naylor
            Mar 25 at 8:24











          • Thank you anyway, I will continue to find a solution, and I will synchronize it here when I find it.

            – PX Cheng
            Mar 25 at 11:57
















          Do you have a way to solve this problem?

          – PX Cheng
          Mar 25 at 1:43





          Do you have a way to solve this problem?

          – PX Cheng
          Mar 25 at 1:43













          From what I can recall, the first time we encountered this it was due to migrating a system to new architecture. The functionality was determined to be dangerous and was deprecated. The second time, an automatic update of the OS had been performed by puppet the (web) server was still running, but the ground had changed under its feet (so to speak) and just needed to be restarted. In your case, I can't say as I have no experience with evosuite or android.

          – Bill Naylor
          Mar 25 at 8:24





          From what I can recall, the first time we encountered this it was due to migrating a system to new architecture. The functionality was determined to be dangerous and was deprecated. The second time, an automatic update of the OS had been performed by puppet the (web) server was still running, but the ground had changed under its feet (so to speak) and just needed to be restarted. In your case, I can't say as I have no experience with evosuite or android.

          – Bill Naylor
          Mar 25 at 8:24













          Thank you anyway, I will continue to find a solution, and I will synchronize it here when I find it.

          – PX Cheng
          Mar 25 at 11:57





          Thank you anyway, I will continue to find a solution, and I will synchronize it here when I find it.

          – PX Cheng
          Mar 25 at 11:57



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324384%2fhow-can-i-fix-the-noclassdeffounderror-error-that-occurs-when-using-evosuite-to%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript