Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-4286

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 2.8.2
    • None
    • None
    • None
    • CentOS 64 bits
      jna 3.4.0
      FishEye 2.8

    Description

      Trying to add an existing Git repository with an existing private key. When I upload the private key, the following stack trace is written in the log, and a 0-byte file named 'tmp' is written in $FISHEYE_INST/data/auth

      2012-09-03 13:02:32,914 ERROR [btpool0-9 ] mortbay.log Slf4jLog-warn - Error for /admin/servlet.gupld
      java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
              at com.cenqua.fisheye.util.FileSystemUtils.privatise(FileSystemUtils.java:81)
              at com.atlassian.fecru.security.SshKeyManagerImpl.createPrivateKeyFile(SshKeyManagerImpl.java:97)
      

      And

      2012-09-03 18:16:33,909 ERROR [btpool0-10 ] fisheye.app LoggingRPCServiceImpl-error - Could not save private key: POSIX c library "c" was not found
      

      There seems to be a problem with the use of jna 3.4.0 on CentOS (this is not happening on Ubuntu)

      Workaround is to replace FISHEYE_HOME/lib/jna-3.4.0.jar with jna-3.2.3.jar that came with FishEye 2.7.15 or to upgrade to jna 3.4.2 that can be downloaded from https://github.com/twall/jna/blob/3.4.2/dist/jna.jar?raw=true

      Attachments

        Issue Links

          Activity

            People

              bhumphreys BrendanA
              mmangier Malik Mangier (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: