Error when running iped-webapi.jar #2518
Replies: 4 comments 5 replies
-
|
@marcosammoura, could you take a look at this? It was also reported on #2449. This feature has a simple documentation written by its original author @atilaromero on https://github.com/sepinf-inc/IPED/wiki/Web-API, but he moved to another job. |
Beta Was this translation helpful? Give feedback.
-
|
I’ve tracked down the issue to a transitive dependency coming from the iped-parsers-impl component. The problem can be resolved by overriding the transitive dependency and explicitly forcing the newer version:
This upgrade resolves the compatibility issue for the affected functionality. I have tested this fix specifically for the functionality related to this error, and it works as expected. I will prepare and submit a pull request with this change shortly so it can be reviewed and merged. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, @filipesimoes. Many thanks for working on this issue and sending PR #2600. At first, adding
So, directly switching to A possible path towards a stable solution might involve coding a dependency shading strategy using Maven Shade plugin (see a brief discussion on this subject). It is also worth to mention that Reflections library is currently not under active development or maintenance, so the solution to the issue concerning IPED's web API should be in line with IPED's roadmap. What do you think, @lfcnassif? |
Beta Was this translation helpful? Give feedback.
-
|
I reindexed with this snap and now I got this error. i:\pcbsnap\iped>java -jar lib/iped-webapi.jar --host=127.0.0.1 --port=1234 --sources=. tks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm trying to run the iped-webapi.jar component as described in the official wiki, using the following command:
#java -jar lib/iped-webapi.jar --host=127.0.0.1 --port=1234 --sources=casosweb.json
However, I get the following error when starting the server:
Exception in thread "main" java.lang.NoSuchMethodError:
'org.reflections.util.ConfigurationBuilder org.reflections.util.ConfigurationBuilder.setExpandSuperTypes(boolean)'
at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:284)
at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:250)
at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:231)
at iped.engine.webapi.Main.startServer(Main.java:40)
at iped.engine.webapi.Main.main(Main.java:91)
My environment:
Operating system: Windows 10 x64
Java version: 11.0.26 (BellSoft LibericaJDK)
Maven version: 3.9.9
IPED version: 4.2.2
I’m not sure if this error is due to an internal incompatibility with some library (reflections, swagger, etc.), or if I'm executing the .jar incorrectly. I would really appreciate any guidance or clarification on whether this is a known issue or a mistake on my side.
Thank you very much for your time and for the great work on this tool.
Beta Was this translation helpful? Give feedback.
All reactions