-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Error launching JrubyFX app, trouble loading fxml_root #4156
Comments
Is your app available anywhere we could try it? If not, perhaps you can reproduce with a smaller app we can run? It sounds like the steps might be fairly simple. |
unfortunately no,it is a MagicDraw plugin and I'm trying to launch it from MagicDraw's menu. |
Ok, we'll have to struggle through this way then :-) We need to get a better backtrace...the one you provided is truncated at Give that a shot and see if we get better output. |
Oh wait, I may be mistaken...I think this is actually the load method that tries to read fxml. I'll check the code and see if I have any theories. |
Failing line is here: https://github.com/byteit101/JRubyFX-FXMLLoader/blob/master/lib/jrubyfx-fxmlloader.rb#L296 It's trying to open_stream against a URL passed into the loader's constructor here: https://github.com/byteit101/JRubyFX-FXMLLoader/blob/master/lib/jrubyfx-fxmlloader.rb#L267 I think the line setting up the loader is here: https://github.com/jruby/jrubyfx/blob/master/lib/jrubyfx/controller.rb#L348 So the problem most likely lies within However, looking at jrubyfx master, it appears that @byteit101 tried to fix some jar issues earlier this year in jruby/jrubyfx@8862d0f. I do not know if this commit made it into a release or not. If it did, we've got more work to do. |
Oh a detail I missed: it does not seem possible for the current version of |
Ahh...indeed...the last release was in Nov 2014, and this fix came in Jan 2015 (not 2016 as I implied above). @dangnlg2 Either you can try to run off a master build of jrubyfx, or you can wait until we get a release out (would be @enebo or @byteit101, not me). |
@headius That was very helpful to know, thank you for looking into it. Can you show me how to run it off the master build? Do I just clone this repo and run it from there as a jar? |
@dangnlg2 I'm not sure, actually :-) Hopefully @byteit101 or @enebo can help. |
Oh! One thing you could do is just try to apply that same patch to whatever your local copy of jrubyfx is. |
After running it off master and editing the fxml_root path, I am currently getting a permission access issue. I'm not sure as to why I am getting this issue. Any idea? Stack trace : LAUNCHED 143 org/jruby/RubyDir.java:443:in |
@headius Do you have any idea as to what is causing this issue? |
Environment
Environments:
Jruby version 1.7.26
warbler 1.4.8
Mac OSX
Issues:
get_fxml_loader doesn't seem to work in jar.
jar was packaged using warbler.
Code:
Expected Behavior
launch application from a jar using JrubyFX
Actual Behavior
crashes in the attempt to do the file join because is nil although fxml_root was specified in the app.
Launching the app works outside of the jar , where there's protection in place to assure that root_dir has fxml_root .
here's the stack trace :
The text was updated successfully, but these errors were encountered: