Fisheye fails to start - Error reading application

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the atlassian-fisheye-<YYYY>-<MM>-<DD>.log:

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:

</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:

</ipPattern><ipPattern>215.55.55.101</ipPattern></trustedApplication><trustedApplication><name>

 

Furthermore, given:

 

<x><y>aaa</y></x>

 

This is permitted:

<x>
  <y>aaa</y>
</x>

 

This is not permitted:

<x>
  <y>aaa
  </y>
</x>
Last modified on Jul 31, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.