Giter VIP home page Giter VIP logo

Comments (5)

kyeah avatar kyeah commented on June 16, 2024 1

ah yes! We utilize jackson-module-parameter-names to avoid having to jackson-annotate all of our creator parameters. This is included in the library, but requires your application to enable the feature on startup.

in your ExampleApplication:

import com.fasterxml.jackson.annotation.JsonCreator.Mode;
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule;

@Override
public void initialize(final Bootstrap<Config> bootstrap) {
  super.initialize(bootstrap);
  bootstrap.getObjectMapper().registerModule(new ParameterNamesModule(Mode.PROPERTIES));
}

Having annotations on our creator methods seems like a small price to pay to avoid this bit of setup.

Let me know if the change above works for you!

from dropwizard-influxdb-reporter.

kyeah avatar kyeah commented on June 16, 2024

hey @tosheer! could you add this compiler arg to your pom.xml and rebuild/re-run?

<!-- force compilation with method parameter names -->
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  ...
  <configuration>
    ...
    <compilerArgs>
      <compilerArg>-parameters</compilerArg>
    </compilerArgs>
  </configuration>
</plugin>

Ideally this wouldn't be needed to use the library, but just looking to get a sense of the root issue that needs to be fixed. Thanks!

from dropwizard-influxdb-reporter.

tosheer avatar tosheer commented on June 16, 2024

@kyeah i rebuild/re-run after updating the POM. But i can still see the same message without any other details. Github repo https://github.com/tosheer/analysis is already updated for the same.

Also just to clarify i am getting above mentioned exception when i am running "java -jar target/metrics-example-1.0-SNAPSHOT.jar server config.yml" the jar which i build by running "mvn clean install"

from dropwizard-influxdb-reporter.

tosheer avatar tosheer commented on June 16, 2024

@kyeah thanks, above mentioned problem is solved by your solution. But now i am facing issue as it is always picking up the InfluxDbHttpWriter which needs a database property where as i have specified the type as "tcp" in the config. Github repo https://github.com/tosheer/analysis is already updated for the same. Let me know if you want me to raise a new issue for this. I will close this issue.

from dropwizard-influxdb-reporter.

linving avatar linving commented on June 16, 2024

how can I use to spring boot ?

from dropwizard-influxdb-reporter.

Related Issues (7)

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.