{"action":"closed","issue":{"url":"https://api.github.com/repos/ruboto/ruboto/issues/803","repository_url":"https://api.github.com/repos/ruboto/ruboto","labels_url":"https://api.github.com/repos/ruboto/ruboto/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/ruboto/ruboto/issues/803/comments","events_url":"https://api.github.com/repos/ruboto/ruboto/issues/803/events","html_url":"https://github.com/ruboto/ruboto/issues/803","id":150616464,"number":803,"title":"(NoMethodError) undefined method `current' for Java::JavaLang::Thread:Class","user":{"login":"javalovercn","id":3814599,"avatar_url":"https://avatars.githubusercontent.com/u/3814599?v=3","gravatar_id":"","url":"https://api.github.com/users/javalovercn","html_url":"https://github.com/javalovercn","followers_url":"https://api.github.com/users/javalovercn/followers","following_url":"https://api.github.com/users/javalovercn/following{/other_user}","gists_url":"https://api.github.com/users/javalovercn/gists{/gist_id}","starred_url":"https://api.github.com/users/javalovercn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javalovercn/subscriptions","organizations_url":"https://api.github.com/users/javalovercn/orgs","repos_url":"https://api.github.com/users/javalovercn/repos","events_url":"https://api.github.com/users/javalovercn/events{/privacy}","received_events_url":"https://api.github.com/users/javalovercn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-24T02:15:40Z","updated_at":"2016-04-24T09:19:03Z","closed_at":"2016-04-24T09:19:03Z","body":"```\r\n04-24 09:42:10.863: W/System.err(9686): java.lang.reflect.InvocationTargetException\r\n04-24 09:42:10.863: W/System.err(9686): \tat java.lang.reflect.Method.invoke(Native Method)\r\n04-24 09:42:10.863: W/System.err(9686): \tat java.lang.reflect.Method.invoke(Method.java:372)\r\n04-24 09:42:10.863: W/System.err(9686): \tat hc.util.ClassUtil.invokeWithExceptionOut(ClassUtil.java:95)\r\n04-24 09:42:10.863: W/System.err(9686): \tat hc.server.ui.design.engine.HCJRubyEngine.runScriptlet(HCJRubyEngine.java:136)\r\n04-24 09:42:10.863: W/System.err(9686): \tat hc.server.ui.design.hpj.RubyExector.runNoWait(RubyExector.java:121)\r\n04-24 09:42:10.863: W/System.err(9686): \tat hc.server.ui.design.hpj.RubyExector$2.run(RubyExector.java:49)\r\n04-24 09:42:10.863: W/System.err(9686): \tat hc.core.util.ThreadPool$1.run(ThreadPool.java:45)\r\n04-24 09:42:10.863: W/System.err(9686): \tat hc.core.util.RecycleThread.run(RecycleThread.java:27)\r\n04-24 09:42:10.863: W/System.err(9686): \tat java.lang.Thread.run(Thread.java:818)\r\n04-24 09:42:10.863: W/System.err(9686): Caused by: org.jruby.embed.EvalFailedException: (NoMethodError) undefined method `current' for Java::JavaLang::Thread:Class\r\n04-24 09:42:10.863: W/System.err(9686): \tat org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133)\r\n04-24 09:42:10.863: W/System.err(9686): \t... 9 more\r\n04-24 09:42:10.863: W/System.err(9686): Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `current' for Java::JavaLang::Thread:Class\r\n04-24 09:42:10.863: W/System.err(9686): \tat RUBY.mon_enter(/data/data/homecenter.mobi.server/files/jruby.jar.apk!/jruby.home/lib/ruby/2.0/monitor.rb:184)\r\n04-24 09:42:10.863: W/System.err(9686): \tat RUBY.require(/data/data/homecenter.mobi.server/files/jruby.jar.apk!/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:39)\r\n04-24 09:42:10.863: W/System.err(9686): \tat RUBY.(root)(<MyConverter>:5)\r\n04-24 09:42:10.863: W/System.err(9686): ------------------error on JRuby script : io/console on JRuby shells out to stty for most operations\r\n04-24 09:42:10.863: W/System.err(9686): file:/data/data/homecenter.mobi.server/files/jruby.jar.apk!/jruby/java/core_ext/object.rb:73 warning: already initialized constant Thread\r\n04-24 09:42:10.863: W/System.err(9686): file:/data/data/homecenter.mobi.server/files/jruby.jar.apk!/jruby/java/core_ext/object.rb:73 warning: already initialized constant String\r\n04-24 09:42:10.863: W/System.err(9686): NoMethodError: undefined method `current' for Java::JavaLang::Thread:Class\r\n04-24 09:42:10.863: W/System.err(9686):   mon_enter at /data/data/homecenter.mobi.server/files/jruby.jar.apk!/jruby.home/lib/ruby/2.0/monitor.rb:184\r\n04-24 09:42:10.863: W/System.err(9686):     require at /data/data/homecenter.mobi.server/files/jruby.jar.apk!/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:39\r\n04-24 09:42:10.863: W/System.err(9686):      (root) at <MyConverter>:5\r\n04-24 09:42:10.863: W/System.err(9686): -------JRuby source-----------\r\n04-24 09:42:10.863: W/System.err(9686): #encoding:utf-8\r\n04-24 09:42:10.863: W/System.err(9686): #more JRuby, http://github.com/jruby/jruby/wiki\r\n04-24 09:42:10.863: W/System.err(9686): #more Ruby, please read book \"Programming Ruby\"\r\n04-24 09:42:10.863: W/System.err(9686): require 'java'\r\n04-24 09:42:10.863: W/System.err(9686): import Java::hc.server.msb.Message\r\n04-24 09:42:10.863: W/System.err(9686): class MyConverter < Java::hc.server.msb.Converter\r\n```\r\nit throws on ruboto_core_1_0_5.apk,\r\nthe apk is loaded by DexClassLoader.\r\n\r\nother option information is done for ruboto as follow : \r\n1. System.setProperty(\"jruby.ji.proxyClassFactory\", \"org.ruboto.DalvikProxyClassFactory\");\r\n2. System.setProperty(\"jruby.class.cache.path\", proxyCache.getAbsolutePath());\r\n3. container.setCompatVersion(org.jruby.CompatVersion.RUBY2_0);\r\n4. container.setCompileMode(org.jruby.RubyInstanceConfig$CompileMode.JIT);"}}