docker - не удалось создать сеанс SFTP из приложения весенней загрузки после подключения к серверу SFTP - PullRequest
0 голосов
/ 18 октября 2019
Accepted password for foo from 172.21.0.1 port 50440 ssh2
service-registry        | 2019-10-18 10:22:48.188  INFO [discovery-service,,,] 1 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
    policy-collector-gbm    | Proactive-Policy-Collector : 18-10-2019 10:22:54.381 [task-scheduler-2] INFO  com.jcraft.jsch.log - Connecting`enter code here` to localhost port 22
    policy-collector-gbm    | Proactive-Policy-Collector : 18-10-2019 10:22:54.383 [task-scheduler-2] WARN  o.s.i.c.MessagePublishingErrorHandler.handleError - Error message was not delivered.
    policy-collector-gbm    | org.springframework.messaging.MessageDeliveryException: failed to send Message to channel 'errorChannel'; nested exception is java.lang.NullPointerException
    policy-collector-gbm    |       at org.springframework.integration.support.utils.IntegrationUtils.wrapInDeliveryExceptionIfNecessary(IntegrationUtils.java:163)
    policy-collector-gbm    |       at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:475)
    policy-collector-gbm    |       at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:181)
    policy-collector-gbm    |       at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:160)
    policy-collector-gbm    |       at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47)
    policy-collector-gbm    |       at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:108)
    policy-collector-gbm    |       at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:93)
    policy-collector-gbm    |       at org.springframework.integration.util.ErrorHandlingTaskExecutor.lambda$execute$0(ErrorHandlingTaskExecutor.java:60)
    policy-collector-gbm    |       at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
    policy-collector-gbm    |       at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:55)
    policy-collector-gbm    |       at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:385)
    policy-collector-gbm    |       at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
    policy-collector-gbm    |       at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93)
    policy-collector-gbm    |       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    policy-collector-gbm    |       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    policy-collector-gbm    |       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    policy-collector-gbm    |       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    policy-collector-gbm    |       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    policy-collector-gbm    |       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    policy-collector-gbm    |       at java.lang.Thread.run(Thread.java:748)
    policy-collector-gbm    | Caused by: java.lang.NullPointerException: null
    policy-collector-gbm    |       at org.springframework.messaging.support.MessageHeaderAccessor.getMutableAccessor(MessageHeaderAccessor.java:616)
    policy-collector-gbm    |       at org.springframework.cloud.sleuth.instrument.messaging.TracingChannelInterceptor.mutableHeaderAccessor(TracingChannelInterceptor.java:318)
    policy-collector-gbm    |       at org.springframework.cloud.sleuth.instrument.messaging.TracingChannelInterceptor.preSend(TracingChannelInterceptor.java:131)
    policy-collector-gbm    |       at org.springframework.integration.channel.AbstractMessageChannel$ChannelInterceptorList.preSend(AbstractMessageChannel.java:589)
    policy-collector-gbm    |       at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:435)
    policy-collector-gbm    |       ... 18 common frames omitted
    policy-collector-gbm    | Proactive-Policy-Collector : 18-10-2019 10:22:54.384 [task-scheduler-2] ERROR o.s.i.c.MessagePublishingErrorHandler.handleError - failure occurred in messaging task
    policy-collector-gbm    | org.springframework.messaging.MessagingException: Problem occurred while synchronizing remote to local directory; nested exception is org.springframework.messaging.MessagingException: Failed to execute on session; nested exception is java.lang.IllegalStateException: failed to create SFTP Session
    policy-collector-gbm    |       at org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer.synchronizeToLocalDirectory(AbstractInboundFileSynchronizer.java:331)
    policy-collector-gbm    |       at org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizingMessageSource.doReceive(AbstractInboundFileSynchronizingMessageSource.java:260)
    policy-collector-gbm    |       at org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizingMessageSource.doReceive(AbstractInboundFileSynchronizingMessageSource.java:65)
    policy-collector-gbm    |       at org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource.doReceive(AbstractFetchLimitingMessageSource.java:43)
    policy-collector-gbm    |       at org.springframework.integration.endpoint.AbstractMessageSource.receive(AbstractMessageSource.java:154)
    policy-collector-gbm    |       at org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:243)
    policy-collector-gbm    |       at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:262)
    policy-collector-gbm    |       at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.lambda$run$0(AbstractPollingEndpoint.java:391)
    policy-collector-gbm    |       at org.springframework.integration.util.ErrorHandlingTaskExecutor.lambda$execute$0(ErrorHandlingTaskExecutor.java:57)
    policy-collector-gbm    |       at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
    policy-collector-gbm    |       at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:55)
    policy-collector-gbm    |       at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:385)
    policy-collector-gbm    |       at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
    policy-collector-gbm    |       at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93)
    policy-collector-gbm    |       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    policy-collector-gbm    |       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    policy-collector-gbm    |       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    policy-collector-gbm    |       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    policy-collector-gbm    |       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    policy-collector-gbm    |       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    policy-collector-gbm    |       at java.lang.Thread.run(Thread.java:748)
    policy-collector-gbm    | Caused by: org.springframework.messaging.MessagingException: Failed to execute on session; nested exception is java.lang.IllegalStateException: failed to create SFTP Session
    policy-collector-gbm    |       at org.springframework.integration.file.remote.RemoteFileTemplate.execute(RemoteFileTemplate.java:452)
    policy-collector-gbm    |       at org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer.synchronizeToLocalDirectory(AbstractInboundFileSynchronizer.java:286)
    policy-collector-gbm    |       ... 20 common frames omitted
    policy-collector-gbm    | Caused by: java.lang.IllegalStateException: failed to create SFTP Session
    policy-collector-gbm    |       at org.springframework.integration.sftp.session.DefaultSftpSessionFactory.getSession(DefaultSftpSessionFactory.java:393)
    policy-collector-gbm    |       at org.springframework.integration.sftp.session.DefaultSftpSessionFactory.getSession(DefaultSftpSessionFactory.java:57)
    policy-collector-gbm    |       at org.springframework.integration.file.remote.RemoteFileTemplate.execute(RemoteFileTemplate.java:438)
    policy-collector-gbm    |       ... 21 common frames omitted
    policy-collector-gbm    | Caused by: java.lang.IllegalStateException: failed to connect
    policy-collector-gbm    |       at org.springframework.integration.sftp.session.DefaultSftpSessionFactory.getSession(DefaultSftpSessionFactory.java:369)
    policy-collector-gbm    |       ... 23 common frames omitted
    policy-collector-gbm    | Caused by: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused (Connection refused)
    policy-collector-gbm    |       at com.jcraft.jsch.Util.createSocket(Util.java:349)
    policy-collector-gbm    |       at com.jcraft.jsch.Session.connect(Session.java:215)
    policy-collector-gbm    |       at com.jcraft.jsch.Session.connect(Session.java:183)
    policy-collector-gbm    |       at org.springframework.integration.sftp.session.DefaultSftpSessionFactory.getSession(DefaultSftpSessionFactory.java:366)
    policy-collector-gbm    |       ... 23 common frames omitted
    policy-collector-gbm    | Caused by: java.net.ConnectException: Connection refused (Connection refused)
    policy-collector-gbm    |       at java.net.PlainSocketImpl.socketConnect(Native Method)
    policy-collector-gbm    |       at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    policy-collector-gbm    |       at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    policy-collector-gbm    |       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    policy-collector-gbm    |       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    policy-collector-gbm    |       at java.net.Socket.connect(Socket.java:589)
    policy-collector-gbm    |       at java.net.Socket.connect(Socket.java:538)
    policy-collector-gbm    |       at java.net.Socket.<init>(Socket.java:434)
    policy-collector-gbm    |       at java.net.Socket.<init>(Socket.java:211)
    policy-collector-gbm    |       at com.jcraft.jsch.Util.createSocket(Util.java:343)
    policy-collector-gbm    |       ... 26 common frames omitted
...