Remorph : Getting Error while running remorph-core-0.2.0-SNAPSHOT.jar after Maven build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 09:45 AM
We are encountering an issue while running the remorph-core-0.2.0-SNAPSHOT.jar file after successfully building it using Maven. The build completes without errors, but when we try to execute the generated .jar file, we get the following exception attached in the screenshot.
line No. 56 in Main.scala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 10:34 AM
Here are a few steps you can take to debug and resolve this issue:
-
Check the Code for
Either
Usage: Look through your codebase for instances whereEither
is used. Ensure that you are handling bothLeft
andRight
cases properly. The error suggests that there is an assumption that theEither
is alwaysRight
, which is not the case. -
Add Logging: Add logging around the areas where
Either
is used to print out whether the value isLeft
orRight
. This can help you identify where the unexpectedLeft
value is coming from. -
Review Recent Changes: If this issue started occurring after recent changes, review those changes to see if any modifications were made to the code handling
Either
. -
Check Dependencies: Ensure that all dependencies are correctly specified and that there are no version mismatches that could cause unexpected behavior.
-
Unit Tests: Write unit tests for the functions that return
Either
to ensure that they handle bothLeft
andRight
cases correctly.

