Skip to content

Instantly share code, notes, and snippets.

@abedra
Created September 5, 2013 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abedra/6452133 to your computer and use it in GitHub Desktop.
Save abedra/6452133 to your computer and use it in GitHub Desktop.
jruby net/sftp error
require "net/sftp"
Net::SFTP.start("127.0.0.1", "vagrant", :port => "22") do |sftp|
puts "hello"
end
java.lang.RuntimeException: java.lang.VerifyError: (class: jnr/netdb/NativeServicesDB$LinuxLibServices$jaffl$2, method: getservent_r signature: (Ljnr/netdb/NativeServicesDB$UnixServent;Lcom/kenai/jaffl/Pointer;Lcom/kenai/jaffl/NativeLong;Lcom/kenai/jaffl/Pointer Expecting to find long on stack
at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:265)
at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
at com.kenai.jaffl.Library.loadLibrary(Library.java:48)
at jnr.netdb.NativeServicesDB.load(NativeServicesDB.java:80)
at jnr.netdb.Service$ServicesDBSingletonHolder.load(Service.java:122)
at jnr.netdb.Service$ServicesDBSingletonHolder.<clinit>(Service.java:118)
at jnr.netdb.Service.getServicesDB(Service.java:111)
at jnr.netdb.Service.getServiceByName(Service.java:54)
at org.jruby.ext.socket.RubyTCPSocket.getPortFrom(RubyTCPSocket.java:87)
at org.jruby.ext.socket.RubyTCPSocket.initialize(RubyTCPSocket.java:99)
at org.jruby.ext.socket.RubyTCPSocket$i$0$2$initialize.call(RubyTCPSocket$i$0$2$initialize.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:642)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:272)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:80)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:84)
at org.jruby.RubyClass.newInstance(RubyClass.java:850)
at org.jruby.RubyIO.newInstance(RubyIO.java:876)
at org.jruby.RubyIO$s$0$0$newInstance.call(RubyIO$s$0$0$newInstance.gen:65535)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:181)
at org.jruby.RubyClass.finvoke(RubyClass.java:696)
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:557)
at org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:369)
at org.jruby.ext.socket.RubyTCPSocket.open(RubyTCPSocket.java:154)
at org.jruby.ext.socket.RubyTCPSocket$s$0$0$open.call(RubyTCPSocket$s$0$0$open.gen:65535)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:219)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:215)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
at org.jruby.ast.IfNode.interpret(IfNode.java:117)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:212)
at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:163)
at org.jruby.runtime.Interpreted19Block.yieldSpecific(Interpreted19Block.java:136)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at org.jruby.ext.Timeout.timeout(Timeout.java:79)
at org.jruby.ext.Timeout$TimeoutToplevel.timeout(Timeout.java:65)
at org.jruby.ext.Timeout$TimeoutToplevel$s$0$1$timeout.call(Timeout$TimeoutToplevel$s$0$1$timeout.gen:65535)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:211)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:187)
at org.jruby.ast.FCallOneArgBlockNode.interpret(FCallOneArgBlockNode.java:34)
at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:255)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:223)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:342)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:212)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:216)
at org.jruby.RubyClass.newInstance(RubyClass.java:836)
at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrNBlock.call(JavaMethod.java:283)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:276)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:231)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:352)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:237)
at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
@dtelaroli
Copy link

Hello

Have you solved this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment