#1 2020-12-10 07:18:57

bhutan
Member
Registered: 2020-05-07

Could not send report to FTP server: Could not parse response code.

Hello,

After following the docs on ftp and configuring as below replacing with my sftp server details... NOTE: I am using port 22 and not 21

<ftp disabled="false" supportsScheduling="true">
  <host>ftp.host.net</host>
  <port>22</port>
  <username>rs@host.net</username>
  <password></password>
  <defaultFolder>./</defaultFolder>
</ftp>

I am getting the below error...

Could not send report to FTP server: Could not parse response code. Server Reply: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4

net.datenwerke.gxtdto.client.servercommunication.exceptions.ServerCallFailedException: Could not send report to FTP server: Could not parse response code.<br>Server Reply: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4<br>    at net.datenwerke.rs.scheduleasfile.server.scheduleasfile.ScheduleAsFileRpcServiceImpl.exportIntoFtp(ScheduleAsFileRpcServiceImpl.java:198)<br>    at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:109)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>    at java.base/java.lang.reflect.Method.invoke(Method.java:566)<br>    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:109)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:109)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)<br>    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:109)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)<br>    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)<br>    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)<br>    at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)<br>    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)<br>    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)<br>    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)<br>    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)<br>    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)<br>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)<br>    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)<br>    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)<br>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)<br>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)<br>    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)<br>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)<br>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)<br>    at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:432)<br>    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)<br>    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)<br>    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)<br>    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br>    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)<br>    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)<br>    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>    at java.base/java.lang.Thread.run(Thread.java:834)<br>Caused by: org.apache.commons.net.MalformedServerReplyException: Could not parse response code.<br>Server Reply: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4<br>    at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:344)<br>    at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:300)<br>    at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:438)<br>    at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:962)<br>    at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:950)<br>    at org.apache.commons.net.SocketClient._connect(SocketClient.java:244)<br>    at org.apache.commons.net.SocketClient.connect(SocketClient.java:202)<br>    at net.datenwerke.rs.scheduleasfile.service.scheduleasfile.FtpServiceImpl.sendToFtpServer(FtpServiceImpl.java:57)<br>    at net.datenwerke.rs.scheduleasfile.server.scheduleasfile.ScheduleAsFileRpcServiceImpl.exportIntoFtp(ScheduleAsFileRpcServiceImpl.java:195)<br>    ... 52 more<br>



Your help is highly appreciated.
Nig.

Offline

#2 2020-12-10 07:57:06

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Could not send report to FTP server: Could not parse response code.

Hi Nig,

you are trying to connect to a SFTP server, while ReportServer currently only supports the FTP protocol.

We are working on SFTP support, this will be supported in one of the next ReportServer versions. I will let you know.

Regards,
Eduardo

Offline

#3 2020-12-10 08:25:32

bhutan
Member
Registered: 2020-05-07

Re: Could not send report to FTP server: Could not parse response code.

Hello Eduardo,

Thank you for the information. Looking forward to the next versions.

Regards,
Nig.

Offline

#4 2020-12-30 09:01:50

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Could not send report to FTP server: Could not parse response code.

Hi Nig.,

we implemented SFTP functionality analogously to the current FTP functionality. This will be available with the next ReportServer version 3.4.0. I will write here when this version is released.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB