title: Getting the error in Jenkins console java.lang.RuntimeException: java.io.IOException: invalid constant type: 15
body: <p><strong><em>Task I am doing</em></strong><br>
  I am trying to trigger Junit using gradle in Jenkins. I am using powerMock (1.4.12) + mockito (1.9.5) for mocking along with Junit4 (4.11) &amp; java8.   </p>
  
  <p><strong><em>The problem</em></strong><br>
  Getting the error in Jenkin console                        java.lang.RuntimeException: java.io.IOException: invalid constant type: 15</p>
  
  <p><strong><em>JUnit Report below stack trace</em></strong></p>
  
  <pre><code>java.lang.IllegalStateException: Failed to transform class with name amdocs.APILink.backend.services.arCrgAdjnRef00. Reason: null at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:266)
  at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:180)
  at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:68)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  </code></pre>