Skip to content
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

UnmarshalException when connecting to Bamboo #17

Closed
levpaul opened this issue Apr 17, 2015 · 5 comments
Closed

UnmarshalException when connecting to Bamboo #17

levpaul opened this issue Apr 17, 2015 · 5 comments

Comments

@levpaul
Copy link
Contributor

levpaul commented Apr 17, 2015

When I tried to set up the sample server to hook into my Bamboo server, I get the following:

SEVERE: JMX scrape failed: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.catalina.loader.WebappLoader

It seems like it connects fine and when I hit the /metrics endpoint I do see a list of metrics, but it's definitely truncated, presumably at the point of the unmarshalling exception.

I can connect to the bamboo server via jconsole no problem.. I tried to set up some rules to ignore that bean, but it seems like the rules are applied after the unmarshalling stage anyway. Any ideas of what I can or should do here?

@brian-brazil
Copy link
Contributor

Hmm, this is likely a bug on the bamboo side. We should be resilient to such things, can you try adding the UnmarshalException to the list in doScrape()? If you turn on FINE logging, then we can figure out which bean and attribute is the problem.

@levpaul
Copy link
Contributor Author

levpaul commented Apr 17, 2015

Okay. I didn't know how to enable the FINE logging, so I just changed to log SEVERE. The output looked like this:

Apr 17, 2015 6:06:12 AM io.prometheus.jmx.JmxScraper logScrape
SEVERE: scrape: 'Catalina{j2eeType=WebModule, name=//localhost/, J2EEApplication=none, J2EEServer=none}aliases': null
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
...
Apr 17, 2015 6:06:16 AM io.prometheus.jmx.JmxScraper logScrape
SEVERE: scrape: 'Catalina:j2eeType=Filter,name=accessLogFilter,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none'_'modelerType': process

I guess the line above the stack trace is the culprit?

@brian-brazil
Copy link
Contributor

I'd presume so, I can't help much with debugging from here. If you could send on a PR with the exception change, I'll merge it in.

@brian-brazil
Copy link
Contributor

Thanks for the patch, can this be closed off now?

@levpaul
Copy link
Contributor Author

levpaul commented Apr 23, 2015

Yep! Thank you :)

On Thu, Apr 23, 2015 at 6:53 PM, Brian Brazil notifications@github.com
wrote:

Thanks for the patch, can this be closed off now?


Reply to this email directly or view it on GitHub
#17 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants