FTP:我无法连接FTP文件与SwitchYard错误无法启动服务SwitchYardService:必须指定主机且不能为空

8zzbczxx  于 2022-11-08  发布在  其他
关注(0)|答案(2)|浏览(150)
17:16:56,767 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty
    at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:85)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_45]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_45]
    at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_45]
Caused by: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty
    at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:77)
    at org.switchyard.component.camel.common.deploy.BaseBindingActivator.createInboundHandler(BaseBindingActivator.java:71)
    at org.switchyard.component.camel.common.deploy.BaseBindingActivator.activateBinding(BaseBindingActivator.java:63)
    at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:515)
    at org.switchyard.deploy.internal.Deployment.start(Deployment.java:141)
    at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:106)
    at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:78)
    ... 5 more
Caused by: java.lang.IllegalArgumentException: host must be specified and not empty
    at org.apache.camel.util.ObjectHelper.notEmpty(ObjectHelper.java:319)
    at org.apache.camel.component.file.remote.RemoteFileEndpoint.afterPropertiesSet(RemoteFileEndpoint.java:119)
    at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:86)
    at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:34)
    at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
    at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)
    at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)
    at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1971)
    at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1899)
    at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1921)
    at org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:1803)
    at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:724)
    at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1779)
    at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:666)
    at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:671)
    at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:75)
    ... 11 more

17:16:56,790 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015951: Admin console
17:16:56,791 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "intercard-esb.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"intercard-esb.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"intercard-esb.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty"}}
17:16:56,792 ERROR [org.jboss.as] (MSC service thread 1-7) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 4281ms - Started 184 of 261 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
17:16:56,795 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016009: Stopping weld service for deployment intercard-esb.jar
17:16:56,806 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment intercard-esb.jar in 13ms
17:16:56,808 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty

17:16:56,812 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"intercard-esb.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"intercard-esb.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty"}}}}
jtjikinw

jtjikinw1#

这是轮询使用者吗?通常这表示您指定的URL中有错误。例如,在您从FTP站台使用时,可能会遗漏斜扛,例如:

sftp://myhost.com:22somefolder

在本例中,上面的一个斜杠丢失了:

sftp://myhost.com:22/myfolder

导致问题的端点是什么?

gr8qqesn

gr8qqesn2#

此特定问题可能是由多种原因导致请仔细检查终结点,确保没有尾随空格
sftp:my.host.com:22 /sftp目录(端口22和/sftp目录之间有空格,请删除空格)或sftp://my.host.com:22/sftp目录(my.host.com和端口22之间有空格,请删除空格)
由于已配置属性的值中存在尾部空格,因此可能会出现上述空格

相关问题