czgov / camel-isds

Camel component for czech system ISDS (Informační Systém Datových Schránek).
MIT License
3 stars 0 forks source link

java.lang.NoSuchFieldError: REFLECTION #2

Closed jludvice closed 8 years ago

jludvice commented 8 years ago

Fix version conflicts in jaxb-* between camel and java-isds.

java.lang.NoSuchFieldError: REFLECTION
    at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:729)
    at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:574)
    at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:402)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:258)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:683)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:340)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:323)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:361)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:365)
    at javax.xml.ws.Service.getPort(Service.java:188)
    at cz.abclinuxu.datoveschranky.impl.Authentication.createService(Authentication.java:31)
    at cz.abclinuxu.datoveschranky.impl.DataBoxManager.getDataBoxMessagesService(DataBoxManager.java:58)
    at com.github.czgov.isds.ISDSConsumer.poll(ISDSConsumer.java:54)
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175)
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

jaxws-rt-conflict

jludvice commented 8 years ago

related info

jludvice commented 8 years ago

Possible workaround - forcing matching versions in camel-isds,
or bump jaxws-rt version in java-isds (https://github.com/czgov/JAVA_ISDS/).

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-core</artifactId>
        <version>2.2.11</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.2.11</version>
      </dependency>
      <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.2.11</version>
      </dependency>
      <dependency>
        <groupId>com.sun.xml.ws</groupId>
        <artifactId>jaxws-rt</artifactId>
        <version>2.2.10</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
jludvice commented 8 years ago

Jaxws-rt 2.1.4 is pretty old version

com.sun.xml.ws  jaxws-rt    2.1.4   04-Oct-2008 pom  jar  sources.jar  
jludvice commented 8 years ago

Resolved in upstream project java-isds (https://github.com/czgov/JAVA_ISDS/issues/2). Closing issue.