JBWS022117: Invalid address provided

weixin_34365417發表於2016-07-22

https://www.centosblog.com/how-to-change-hostname-on-centos-linux/

設定hostname後,JBOSS啟動報錯 JBWS022117: Invalid address provided

從錯誤資訊看,是在驗證IP時失敗:

ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 50) JBAS014612: Operation ("add") failed - address: ([("subsystem" => "webservices")]): java.lang.IllegalArgumentException: JBWS022117: Invalid address provided: TCC_T1.mart.com
        at org.jboss.ws.common.management.AbstractServerConfig.toIPv6URLFormat(AbstractServerConfig.java:129)
        at org.jboss.ws.common.management.AbstractServerConfig.setWebServiceHost(AbstractServerConfig.java:115)
        at org.jboss.as.webservices.dmr.WSSubsystemAdd.createServerConfig(WSSubsystemAdd.java:101)
        at org.jboss.as.webservices.dmr.WSSubsystemAdd.performBoottime(WSSubsystemAdd.java:88)
        at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performRuntime(AbstractBoottimeAddStepHandler.java:57)

查詢JBoss EAP 6.2使用的jbossws-common版本:jbossws-common-2.2.3.Final-redhat-1.jar

cd JBOSS_HOME/modules/system/layers/base/org/jboss/ws/common/main

查詢其jbossws-common原始碼,下載2.x的版本,檢視程式碼發現:
當hostname中包含下劃線時,會被認為是無效的hostname,修改hostname為TCC-T1.mart.com,啟動成功。

相關文章