-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenJ9 - "Could not create the Java Virtual Machine" when some special characters are on the command line #1080
Comments
Mirrored this issue to the OpenJ9 repo - eclipse-openj9/openj9#5751 |
@bobswift As I understand the issue, you are passing a special character, such as ellipsis (…) as the sole argument to the Java launcher, which it should interpret as the main class name, correct? Further, you expect the JVM to report this special character as missing class, right? I ran your test case under the bash shell on Ubuntu 16 using the Java 11 build you used (and others) and I get the expected behaviour:
I tested with the other special characters you mentioned and obtain similar results.
If you want to discuss this directly, please contact me on Slack at openj9.slack.com. Thank you |
Thanks for the info.
Sorry, not a member of the slack group. |
@bobswift I would encourage you to join the Slack group. You can request an invitation via this page: This may be a Docker issue, since it seems to run fine in a bare Linux shell. Are you able to test in a non-Docker environment? I will run your test case in a Docker container. |
I tried it in a docker image built from https://github.com/eclipse/openj9/tree/master/buildenv/docker/jdk8/x86_64/ubuntu16 and I get the expected (correct) behaviour. |
Status copied from Slack channel: Peter Bain [4:00 PM] |
That is very interesting: it's not the main class, but any argument.
If you have any questions, contact me on Slack. Thanks again for your help. |
@bobswift |
@DanHeidinga I suggest closing this unless @bobswift has further input. |
I don't have rights to close it on this repo. @sxa555 Can you close this? |
Sorry, didn't have time to do anymore scenarios. We had to stop using OpenJ9. If I have time in the future to try again I will open another issue. |
@bobswift Please let us know if there is anything we can do to facilitate you using OpenJ9. |
Bug still exists. Reopen. Try running jar with unicode in path on Windows and you'll get that error. |
Does same error happen to |
no
Windows 7 Professional x64 |
Special characters that cause problems: — – … テ
Fails:
Using:
Works as expected:
Using:
The above is just a quick way to show the error. The real case is trying to pass special characters in parameters to a jar entry point ;). This also worked correctly on standard JDK 8.
The text was updated successfully, but these errors were encountered: