What is the problem? Please be detailed.
I have been using Briefcase via CLI since the CLI was introduced. I haven't had any problems with it until yesterday when I used Briefcase 1.11.1. I upgraded from v1.10.0. I took note of the new syntax for CLI and have applied it to pull data from a test ODK server (on ONA) that I use. Server settings are as follows:
url: https://odk.ona.io
username: validtrial
password: zEF-STN-5ze-qom
I used the following command line input to try to pull from this aggregate server:
java -jar ODK-Briefcase-v1.11.1.jar --pull_aggregate --form_id stakeholders --storage_directory ~/Desktop --aggregate_url https::/ona.io/validtrial --odk_username validtrial --odk_password zEF-STN-5ze-qom
I get the following error on terminal:
Unexpected error in Briefcase. Please review briefcase.log for more information. For help, post to https://forum.getodk.org/c/support
The briefcase.log contains the following:
2018-06-28 06:40:44,573 [main] ERROR org.opendatakit.common.cli.Cli - Error
java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /Users/ernest/Desktop/ODK Briefcase Storage/cache.ser
at org.opendatakit.briefcase.reused.UncheckedFiles.createFile(UncheckedFiles.java:133)
at org.opendatakit.briefcase.util.FormCache.setLocation(FormCache.java:80)
at org.opendatakit.briefcase.util.FormCache.from(FormCache.java:54)
at org.opendatakit.briefcase.operations.PullFormFromAggregate.pullFormFromAggregate(PullFormFromAggregate.java:66)
at org.opendatakit.briefcase.operations.PullFormFromAggregate.lambda$static$0(PullFormFromAggregate.java:53)
at org.opendatakit.common.cli.Cli.lambda$run$4(Cli.java:126)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.opendatakit.common.cli.Cli.run(Cli.java:123)
at org.opendatakit.briefcase.Launcher.main(Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.nio.file.NoSuchFileException: /Users/ernest/Desktop/ODK Briefcase Storage/cache.ser
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.createFile(Files.java:632)
at org.opendatakit.briefcase.reused.UncheckedFiles.createFile(UncheckedFiles.java:131)
... 13 common frames omitted
2018-06-28 08:41:11,678 [main] ERROR org.opendatakit.common.cli.Cli - Error
java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /Users/ernest/Desktop/ODK Briefcase Storage/cache.ser
at org.opendatakit.briefcase.reused.UncheckedFiles.createFile(UncheckedFiles.java:133)
at org.opendatakit.briefcase.util.FormCache.setLocation(FormCache.java:80)
at org.opendatakit.briefcase.util.FormCache.from(FormCache.java:54)
at org.opendatakit.briefcase.operations.PullFormFromAggregate.pullFormFromAggregate(PullFormFromAggregate.java:66)
at org.opendatakit.briefcase.operations.PullFormFromAggregate.lambda$static$0(PullFormFromAggregate.java:53)
at org.opendatakit.common.cli.Cli.lambda$run$4(Cli.java:126)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.opendatakit.common.cli.Cli.run(Cli.java:123)
at org.opendatakit.briefcase.Launcher.main(Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.nio.file.NoSuchFileException: /Users/ernest/Desktop/ODK Briefcase Storage/cache.ser
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.createFile(Files.java:632)
at org.opendatakit.briefcase.reused.UncheckedFiles.createFile(UncheckedFiles.java:131)
... 13 common frames omitted
When I use version 1.9.0 of Briefcase, command produces no error and expected results are produced.
What ODK tool and version are you using? And on what device and operating system version?
ODK Briefcase v1.11.1 .jar file on a macOS 10.13.5
What steps can we take to reproduce the problem?
Steps described above. Details of server being accessed available above.
What you have you tried to fix the problem?
I tried both the long form and the short form of the CLI syntax.