java.net.ConnectException: Connection refused

Atlassian JIRA | Igor Galić | 8 years ago
  1. 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.net.ConnectException: Connection refused
  2. 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.net.ConnectException: Connection refused
  3. 0

    Not able to deploy a site

    Google Groups | 8 years ago | ATG-Kid
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connection Refused while setting up the C.A

    Google Groups | 8 years ago | Kathiravan M
    java.net.ConnectException: Connection refused
  6. 0

    Exception while deploying a site in BCC

    Google Groups | 8 years ago | ATG-Kid
    java.net.ConnectException: Connection refused

  1. michallos 1 times, last 6 days ago
  2. treefolk 2 times, last 2 days ago
  3. linxiaolong 18 times, last 4 weeks ago
  4. Kialandei 1 times, last 1 month ago
  5. DoktorDoener666 41 times, last 3 weeks ago
24 more registered users
65 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.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    6. java.net.Socket.connect(Socket.java:520)
    7. java.net.Socket.connect(Socket.java:470)
    8. java.net.Socket.<init>(Socket.java:367)
    9. java.net.Socket.<init>(Socket.java:209)
    9 frames
  3. com.cenqua.fisheye
    Stop.main
    1. com.cenqua.fisheye.ctl.BaseRemoteCommand.sendCommand(BaseRemoteCommand.java:89)
    2. com.cenqua.fisheye.ctl.BaseRemoteCommand.mainImpl(BaseRemoteCommand.java:62)
    3. com.cenqua.fisheye.ctl.Stop.main(Stop.java:11)
    3 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:585)
    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