Github user mattunderscorechampion commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/480#issuecomment-71802104
  
    Having reviewed the build failure.
    
    A NullPointerException is thrown when parsing a string to URI.
    
    
[URI.create(..)](http://docs.oracle.com/javase/7/docs/api/java/net/URI.html#create(java.lang.String))
 throws a NullPointerException if the value passed to it is null.
    
    AbstractControllerImpl.computePortsAndUrls(..) is calling URI.create(..) 
with the value returned by AbstractControllerImpl.inferUrl(..).
    
    AbstractControllerImpl.inferUrl(..) will return null if the domain is null. 
Either from the AbstractControllerImpl.getDomain(..), 
HostAndPort.getHostText(..) or LoadBalancer.HOSTNAME attribute.
    
    It is not clear to me why changing the port assignment would affect the 
domain name.
    
    Stacktrace fragment:
    Caused by: java.lang.NullPointerException: null
        at java.net.URI$Parser.parse(URI.java:3004)
        at java.net.URI.<init>(URI.java:577)
        at java.net.URI.create(URI.java:839)
        at 
brooklyn.entity.proxy.AbstractControllerImpl.computePortsAndUrls(AbstractControllerImpl.java:314)
        at 
brooklyn.entity.proxy.AbstractControllerImpl.preStart(AbstractControllerImpl.java:299)



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to