-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.yml parse failed | #6
Comments
hey @tosheer! could you add this compiler arg to your
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! |
@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" |
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! |
@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. |
how can I use to spring boot ? |
I am trying to integrate a dropwizard service metrics with influxdb using your metrics reporter.But i getting the below exception while running the code present at
https://github.com/tosheer/analysis
``
IND00090:dropwizard-metrics-example tosheer.kalra$
java -jar target/metrics-example-1.0-SNAPSHOT.jar server config.yml
config.yml has an error:
at [Source: N/A; line: -1, column: -1] (through reference chain: com.example.application.ExampleConfiguration["metrics"]->io.dropwizard.metrics.MetricsFactory["reporters"])
``
Can you please give me some pointer regarding what i am doing wrong.
The text was updated successfully, but these errors were encountered: