org.jruby.exceptions.RaiseException

(TypeError) cannot convert instance of class org.jruby.RubyString to class java.lang.Long at java.lang.Thread.getStackTrace(java/lang/Thread.java:1552) at org.jruby.runtime.backtrace.TraceType$Gather.getBacktraceData(org/jruby/runtime/backtrace/TraceType.java:246) at org.jruby.runtime.backtrace.TraceType.getBacktrace(org/jruby/runtime/backtrace/TraceType.java:47) at org.jruby.RubyException.prepareBacktrace(org/jruby/RubyException.java:235) at org.jruby.exceptions.RaiseException.preRaise(org/jruby/exceptions/RaiseException.java:214) at org.jruby.exceptions.RaiseException.preRaise(org/jruby/exceptions/RaiseException.java:181) at org.jruby.exceptions.RaiseException.<init>(org/jruby/exceptions/RaiseException.java:111) at org.jruby.Ruby.newRaiseException(org/jruby/Ruby.java:4192) at org.jruby.Ruby.newTypeError(org/jruby/Ruby.java:3865) at org.jruby.RubyBasicObject.defaultToJava(org/jruby/RubyBasicObject.java:872) at org.jruby.RubyBasicObject.toJava(org/jruby/RubyBasicObject.java:843) at org.jruby.RubyString.toJava(org/jruby/RubyString.java:5541) at org.jruby.embed.variable.AbstractVariable.getJavaObject(org/jruby/embed/variable/AbstractVariable.java:140) at org.jruby.embed.variable.GlobalVariable.getJavaObject(org/jruby/embed/variable/GlobalVariable.java:46) at org.jruby.embed.internal.BiVariableMap.get(org/jruby/embed/internal/BiVariableMap.java:229) at org.jruby.embed.internal.BiVariableMap.get(org/jruby/embed/internal/BiVariableMap.java:208) at org.jruby.embed.jsr223.Utils.postEval(org/jruby/embed/jsr223/Utils.java:207) at org.jruby.embed.jsr223.JRubyEngine.eval(org/jruby/embed/jsr223/JRubyEngine.java:95) at org.jruby.embed.jsr223.JRubyEngine.eval(org/jruby/embed/jsr223/JRubyEngine.java:142)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web130

  • (TypeError) cannot convert instance of class org.jruby.RubyString to class java.lang.Long at java.lang.Thread.getStackTrace(java/lang/Thread.java:1552) at org.jruby.runtime.backtrace.TraceType$Gather.getBacktraceData(org/jruby/runtime/backtrace
  • (IOError) closed stream at org.jruby.RubyIO.write(org/jruby/RubyIO.java:1422) at org.jruby.RubyKernel.p(org/jruby/RubyKernel.java:482)
  • (TypeError) cannot convert instance of class org.jruby.RubyString to boolean at org.jruby.gen.InterfaceImpl1017458621.isRole(org/jruby/gen/InterfaceImpl1017458621.gen:13)
  • Stack trace

    • org.jruby.exceptions.RaiseException: (TypeError) cannot convert instance of class org.jruby.RubyString to class java.lang.Long at java.lang.Thread.getStackTrace(java/lang/Thread.java:1552) at org.jruby.runtime.backtrace.TraceType$Gather.getBacktraceData(org/jruby/runtime/backtrace/TraceType.java:246) at org.jruby.runtime.backtrace.TraceType.getBacktrace(org/jruby/runtime/backtrace/TraceType.java:47) at org.jruby.RubyException.prepareBacktrace(org/jruby/RubyException.java:235) at org.jruby.exceptions.RaiseException.preRaise(org/jruby/exceptions/RaiseException.java:214) at org.jruby.exceptions.RaiseException.preRaise(org/jruby/exceptions/RaiseException.java:181) at org.jruby.exceptions.RaiseException.<init>(org/jruby/exceptions/RaiseException.java:111) at org.jruby.Ruby.newRaiseException(org/jruby/Ruby.java:4192) at org.jruby.Ruby.newTypeError(org/jruby/Ruby.java:3865) at org.jruby.RubyBasicObject.defaultToJava(org/jruby/RubyBasicObject.java:872) at org.jruby.RubyBasicObject.toJava(org/jruby/RubyBasicObject.java:843) at org.jruby.RubyString.toJava(org/jruby/RubyString.java:5541) at org.jruby.embed.variable.AbstractVariable.getJavaObject(org/jruby/embed/variable/AbstractVariable.java:140) at org.jruby.embed.variable.GlobalVariable.getJavaObject(org/jruby/embed/variable/GlobalVariable.java:46) at org.jruby.embed.internal.BiVariableMap.get(org/jruby/embed/internal/BiVariableMap.java:229) at org.jruby.embed.internal.BiVariableMap.get(org/jruby/embed/internal/BiVariableMap.java:208) at org.jruby.embed.jsr223.Utils.postEval(org/jruby/embed/jsr223/Utils.java:207) at org.jruby.embed.jsr223.JRubyEngine.eval(org/jruby/embed/jsr223/JRubyEngine.java:95) at org.jruby.embed.jsr223.JRubyEngine.eval(org/jruby/embed/jsr223/JRubyEngine.java:142) at Main.main(Main.java:10)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.