我一直在尝试运行应该连接到外部服务器并启动可视工具的Maven / Java应用程序。
我试图编译并运行代码,但我一直都在读取相同的错误:
[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
我不知道这个IllegalStateException可以代表什么。
你有什么线索吗?
谢谢
最佳答案
这些消息指出了错误的原因,您只需要忽略一些混乱情况即可:
无法反序列化基本类型
java.util.List<class org.seco.mart.model.interfaces.ServiceInterface>
InvocationTargetException
由试图运行整个程序的exec-maven-plugin抛出,由IllegalStateException
引起且未捕获。该异常可能试图告诉您,对象不能在其当前状态下反序列化。