Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i get the following Exception in my tFileInputJSON component:
Exception in component tFileInputJSON_1 (heidelbergmaterialsAPITest)
java.net.MalformedURLException: no protocol: file///C:/Talend/TestFiles/xxxxxxx.json
at java.base/java.net.URL.<init>(URL.java:645)
at java.base/java.net.URL.<init>(URL.java:541)
at java.base/java.net.URL.<init>(URL.java:488)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.tFileList_1Process(heidelbergmaterialsAPITest.java:952)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.tREST_1Process(heidelbergmaterialsAPITest.java:3004)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.tLibraryLoad_4Process(heidelbergmaterialsAPITest.java:1745)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.tLibraryLoad_3Process(heidelbergmaterialsAPITest.java:1625)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.tLibraryLoad_2Process(heidelbergmaterialsAPITest.java:1505)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.tLibraryLoad_1Process(heidelbergmaterialsAPITest.java:1385)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.runJobInTOS(heidelbergmaterialsAPITest.java:3281)
at testumgebung.heidelbergmaterialsapitest_0_1.heidelbergmaterialsAPITest.main(heidelbergmaterialsAPITest.java:3130)
As you can see i prepended the protocol "file///". First i got the Exception "unknown protocol c".
This is my tFileList component which iterates over the files
In advanced settings i checked the option "Format file path to slash(/) style (useful on Windows)"
This is my tFileInputJSON component:
I fixed it myself.
The problem was fixed by changing the protocol "file///" to "file:///".
I fixed it myself.
The problem was fixed by changing the protocol "file///" to "file:///".