Uploaded image for project: 'Brooklyn'
  1. Brooklyn
  2. BROOKLYN-581

NoSuchMethodError occurs, when we use Brooklyn

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.12.0
    • 0.12.0
    • None

    Description

      Hi, when we use org.apache.brooklyn:brooklyn-rest-client:0.12.0, our project get a NoSuchMethodError. The root cause is dependency conflict problem. By static analysis, we found that duplicate classes exist in different JARs, but they have different features, which leads to the really loaded classes are not the actually required ones of our project (JVM only load the classes present first on the classpath and shadow the other duplicate ones with the same name).

      Conflicting Jar-pair: <javax.ws.rs:javax.ws.rs-api:*2.0.1:><org.jboss.spec.javax.ws.rs:*jboss-jaxrs-api_2.0_spec:1.0.0.Final:>

      To avoid the other downstream projects encounter this conflicts, please pay attention about it. The conflicting info is listed below. Thanks!

       

      Risk for jar-pair:<javax.ws.rs:javax.ws.rs-api:2.0.1:><org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:1.0.0.Final:>
      Methods that only exist in javax.ws.rs:javax.ws.rs-api:2.0.1:: [neu.lab:findbug:0.0.1-SNAPSHOT:->org.apache.brooklyn:brooklyn-rest-client:0.12.0:->org.apache.brooklyn:brooklyn-rest-api:0.12.0:->javax.ws.rs:javax.ws.rs-api:2.0.1:]
      <javax.ws.rs.client.Entity: boolean equals(java.lang.Object)>
      <javax.ws.rs.client.Entity: int hashCode()>
      <javax.ws.rs.client.Entity: java.lang.String toString()>
      <javax.ws.rs.core.CacheControl: boolean notEqual(java.util.Map,java.util.Map)>
      <javax.ws.rs.core.CacheControl: int hashCodeOf(java.util.Map)>
      <javax.ws.rs.core.CacheControl: int hashCodeOf(java.util.Collection)>
      <javax.ws.rs.core.CacheControl: boolean notEqual(java.util.Collection,java.util.Collection)>
      <javax.ws.rs.core.Link$JaxbLink: int hashCode()>
      <javax.ws.rs.core.Link$JaxbLink: void setUri(java.net.URI)>
      <javax.ws.rs.core.Link$JaxbLink: void setParams(java.util.Map)>
      <javax.ws.rs.core.Link$JaxbLink: boolean equals(java.lang.Object)>

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            PandaMonkey PandaMonkey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: