You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/09/17 14:24:02 UTC
[jira] [Updated] (BEAM-2775) HadoopInputFormatIOTest fails with
NoSuchMethodError
[ https://issues.apache.org/jira/browse/BEAM-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated BEAM-2775:
-------------------------
Description:
As of commit 8503adbbc3a590cd0dc2939f6a45d335682a9442, I got:
{code}
[ERROR] testReadObjectCreationWithConfigurationValueTranslation(org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest) Time elapsed: 0.007 s <<< ERROR!
java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.beam.sdk.options.PipelineOptionsFactory.validateMethodsAreEitherBeanMethodOrKnownMethod(PipelineOptionsFactory.java:1255)
at org.apache.beam.sdk.options.PipelineOptionsFactory.validateClass(PipelineOptionsFactory.java:990)
at org.apache.beam.sdk.options.PipelineOptionsFactory.validateWellFormed(PipelineOptionsFactory.java:616)
at org.apache.beam.sdk.options.PipelineOptionsFactory.register(PipelineOptionsFactory.java:550)
at org.apache.beam.sdk.options.PipelineOptionsFactory.initializeRegistry(PipelineOptionsFactory.java:569)
at org.apache.beam.sdk.options.PipelineOptionsFactory.<clinit>(PipelineOptionsFactory.java:525)
at org.apache.beam.sdk.testing.TestPipeline.testingPipelineOptions(TestPipeline.java:404)
at org.apache.beam.sdk.testing.TestPipeline.create(TestPipeline.java:262)
{code}
Here is related code:
{code}
checkArgument(unknownMethods.isEmpty(),
"Methods %s on [%s] do not conform to being bean properties.",
FluentIterable.from(unknownMethods).transform(ReflectHelpers.METHOD_FORMATTER),
iface.getName());
{code}
This led to test failure of subtests:
{code}
[ERROR] testReadersGetFractionConsumed(org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest) Time elapsed: 0.001 s <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.apache.beam.sdk.options.PipelineOptionsFactory
at org.apache.beam.sdk.testing.TestPipeline.testingPipelineOptions(TestPipeline.java:404)
at org.apache.beam.sdk.testing.TestPipeline.create(TestPipeline.java:262)
at org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest.<init>(HadoopInputFormatIOTest.java:69)
{code}
was:
As of commit 8503adbbc3a590cd0dc2939f6a45d335682a9442, I got:
{code}
[ERROR] testReadObjectCreationWithConfigurationValueTranslation(org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest) Time elapsed: 0.007 s <<< ERROR!
java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.beam.sdk.options.PipelineOptionsFactory.validateMethodsAreEitherBeanMethodOrKnownMethod(PipelineOptionsFactory.java:1255)
at org.apache.beam.sdk.options.PipelineOptionsFactory.validateClass(PipelineOptionsFactory.java:990)
at org.apache.beam.sdk.options.PipelineOptionsFactory.validateWellFormed(PipelineOptionsFactory.java:616)
at org.apache.beam.sdk.options.PipelineOptionsFactory.register(PipelineOptionsFactory.java:550)
at org.apache.beam.sdk.options.PipelineOptionsFactory.initializeRegistry(PipelineOptionsFactory.java:569)
at org.apache.beam.sdk.options.PipelineOptionsFactory.<clinit>(PipelineOptionsFactory.java:525)
at org.apache.beam.sdk.testing.TestPipeline.testingPipelineOptions(TestPipeline.java:404)
at org.apache.beam.sdk.testing.TestPipeline.create(TestPipeline.java:262)
{code}
Here is related code:
{code}
checkArgument(unknownMethods.isEmpty(),
"Methods %s on [%s] do not conform to being bean properties.",
FluentIterable.from(unknownMethods).transform(ReflectHelpers.METHOD_FORMATTER),
iface.getName());
{code}
This led to test failure of subtests:
{code}
[ERROR] testReadersGetFractionConsumed(org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest) Time elapsed: 0.001 s <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.apache.beam.sdk.options.PipelineOptionsFactory
at org.apache.beam.sdk.testing.TestPipeline.testingPipelineOptions(TestPipeline.java:404)
at org.apache.beam.sdk.testing.TestPipeline.create(TestPipeline.java:262)
at org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest.<init>(HadoopInputFormatIOTest.java:69)
{code}
> HadoopInputFormatIOTest fails with NoSuchMethodError
> ----------------------------------------------------
>
> Key: BEAM-2775
> URL: https://issues.apache.org/jira/browse/BEAM-2775
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Reporter: Ted Yu
> Assignee: Luke Cwik
>
> As of commit 8503adbbc3a590cd0dc2939f6a45d335682a9442, I got:
> {code}
> [ERROR] testReadObjectCreationWithConfigurationValueTranslation(org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest) Time elapsed: 0.007 s <<< ERROR!
> java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
> at org.apache.beam.sdk.options.PipelineOptionsFactory.validateMethodsAreEitherBeanMethodOrKnownMethod(PipelineOptionsFactory.java:1255)
> at org.apache.beam.sdk.options.PipelineOptionsFactory.validateClass(PipelineOptionsFactory.java:990)
> at org.apache.beam.sdk.options.PipelineOptionsFactory.validateWellFormed(PipelineOptionsFactory.java:616)
> at org.apache.beam.sdk.options.PipelineOptionsFactory.register(PipelineOptionsFactory.java:550)
> at org.apache.beam.sdk.options.PipelineOptionsFactory.initializeRegistry(PipelineOptionsFactory.java:569)
> at org.apache.beam.sdk.options.PipelineOptionsFactory.<clinit>(PipelineOptionsFactory.java:525)
> at org.apache.beam.sdk.testing.TestPipeline.testingPipelineOptions(TestPipeline.java:404)
> at org.apache.beam.sdk.testing.TestPipeline.create(TestPipeline.java:262)
> {code}
> Here is related code:
> {code}
> checkArgument(unknownMethods.isEmpty(),
> "Methods %s on [%s] do not conform to being bean properties.",
> FluentIterable.from(unknownMethods).transform(ReflectHelpers.METHOD_FORMATTER),
> iface.getName());
> {code}
> This led to test failure of subtests:
> {code}
> [ERROR] testReadersGetFractionConsumed(org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest) Time elapsed: 0.001 s <<< ERROR!
> java.lang.NoClassDefFoundError: Could not initialize class org.apache.beam.sdk.options.PipelineOptionsFactory
> at org.apache.beam.sdk.testing.TestPipeline.testingPipelineOptions(TestPipeline.java:404)
> at org.apache.beam.sdk.testing.TestPipeline.create(TestPipeline.java:262)
> at org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOTest.<init>(HadoopInputFormatIOTest.java:69)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)