Fisheye fails to start with InvocationTargetException caused by ArrayIndexOutOfBoundsException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The following appears in the console while starting Fisheye:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2014-07-04 20:14:12,660 INFO - UpgradeManager started. 2014-07-04 20:14:12,942 INFO - loading config from file: /Users/grefosco/Documents/Atlassian/FishEye/fecru-3.4.4/config.xml 2014-07-04 20:14:13,810 INFO - FishEye: Evaluation License registered to Atlassian. 2014-07-04 20:14:13,867 INFO - Your license expires in 9 years and 4 months ERROR: problem running command java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:99) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.atlassian.applinks.host.util.InstanceNameGenerator.generateInstanceName(InstanceNameGenerator.java:38) at com.cenqua.fisheye.config.RootConfig.start(RootConfig.java:347) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:159) at com.cenqua.fisheye.ctl.Run.main(Run.java:56) ... 6 more

Cause

  • The Site URL was changed, taking effect after Fisheye is restarted, but Fisheye fails to start due to a typo in the URL (e.g. http:/localhost:8060, in which there is a / missing).

  • Also verify for other settings that goes into the config.xml.

Resolution

  • Edit the Site URL directly in your <FishEye data directory>/config.xml adjusting it as follows:

1 2 3 <web-server site-url="http://localhost:8060"> <http bind=":8060"/> </web-server>
  • Start Fisheye.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.