1

I've been trying to run a Maven / Java application that should connect to an external server and start a visual tool. I've tried to compile and run the code but I always have been reading the same error:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java
(default-cli) on project seco-mart-registration-tool: An exception occured while 
executing the Java class. null: InvocationTargetException: Cannot deserialize base type 
java.util.List<class org.seco.mart.model.interfaces.ServiceInterface> from C:\Users\Chicco
\Desktop\BioSeCoBis\seco-mart-server\data\marts\theatre.si (format: JSON, charset: UTF-8, 
autoClose: false). IllegalStateException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project seco-mart-
registration-tool: An exception occured while executing the Java class. null

I have no idea of what this IllegalStateException could stand for. Do you have any clue?

Thanks

4

1 回答 1

0

消息说明了错误的原因,您只需要忽略一些混乱:

无法反序列化基类型
java.util.List<class org.seco.mart.model.interfaces.ServiceInterface>

InvocationTargetExceptionexec-maven-plugin 抛出,它试图运行整个事情并且是由 uncatched 引起的IllegalStateException。该异常可能试图告诉您该对象在其当前状态下无法反序列化。

于 2012-12-28T12:27:56.653 回答