Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-475

Error java.lang.reflect.InvocationTargetException with IPv6 Addresses

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: studio-connection
    • Labels:
      None
    • Environment:
      Debian Lenny with OpenJDK
      java -version gives:
      java version "1.6.0_0"
      OpenJDK Runtime Environment (IcedTea6 1.5pre) (6b14-1.5~pre1-3)
      OpenJDK Server VM (build 14.0-b10, mixed mode)
      Apache Directory Studio 1.3.0

      Description

      When creating a Connection to a LDAP-Server with an IPv6-Address gives a "java.lang.reflect.InvocationTargetException"-Error-Message when doing "Check Network Parameters". Using a DNS-FQDN which resolves to the same IPv6-Address anything is ok.
      When trying to connect to the server with an IPv6-Address entered in the Connection-Setup the first Address-Block is ignored and the connection fails to establish.

      Trying with the IPv6-Address in square brackets doesn't work either.

        Activity

        Hide
        Stefan Seelmann added a comment -

        You need to use square brackets around the IPv6 address.

        I was able to connect at least to localhost using [::1] and [fe80::21e:37ff:fe22:f1af]. I tested with Sun 1.5.0, Sun 1.6.0 and OpenJDK 6b12-0ubuntu6.1.

        Unfortunately in 1.3.0 the error handling is bad and you only get this "InvocationTargetException" but not the real error, in 1.4.0 the error handling is changed.

        Show
        Stefan Seelmann added a comment - You need to use square brackets around the IPv6 address. I was able to connect at least to localhost using [::1] and [fe80::21e:37ff:fe22:f1af] . I tested with Sun 1.5.0, Sun 1.6.0 and OpenJDK 6b12-0ubuntu6.1. Unfortunately in 1.3.0 the error handling is bad and you only get this "InvocationTargetException" but not the real error, in 1.4.0 the error handling is changed.
        Hide
        Stefan Seelmann added a comment -

        Hi Mathias,

        I can't repoduce your problem. I was able to connect to localhost and to a virtual machine over IPv6.

        Please try again with Studio 1.4.0, it will be release next week. At least you should get a better error message. If so please just reopen this Jira.

        Regards,
        Stefan

        Show
        Stefan Seelmann added a comment - Hi Mathias, I can't repoduce your problem. I was able to connect to localhost and to a virtual machine over IPv6. Please try again with Studio 1.4.0, it will be release next week. At least you should get a better error message. If so please just reopen this Jira. Regards, Stefan

          People

          • Assignee:
            Unassigned
            Reporter:
            Mathias Kaufmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development