Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-138

java.lang.LinkageError: loader constraint violation:

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: 1.0.0-M17
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      x64 linux, Atlassian Jira SDK, Spring, OSGi, Maven

      Description

      I was trying to use Apache Directory LDAP in an jira plugin, but I get this error:

      java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/apache/catalina/loader/WebappClassLoader) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:299)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
      at org.apache.mina.core.service.IoHandlerAdapter.<clinit>(IoHandlerAdapter.java:35)
      at com.consultingtoolsmiths.jira.samples.webwork.ActionAlpha.getLdapConnection(ActionAlpha.java:134)
      at com.consultingtoolsmiths.jira.samples.webwork.ActionAlpha.doDefault(ActionAlpha.java:159)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433)
      at webwork.action.ActionSupport.execute(ActionSupport.java:157)
      at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:85)

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        Closing the resolved issues.

        Show
        elecharny Emmanuel Lecharny added a comment - Closing the resolved issues.
        Hide
        elecharny Emmanuel Lecharny added a comment -
        Show
        elecharny Emmanuel Lecharny added a comment - See if it's related to the pb in http://code.google.com/p/myschedule/issues/detail?id=35

          People

          • Assignee:
            elecharny Emmanuel Lecharny
            Reporter:
            raggiskula Ragnar Skulason
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development