Issue Type: Bug Bug
Affects Versions: JRuby 1.7.3, JRuby 1.7.2
Assignee: Unassigned
Components: Application Error, Embedding, Java Integration
Created: 21/Apr/13 7:10 AM
Description:

I could use some help in figuring this out. Any help is greatly appreciated.

When unregistering a previously registered LocationListener we get the exception listed below. The code for the application is in the Ruboto GPS tutorial: https://github.com/ruboto/ruboto/wiki/Tutorial%3A-get-current-gps-position

I am not sure wether this is a regression or not. The example was originally written a long time ago, and I think it worked fine then

W/System.err(10698): org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `__ruby_object' for #<MyLocationListener:0x42e6cc00>
W/System.err(10698): 	at dalvik.system.VMStack.getThreadStackTrace(Native Method)
W/System.err(10698): 	at java.lang.Thread.getStackTrace(java/lang/Thread.java:591)
W/System.err(10698): 	at org.jruby.runtime.backtrace.TraceType$Gather.getBacktraceData(org/jruby/runtime/backtrace/TraceType.java:171)
W/System.err(10698): 	at org.jruby.runtime.backtrace.TraceType.getBacktrace(org/jruby/runtime/backtrace/TraceType.java:39)
W/System.err(10698): 	at org.jruby.RubyException.prepareBacktrace(org/jruby/RubyException.java:215)
W/System.err(10698): 	at org.jruby.exceptions.RaiseException.preRaise(org/jruby/exceptions/RaiseException.java:214)
W/System.err(10698): 	at org.jruby.exceptions.RaiseException.preRaise(org/jruby/exceptions/RaiseException.java:195)
W/System.err(10698): 	at org.jruby.exceptions.RaiseException.<init>(org/jruby/exceptions/RaiseException.java:141)
W/System.err(10698): 	at org.jruby.exceptions.RaiseException.<init>(org/jruby/exceptions/RaiseException.java:74)
W/System.err(10698): 	at org.jruby.RubyKernel.methodMissingDirect(org/jruby/RubyKernel.java:272)
W/System.err(10698): 	at org.jruby.RubyBasicObject.method_missing19(org/jruby/RubyBasicObject.java:1652)
W/System.err(10698): 	at org.jruby.internal.runtime.methods.DynamicMethod.call(org/jruby/internal/runtime/methods/DynamicMethod.java:208)
W/System.err(10698): 	at org.jruby.internal.runtime.methods.AliasMethod.call(org/jruby/internal/runtime/methods/AliasMethod.java:86)
W/System.err(10698): 	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org/jruby/runtime/callsite/CachingCallSite.java:336)
W/System.err(10698): 	at org.jruby.runtime.callsite.CachingCallSite.callBlock(org/jruby/runtime/callsite/CachingCallSite.java:179)
W/System.err(10698): 	at org.jruby.runtime.callsite.CachingCallSite.call(org/jruby/runtime/callsite/CachingCallSite.java:183)
W/System.err(10698): 	at org.jruby.ast.FCallSpecialArgBlockPassNode.interpret(org/jruby/ast/FCallSpecialArgBlockPassNode.java:38)
W/System.err(10698): 	at org.jruby.ast.NewlineNode.interpret(org/jruby/ast/NewlineNode.java:105)
W/System.err(10698): 	at org.jruby.ast.BlockNode.interpret(org/jruby/ast/BlockNode.java:71)
W/System.err(10698): 	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(org/jruby/evaluator/ASTInterpreter.java:75)
W/System.err(10698): 	at org.jruby.internal.runtime.methods.InterpretedMethod.call(org/jruby/internal/runtime/methods/InterpretedMethod.java:112)
W/System.err(10698): 	at org.jruby.javasupport.util.RuntimeHelpers$MethodMissingMethod.call(org/jruby/javasupport/util/RuntimeHelpers.java:445)
W/System.err(10698): 	at org.jruby.javasupport.util.RuntimeHelpers.callMethodMissing(org/jruby/javasupport/util/RuntimeHelpers.java:372)
W/System.err(10698): 	at org.jruby.RubyClass.finvoke(org/jruby/RubyClass.java:720)
W/System.err(10698): 	at org.jruby.javasupport.util.RuntimeHelpers.invoke(org/jruby/javasupport/util/RuntimeHelpers.java:505)
W/System.err(10698): 	at org.jruby.javasupport.Java$7.invoke(org/jruby/javasupport/Java.java:1228)
W/System.err(10698): 	at $Proxy0.__ruby_object(Native Method)
W/System.err(10698): 	at org.jruby.javasupport.JavaUtil.trySimpleConversions(org/jruby/javasupport/JavaUtil.java:475)
W/System.err(10698): 	at org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject(org/jruby/javasupport/JavaUtil.java:161)
W/System.err(10698): 	at org.jruby.javasupport.JavaUtil.convertJavaArrayToRuby(org/jruby/javasupport/JavaUtil.java:95)
W/System.err(10698): 	at org.jruby.javasupport.Java$7.invoke(org/jruby/javasupport/Java.java:1226)
W/System.err(10698): 	at $Proxy0.equals(Native Method)
W/System.err(10698): 	at java.util.HashMap.remove(java/util/HashMap.java:626)
W/System.err(10698): 	at android.location.LocationManager.removeUpdates(android/location/LocationManager.java:1012)
W/System.err(10698): 	at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(10698): 	at java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:511)
W/System.err(10698): 	at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:455)
W/System.err(10698): 	at org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:316)
W/System.err(10698): 	at org.jruby.java.invokers.InstanceMethodInvoker.call(org/jruby/java/invokers/InstanceMethodInvoker.java:61)
W/System.err(10698): 	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org/jruby/runtime/callsite/CachingCallSite.java:326)
W/System.err(10698): 	at org.jruby.runtime.callsite.CachingCallSite.call(org/jruby/runtime/callsite/CachingCallSite.java:170)
W/System.err(10698): 	at org.jruby.ast.CallOneArgNode.interpret(org/jruby/ast/CallOneArgNode.java:57)
W/System.err(10698): 	at org.jruby.ast.NewlineNode.interpret(org/jruby/ast/NewlineNode.java:105)
W/System.err(10698): 	at org.jruby.ast.BlockNode.interpret(org/jruby/ast/BlockNode.java:71)
W/System.err(10698): 	at org.jruby.ast.RescueNode.executeBody(org/jruby/ast/RescueNode.java:224)
W/System.err(10698): 	at org.jruby.ast.RescueNode.interpret(org/jruby/ast/RescueNode.java:119)
W/System.err(10698): 	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(org/jruby/evaluator/ASTInterpreter.java:75)
W/System.err(10698): 	at org.jruby.internal.runtime.methods.InterpretedMethod.call(org/jruby/internal/runtime/methods/InterpretedMethod.java:139)
W/System.err(10698): 	at org.jruby.RubyClass.finvoke(org/jruby/RubyClass.java:674)
W/System.err(10698): 	at org.jruby.javasupport.util.RuntimeHelpers.invoke(org/jruby/javasupport/util/RuntimeHelpers.java:493)
W/System.err(10698): 	at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.callEachType(org/jruby/embed/internal/EmbedRubyObjectAdapterImpl.java:351)
W/System.err(10698): 	at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.call(org/jruby/embed/internal/EmbedRubyObjectAdapterImpl.java:306)
W/System.err(10698): 	at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.runRubyMethod(org/jruby/embed/internal/EmbedRubyObjectAdapterImpl.java:276)
W/System.err(10698): 	at org.jruby.embed.ScriptingContainer.runRubyMethod(org/jruby/embed/ScriptingContainer.java:1546)
W/System.err(10698): 	at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(10698): 	at java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:511)
W/System.err(10698): 	at org.ruboto.JRubyAdapter.runRubyMethod(org/ruboto/JRubyAdapter.java:148)
W/System.err(10698): 	at org.ruboto.RubotoActivity.onPause(org/ruboto/RubotoActivity.java:1143)
W/System.err(10698): 	at org.ruboto.EntryPointActivity.onPause(org/ruboto/EntryPointActivity.java:88)
W/System.err(10698): 	at android.app.Activity.performPause(android/app/Activity.java:5304)
W/System.err(10698): 	at android.app.Instrumentation.callActivityOnPause(android/app/Instrumentation.java:1229)
W/System.err(10698): 	at android.app.ActivityThread.performPauseActivity(android/app/ActivityThread.java:2866)
W/System.err(10698): 	at android.app.ActivityThread.performPauseActivity(android/app/ActivityThread.java:2835)
W/System.err(10698): 	at android.app.ActivityThread.handlePauseActivity(android/app/ActivityThread.java:2813)
W/System.err(10698): 	at android.app.ActivityThread.access$800(android/app/ActivityThread.java:140)
W/System.err(10698): 	at android.app.ActivityThread$H.handleMessage(android/app/ActivityThread.java:1244)
W/System.err(10698): 	at android.os.Handler.dispatchMessage(android/os/Handler.java:99)
W/System.err(10698): 	at android.os.Looper.loop(android/os/Looper.java:137)
W/System.err(10698): 	at android.app.ActivityThread.main(android/app/ActivityThread.java:4898)
W/System.err(10698): 	at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(10698): 	at java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:511)
W/System.err(10698): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(com/android/internal/os/ZygoteInit.java:1006)
W/System.err(10698): 	at com.android.internal.os.ZygoteInit.main(com/android/internal/os/ZygoteInit.java:773)
W/System.err(10698): 	at dalvik.system.NativeStart.main(Native Method)

    
Environment: Android 2.3.3 and 4.1.2
jruby-jars 1.7.2, 1.7.3 and master
Fix Versions: JRuby 1.7.4
Project: JRuby
Priority: Major Major
Reporter: Uwe Kubosch
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to