java.lang.reflect.InvocationTargetException

Jenkins JIRA | cringe | 6 years ago
  1. 0

    I don't know why, but my Jenkins can not load the cobertura XML coverage reports which I create in multiple subdirectories of my build. I use Cobertura v1.1 and Jenkins v1.396. The error message about duplicate JARs don't help me, and I'm really lost now. BUILD SUCCESSFUL Total time: 9 minutes 6 seconds --------------------------------------- java.lang.reflect.InvocationTargetException 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 net.sourceforge.cobertura.util.FileLocker.lock(FileLocker.java:124) at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:234) at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31) at java.lang.Thread.run(Thread.java:619) Caused by: java.nio.channels.OverlappingFileLockException at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1176) at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1078) at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:834) at java.nio.channels.FileChannel.lock(FileChannel.java:860) ... 8 more --------------------------------------- Unable to get lock on C:\hudson\data\jobs\myHermes.co.uk. 1.6 Compile\workspace\hudson_myhermes\pn_development\projects\C2C_PortletIntegration\cobertura.ser.lock: null This is known to happen on Linux kernel 2.6.20. Make sure cobertura.jar is in the root classpath of the jvm process running the instrumented code. If the instrumented code is running in a web server, this means cobertura.jar should be in the web server's lib directory. Don't put multiple copies of cobertura.jar in different WEB-INF/lib directories. Only one classloader should load cobertura. It should be the root classloader.

    Jenkins JIRA | 6 years ago | cringe
    java.lang.reflect.InvocationTargetException
  2. 0

    I don't know why, but my Jenkins can not load the cobertura XML coverage reports which I create in multiple subdirectories of my build. I use Cobertura v1.1 and Jenkins v1.396. The error message about duplicate JARs don't help me, and I'm really lost now. BUILD SUCCESSFUL Total time: 9 minutes 6 seconds --------------------------------------- java.lang.reflect.InvocationTargetException 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 net.sourceforge.cobertura.util.FileLocker.lock(FileLocker.java:124) at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:234) at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31) at java.lang.Thread.run(Thread.java:619) Caused by: java.nio.channels.OverlappingFileLockException at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1176) at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1078) at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:834) at java.nio.channels.FileChannel.lock(FileChannel.java:860) ... 8 more --------------------------------------- Unable to get lock on C:\hudson\data\jobs\myHermes.co.uk. 1.6 Compile\workspace\hudson_myhermes\pn_development\projects\C2C_PortletIntegration\cobertura.ser.lock: null This is known to happen on Linux kernel 2.6.20. Make sure cobertura.jar is in the root classpath of the jvm process running the instrumented code. If the instrumented code is running in a web server, this means cobertura.jar should be in the web server's lib directory. Don't put multiple copies of cobertura.jar in different WEB-INF/lib directories. Only one classloader should load cobertura. It should be the root classloader.

    Jenkins JIRA | 6 years ago | cringe
    java.lang.reflect.InvocationTargetException
  3. 0

    Cobertura / Mailing Lists

    sourceforge.net | 1 year ago
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Zero code coverage with cobertura 1.9.2 but tests are working

    Stack Overflow | 7 years ago | user256698
    java.lang.reflect.InvocationTargetException
  6. 0

    ProcessAccessException occurred inside Setter with Hibernate Search

    Stack Overflow | 3 years ago | Wasif Kirmani
    org.hibernate.PropertyAccessException: Exception occurred inside setter of com.bo.Sample.logEvents

  1. r1chjames 1 times, last 3 days ago
  2. bmacedo 8 times, last 3 weeks ago
  3. aldrinleal 1 times, last 1 month ago
  4. ajinkya_w 96 times, last 2 months ago
  5. davidvanlaatum 4 times, last 2 months ago
18 more registered users
77 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.nio.channels.OverlappingFileLockException

    No message provided

    at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList()
  2. Java RT
    Method.invoke
    1. sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1176)
    2. sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1078)
    3. sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:834)
    4. java.nio.channels.FileChannel.lock(FileChannel.java:860)
    5. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    6. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    7. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    8. java.lang.reflect.Method.invoke(Method.java:597)
    8 frames
  3. Cobertura code coverage
    SaveTimer.run
    1. net.sourceforge.cobertura.util.FileLocker.lock(FileLocker.java:124)
    2. net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:234)
    3. net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)
    3 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame