
Questions: 23,752 //
Answers: 52,357 //
Contributing Members: 18,023
I am getting an error in the Fundamentals Module 12 DIY exercise. In the starter solution there is a test.xml configuration provided including a testFTP flow that is testing the in memory FTP server. It is configured to run on a scheduler basis.
I am getting an exception on this when running the project and wondering if there is some configuration that is missing or if there is a problem with the mock FTP server implementation provided. As per the console trace below - the mock server is up and running just not accepting read operations. (Why is it looking for a Windows UNC on an FTP server?)
I am running on version 4 with the latest Anypoint Studio (7.3.1)
INFO 2018-11-24 05:08:54,474 [Thread-16] [event: ] org.mockftpserver.fake.FakeFtpServer: Connection accepted from host /127.0.0.1
INFO 2018-11-24 05:08:54,475 [Thread-23] [event: ] org.mockftpserver.core.command.ConnectCommandHandler: Sending reply [220 Service ready for new user. (MockFtpServer 2.7.1; see http://mockftpserver.sourceforge.net)]
INFO 2018-11-24 05:08:54,495 [Thread-23] [event: ] org.mockftpserver.core.session.DefaultSession: Received command: [USER user]
INFO 2018-11-24 05:08:54,495 [Thread-23] [event: ] org.mockftpserver.fake.command.UserCommandHandler: Sending reply [331 User name okay, need password.]
INFO 2018-11-24 05:08:54,515 [Thread-23] [event: ] org.mockftpserver.core.session.DefaultSession: Received command: [PASS password]
INFO 2018-11-24 05:08:54,515 [Thread-23] [event: ] org.mockftpserver.fake.command.PassCommandHandler: Sending reply [230 User logged in, proceed.]
INFO 2018-11-24 05:08:54,535 [Thread-23] [event: ] org.mockftpserver.core.session.DefaultSession: Received command: [PWD]
INFO 2018-11-24 05:08:54,535 [Thread-23] [event: ] org.mockftpserver.fake.command.PwdCommandHandler: Sending reply [257 "/data" is current directory.] args=[/data]
INFO 2018-11-24 05:08:54,557 [Thread-23] [event: ] org.mockftpserver.core.session.DefaultSession: Received command: [TYPE A]
INFO 2018-11-24 05:08:54,557 [Thread-23] [event: ] org.mockftpserver.fake.command.TypeCommandHandler: Sending reply [200 TYPE completed.]
ERROR 2018-11-24 05:08:54,559 [[MuleRuntime].io.10: [connectors-mod12-various-systems-starter].testFTP.BLOCKING @1ea10cc] [event: 0-b6952d70-efe1-11e8-8a68-9c2a70475729] org.mule.runtime.core.internal.exception.OnErrorPropagateHandler:
********************************************************************************
Message : UNC path is missing sharename: /\/data.
Element : testFTP/processors/0 @ connectors-mod12-various-systems-starter:test.xml:17 (FTP)
Element XML : <ftp:read doc:name="FTP" doc:id="f6242b03-5c82-4801-9184-58fe4a958ba8" path="test/testfile.csv" config-ref="Partner2_FTP_Config"></ftp:read>
Error type : MULE:UNKNOWN
--------------------------------------------------------------------------------
Root Exception stack trace:
java.nio.file.InvalidPathException: UNC path is missing sharename: /\/data
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:118)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at org.mule.extension.ftp.internal.connection.FtpFileSystem.changeToBaseDir(FtpFileSystem.java:262)
at org.mule.extension.file.common.api.BaseFileSystemOperations.doRead(BaseFileSystemOperations.java:191)
at org.mule.extension.ftp.internal.FtpOperations.read(FtpOperations.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(@gopale - I see you have been helping with some other issues on Module 10 and 11...)
Nov 25, 2018 at 03:59 AM, gopale answered with:
It seems like the project was built using an older version of Studio and Mule server, and it seemed to work just fine with that version. It's quite possible that when the project is loaded into new Studio, libraries used in this version could be breaking it. I will pass this along, but since this is a DIY exercises, I am not sure you will get any support on this. I will ask someone to at least look into the error related to UNC and see if there is a fix for this version of Studio.
-gopal
Unable to deploy application in studio 7 for mule 4 Walkthrough 3-4 1 Answer
Receiving an error after attempting to submit RAML file for week1 MU Fundamentals 4 Answers
Dev Fundamentals Wk 5: American API Filter By Destination 5 Answers
Open Course Exam Access Code 2 Answers
Fundamentals course - solutions for the DIY exercises 9 Answers