{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-processing/JRubyArt/issues/14","repository_url":"https://api.github.com/repos/ruby-processing/JRubyArt","labels_url":"https://api.github.com/repos/ruby-processing/JRubyArt/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ruby-processing/JRubyArt/issues/14/comments","events_url":"https://api.github.com/repos/ruby-processing/JRubyArt/issues/14/events","html_url":"https://github.com/ruby-processing/JRubyArt/issues/14","id":154038736,"number":14,"title":"Error with loading data","user":{"login":"b-jufre","id":17750928,"avatar_url":"https://avatars.githubusercontent.com/u/17750928?v=3","gravatar_id":"","url":"https://api.github.com/users/b-jufre","html_url":"https://github.com/b-jufre","followers_url":"https://api.github.com/users/b-jufre/followers","following_url":"https://api.github.com/users/b-jufre/following{/other_user}","gists_url":"https://api.github.com/users/b-jufre/gists{/gist_id}","starred_url":"https://api.github.com/users/b-jufre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-jufre/subscriptions","organizations_url":"https://api.github.com/users/b-jufre/orgs","repos_url":"https://api.github.com/users/b-jufre/repos","events_url":"https://api.github.com/users/b-jufre/events{/privacy}","received_events_url":"https://api.github.com/users/b-jufre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2016-05-10T15:39:29Z","updated_at":"2016-05-14T07:28:27Z","closed_at":null,"body":"<!--\r\nThis is a simple template for filing JRubyArt issues.\r\n\r\nPlease help us help you by providing the information below.\r\n\r\nText inside XML comment tags will not be shown in your report.\r\n-->\r\n\r\n### Environment\r\n\r\nk9 setup check:\r\n`RubyArt version 1.0.7\r\n    PROCESSING_ROOT = /Applications/Processing.app/Contents/Java\r\n    JRUBY = false\r\n    jruby-complete installed = true`\r\n\r\njruby -v\r\n`jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [darwin-x86_64]`\r\n\r\njava -version\r\n`java version \"1.8.0_92\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_92-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)`\r\n\r\nk9 --version:\r\n`JRubyArt version 1.0.7`\r\n\r\n### Expected Behavior\r\n\r\nThe sketch should show the image with the histogram:\r\n       k9_samples/processing_app/topics/image_processing/histogram.rb\r\n\r\n(But it happens with any sketch that requires depends on archives inside a data folder).\r\n\r\n### Actual Behavior\r\n\r\nEvery time I try to run any sketch file with stuff loading from the data folder a get this kind of error:\r\n\r\n`CompilerOracle: dontinline org/jruby/runtime/invokedynamic/InvokeDynamicSupport.invocationFallback\r\nThe file \"frontier.jpg\" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.\r\nJava::JavaLang::NullPointerException\r\n\tprocessing.core.PGraphics.image(processing/core/PGraphics.java:3765)\r\n\tprocessing.core.PApplet.image(processing/core/PApplet.java:12116)\r\n\tjava.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)\r\n\torg.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:423)\r\n\torg.jruby.javasupport.JavaMethod.tryProxyInvocation(org/jruby/javasupport/JavaMethod.java:613)\r\n\torg.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:287)\r\n\tRUBY.setup(samples/processing_app/topics/image_processing/histogram.rb:17)\r\n\torg.jruby.javasupport.proxy.JavaProxyConstructor$MethodInvocationHandler.invokeRuby(org/jruby/javasupport/proxy/JavaProxyConstructor.java:229)\r\n\torg.jruby.javasupport.proxy.JavaProxyConstructor$MethodInvocationHandler.invoke(org/jruby/javasupport/proxy/JavaProxyConstructor.java:212)\r\n\tprocessing.core.PApplet.handleDraw(processing/core/PApplet.java:2378)\r\n\tprocessing.awt.PSurfaceAWT$12.callDraw(processing/awt/PSurfaceAWT.java:1527)\r\n\tprocessing.core.PSurfaceNone$AnimationThread.run(processing/core/PSurfaceNone.java:316)`\r\n"},"comment":{"url":"https://api.github.com/repos/ruby-processing/JRubyArt/issues/comments/219205942","html_url":"https://github.com/ruby-processing/JRubyArt/issues/14#issuecomment-219205942","issue_url":"https://api.github.com/repos/ruby-processing/JRubyArt/issues/14","id":219205942,"user":{"login":"monkstone","id":86850,"avatar_url":"https://avatars.githubusercontent.com/u/86850?v=3","gravatar_id":"","url":"https://api.github.com/users/monkstone","html_url":"https://github.com/monkstone","followers_url":"https://api.github.com/users/monkstone/followers","following_url":"https://api.github.com/users/monkstone/following{/other_user}","gists_url":"https://api.github.com/users/monkstone/gists{/gist_id}","starred_url":"https://api.github.com/users/monkstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monkstone/subscriptions","organizations_url":"https://api.github.com/users/monkstone/orgs","repos_url":"https://api.github.com/users/monkstone/repos","events_url":"https://api.github.com/users/monkstone/events{/privacy}","received_events_url":"https://api.github.com/users/monkstone/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T07:28:27Z","updated_at":"2016-05-14T07:28:27Z","body":"b-jufre I have simplified everything in the latest change, and seems the right thing to do. May not fix mac issue which might benefit from exploring ThinkDifferent.java (but that brings us into realms of signing jars etc). I don't know why/how jdf exposed `sketchPath` it is a public method (well two really a getter and a setter), so should have already been available to processing.py, we probably should not try to access the private variable.\r\nAnyway one consequence of  this change is that the the data prefix must go, use either just name or absolute path for data files."}}