beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maximilian Michels (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-5527) Java PortableRunner produces wrongly shaded jar
Date Sun, 30 Sep 2018 17:43:00 GMT
Maximilian Michels created BEAM-5527:
----------------------------------------

             Summary: Java PortableRunner produces wrongly shaded jar
                 Key: BEAM-5527
                 URL: https://issues.apache.org/jira/browse/BEAM-5527
             Project: Beam
          Issue Type: Bug
          Components: runner-core
            Reporter: Maximilian Michels
            Assignee: Maximilian Michels
             Fix For: 2.8.0


Was trying out the Java Portable Runner. {{beam-runners-reference-java}} is shaded but does
not contain the required Guava classes:

{noformat}
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/beam/repackaged/beam_runners_reference_java/com/google/common/collect/ImmutableList
	at org.apache.beam.runners.reference.PortableRunnerRegistrar.getPipelineRunners(PortableRunnerRegistrar.java:31)
	at org.apache.beam.sdk.options.PipelineOptionsFactory$Cache.<init>(PipelineOptionsFactory.java:1705)
	at org.apache.beam.sdk.options.PipelineOptionsFactory$Cache.<init>(PipelineOptionsFactory.java:1679)
	at org.apache.beam.sdk.options.PipelineOptionsFactory.resetCache(PipelineOptionsFactory.java:539)
	at org.apache.beam.sdk.options.PipelineOptionsFactory.<clinit>(PipelineOptionsFactory.java:505)
	at PortableWordCount.main(PortableWordCount.java:65)
Caused by: java.lang.ClassNotFoundException: org.apache.beam.repackaged.beam_runners_reference_java.com.google.common.collect.ImmutableList
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 6 more
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message