gpt4 book ai didi

java.lang.VerifyError : main() threw exception :Incompatible argument to function

转载 作者:行者123 更新时间:2023-12-01 12:58:42 26 4
gpt4 key购买 nike

我在执行项目时遇到上述错误。当我以正常方式执行它时,它运行良好,没有抛出任何错误。但是当我尝试通过 oozie 将其作为 java 操作调用来运行相同的程序时,它会抛出以下异常

Failing Oozie Launcher, Main class [com.ea.storage.StorageVolumeClient], main() threw exception, (class: com/ea/storage/S3Metrics, method: getS3MetricValues signature: (IJ)Ljava/util/List;) Incompatible argument to function
java.lang.VerifyError: (class: com/ea/storage/S3Metrics, method: getS3MetricValues signature: (IJ)Ljava/util/List;) Incompatible argument to function
at com.ea.storage.StorageVolumeClient.storageVolume(StorageVolumeClient.java:97)
at com.ea.storage.StorageVolumeClient.collectData(StorageVolumeClient.java:65)
at com.ea.storage.StorageVolumeClient.main(StorageVolumeClient.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:467)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:366)
at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
at org.apache.hadoop.mapred.Child.main(Child.java:249)

getS3MetricValues 的签名:

public static List<> getS3MetricValues(int,long)

我调用该函数的地方:

 s3Metrics = S3Metrics.getS3MetricValues(Integer.parseInt(properties.getProperty("pool.size")),timeout);

注意:我在一台计算机上构建项目并将其部署到另一台计算机上。

请让我知道我缺少什么。

最佳答案

解决了问题。这是由于加载了两个 jets3t 库而引起的。Oozie 正在从 hadoop 库加载 jets3t 0.6 版,而我正在加载 jets3t 0.9。删除其中一个 jar 解决了这个问题。

关于java.lang.VerifyError : main() threw exception :Incompatible argument to function,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23680050/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com