Troubleshooting - williamniemiec/ExecutionFlow GitHub Wiki

🔎 Troubleshooting

Clean

If the test path of one or more methods is not generated, it may be necessary to run clean in the project. To do this, follow the steps below:

  1. With the Eclipse opened and your project too, go to Project and click Clean...:
step1
  1. Select your project (in this example it's called 'ExecutionFlow' and click on Clean):
step2
  1. Run the test method again and the test path will be generated:
step3

Corrupted method source file

First, try clicking F5 on the file to see if it is restored. Otherwise, if you have interrupted the application's execution before the processing of the method's source file is finished and it is compromised (modified due to pre-processing), follow the steps below to recover your original source file.

  1. Go to the directory where your source file is (in this example the source file you want to retrieve is called 'TestClass_ControlFlow.java'):
step1
  1. Delete the modified source file ('TestClass_ControlFlow.java'):
step2
  1. Rename the file 'TestClass_ControlFlow.java.original' to TestClass_ControlFlow.java:
step3

After that your source file will be restored.

Note: Depending on which processing was stopped, there may be several files with the .original extension. If there is more than one for the same file, restore only the one with the .pre_processing.original suffix and delete the other one.

Corrupted test method source file

If you have interrupted the application's execution before generating the test paths, the test method file will be compromised. To restore the original file:

  1. Go to the directory containing the test method source code (in this example the test method file name is ControlFlowTest.java):
step1
  1. Delete the modified source file (ControlFlowTest.java):
step2
  1. Rename the ControlFlowTest.java.original file to ControlFlowTest.java:
step3

It is not possible to recover all backup files

If you see this message, you will need to manually restore the application files. To do this, locate all files with the .original suffix in your project and replace the backup files with the original files, proceeding in the same way as the sections Corrupted method source file and Corrupted test method source file.

"java.lang.NoClassDefFoundError: org/aspectj/bridge/IMessageHolder"

imessageholder-noclassdeffounderror

If this error occurs, it is because the library aspectjtools.jar is not in your project's build path. To add:

  1. Right-click on the project, select Build Path and select Configure Build Path...:
step1
  1. Click Add External JARs... and select the file aspectjtools.jar. After that, click on Apply and Close:
step2

Session not found

It is likely that the build path contains old versions of the application, creating a conflict with the current one. Delete the other versions and leave only the current one.

Out of memory

Run the IDE eclipse with the following command (via command line):

./eclipse.exe -vmargs -Xmx512M

⚠️ **GitHub.com Fallback** ⚠️