brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-170) NullPointerException: jmx port must not be null for Tomcat8ServerImpl
Date Sun, 06 Sep 2015 17:19:45 GMT

    [ https://issues.apache.org/jira/browse/BROOKLYN-170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14732462#comment-14732462
] 

Harry Metske commented on BROOKLYN-170:
---------------------------------------

Some additional information, if you look at the sensors of the failed tomcat instance, there
are indeed missing sensors.
On a normal tomcat instance you find the following "jmx sensors" :

||Name || Value
|jmx.agent.local.path	|/home/brooklyn/brooklyn-managed-processes/apps/hYUOMMsL/entities/Tomcat8Server_N5oEPFyY/brooklyn-jmxmp-agent-shaded-0.8.0-incubating.jar
|jmx.context	|jmxrmi
|jmx.direct.port|31003
|jmx.service.url|service:jmx:jmxmp://10.0.0.162:31003
|rmi.registry.port	|1099


On a failed tomcat instance you only find these 2 sensors:
||Name ||Value
|jmx.context|jmxrmi
|rmi.registry.port|19099


> NullPointerException: jmx port must not be null for Tomcat8ServerImpl
> ---------------------------------------------------------------------
>
>                 Key: BROOKLYN-170
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-170
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.8.0-SNAPSHOT
>         Environment: Ubuntu Linux 15.04
> OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
> brooklyn 0.8.0-incubating
>            Reporter: Harry Metske
>         Attachments: tomcat8-cluster-docker.yml
>
>
> I am using a ControlledDynamicWebAppCluster with Tomcat8Server as members and an AutoScalerPolicy.
> When the load increases, brooklyn tries to start an additional tomcat, but intermittently
fails with the following exception :
> {noformat}
> Caused by: java.lang.NullPointerException: jmx port must not be null for Tomcat8ServerImpl{id=GEkG3PrY}
> 	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:253) ~[com.google.guava-guava-17.0.jar:na]
> 	at org.apache.brooklyn.entity.java.JmxSupport.applyJmxJavaSystemProperties(JmxSupport.java:275)
~[org.apache.brooklyn-brooklyn-software-base-0.8.0-incubating.jar:0.8.0-incubating]
> 	at org.apache.brooklyn.entity.java.JavaSoftwareProcessSshDriver.getJmxJavaSystemProperties(JavaSoftwareProcessSshDriver.java:258)
~[org.apache.brooklyn-brooklyn-software-base-0.8.0-incubating.jar:0.8.0-incubating]
> 	at org.apache.brooklyn.entity.java.JavaSoftwareProcessSshDriver.getJavaSystemProperties(JavaSoftwareProcessSshDriver.java:207)
~[org.apache.brooklyn-brooklyn-software-base-0.8.0-incubating.jar:0.8.0-incubating]
> 	at org.apache.brooklyn.entity.java.JavaSoftwareProcessSshDriver.getJavaOpts(JavaSoftwareProcessSshDriver.java:125)
~[org.apache.brooklyn-brooklyn-software-base-0.8.0-incubating.jar:0.8.0-incubating]
> 	at org.apache.brooklyn.entity.java.JavaSoftwareProcessSshDriver.getShellEnvironment(JavaSoftwareProcessSshDriver.java:105)
~[org.apache.brooklyn-brooklyn-software-base-0.8.0-incubating.jar:0.8.0-incubating]
> 	at org.apache.brooklyn.entity.webapp.tomcat.TomcatSshDriver.getShellEnvironment(TomcatSshDriver.java:140)
~[org.apache.brooklyn-brooklyn-software-webapp-0.8.0-incubating.jar:0.8.0-incubating]
> 	at org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessSshDriver.execute(AbstractSoftwareProcessSshDriver.java:261)
~[org.apache.brooklyn-brooklyn-software-base-0.8.0-incubating.jar:0.8.0-incubating]
> 	at org.apache.brooklyn.entity.software.base.lifecycle.ScriptHelper.executeInternal(ScriptHelper.java:366)
~[org.apache.brooklyn-brooklyn-software-base-0.8.0-incubating.jar:0.8.0-incubating]
> 	... 8 common frames omitted
> {noformat}
> So the problem is intermittent, sometimes this exception occurs, during other times it
doesn't.
> I will attach the yaml I used.
> If necessary I have debug logging available.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message