java.lang.reflect.InvocationTargetException

Atlassian JIRA | Andy Brook (Javahollic Software) | 8 years ago
  1. 0

    This scenario came up after I rsynced a remote folder, but I forgot a trailing / and got another folder. fixing this minor problem I went on to other things, not checking. After the rysnc took, the updated root directory perms were rwxrwx--- for which the FE process user could not access at all. I thought this was initially related a repository scan problem but no, I restarted FE with different memory paramters, with/without the troublesome repo entry and the result was the same. EOM: {noformat} ERROR: problem running command 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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572) at java.lang.StringBuilder.append(StringBuilder.java:203) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93) at java.io.File.<init>(File.java:207) at java.io.File.listFiles(File.java:1056) at com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:158) at com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:143) at com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:51) at com.cenqua.fisheye.rep.RepositoryScanner.<init>(RepositoryScanner.java:66) at com.cenqua.fisheye.perforce.P4Scanner.<init>(P4Scanner.java:48) at com.cenqua.fisheye.perforce.P4RepositoryEngine.<init>(P4RepositoryEngine.java:36) at com.cenqua.fisheye.perforce.P4RepositoryConfig.createRepositoryEngine(P4RepositoryConfig.java:140) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:265) at com.cenqua.fisheye.config.RepositoryManager.runRepository(RepositoryManager.java:222) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:349) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:261) at com.cenqua.fisheye.ctl.Run.main(Run.java:44) ... 6 more {noformat} I'm guessing that there is something not quite kosher in the exception handling for native command execution/cleanup....

    Atlassian JIRA | 8 years ago | Andy Brook (Javahollic Software)
    java.lang.reflect.InvocationTargetException
  2. 0

    This scenario came up after I rsynced a remote folder, but I forgot a trailing / and got another folder. fixing this minor problem I went on to other things, not checking. After the rysnc took, the updated root directory perms were rwxrwx--- for which the FE process user could not access at all. I thought this was initially related a repository scan problem but no, I restarted FE with different memory paramters, with/without the troublesome repo entry and the result was the same. EOM: {noformat} ERROR: problem running command 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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572) at java.lang.StringBuilder.append(StringBuilder.java:203) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93) at java.io.File.<init>(File.java:207) at java.io.File.listFiles(File.java:1056) at com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:158) at com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:143) at com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:51) at com.cenqua.fisheye.rep.RepositoryScanner.<init>(RepositoryScanner.java:66) at com.cenqua.fisheye.perforce.P4Scanner.<init>(P4Scanner.java:48) at com.cenqua.fisheye.perforce.P4RepositoryEngine.<init>(P4RepositoryEngine.java:36) at com.cenqua.fisheye.perforce.P4RepositoryConfig.createRepositoryEngine(P4RepositoryConfig.java:140) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:265) at com.cenqua.fisheye.config.RepositoryManager.runRepository(RepositoryManager.java:222) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:349) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:261) at com.cenqua.fisheye.ctl.Run.main(Run.java:44) ... 6 more {noformat} I'm guessing that there is something not quite kosher in the exception handling for native command execution/cleanup....

    Atlassian JIRA | 8 years ago | Andy Brook (Javahollic Software)
    java.lang.reflect.InvocationTargetException
  3. 0

    After a relatively short runtime, Fisheye crashes with. I'm starting it from SMF, and this is what it looks like in ps: {noformat} root@asp1inbld001 ~ # /usr/ucb/ps awwux|grep -v grep |grep fisheye fisheye 7708 0.7 0.444207261968 ? O 14:50:42 0:05 /opt/appsrv/java/bin/java -Dfisheye.library.path= -Dfisheye.inst=/var/bldserv/fisheye -Djava.awt.headless=true -Djava.endorsed.dirs=/opt/bldserv/fisheye-1.6.6/lib/endorsed -jar /opt/bldserv/fisheye-1.6.6/fisheyeboot.jar stop --config /opt/bldserv/conf/fisheye.xml {noformat} Here's the snip from SMF's log: {noformat} [ Feb 11 14:16:25 Executing start method ("/opt/bw/svc/method/svc-fisheye start") ] [ Feb 11 14:16:25 Method "start" exited with status 0 ] INFO - FishEye 1.6.6 (build-373), Built on 2009-02-10 INFO - FishEye: Commercial License registered to omfzd.com. () INFO - Periodic polling for software updates is disabled. INFO - Server started on 127.0.0.1:28060 (ajp13) (control port on 127.0.0.1:28059) INFO - starting initial scan of repository architecture INFO - upgrading quicksearch data of repository artefacts INFO - starting initial scan of repository artefacts INFO - finished initial scan of repository architecture in 1s INFO - starting initial scan of repository omfzd ERROR: problem running command 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:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) Caused by: java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:575) at java.lang.StringBuilder.append(StringBuilder.java:204) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93) at java.io.File.<init>(File.java:179) at java.io.File.listFiles(File.java:1020) at com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:158) at com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:143) at com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:51) at com.cenqua.fisheye.rep.RepositoryScanner.<init>(RepositoryScanner.java:66) at com.cenqua.fisheye.svn.SvnRepositoryScanner.<init>(SvnRepositoryScanner.java:56) at com.cenqua.fisheye.svn.SvnRepositoryEngine.<init>(SvnRepositoryEngine.java:55) at com.cenqua.fisheye.svn.SvnRepositoryConfig.createRepositoryEngine(SvnRepositoryConfig.java:145) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:265) at com.cenqua.fisheye.config.RepositoryManager.runRepository(RepositoryManager.java:222) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:349) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:260) at com.cenqua.fisheye.ctl.Run.main(Run.java:44) ... 6 more [ Feb 11 14:33:34 Stopping because all processes in service exited. ] [ Feb 11 14:33:34 Executing stop method ("/opt/bw/svc/method/svc-fisheye stop") ] FishEye not running? Problem connecting to 127.0.0.1:28059 : Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:209) at com.cenqua.fisheye.ctl.BaseRemoteCommand.sendCommand(BaseRemoteCommand.java:89) at com.cenqua.fisheye.ctl.BaseRemoteCommand.mainImpl(BaseRemoteCommand.java:62) at com.cenqua.fisheye.ctl.Stop.main(Stop.java:11) 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:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) [ Feb 11 14:33:44 Method "stop" exited with status 0 ] [ Feb 11 14:33:45 Executing start method ("/opt/bw/svc/method/svc-fisheye start") ] [ Feb 11 14:33:45 Method "start" exited with status 0 ] INFO - FishEye 1.6.6 (build-373), Built on 2009-02-10 {noformat} The error and debug log are suspiciously silent. It also apears as though fisheye is eating up pretty much all of the CPU: {noformat} PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 11288 fisheye 1488M 1233M cpu4 51 0 0:15:28 16% java/71 24784 2000 7652M 3369M cpu12 11 0 6662:35:5 5.6% mysqld/35 28003 root 4248K 1296K cpu16 0 0 4584:06:3 3.0% bash/1 9754 zabbix 9616K 1424K cpu24 0 5 572:31:02 3.0% zabbix_server/1 11698 igalic 4040K 3936K cpu23 59 0 0:01:01 1.1% prstat/1 28767 root 784M 244M sleep 0 0 198:48:38 1.0% ns-slapd/42 18675 webservd 322M 120M sleep 59 0 2:12:20 0.4% httpd/28 23241 webservd 271M 96M sleep 59 0 2:00:39 0.4% httpd/28 20869 webservd 285M 108M sleep 59 0 1:51:42 0.4% httpd/28 12761 webservd 328M 158M sleep 59 0 1:18:31 0.3% httpd/28 9251 webservd 36M 22M sleep 59 0 0:11:53 0.2% httpd/1 24307 webservd 33M 19M sleep 59 0 0:01:21 0.2% httpd/1 11251 webservd 30M 15M sleep 59 0 0:00:03 0.1% httpd/1 9755 zabbix 9616K 2168K sleep 39 5 96:28:47 0.1% zabbix_server/1 9753 zabbix 9616K 2064K sleep 39 5 96:45:28 0.1% zabbix_server/1 9756 zabbix 9616K 2208K sleep 39 5 95:39:57 0.1% zabbix_server/1 9757 zabbix 9616K 2064K sleep 29 5 98:29:09 0.1% zabbix_server/1 11248 webservd 30M 14M sleep 59 0 0:00:07 0.1% httpd/1 8010 webservd 31M 14M sleep 49 0 0:00:28 0.1% httpd/1 11763 webservd 27M 12M sleep 49 0 0:00:02 0.1% httpd/1 10594 webservd 27M 11M sleep 59 0 0:00:05 0.1% httpd/1 16962 zabbix 5592K 2000K sleep 24 5 58:27:23 0.1% zabbix_agentd/1 23142 webservd 33M 19M sleep 59 0 0:01:07 0.1% httpd/1 10188 webservd 30M 14M sleep 59 0 0:00:12 0.1% httpd/1 10592 webservd 31M 14M sleep 54 0 0:00:14 0.1% httpd/1 29133 root 169M 43M sleep 59 0 4:55:04 0.1% java/56 27917 root 7944K 1688K sleep 49 0 2:08:52 0.1% rotatelogs/1 23818 webservd 33M 19M sleep 59 0 0:01:39 0.0% httpd/1 24059 webservd 33M 19M sleep 59 0 0:00:59 0.0% httpd/1 1315 root 254M 49M sleep 59 0 83:56:50 0.0% java/58 ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE 12 54 2627M 2406M 15% 10:28:28 18% asp1inbld001_zone 2 68 8269M 6573M 40% 7701:59:5 9.5% asp1inmon001_zone 0 103 677M 318M 2.0% 4913:42:5 4.4% global 11 43 1204M 1000M 6.1% 214:31:39 1.1% asp1inmgt001_zone 14 81 1326M 523M 3.2% 2:50:51 0.7% asp1inhst001_zone 13 51 1490M 551M 3.4% 3:37:03 0.3% asp1indpl001_zone 7 39 1277M 637M 3.9% 41:34:02 0.0% asp5inbkp001_zone {noformat}

    Atlassian JIRA | 8 years ago | Igor Galić
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After a relatively short runtime, Fisheye crashes with. I'm starting it from SMF, and this is what it looks like in ps: {noformat} root@asp1inbld001 ~ # /usr/ucb/ps awwux|grep -v grep |grep fisheye fisheye 7708 0.7 0.444207261968 ? O 14:50:42 0:05 /opt/appsrv/java/bin/java -Dfisheye.library.path= -Dfisheye.inst=/var/bldserv/fisheye -Djava.awt.headless=true -Djava.endorsed.dirs=/opt/bldserv/fisheye-1.6.6/lib/endorsed -jar /opt/bldserv/fisheye-1.6.6/fisheyeboot.jar stop --config /opt/bldserv/conf/fisheye.xml {noformat} Here's the snip from SMF's log: {noformat} [ Feb 11 14:16:25 Executing start method ("/opt/bw/svc/method/svc-fisheye start") ] [ Feb 11 14:16:25 Method "start" exited with status 0 ] INFO - FishEye 1.6.6 (build-373), Built on 2009-02-10 INFO - FishEye: Commercial License registered to omfzd.com. () INFO - Periodic polling for software updates is disabled. INFO - Server started on 127.0.0.1:28060 (ajp13) (control port on 127.0.0.1:28059) INFO - starting initial scan of repository architecture INFO - upgrading quicksearch data of repository artefacts INFO - starting initial scan of repository artefacts INFO - finished initial scan of repository architecture in 1s INFO - starting initial scan of repository omfzd ERROR: problem running command 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:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) Caused by: java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:575) at java.lang.StringBuilder.append(StringBuilder.java:204) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93) at java.io.File.<init>(File.java:179) at java.io.File.listFiles(File.java:1020) at com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:158) at com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:143) at com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:51) at com.cenqua.fisheye.rep.RepositoryScanner.<init>(RepositoryScanner.java:66) at com.cenqua.fisheye.svn.SvnRepositoryScanner.<init>(SvnRepositoryScanner.java:56) at com.cenqua.fisheye.svn.SvnRepositoryEngine.<init>(SvnRepositoryEngine.java:55) at com.cenqua.fisheye.svn.SvnRepositoryConfig.createRepositoryEngine(SvnRepositoryConfig.java:145) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:265) at com.cenqua.fisheye.config.RepositoryManager.runRepository(RepositoryManager.java:222) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:349) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:260) at com.cenqua.fisheye.ctl.Run.main(Run.java:44) ... 6 more [ Feb 11 14:33:34 Stopping because all processes in service exited. ] [ Feb 11 14:33:34 Executing stop method ("/opt/bw/svc/method/svc-fisheye stop") ] FishEye not running? Problem connecting to 127.0.0.1:28059 : Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:209) at com.cenqua.fisheye.ctl.BaseRemoteCommand.sendCommand(BaseRemoteCommand.java:89) at com.cenqua.fisheye.ctl.BaseRemoteCommand.mainImpl(BaseRemoteCommand.java:62) at com.cenqua.fisheye.ctl.Stop.main(Stop.java:11) 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:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) [ Feb 11 14:33:44 Method "stop" exited with status 0 ] [ Feb 11 14:33:45 Executing start method ("/opt/bw/svc/method/svc-fisheye start") ] [ Feb 11 14:33:45 Method "start" exited with status 0 ] INFO - FishEye 1.6.6 (build-373), Built on 2009-02-10 {noformat} The error and debug log are suspiciously silent. It also apears as though fisheye is eating up pretty much all of the CPU: {noformat} PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 11288 fisheye 1488M 1233M cpu4 51 0 0:15:28 16% java/71 24784 2000 7652M 3369M cpu12 11 0 6662:35:5 5.6% mysqld/35 28003 root 4248K 1296K cpu16 0 0 4584:06:3 3.0% bash/1 9754 zabbix 9616K 1424K cpu24 0 5 572:31:02 3.0% zabbix_server/1 11698 igalic 4040K 3936K cpu23 59 0 0:01:01 1.1% prstat/1 28767 root 784M 244M sleep 0 0 198:48:38 1.0% ns-slapd/42 18675 webservd 322M 120M sleep 59 0 2:12:20 0.4% httpd/28 23241 webservd 271M 96M sleep 59 0 2:00:39 0.4% httpd/28 20869 webservd 285M 108M sleep 59 0 1:51:42 0.4% httpd/28 12761 webservd 328M 158M sleep 59 0 1:18:31 0.3% httpd/28 9251 webservd 36M 22M sleep 59 0 0:11:53 0.2% httpd/1 24307 webservd 33M 19M sleep 59 0 0:01:21 0.2% httpd/1 11251 webservd 30M 15M sleep 59 0 0:00:03 0.1% httpd/1 9755 zabbix 9616K 2168K sleep 39 5 96:28:47 0.1% zabbix_server/1 9753 zabbix 9616K 2064K sleep 39 5 96:45:28 0.1% zabbix_server/1 9756 zabbix 9616K 2208K sleep 39 5 95:39:57 0.1% zabbix_server/1 9757 zabbix 9616K 2064K sleep 29 5 98:29:09 0.1% zabbix_server/1 11248 webservd 30M 14M sleep 59 0 0:00:07 0.1% httpd/1 8010 webservd 31M 14M sleep 49 0 0:00:28 0.1% httpd/1 11763 webservd 27M 12M sleep 49 0 0:00:02 0.1% httpd/1 10594 webservd 27M 11M sleep 59 0 0:00:05 0.1% httpd/1 16962 zabbix 5592K 2000K sleep 24 5 58:27:23 0.1% zabbix_agentd/1 23142 webservd 33M 19M sleep 59 0 0:01:07 0.1% httpd/1 10188 webservd 30M 14M sleep 59 0 0:00:12 0.1% httpd/1 10592 webservd 31M 14M sleep 54 0 0:00:14 0.1% httpd/1 29133 root 169M 43M sleep 59 0 4:55:04 0.1% java/56 27917 root 7944K 1688K sleep 49 0 2:08:52 0.1% rotatelogs/1 23818 webservd 33M 19M sleep 59 0 0:01:39 0.0% httpd/1 24059 webservd 33M 19M sleep 59 0 0:00:59 0.0% httpd/1 1315 root 254M 49M sleep 59 0 83:56:50 0.0% java/58 ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE 12 54 2627M 2406M 15% 10:28:28 18% asp1inbld001_zone 2 68 8269M 6573M 40% 7701:59:5 9.5% asp1inmon001_zone 0 103 677M 318M 2.0% 4913:42:5 4.4% global 11 43 1204M 1000M 6.1% 214:31:39 1.1% asp1inmgt001_zone 14 81 1326M 523M 3.2% 2:50:51 0.7% asp1inhst001_zone 13 51 1490M 551M 3.4% 3:37:03 0.3% asp1indpl001_zone 7 39 1277M 637M 3.9% 41:34:02 0.0% asp5inbkp001_zone {noformat}

    Atlassian JIRA | 8 years ago | Igor Galić
    java.lang.reflect.InvocationTargetException
  6. 0

    Currently, if the deletion/creation fails (ie. trying to delete/create /tmp/DiffTextCache) two behaviors are observed: *1. FeCru can't restart and the following is logged:* {code} 2012-09-21 00:17:54,280 INFO - Server started on :8060 (http) (control port on 127.0.0.1:8059) ERROR: problem running command java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:98) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:41) Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOf(Unknown Source) at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source) at java.lang.AbstractStringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at java.io.UnixFileSystem.resolve(Unknown Source) at java.io.File.<init>(Unknown Source) at java.io.File.listFiles(Unknown Source) at com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:172) at com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:157) at com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:71) at com.cenqua.fisheye.rep.BaseRepositoryScanner.start(BaseRepositoryScanner.java:499) at com.cenqua.fisheye.svn.SvnRepositoryScanner.start(SvnRepositoryScanner.java:93) at com.cenqua.fisheye.svn.SvnRepositoryScanner.start(SvnRepositoryScanner.java:61) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doStart(BaseRepositoryEngine.java:70) at com.cenqua.fisheye.rep.RepositoryEngine.start(RepositoryEngine.java:198) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:318) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepository(DefaultRepositoryManager.java:299) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepositories(DefaultRepositoryManager.java:330) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:454) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:251) at com.cenqua.fisheye.ctl.Run.main(Run.java:76) ... 6 more {code} *2. FeCru become unresponsive during usage:* Thread dump: {code} [17] WrapperStartStopAppMain: RUNNABLE java.io.WinNTFileSystem.list(Native Method) java.io.File.list(Unknown Source) java.io.File.listFiles(Unknown Source) com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:172) com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:157) com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:66) com.cenqua.fisheye.rep.BaseRepositoryScanner.start(BaseRepositoryScanner.java:537) com.cenqua.fisheye.svn.SvnRepositoryScanner.start(SvnRepositoryScanner.java:94) com.cenqua.fisheye.svn.SvnRepositoryScanner.start(SvnRepositoryScanner.java:61) com.cenqua.fisheye.rep.BaseRepositoryEngine.doStart(BaseRepositoryEngine.java:66) com.cenqua.fisheye.rep.RepositoryEngine.start(RepositoryEngine.java:203) com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:311) com.cenqua.fisheye.config.DefaultRepositoryManager.runRepository(DefaultRepositoryManager.java:259) com.cenqua.fisheye.config.DefaultRepositoryManager.runRepositories(DefaultRepositoryManager.java:287) com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:497) com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:250) com.cenqua.fisheye.ctl.Run.main(Run.java:71) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:159) java.lang.Thread.run(Unknown Source) {code} In both cases, the size of /tmp/DiffTextCache was *very* big, making us think that at some point FeCru failed to remove/re-new its content and it started accumulating old files.

    Atlassian JIRA | 4 years ago | Renan Battaglin
    java.lang.reflect.InvocationTargetException

    1 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.util.Arrays.copyOf()
    2. Java RT
      File.listFiles
      1. java.util.Arrays.copyOf(Arrays.java:2882)
      2. java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
      3. java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
      4. java.lang.StringBuilder.append(StringBuilder.java:203)
      5. java.io.UnixFileSystem.resolve(UnixFileSystem.java:93)
      6. java.io.File.<init>(File.java:207)
      7. java.io.File.listFiles(File.java:1056)
      7 frames
    3. com.cenqua.fisheye
      Run.main
      1. com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:158)
      2. com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:143)
      3. com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:51)
      4. com.cenqua.fisheye.rep.RepositoryScanner.<init>(RepositoryScanner.java:66)
      5. com.cenqua.fisheye.perforce.P4Scanner.<init>(P4Scanner.java:48)
      6. com.cenqua.fisheye.perforce.P4RepositoryEngine.<init>(P4RepositoryEngine.java:36)
      7. com.cenqua.fisheye.perforce.P4RepositoryConfig.createRepositoryEngine(P4RepositoryConfig.java:140)
      8. com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:265)
      9. com.cenqua.fisheye.config.RepositoryManager.runRepository(RepositoryManager.java:222)
      10. com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:349)
      11. com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:261)
      12. com.cenqua.fisheye.ctl.Run.main(Run.java:44)
      12 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. com.cenqua.fisheye
      FishEyeCtl.main
      1. com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:105)
      2. com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38)
      2 frames