When -Xshare:auto is specified, the JVM should try to map the CDS archive. If the mapping fails, it should continue run without the archive. However, we have a failure:
Command line: [C:\…\nightly\fastdebug\rt_baseline\windows-amd64\bin\java.exe -server -Xshare:auto -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=./sample.jsa -XX:+PrintSharedSpaces -version ]
———-System.err:(34/1335)———-
stdout: [UseSharedSpaces: %s
Error occurred during initialization of VM
Unable to use shared archive.
];
stderr: [An error has occurred while processing the shared archive file.
Unable to unmap shared space.
]
exitValue = 1
stdout: [UseSharedSpaces: %s
Error occurred during initialization of VM
Unable to use shared archive.
];
stderr: [An error has occurred while processing the shared archive file.
Unable to unmap shared space.
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at com.oracle.java.testlibrary.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:308)
at XShareAuto.main(XShareAuto.java:69)
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:484)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
JavaTest Message: shutting down test
Я следую руководству по началу работы отсюда: https: // facebook .github.io / response-native / docs / Getting-start.html. Я могу загрузить свой менеджер пакетов с помощью react-native start
. Но запуск самого приложения всегда приводит к сбою.
$ react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug...
Error occurred during initialization of VM
Unable to use shared archive.
An error has occurred while processing the shared archive file.
Unable to unmap shared space.
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
В чем проблема?
2 ответа
У вас уже есть собственный процесс, работающий в фоновом режиме на том же порту.
Используйте ps -ef | grep react
а затем убить процесс, используя идентификатор процесса kill -9 pid
А затем повторно выполните команду: react-native run-android
2
Shivam Sinha
12 Мар 2017 в 23:16
Прежде всего, дайте надлежащее разрешение вашему gradlew, в корневом каталоге выполните следующую команду
chmod 755 android/gradlew
После этого убедитесь, что у вас есть файл local.properties в папке Android с путем к файлу sdk, например
sdk.dir = /home/username/Android/Sdk/
1
vinod
22 Май 2019 в 08:03
-
Summary
-
Files
-
Reviews
-
Support
-
External Link ▾
- Donate
- Github
-
Tickets ▾
- Support Requests
- Patches
- Feature Requests
- Bugs
-
Discussion
-
Mailing Lists
-
News
-
Code
Menu
▾
▴
Windows 7 Professional — DavMail won’t start on boot.
Created:
2015-09-21
Updated:
2015-10-04
-
Hi to everyone.
I started using DavMail since my ExQuilla license expired…
I set it up yesterday, but today it wouldn’t even start on boot nor if I start in «manually»…
I tried to install it again, but no luck…
Is there anyone who could help me, please?Thank you.
-
Hard to tell without more info, are you on Windows, Unix, OSX ?
-
I put it in the thread «title» on purpose…
Windows 7 Professional — SP1 x64Last edit: Da Real Pope 2015-09-23
-
Sorry, didn’t catch it
Anyway, did you try to start davmail from a cmd console ?
-
C:Program Files (x86)DavMail>[info] Module Name: C:Program Files (x86)DavMai
ldavmail.exe
[info] Module INI: C:Program Files (x86)DavMaildavmail.ini
[info] Module Dir: C:Program Files (x86)DavMail
[info] INI Dir: C:Program Files (x86)DavMail
[info] Configured vm.location: (null)
[info] Found VM: C:Program Files (x86)Javajre1.8.0_60binclientjvm.dll
[info] Expanding Classpath: davmail.jar
[info] Expanding Classpath: lib/activation-1.1.1.jar
[info] Expanding Classpath: lib/commons-codec-1.3.jar
[info] Expanding Classpath: lib/commons-collections-3.1.jar
[info] Expanding Classpath: lib/commons-httpclient-3.1.jar
[info] Expanding Classpath: lib/commons-logging-1.0.4.jar
[info] Expanding Classpath: lib/htmlcleaner-2.2.jar
[info] Expanding Classpath: lib/jackrabbit-webdav-2.4.3.jar
[info] Expanding Classpath: lib/jcharset-1.3.jar
[info] Expanding Classpath: lib/jcifs-1.3.14.jar
[info] Expanding Classpath: lib/jdom-1.0.jar
[info] Expanding Classpath: lib/log4j-1.2.16.jar
[info] Expanding Classpath: lib/mail-1.4.3.jar
[info] Expanding Classpath: lib/slf4j-api-1.3.1.jar
[info] Expanding Classpath: lib/slf4j-log4j12-1.3.1.jar
[info] Expanding Classpath: lib/stax-api-1.0.1.jar
[info] Expanding Classpath: lib/stax2-api-3.1.1.jar
[info] Expanding Classpath: lib/swt-3.7-win32-x86.jar
[info] Expanding Classpath: lib/woodstox-core-asl-4.1.2.jar
[info] Expanding Classpath: lib/xercesImpl-2.8.1.jar
[info] Generated Classpath: C:Program Files (x86)DavMaildavmail.jar;C:Progra
m Files (x86)DavMaillibactivation-1.1.1.jar;C:Program Files (x86)DavMailli
bcommons-codec-1.3.jar;C:Program Files (x86)DavMaillibcommons-collections-3
.1.jar;C:Program Files (x86)DavMaillibcommons-httpclient-3.1.jar;C:Program
Files (x86)DavMaillibcommons-logging-1.0.4.jar;C:Program Files (x86)DavMail
libhtmlcleaner-2.2.jar;C:Program Files (x86)DavMaillibjackrabbit-webdav-2.
4.3.jar;C:Program Files (x86)DavMaillibjcharset-1.3.jar;C:Program Files (x8
6)DavMaillibjcifs-1.3.14.jar;C:Program Files (x86)DavMaillibjdom-1.0.jar;
C:Program Files (x86)DavMailliblog4j-1.2.16.jar;C:Program Files (x86)DavMa
illibmail-1.4.3.jar;C:Program Files (x86)DavMaillibslf4j-api-1.3.1.jar;C:
Program Files (x86)DavMaillibslf4j-log4j12-1.3.1.jar;C:Program Files (x86)D
avMaillibstax-api-1.0.1.jar;C:Program Files (x86)DavMaillibstax2-api-3.1.1
.jar;C:Program Files (x86)DavMaillibswt-3.7-win32-x86.jar;C:Program Files (
x86)DavMaillibwoodstox-core-asl-4.1.2.jar;C:Program Files (x86)DavMaillib
xercesImpl-2.8.1.jar
[info] VM Args:
[info] vmarg.0=-Dsun.net.inetaddr.ttl=60
[info] vmarg.1=-XmX512M
[info] vmarg.2=-Djava.class.path=C:Program Files (x86)DavMaildavmail.jar;C:P
rogram Files (x86)DavMaillibactivation-1.1.1.jar;C:Program Files (x86)DavMa
illibcommons-codec-1.3.jar;C:Program Files (x86)DavMaillibcommons-collecti
ons-3.1.jar;C:Program Files (x86)
An error has occurred while processing the shared archive file.
Unable to unmap shared space.
Error occurred during initialization of VM
Unable to use shared archive.
[err] Application aborted.EDIT:
I tried to start davmail64 too, but didn’t have java x64;
installed it;
davmail64 runs from cmd!!!will it now start on boot on its own, or do I have to set it up to?
Last edit: Da Real Pope 2015-09-25
-
OK, I just put it in the startup folder
You can consider this solved.
(It would indeed be interesting to know why the x86 version doesn’t work, still…)
-
«Unable to use shared archive» means you java runtime is broken, try to launch:
java -Xshare:dump
once to reset shared archive
Log in to post a comment.