Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1551

GlassFishContainer NullPointerException when reading network listeners

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.0.CR4
    • GlassFish Containers
    • None
    • Hide

      Add dependency arquillian-glassfish-embedded-3.1 version 1.0.0.CR4 and specify a domain.xml file in arquillian.xml glassfish embedded container configurationXml property.

      Show
      Add dependency arquillian-glassfish-embedded-3.1 version 1.0.0.CR4 and specify a domain.xml file in arquillian.xml glassfish embedded container configurationXml property.

      GlassFishContainer class fetches CommandRunner results in the form of comma separated elements.

      There is a bug when reading network-listeners, the list is splitted but not trimmed what generates a NulPointerException when fetching the string:

      "configs.config.server-config.network-config.network-listeners.network-listener. https-listener.enabled"

      Notice the space in the dotted path "network-listener. https-listener".

      The patch could just trim the string:

      429: Integer listenPort = readNetworkListenerPort(config, networkListener.trim());

              Unassigned Unassigned
              xavi.arias.segui Xavi Arias (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: