threelegs / newrelic-plugins

NewRelic plugins (cassandra, varnish, and more to come)
http://3legs.com.ar
MIT License
22 stars 29 forks source link

Error when running the agent (Varnish) #16

Closed rguillet closed 10 years ago

rguillet commented 10 years ago

I have an error when launching the agent: java -jar newrelic_3legs_plugin-0.0.2.jar

INFO: Using configuration file /etc/newrelic/plugins/newrelic_3legs_plugin-0.0.2/config/newrelic.properties
WARNING: Logging is not currently configured. Please add a config/logging.properties file to enable additional logging.
INFO: New Relic monitor started
[Fatal Error] :1:1: Premature end of file.
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:253)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
        at ar.com.threelegs.newrelic.cassandra.Varnish.pollCycle(Unknown Source)
        at com.newrelic.metrics.publish.Runner$PollAgentsRunnable.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
pushing 0 metrics...
done!
toneplex commented 10 years ago

@rguillet enable logging as warning on line 2 suggests and see if that providers more details. The error " Premature end of file" might just mean there is a syntax error in your newrelic.properties file

rguillet commented 10 years ago

My bad, it as my application.conf that was badly formatted, thanks for the help