java.lang.reflect.InvocationTargetException

Atlassian JIRA | Andrew Myers [Atlassian] | 7 years ago
  1. 0

    When trying to startup fisheye 2.1 it crashes with an out of memory error unless you adjust the max heap size in FISHEYE_OPTS: {noformat}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:585) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39) Caused by: java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at com.atlassian.modzdetector.IOUtils.copyLarge(IOUtils.java:53) at com.atlassian.modzdetector.IOUtils.copy(IOUtils.java:37) at com.atlassian.modzdetector.IOUtils.toByteArray(IOUtils.java:31) at com.atlassian.modzdetector.MD5HashAlgorithm.getHash(MD5HashAlgorithm.java:17) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:153) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:201) at com.atlassian.modzdetector.ModzDetector.checkRegistry(ModzDetector.java:77) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:53) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:36) at com.cenqua.fisheye.support.ModzDetectorCache.getModifications(ModzDetectorCache.java:49) at com.cenqua.fisheye.ctl.Run.printSystemInfo(Run.java:421) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:285) at com.cenqua.fisheye.ctl.Run.main(Run.java:71){noformat} Related issue is [MODZ-2|https://studio.atlassian.com/browse/MODZ-2] which was fixed in Modz Detector 0.8 so we should upgrade from 0.6.

    Atlassian JIRA | 7 years ago | Andrew Myers [Atlassian]
    java.lang.reflect.InvocationTargetException
  2. 0

    When trying to startup fisheye 2.1 it crashes with an out of memory error unless you adjust the max heap size in FISHEYE_OPTS: {noformat}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:585) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39) Caused by: java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at com.atlassian.modzdetector.IOUtils.copyLarge(IOUtils.java:53) at com.atlassian.modzdetector.IOUtils.copy(IOUtils.java:37) at com.atlassian.modzdetector.IOUtils.toByteArray(IOUtils.java:31) at com.atlassian.modzdetector.MD5HashAlgorithm.getHash(MD5HashAlgorithm.java:17) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:153) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:201) at com.atlassian.modzdetector.ModzDetector.checkRegistry(ModzDetector.java:77) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:53) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:36) at com.cenqua.fisheye.support.ModzDetectorCache.getModifications(ModzDetectorCache.java:49) at com.cenqua.fisheye.ctl.Run.printSystemInfo(Run.java:421) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:285) at com.cenqua.fisheye.ctl.Run.main(Run.java:71){noformat} Related issue is [MODZ-2|https://studio.atlassian.com/browse/MODZ-2] which was fixed in Modz Detector 0.8 so we should upgrade from 0.6.

    Atlassian JIRA | 7 years ago | Andrew Myers [Atlassian]
    java.lang.reflect.InvocationTargetException
  3. 0

    Re: Japanese PDF rendering

    forrest-user | 8 years ago | Heather Phipps
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If there is a large (e.g. 1GB) binary file in the Subversion repository and the 'raw' link is clicked to download it, FishEye may run out of heap space. In the browser, a 500 error is given with the following text: {panel} Additionally, an error occured trying to render this page. java.lang.IllegalStateException: Context not available, filter already exited {panel} In the logs: {panel}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid26274.hprof ... Heap dump file created [307441037 bytes in 2.875 secs] ERROR - Error for /source/browse/~raw,r=2375/PROJ/branches/dist/example_big_file.exe java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at org.tmatesoft.svn.core.internal.wc.SVNCancellableOutputStream.write(SVNCancellableOutputStream.java:44) at org.tmatesoft.svn.core.internal.io.fs.FSRepositoryUtil.copy(FSRepositoryUtil.java:111) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.getFile(FSRepository.java:222) at org.tmatesoft.svn.core.wc.SVNWCClient.doGetFileContents(SVNWCClient.java:443) at org.tmatesoft.svn.core.javahl.SVNClientImpl.fileContent(SVNClientImpl.java:1392) at org.tigris.subversion.javahl.SVNClient.fileContent(SVNClient.java:295) at com.cenqua.fisheye.svn.SvnThrottledClient.fileContent(SvnThrottledClient.java:208) at com.cenqua.fisheye.svn.SvnCache.getBinaryRevision(SvnCache.java:366) at com.cenqua.fisheye.web.ViewFileAction.doRawRequest(ViewFileAction.java:535) at com.cenqua.fisheye.web.ViewFileAction.handleRequest(ViewFileAction.java:104) at com.cenqua.fisheye.web.BaseAction.processRequest(BaseAction.java:149) at com.cenqua.fisheye.web.ActionDispatcherServlet.doIt(ActionDispatcherServlet.java:240) at com.cenqua.fisheye.web.ActionDispatcherServlet.doGet(ActionDispatcherServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1144) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:140) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:192) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.studio.fisheye.web.SeraphRememberMeFilter.doFilter(SeraphRememberMeFilter.java:99) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.ProductInfoFilter.doFilter(ProductInfoFilter.java:32) {panel}

    Atlassian JIRA | 7 years ago | Mike Knight
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    If there is a large (e.g. 1GB) binary file in the Subversion repository and the 'raw' link is clicked to download it, FishEye may run out of heap space. In the browser, a 500 error is given with the following text: {panel} Additionally, an error occured trying to render this page. java.lang.IllegalStateException: Context not available, filter already exited {panel} In the logs: {panel}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid26274.hprof ... Heap dump file created [307441037 bytes in 2.875 secs] ERROR - Error for /source/browse/~raw,r=2375/PROJ/branches/dist/example_big_file.exe java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at org.tmatesoft.svn.core.internal.wc.SVNCancellableOutputStream.write(SVNCancellableOutputStream.java:44) at org.tmatesoft.svn.core.internal.io.fs.FSRepositoryUtil.copy(FSRepositoryUtil.java:111) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.getFile(FSRepository.java:222) at org.tmatesoft.svn.core.wc.SVNWCClient.doGetFileContents(SVNWCClient.java:443) at org.tmatesoft.svn.core.javahl.SVNClientImpl.fileContent(SVNClientImpl.java:1392) at org.tigris.subversion.javahl.SVNClient.fileContent(SVNClient.java:295) at com.cenqua.fisheye.svn.SvnThrottledClient.fileContent(SvnThrottledClient.java:208) at com.cenqua.fisheye.svn.SvnCache.getBinaryRevision(SvnCache.java:366) at com.cenqua.fisheye.web.ViewFileAction.doRawRequest(ViewFileAction.java:535) at com.cenqua.fisheye.web.ViewFileAction.handleRequest(ViewFileAction.java:104) at com.cenqua.fisheye.web.BaseAction.processRequest(BaseAction.java:149) at com.cenqua.fisheye.web.ActionDispatcherServlet.doIt(ActionDispatcherServlet.java:240) at com.cenqua.fisheye.web.ActionDispatcherServlet.doGet(ActionDispatcherServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1144) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:140) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:192) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.studio.fisheye.web.SeraphRememberMeFilter.doFilter(SeraphRememberMeFilter.java:99) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.ProductInfoFilter.doFilter(ProductInfoFilter.java:32) {panel}

    Atlassian JIRA | 7 years ago | Mike Knight
    java.lang.OutOfMemoryError: Java heap space

    8 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.lang.OutOfMemoryError

      Java heap space

      at java.io.ByteArrayOutputStream.write()
    2. Java RT
      ByteArrayOutputStream.write
      1. java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
      1 frame
    3. com.atlassian.modzdetector
      ModzDetector.getModifiedFiles
      1. com.atlassian.modzdetector.IOUtils.copyLarge(IOUtils.java:53)
      2. com.atlassian.modzdetector.IOUtils.copy(IOUtils.java:37)
      3. com.atlassian.modzdetector.IOUtils.toByteArray(IOUtils.java:31)
      4. com.atlassian.modzdetector.MD5HashAlgorithm.getHash(MD5HashAlgorithm.java:17)
      5. com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:153)
      6. com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:201)
      7. com.atlassian.modzdetector.ModzDetector.checkRegistry(ModzDetector.java:77)
      8. com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:53)
      9. com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:36)
      9 frames
    4. com.cenqua.fisheye
      Run.mainImpl
      1. com.cenqua.fisheye.support.ModzDetectorCache.getModifications(ModzDetectorCache.java:49)
      2. com.cenqua.fisheye.ctl.Run.printSystemInfo(Run.java:421)
      3. com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:285)
      3 frames