Closed Aerlinger closed 5 years ago
Thanks for report, by benign messages I expect you mean
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.SecurityHelper to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of org.jruby.util.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Some of which are probably emitted from jruby, this is a feature of all recent jdk and will either go-away or completely screw jruby etc, I expect the former, as jruby and jdk develop. I expect if I pay close attention to what Sam Pottinger has done I may be able to get to bottom of icon issue. It is unfortunate Mac has its own icon convention, and I'm a pure linux man.
@Aerlinger, please can you test propane-3.3.0-java.gem, you will note I have also bumped samples (3.5) and updated documentation. I have found atom editor to be an excellent development environment and use script plugin to run propane from the editor. I have created a plugin for propane/JRubyArt atom-k9
for code-snippets. There is even a reek linter plugin to prompt better OO programming (I'm a big Sandi Metz fan). Equally vim works pretty well but is a bit spartan.
I'm not currently seeing the "illegal reflective access" warning you mention (though I have seen it in the past in other circumstances both on JRuby and elsewhere) so not sure if it's related to the issue I've posted above.
I mean that the error message appears to be benign in that it doesn't appear to interfere with running propane, but not sure if it's a symptom of a larger issue or if others were encountering it so that's why I posted this issue.
I'll give the propane-3.30-java.gem a shot and circle back.
@Aerlinger pushed propane-3.3.1 sodding reflection caught me out when refactoring, this should fix it. Previously missing some strategy
voodoo. I think there is good case for removing the offending code from propane even if it works, because all it is supposed to do is to provide an icon in the java frame, this is not respected in many linux environments (and kind of pointless) but maybe required macOS for menu icon?
Presume fixed no comment since May
I consistently receive a
java.lang.reflect.InvocationTargetException
when running any propane sketch that does not have theP3D
renderer option. This issue appears to be that propane/processing is trying to define an icon for the applet that does not exist.For example, from within the propane-examples contrib folder, when I run the following from the command line:
$ jruby animation.rb
I get the following stacktrace:
Apart from this error message showing, the sketch does appear to run without issues within the applet (though no icon loads on the applet). So I believe this is a benign issue apart from this verbose and distracting stacktrace which shows on every run.
Oddly, this does not happen for propane sketches with the
P3D
option called from thesize
function on setup.Environment
Expected Behavior
No error should show.
Actual Behavior
Obscure error shows.
Let me know if any further details are needed.