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] [Created] (BROOKLYN-170) NullPointerException: jmx port must not be null for Tomcat8ServerImpl
Date Sun, 06 Sep 2015 17:12:45 GMT
Harry Metske created BROOKLYN-170:
-------------------------------------

             Summary: 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


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