bloxbean / aion4j-maven-plugin

Aion4j Maven Plugin for AVM based smart contract on Aion
MIT License
4 stars 3 forks source link

aion4j:call fails in remote mode when the contract method has a parameter or return type as org.aion.avm.api.Address. #21

Closed satran004 closed 5 years ago

satran004 commented 5 years ago

[ERROR] Failed to execute goal org.aion4j:aion4j-maven-plugin:0.4.8:call (default-cli) on project sample12: Execution default-cli of goal org.aion4j:aion4j-maven-plugin:0.4.8:call failed: A required class was missing while executing org.aion4j:aion4j-maven-plugin:0.4.8:call: org/aion/avm/api/Address [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.aion4j:aion4j-maven-plugin:0.4.8 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/OsDev/.m2/repository/org/aion4j/aion4j-maven-plugin/0.4.8/aion4j-maven-plugin-0.4.8.jar [ERROR] urls[1] = file:/Users/OsDev/.m2/repository/net/i2p/crypto/eddsa/0.3.0/eddsa-0.3.0.jar [ERROR] urls[2] = file:/Users/OsDev/.m2/repository/com/mashape/unirest/unirest-java/1.4.9/unirest-java-1.4.9.jar

Root cause: Caused by: java.lang.NoClassDefFoundError: org/aion/avm/api/Address at org.aion4j.maven.avm.util.MethodCallArgsUtil.parseMethodArgs (MethodCallArgsUtil.java:38) at org.aion4j.maven.avm.mojo.AVMCallMajo.executeRemote (AVMCallMajo.java:149) at org.aion4j.maven.avm.mojo.AVMAbstractBaseMojo.execute (AVMAbstractBaseMojo.java:22) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

satran004 commented 5 years ago

https://github.com/satran004/aion4j-maven-plugin/commit/00f56391b7f1ad5a84fd8c0232b22f07c75454a8