Hi all,
I started using JavaMelody on my project, a Wicket webapp.
The first tests in local were pretty successful, I'm developping using
Jetty and I had access to the monitoring page of JavaMelody.
So, I packaged my application and deployed it in my local Websphere
(on a Windows machine), again big success, it was working just fine.
I decided to give it a try in our development environment and deployed
the same EAR file I used in my local WAS in the DEV one (on a Linux
machine).
And there I get this nasty exception :
[2/22/12 7:29:10:965 CET] 00000030 webapp E
com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Servlet
Error]-[used argument cannot be less than 0]:
java.lang.IllegalArgumentException: used argument cannot be less than
0
at java.lang.management.MemoryUsage.<init>(MemoryUsage.java:
95)
at
com.ibm.lang.management.MemoryMXBeanImpl.getNonHeapMemoryUsageImpl(Native
Method)
at
com.ibm.lang.management.MemoryMXBeanImpl.getNonHeapMemoryUsage(MemoryMXBean Impl.java:
143)
at
net.bull.javamelody.MemoryInformations.<init>(MemoryInformations.java:
69)
at
net.bull.javamelody.JavaInformations.<init>(JavaInformations.java:137)
at
net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:
285)
at
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:
122)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanc eWrapper.java:
188)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain .java:
116)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChai n.java:
77)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterMan ager.java:
908)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilt erManager.java:
997)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(D efaultExtensionProcessor.java:
1062)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(D efaultExtensionProcessor.java:
982)
at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935)
at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:
276)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:
931)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:
1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:
186)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(H ttpInboundLink.java:
452)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpI nboundLink.java:
511)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInb oundLink.java:
305)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink. java:
276)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscrimi nators(NewConnectionInitialReadCallback.java:
214)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewCo nnectionInitialReadCallback.java:
113)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRe adCompletionListener.java:
165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.jav a:
217)
at com.ibm.io.async.AsyncChannelFuture
$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
I'm not quite sure why I get a different behaviour between 2 WAS
installations, maybe because of there is a difference between the two,
one being a developer edition and the other an entreprise one.
Does anyone experience the same sort of issue before ?
Cheers,
Anthony