openSUSE 12.2 / Oracle java JDK 1.7.0-13 Unsatisfied link error on login during git-tf clone

Feb 6, 2013 at 3:31 PM
Edited Feb 6, 2013 at 9:26 PM
I just installed the latest Oracle JDK and git-tf and tried to clone our TFS repo. However, I get an unsatisfied link error during the password entry portion:
staffan@towel:~/src/platform> java -version
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
staffan@towel:~/src/platform> git-tf clone https://host:8080/tfs $/Project
Username: my_user

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.microsoft.tfs.jni.internal.console.NativeConsole.nativeEnableEcho()Z
        at com.microsoft.tfs.jni.internal.console.NativeConsole.nativeEnableEcho(Native Method)
        at com.microsoft.tfs.jni.internal.console.NativeConsole.enableEcho(NativeConsole.java:56)
        at com.microsoft.tfs.jni.ConsoleUtils.enableEcho(ConsoleUtils.java:47)
        at com.microsoft.gittf.client.clc.commands.framework.Command.prompt(Command.java:464)
        at com.microsoft.gittf.client.clc.commands.framework.Command.promptForPassword(Command.java:436)
        at com.microsoft.gittf.client.clc.commands.framework.Command.promptForCredentials(Command.java:424)
        at com.microsoft.gittf.client.clc.commands.framework.Command.getDefaultCredentials(Command.java:288)
        at com.microsoft.gittf.client.clc.commands.CloneCommand.run(CloneCommand.java:197)
        at com.microsoft.gittf.client.clc.Main.main(Main.java:319)
staffan@towel:~/src/platform> git-tf clone http://kinzie:8080/tfs/engineering $/Platform
Username: faction/stjernstrom

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.microsoft.tfs.jni.internal.console.NativeConsole.nativeEnableEcho()Z
        at com.microsoft.tfs.jni.internal.console.NativeConsole.nativeEnableEcho(Native Method)
        at com.microsoft.tfs.jni.internal.console.NativeConsole.enableEcho(NativeConsole.java:56)
        at com.microsoft.tfs.jni.ConsoleUtils.enableEcho(ConsoleUtils.java:47)
        at com.microsoft.gittf.client.clc.commands.framework.Command.prompt(Command.java:464)
        at com.microsoft.gittf.client.clc.commands.framework.Command.promptForPassword(Command.java:436)
        at com.microsoft.gittf.client.clc.commands.framework.Command.promptForCredentials(Command.java:424)
        at com.microsoft.gittf.client.clc.commands.framework.Command.getDefaultCredentials(Command.java:288)
        at com.microsoft.gittf.client.clc.commands.CloneCommand.run(CloneCommand.java:197)
        at com.microsoft.gittf.client.clc.Main.main(Main.java:319)
Feb 6, 2013 at 9:25 PM
I finally found the problem - I had an older (1.x) install of git-tf sitting in ~/bin. Removing that solved the problem.
Developer
Feb 6, 2013 at 10:09 PM
Hi,

I'm glad to hear that you've overcome this. Let us know if you have any further issues with Git-TF.

Alex