Giter VIP home page Giter VIP logo

rabbitmq-stream-single-active-consumer's Issues

Failing to run example

I'm trying to run the example, and it's failing with an unmet dependency:

./mvnw -e -q compile exec:java -Dexec.mainClass=com.rabbitmq.stream.SuperStreamConsumer -Dexec.arguments="instance-1"
...
[SNIP]
...
Caused by: java.lang.ClassNotFoundException: io.micrometer.core.instrument.util.NamedThreadFactory
    at java.net.URLClassLoader.findClass (URLClassLoader.java:476)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:589)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:522)
    at com.rabbitmq.stream.impl.ScheduledExecutorServiceWrapper.<init> (ScheduledExecutorServiceWrapper.java:39)
    at com.rabbitmq.stream.impl.StreamEnvironment.<init> (StreamEnvironment.java:216)
    at com.rabbitmq.stream.impl.StreamEnvironment.<init> (StreamEnvironment.java:117)
    at com.rabbitmq.stream.impl.StreamEnvironmentBuilder.build (StreamEnvironmentBuilder.java:301)
    at com.rabbitmq.stream.SuperStreamProducer.main (SuperStreamProducer.java:9)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254)
    at java.lang.Thread.run (Thread.java:829)

This seems to fix it:

git diff
diff --git a/pom.xml b/pom.xml
index f7cdf6c..9fe660f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
   <properties>
     <maven.compiler.source>11</maven.compiler.source>
     <maven.compiler.target>11</maven.compiler.target>
-    <stream-client.version>0.9.0-SNAPSHOT</stream-client.version>
+    <stream-client.version>0.9.0</stream-client.version>
     <slf4j.version>2.0.2</slf4j.version>
     <logback.version>1.4.1</logback.version>
   </properties>

I'm not sure offhand why the SNAPSHOT version of the client library isn't working. I'm unfamiliar with maven, so I'm not sure if I'm just doing something wrong, or if there is an issue with the SNAPSHOT library. Either way, something probably needs to change either in the README.md, in the pom.xml, or in the client library itself.

My environment:

openjdk 11.0.19 2023-04-18
OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1)
OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1, mixed mode, sharing)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.