GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Building Pulsar (incl. docker images) from source with Java 9+ (Java 11, Java 15, etc.) causes silent NoSuchMethodErrors at runtime · Issue #8445 · apache/pulsar Closed Labels DescriptionBuilding Pulsar (incl. docker images) from source with Java 11 causes silent NoSuchMethodErrors at runtime To Reproduce Use Java 11. Start pulsar in docker Compile & run this Pulsar code with required libraries: import org.apache.pulsar.client.api.*; public class PulsarJava11Problem { public static void main(String[] args) throws PulsarClientException { PulsarClient pulsarClient = PulsarClient.builder().serviceUrl("pulsar://localhost:6650").build(); Producer<String> producer = pulsarClient.newProducer(Schema.STRING).topic("mytopic").create(); } } The producer never gets created and it times out. What happens on a server is a This happens at pulsar/pulsar-common/src/main/java/org/apache/pulsar/common/schema/LongSchemaVersion.java Line 44 in 097108a
This exception never gets printed to the log, this stacktrace was captured using the debugger. Expected behavior Compiling with an unsupported Java version should result in an error and the NoSuchMethodError that happens in Pulsar shouldn't get "swallowed". It should be possible to compile the code with Java 9+ without running into issues when running with Java 8. There's an explanation of the issue with ByteBuffer at jetty/jetty.project#3244 . A solution is also described:
Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |