Fisheye fails to start - Error reading application
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 atlassian-fisheye-<YYYY>-<MM>-<DD>.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2014-03-17 15:48:46,531 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(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.Error: Error reading application
jira:10131018
from configuration
at com.atlassian.fisheye.trustedapplications.DefaultFisheyeTrustedApplicationsManager.getTrustedApplicationsMap(DefaultFisheyeTrustedApplicationsManager.java:101)
at com.atlassian.fisheye.trustedapplications.DefaultFisheyeTrustedApplicationsManager.getTrustedApplications(DefaultFisheyeTrustedApplicationsManager.java:83)
at com.cenqua.fisheye.ctl.Run.printSystemInfo(Run.java:638)
at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:288)
at com.cenqua.fisheye.ctl.Run.main(Run.java:81)
... 6 more
Caused by: com.atlassian.security.auth.trustedapps.IPAddressFormatException: "215.55.55.101 " does not represent a valid IP address.
at com.atlassian.security.auth.trustedapps.AtlassianIPMatcher.parsePatternString(AtlassianIPMatcher.java:58)
at com.atlassian.security.auth.trustedapps.RequestConditions$RulesBuilder.addIPPattern(RequestConditions.java:45)
at com.atlassian.fisheye.trustedapplications.DefaultFisheyeTrustedApplicationsManager.createTrustedApplication(DefaultFisheyeTrustedApplicationsManager.java:111)
at com.atlassian.fisheye.trustedapplications.DefaultFisheyeTrustedApplicationsManager.getTrustedApplicationsMap(DefaultFisheyeTrustedApplicationsManager.java:96)
... 10 more
Cause
The XML format of the $FISHEYE_INST/config.xml
is corrupt. In the example above, the IP address contained an extra whitespace character:
1
</ipPattern><ipPattern>215.55.55.101 </ipPattern></trustedApplication><trustedApplication><name>
Resolution
Ensure no whitespace has been introduced within the values of XML elements. Remove the space and save the file:
1
</ipPattern><ipPattern>215.55.55.101</ipPattern></trustedApplication><trustedApplication><name>
Furthermore, given:
1
<x><y>aaa</y></x>
This is permitted:
1
2
3
<x>
<y>aaa</y>
</x>
This is not permitted:
1
2
3
4
<x>
<y>aaa
</y>
</x>
Was this helpful?