NullPointerException occurred during availability check for Tomcat Server in JBoss ON

Solution Verified - Updated -

Issue

  • Tomcat server is in inventory but unavailable
  • Two services are configured in tomcat's server.xml but only one service is visible in JON. How JON has to be configured so that both the services are visible?
  • Availability check fails with NullPointerException
2015-10-08 16:44:10,182 DEBUG [ResourceContainer.invoker.availCheck.daemon-14] (jboss.on.plugins.tomcat.TomcatServerComponent)- An exception occurred during availability check for Tomcat Server Resource with key ....].
java.lang.NullPointerException
    at org.jboss.on.plugins.tomcat.TomcatServerComponent.getAvailability(TomcatServerComponent.java:386)
    at org.rhq.core.pc.inventory.AvailabilityProxy.call(AvailabilityProxy.java:143)
    at org.rhq.core.pc.inventory.AvailabilityProxy.call(AvailabilityProxy.java:52)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:682)

Environment

  • Red Hat JBoss Operations Network (ON) 3.3
  • Red Hat Enterprise Web Server (Tomcat)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content