Я пытаюсь сделать SFTP-файл в мэйнфрейм с помощью Spring Integration SFTP: исходящий Gateway:
Это конфигурация: < /p>
< /code>
где < /p>
remote.upload.filename.credit.fmpl=/!DTS4.UP.G3TRF.S60304
remote.upload.directory=/
< /code>
Я получаю исключение, как: < /p>
Caused by: org.springframework.integration.MessagingException: Failed to write to '//!DTS4.UP.G3TRF.S60304' while uploading the file
at org.springframework.integration.file.remote.RemoteFileTemplate.sendFileToRemoteDirectory(RemoteFileTemplate.java:392)
at org.springframework.integration.file.remote.RemoteFileTemplate.access$500(RemoteFileTemplate.java:56)
at org.springframework.integration.file.remote.RemoteFileTemplate$1.doInSession(RemoteFileTemplate.java:213)
... 46 more
Caused by: org.springframework.core.NestedIOException: failed to write file; nested exception is 3: Permission denied
at org.springframework.integration.sftp.session.SftpSession.write(SftpSession.java:158)
at org.springframework.integration.file.remote.RemoteFileTemplate.sendFileToRemoteDirectory(RemoteFileTemplate.java:385)
... 48 more
Caused by: 3: Permission denied
at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2629)
at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:545)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:491)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:454)
at org.springframework.integration.sftp.session.SftpSession.write(SftpSession.java:155)
< /code>
Если я загружаю из командной строки, используя клиент SFTP, следующее работает: < /p>
put filename //!DTS4.UP.G3TRF.S60304
< /code>
Но с помощью интеграции пружины это не так.
Server, я пытаюсь SFTP IS: IBM Z /OS MANFRAME. < /p>
Пожалуйста, помогите, если вы знаете, как решить проблему. < /p>
Спасибо,
anna < /p>
Подробнее здесь: https://stackoverflow.com/questions/258 ... ption-is-3