Error when running tests.

Answered

I am getting this error when running either a Robot test or unit test.

 

This is for an existing project.

 

I started getting this error a few times last week.  Now, it happens 98% of the the time.  If I restart intelliJ, then sometimes it will work once after the restart, then start failing.  Once it fails, it will keep failing.

 

Here is the error when trying to run a robot test:

 

C:\Users\lakhotia\provisioned-apps\java\bin\java -Xms1G -Xmx4g -XX:MaxPermSize=1G -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\IntelliJ IDEA 2016.1.4\bin" com.intellij.rt.execution.application.AppMain org.robotframework.RobotFramework run --loglevel DEBUG "--test=Anna can run Credit Manager only PDs" .
Error: Could not find or load main class com.intellij.rt.execution.application.AppMain
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1G; support was removed in 8.0

Process finished with exit code 1

 

 

Here is the error when trying to run a unit test.

 

C:\Users\lakhotia\provisioned-apps\java\bin\java -ea -Didea.launcher.port=7533 "-Didea.launcher.bin.path=C:\IntelliJ IDEA 2016.1.4\bin" -Didea.junit.sm_runner com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 com.moodysanalytics.sae.calculation.rfo.CreditManagerEngineTest
Error: Could not find or load main class com.intellij.rt.execution.application.AppMain

Process finished with exit code 1

 

I've been using this project workspace for years, and never encountered this before last week.

2 comments
Comment actions Permalink

I've noticed that the command lines for your tests are missing the classpath entirely, not sure why it happened. Maybe the project run/debug configurations are corrupted? Try creating a new run configuration and see if it helps, check if this can be reproduced in a new project.

Also try reinstalling IntelliJ IDEA from https://www.jetbrains.com/idea/download/previous.html or update to the current version from http://www.jetbrains.com/idea/download/index.html.

0
Comment actions Permalink

Yes, I was getting the same error with other run configurations.  Also with other projects.

 

I upgraded to the latest version.  So far it works, but I'll continue to monitor it for the next few days.

 

I first had this issue a few times last week, but then starting Monday, it started happening about 98% of the time.

0

Please sign in to leave a comment.