Failed to load map packs: Failed to enumerate installable mappacks
Brought to you by:
r_x
Version: Mobile Atlas Creator (MOBAC) 2.1.3 (2459)
Platform: Mac OS X (10.15.5)
Java VM: Java HotSpot(TM) 64-Bit Server VM (15+36-1562)
Max heap size: 2048,00 MiB
CPU cores: 8
Thread: main
Error hierarchy:
RuntimeException: Failed to load map packs: Failed to enumerate installable mappacks
IOException: Failed to enumerate installable mappacks
#############################################################
java.lang.RuntimeException: Failed to load map packs: Failed to enumerate installable mappacks
at mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:92)
at mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:152)
at mobac.Main.<init>(Main.java:68)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at mobac.StartMOBAC.main(StartMOBAC.java:46)
Caused by: java.io.IOException: Failed to enumerate installable mappacks
at mobac.mapsources.loader.MapPackManager.installUpdates(MapPackManager.java:98)
at mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:87)
at mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:152)
at mobac.Main.<init>(Main.java:68)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at mobac.StartMOBAC.main(StartMOBAC.java:46)
#############################################################
You don't provide much information which makes it difficult to help you.
Is this a fresh installation of MOBAC?
Wher have you installed MOBAC to (complete path)?
Make sure the path is within your home directory or another path where you have always full write permissions (without root).
Hello. I had tried again to run the program, and then:
I have a MacBook Pro with the OS of Catalina (10.15.7). I have my file in my desktop. But i do not know what is the problem. Thanks for your attention.
Last edit: r_x 2021-03-04
On MacOS the desktop is as far as I know a protected folder (MacOS privacy protection). If you have run a different Java based application before and denied access to the desktop this is also effective for MOBAC as it uses the Java Runtime, too.
Therefore check your MacOS Security / privacy settings is Java Runtime is allowed to access the Desktop folder.
Good afternoon.
I had changed these preferences and now, altough it's supposed that Java can acces to my desktop, it's imposible to run the program.
Regards
What do you mean by "impossible to run?"
I improved the error message to better understand what is going wrong. Please check the "test4" version of the experimental 2.20 version:
https://sourceforge.net/projects/mobac/files/Alpha%20and%20experimental/
I have exact same error and also tried the test4 version. I think it has somethign to do with mac security not allowing the map files. Any work arounds? cant get it run at all. After it fails I need to restart to get it to even attempt to run again. Installed latest jave and running OSX 11.0.1 ???
I don't think it has something to do with the map files itself. The error indicates that the file list in the
mapsourcessubdirectory of MOBAC fails.MOBAC tests that the directory exists and afterwards it tries to get the file list of that directory and that fails. The directory listing is not just empty it totally fails.
Is there an earlier version of java or mobcap that I could try?
Tia
On March 17, 2021 at 12:09:47 PM, r_x (r_x@users.sourceforge.net) wrote:
I don't think it has something to do with the map files itself. The error
indicates that the file list in the mapsources subdirectory of MOBAC fails.
MOBAC tests that the directory exists and afterwards it tries to get the
file list of that directory and that fails. The directory listing is not
just empty it totally fails.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/mobac/bugs/344/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs: #344
Last edit: r_x 2021-03-18
From my perspective this is a permission problem of MacOS and Java. MOBAC has no influence on this problem. You have to allow Java to access the folder MOBAC has been installed to. This has to be done manually by the user in the security settings of MacOS.
To See the exact path of the folder MOBAC needs to access please check out the latest unstable version: https://sourceforge.net/projects/mobac/files/Alpha%20and%20experimental/
It should show the real error message as provided by the OS.
Last edit: r_x 2021-03-18
I’m sorry but I’m not a coder and can barely understand all this…I’m just
someone who is trying to use cartograph pro on iOS and wants additional
maps.
Your link below went to 2 zi downloads. I downloaded both TO THE DESKTOP
and double clicked on “Mobile_Atlas_Creator.jar” to launch.
I got the same error screen shown here with this error cut and pasted:
Version: MOBAC Map Evaluator 2.2.0-gradle-test5
Platform: Mac OS X (10.16)
Java VM: Java HotSpot(TM) 64-Bit Server VM (1.8.0_281-b09)
Max heap size: 7282.00 MiB
CPU cores: 12
Thread: main
Error hierarchy:
RuntimeException: Failed to load map packs: /Users/m/Desktop/Mobile Atlas
Creator 2/mapsources: Operation not permitted
FileSystemException: /Users/m/Desktop/Mobile Atlas Creator 2/mapsources:
Operation not permitted
java.lang.RuntimeException: Failed to load map packs:
/Users/m/Desktop/Mobile Atlas Creator 2/mapsources: Operation not permitted
at
mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:88)
at
mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:151)
at mobac.StartMapEvaluator.main(StartMapEvaluator.java:27)
Caused by: java.nio.file.FileSystemException: /Users/m/Desktop/Mobile Atlas
Creator 2/mapsources: Operation not permitted
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at
sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:407)
at java.nio.file.Files.newDirectoryStream(Files.java:457)
at
mobac.mapsources.loader.MapPackManager.installUpdates(MapPackManager.java:100)
at
mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:83)
at
mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:151)
at mobac.StartMapEvaluator.main(StartMapEvaluator.java:27)
Can you please explain what I am looking for in this and what exactly to
do? Is the problem associated with them being on the desktop? Should I
put them in a folder before launching?
Tia
Morgan Reese
315 Franklin Ave #155
Franklin Square, NY 11010
203-446-4609
On March 18, 2021 at 5:29:27 AM, r_x (r_x@users.sourceforge.net) wrote:
From my perspective this is a permission problem of MacOS and Java. MOBAC
has no influence on this problem. You have to allow Java to access the
folder MOBAC has been installed to. This has to be done manually by the
user in the security settings of MacOS.
To See the exact path of the folder MOBAC needs to access please check out
the latest unstable version:
https://sourceforge.net/projects/mobac/files/Alpha%20and%20experimental/
It will contain the path it tries to access in the error message.
map packs: Failed to enumerate installable mappacks*
Status: open
Group: latest_stable_version
Created: Sat Oct 03, 2020 02:31 PM UTC by Francisco Prados Sanchez
Last Updated: Wed Mar 17, 2021 04:09 PM UTC
Owner: r_x
Version: Mobile Atlas Creator (MOBAC) 2.1.3 (2459)Platform: Mac OS X
(10.15.5)Java VM: Java HotSpot(TM) 64-Bit Server VM (15+36-1562)Max
heap size: 2048,00 MiBCPU cores: 8
Thread: main
Error hierarchy:
RuntimeException: Failed to load map packs: Failed to enumerate
installable mappacks
IOException: Failed to enumerate installable mappacks
java.lang.RuntimeException: Failed to load map packs: Failed to
enumerate installable mappacks
at mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:92)
at mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:152)
at mobac.Main.<init>(Main.java:68)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at mobac.StartMOBAC.main(StartMOBAC.java:46)Caused by:
java.io.IOException: Failed to enumerate installable mappacks
at mobac.mapsources.loader.MapPackManager.installUpdates(MapPackManager.java:98)
at mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:87)
at mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:152)
at mobac.Main.<init>(Main.java:68)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at mobac.StartMOBAC.main(StartMOBAC.java:46)</init></init>
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/mobac/bugs/344/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs: #344
This has nothing to do with coding this is a security function of the MacOS system which you should know as a MacOS user.
You need to grant Java access to the Desktop folder respectively the MOBAC folder on the desktop see:
https://support.apple.com/en-us/guide/mac-help/mchld5a35146/mac
Ok now this makes sense. I went in there and java is not listed in “files
and folders” and the “+ -“ plus and minus buttons are greyed out. How do I
add java? I can’t even find java in applications????….it seems to be
installed somewhere??? I tried uninstalling it for the java site
uninstaller once then reinstalled.
How do I add it to that list and then all the OS to allow desktop access?
…or could I just move the folder somewhere else???
Last edit: r_x 2021-03-18
Is there another place to put the folder to launch for that is not subject
to th security layer?….external drive?
Morgan Reese
315 Franklin Ave #155
Franklin Square, NY 11010
203-446-4609
On March 19, 2021 at 10:11:32 AM, Mo Re (rrrent@gmail.com) wrote:
According to this blog post the following folders are protected on Catalina:
Considering this list an external drive is not a good idea.
I simply moved it here and it launched fine. Thanks for your help.
Morgan Reese
315 Franklin Ave #155
Franklin Square, NY 11010
203-446-4609
On March 19, 2021 at 10:17:18 AM, r_x (r_x@users.sourceforge.net) wrote:
According to this blog post
https://eclecticlight.co/2020/01/16/a-guide-to-catalinas-privacy-protection-3-new-protected-locations/
the following folders are protected on Catalina:
Considering this list an external drive is not a good idea.
map packs: Failed to enumerate installable mappacks*
Status: open
Group: latest_stable_version
Created: Sat Oct 03, 2020 02:31 PM UTC by Francisco Prados Sanchez
Last Updated: Thu Mar 18, 2021 02:49 PM UTC
Owner: r_x
Version: Mobile Atlas Creator (MOBAC) 2.1.3 (2459)Platform: Mac OS X
(10.15.5)Java VM: Java HotSpot(TM) 64-Bit Server VM (15+36-1562)Max
heap size: 2048,00 MiBCPU cores: 8
Thread: main
Error hierarchy:
RuntimeException: Failed to load map packs: Failed to enumerate
installable mappacks
IOException: Failed to enumerate installable mappacks
java.lang.RuntimeException: Failed to load map packs: Failed to
enumerate installable mappacks
at mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:92)
at mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:152)
at mobac.Main.<init>(Main.java:68)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at mobac.StartMOBAC.main(StartMOBAC.java:46)Caused by:
java.io.IOException: Failed to enumerate installable mappacks
at mobac.mapsources.loader.MapPackManager.installUpdates(MapPackManager.java:98)
at mobac.mapsources.DefaultMapSourcesManager.loadMapSources(DefaultMapSourcesManager.java:87)
at mobac.mapsources.DefaultMapSourcesManager.initialize(DefaultMapSourcesManager.java:152)
at mobac.Main.<init>(Main.java:68)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at mobac.StartMOBAC.main(StartMOBAC.java:46)</init></init>
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/mobac/bugs/344/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs: #344
Hello.
Can you tell me please where you move the Mobile Atlas Creator folder to fix the problem?
Thanks
Please read https://sourceforge.net/p/mobac/bugs/344/#d39c/1958/f302/966c/a5d7/a54e/ce98 there is listed where you should not place MOBAC. Alternatively you can allow Java private data access, then you can place MOBAC on Desktop.
Last edit: r_x 2021-08-07