Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wso2 芭蕾舞演员未发现异常_Wso2_Ballerina - Fatal编程技术网

Wso2 芭蕾舞演员未发现异常

Wso2 芭蕾舞演员未发现异常,wso2,ballerina,Wso2,Ballerina,我遵循并尝试运行一个示例文件,如下所示 ballerina run getFtp.bal 它给我以下输出 Compiling source getFtp.bal error: wso2:ftp:/src/ftp/external_functions.bal:70:1: {ballerinax/java}CLASS_NOT_FOUND message=org.wso2.ei.b7a.ftp.core.client.FTPClient error: wso2:ftp:/src/ft

我遵循并尝试运行一个示例文件,如下所示

ballerina run getFtp.bal
它给我以下输出

Compiling source
        getFtp.bal
error: wso2:ftp:/src/ftp/external_functions.bal:70:1: {ballerinax/java}CLASS_NOT_FOUND message=org.wso2.ei.b7a.ftp.core.client.FTPClient
error: wso2:ftp:/src/ftp/external_functions.bal:75:1: {ballerinax/java}CLASS_NOT_FOUND message=org.wso2.ei.b7a.ftp.core.server.FTPListenerHelper
请注意,在此之前我运行了
ballerina pull wso2/ftp
命令,如果还有其他事情要做,请提供帮助。
谢谢

出现了一个问题,即互操作性不适用于单个ballerina文件。这就是为什么会出现此错误。尝试将代码转换为项目模块。然后,它将与你的芭蕾舞版本


这个问题在ballerina 1.0.3()中已修复。

您能检查一下wso2/ftp的版本吗?您可以在
/.ballerina/balo_cache/wso2/ftp/
文件夹中找到该版本。您的ballerina版本是什么?您能否使用ballerina 1.0.3进行检查?您是否可以尝试使用模块名称运行ballerina项目,如
ballerina run module_name
,看看错误是否仍然存在?嗨,hYk,它使用了1.0.3,感谢快速响应。当我尝试连接到SFTP主机时,ballerina是否支持SFTP?它给了我以下错误:org.wso2.ei.b7a.ftp.core.util.BallerinaFTPException message=无法初始化ftp侦听器:无法初始化文件服务器连接器以提供服务:ftpServerConnector$$service$0原因=错误org.wso2.transport.remotefilesystem.exception.RemoteFileSystemConnectorException消息=无法为服务初始化文件服务器连接器:ftpServerConnector$$service$0FTP模块也支持通过SFTP连接。能否检查协议是否设置为
ftp:SFTP
,端口是否设置为
22
,以及用户名和密码详细信息?必须在
ftp:Listener
ftp:ClientEndpointConfig
configs中修改这些详细信息。除上述内容外,侦听文件夹的
路径应为SFTP用户的主目录。例如,如果您有
/home/sftpdir
,并且SFTP用户只能访问
sftpdir
目录,那么路径配置应该是
path:“/sftpdir”
。所有目录路径也应从此目录开始。