Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15087

Creating access-log with use-server-log=true fails with IllegalArgumentException: Parameter 'abstractPath' may not be null

    XMLWordPrintable

Details

    • Undefined

    Description

      Steps to reproduce:

      1. Download the Jakarta EE 8 Full & Web Distribution ZIP from https://www.wildfly.org/downloads/ 
      2. Unpack it somewhere
      3. Start the server via bin\standalone.bat
      4. Execute the following command: bin\jboss-cli.bat -c /subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(use-server-log=true)
      5. You get the following error:
        {
            "outcome" => "failed",
            "failure-description" => {"WFLYCTL0080: Failed services" => {"org.wildfly.undertow.host.access-log.default-server.default-host.access-log" => "Failed to
        start service
            Caused by: java.lang.IllegalArgumentException: Parameter 'abstractPath' may not be null"}},
            "rolled-back" => true
        }
        

        Server log (using 24.0.1.Final):

        2021-08-05 20:15:56,191 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service org.wildfly.undertow.host.access-log.default-server.default-host.access-log: org.jboss.msc.service.StartException in service org.wildfly.undertow.host.access-log.default-server.default-host.access-log: Failed to start service
        	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
        	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
        	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        	at java.lang.Thread.run(Unknown Source)
        Caused by: java.lang.IllegalArgumentException: Parameter 'abstractPath' may not be null
        	at org.wildfly.common.Assert.checkNotNullParamChecked(Assert.java:71)
        	at org.wildfly.common.Assert.checkNotNullParam(Assert.java:49)
        	at org.jboss.as.controller.services.path.AbsolutePathService.convertPath(AbsolutePathService.java:69)
        	at org.jboss.as.controller.services.path.PathManagerService.resolveRelativePathEntry(PathManagerService.java:104)
        	at org.wildfly.extension.undertow.AccessLogService.start(AccessLogService.java:108)
        	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
        	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
        	... 6 more
        
        2021-08-05 20:15:56,205 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([
            ("subsystem" => "undertow"),
            ("server" => "default-server"),
            ("host" => "default-host"),
            ("setting" => "access-log")
        ]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.undertow.host.access-log.default-server.default-host.access-log" => "Failed to start service
            Caused by: java.lang.IllegalArgumentException: Parameter 'abstractPath' may not be null"}}
        2021-08-05 20:15:56,209 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([
            ("subsystem" => "undertow"),
            ("server" => "default-server"),
            ("host" => "default-host"),
            ("setting" => "access-log")
        ]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.undertow.host.access-log.default-server.default-host.access-log" => "Failed to start service
            Caused by: java.lang.IllegalArgumentException: Parameter 'abstractPath' may not be null"}}
        

      This works in 23.0.2.Final.

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              adrodoc Adrodoc 55 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: