Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/validation/Validation
    primarykey
    data
    text
    <p>Using maven to add activemq, there is a problem about conflicting jar when I unit-test in IDE, the exception message is: </p> <pre><code>java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/validation/Validation </code></pre> <p>i have excluded the validation from javaee, as following:</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;javax&lt;/groupId&gt; &lt;artifactId&gt;javaee-api&lt;/artifactId&gt; &lt;version&gt;6.0&lt;/version&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;groupId&gt;javax.validation&lt;/groupId&gt; &lt;artifactId&gt;validation-api&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;groupId&gt;org.apache.geronimo.specs&lt;/groupId&gt; &lt;artifactId&gt;geronimo-jms_1.1_spec&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; </code></pre> <p>and dependency for activemq is </p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt; &lt;artifactId&gt;activemq-all&lt;/artifactId&gt; &lt;version&gt;${activemq_version}&lt;/version&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-context&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;groupId&gt;org.fusesource.fuse-extra&lt;/groupId&gt; &lt;artifactId&gt;fusemq-leveldb&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; </code></pre> <p>this is an annoying problem. </p> <p>anyone would like to give some point? Help much appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload