Re: [JSch-users] NoSuchMethod exception when using JSch in Eclipse 3.4
Status: Alpha
Brought to you by:
ymnk
From: Oberhuber, M. <Mar...@wi...> - 2008-11-04 20:18:26
|
Hi Mark, the method signature from your backtrace indicates a void return value -- I)V -- but according to the Sources that I see, the method in JSch in Eclipse 3.4 has an int return value. In other words, it appears to be source compatible but not binary compatible. As a workaround, you might want to try using Java Reflection... Class cSession = mySession.getClass(); Method mSetPortForwarding = cSession.getMethod(...); mSetPortForwarding.invoke... Cheers, -- Martin Oberhuber, Senior Member of Technical Staff, Wind River Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Mark Phippard [mailto:mar...@gm...] > Sent: Tuesday, November 04, 2008 8:50 PM > To: jsc...@li... > Subject: [JSch-users] NoSuchMethod exception when using JSch > in Eclipse 3.4 > > Hi, > > In our CollabNet Desktop product we use the JSch plugin to create and > manage SSH connections to various hosts that you can allocate from a > cloud. Code is here: > > http://desktop-eclipse.open.collab.net/source/browse/desktop-e clipse/trunk/plugins/com.collabnet.cubit/ > > In Eclipse 3.4 when our code establishes a connection and tries to set > port forwarding we always run into this error: > > java.lang.NoSuchMethodError: > com.jcraft.jsch.Session.setPortForwardingL(ILjava/lang/String;I)V > at > com.collabnet.cubit.ssh.SshSession.setPortForwarding(SshSessio > n.java:172) > at > com.collabnet.cubit.actions.OpenTerminalAction.run(OpenTermina > lAction.java:48) > > I cannot figure out what could be causing this. Clearly the method we > are using exists and has for some time. This code works fine in > Eclipse 3.3 (and we actually build the plugin in 3.3). With the code > checked out in Eclipse 3.4 I do not see any problems and it works fine > in the Eclipse runtime. I tried building the plugin from Eclipse 3.4 > (thinking there must be some kind of binary compatibility issue) but > when I install that plugin in Eclipse 3.4 it does not work either. > > Any ideas what can be happening? > > -- > Thanks > > Mark Phippard > http://markphip.blogspot.com/ > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK & > win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > JSch-users mailing list > JSc...@li... > https://lists.sourceforge.net/lists/listinfo/jsch-users > |