Skip to content
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

When JRE is not compatible with OS error message is tricky to understand #14

Open
jamesneale opened this issue Nov 18, 2016 · 2 comments

Comments

@jamesneale
Copy link
Contributor

When trying to launch using a Unix JRE on OSX go-java-launcher fails with the following error:

panic: exec format error

goroutine 1 [running]:
panic(0x166760, 0xc8200baa50)
	/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/palantir/go-java-launcher/launchlib.execWithChecks(0xc8200cc090, 0x24, 0xc8200e0600, 0x8, 0xc)
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:93 +0x27a
github.com/palantir/go-java-launcher/launchlib.Launch(0xc8200b9e48, 0xc8200b9e18)
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:83 +0xe38
main.LaunchWithConfig(0x7fff5fbff9b2, 0x1f, 0x7fff5fbff9d2, 0x1c)
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:39 +0x389
main.main()
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:56 +0xf6

Very hard to debug. Would be nice to fail with a much easier to understand error.

@uschi2000
Copy link
Contributor

Not really sure what to do here; suggestions?

On Fri, Nov 18, 2016 at 7:15 AM James Neale notifications@github.com
wrote:

When trying to launch using a Unix JRE on OSX go-java-launcher fails with
the following error:

panic: exec format error

goroutine 1 [running]:
panic(0x166760, 0xc8200baa50)
/usr/local/go/src/runtime/panic.go:481 +0x3e6github.com/palantir/go-java-launcher/launchlib.execWithChecks(0xc8200cc090, 0x24, 0xc8200e0600, 0x8, 0xc)
/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:93 +0x27agithub.com/palantir/go-java-launcher/launchlib.Launch(0xc8200b9e48, 0xc8200b9e18)
/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:83 +0xe38
main.LaunchWithConfig(0x7fff5fbff9b2, 0x1f, 0x7fff5fbff9d2, 0x1c)
/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:39 +0x389
main.main()
/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:56 +0xf6

Very hard to debug. Would be nice to fail with a much easier to understand
error.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#14, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AGOdwZTDdxt5qQ7lY6_O43LOZRpX3EE1ks5q_cEHgaJpZM4K2lYa
.

@jamesneale
Copy link
Contributor Author

No bright ideas unfortunately - at the very least I thought this might help if someone hits this error in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants