Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » JGit working in Android; Lcom/jcraft/jsch/Channel errors?
JGit working in Android; Lcom/jcraft/jsch/Channel errors? [message #947987] Wed, 17 October 2012 12:44 Go to next message
Eclipse UserFriend
Hello,

I'm trying to get JGit working in Android, and am having problems.

When I try to do a clone from an http repository the actual fetch part fails with errors to do with com.jcrafj.jsch.

10-17 16:03:54.026: W/dalvikvm(405): VFY: unable to find class referenced in signature (Lcom/jcraft/jsch/Channel;)
10-17 16:03:54.036: I/dalvikvm(405): Could not find method com.jcraft.jsch.Channel.connect, referenced from method org.eclipse.jgit.transport.TransportSftp.newSftp
10-17 16:03:54.036: W/dalvikvm(405): VFY: unable to resolve virtual method 37: Lcom/jcraft/jsch/Channel;.connect (I)V
10-17 16:03:54.036: D/dalvikvm(405): VFY: replacing opcode 0x6e at 0x0016
10-17 16:03:54.036: D/dalvikvm(405): Making a copy of Lorg/eclipse/jgit/transport/TransportSftp;.newSftp code (116 bytes)
10-17 16:03:54.036: W/dalvikvm(405): VFY: unable to resolve exception class 36 (Lcom/jcraft/jsch/JSchException;)
10-17 16:03:54.036: W/dalvikvm(405): VFY: unable to find exception handler at addr 0x1e
10-17 16:03:54.036: W/dalvikvm(405): VFY: rejected Lorg/eclipse/jgit/transport/TransportSftp;.newSftp ()Lcom/jcraft/jsch/ChannelSftp;
10-17 16:03:54.036: W/dalvikvm(405): VFY: rejecting opcode 0x0d at 0x001e
10-17 16:03:54.036: W/dalvikvm(405): VFY: rejected Lorg/eclipse/jgit/transport/TransportSftp;.newSftp ()Lcom/jcraft/jsch/ChannelSftp;
10-17 16:03:54.036: W/dalvikvm(405): Verifier rejected class Lorg/eclipse/jgit/transport/TransportSftp;
10-17 16:03:54.036: W/dalvikvm(405): Exception Ljava/lang/VerifyError; thrown during Lorg/eclipse/jgit/transport/Transport;.<clinit>
10-17 16:03:54.036: W/System.err(405): java.lang.ExceptionInInitializerError
10-17 16:03:54.046: W/System.err(405): at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:118)
10-17 16:03:54.046: W/System.err(405): at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
10-17 16:03:54.046: W/System.err(405): at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)

Is com.jcrafj.jsch a required library?
What else is a required library?

Or does anyone have any pointers for JGit and Android guides?

Thanks in advance,
James
Re: JGit working in Android; Lcom/jcraft/jsch/Channel errors? [message #948089 is a reply to message #947987] Wed, 17 October 2012 14:50 Go to previous messageGo to next message
Eclipse UserFriend
Ah, it does need the com.jcrafj.jsch library! Altho I'm now getting a different error:

10-17 18:47:29.105: W/System.err(315): org.eclipse.jgit.api.errors.TransportException: <URL>: -1 null
10-17 18:47:29.115: W/System.err(315): at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
10-17 18:47:29.115: W/System.err(315): at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
10-17 18:47:29.125: W/System.err(315): at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)


ps. <URL> put in to get around anti-spam measures

[Updated on: Wed, 17 October 2012 14:50] by Moderator

Re: JGit working in Android; Lcom/jcraft/jsch/Channel errors? [message #948622 is a reply to message #948089] Thu, 18 October 2012 03:41 Go to previous messageGo to next message
Eclipse UserFriend
com.jcrafj.jsch is required to support ssh protocol. Find dependencies for org.eclipse.jgit in the manifest
https://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit/META-INF/MANIFEST.MF
Re: JGit working in Android; Lcom/jcraft/jsch/Channel errors? [message #966324 is a reply to message #948622] Wed, 31 October 2012 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Hey James,

Before I jump in and try this myself, would you be able to post instructions describing how you got it installed and running? Just looking to save myself (and potentially others) some time.

Thanks
Re: JGit working in Android; Lcom/jcraft/jsch/Channel errors? [message #967102 is a reply to message #947987] Thu, 01 November 2012 09:49 Go to previous message
Eclipse UserFriend
I didn't. I got stuck on the 2nd error above and haven't had time to return to this project since. I'd like to try again sometime, but no idea when. Any ideas appreciated.
Previous Topic:Rebase quirk
Next Topic:Is it possible to squash commit by rebasing?
Goto Forum:
  


Current Time: Tue Jul 08 19:32:43 EDT 2025

Powered by FUDForum. Page generated in 0.24894 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top