Fisheye will not start with Unexpected end of file after null
Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.
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
Problem
The following error is seen on fisheye.out
after starting it:
2015-02-04 11:50:42,672 INFO - loading config from file: /opt/crucible/crucible_data/config.xml
2015-02-04 11:50:42,895 ERROR - Problem with config file: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
com.cenqua.fisheye.config.ConfigException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
at com.cenqua.fisheye.config.RootConfig.load(RootConfig.java:182)
at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:132)
at com.cenqua.fisheye.ctl.Run.main(Run.java:78)
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:616)
at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:99)
at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42)
Caused by: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at com.cenqua.fisheye.config1.ConfigDocument$Factory.parse(ConfigDocument.java:886)
at com.cenqua.fisheye.config.RootConfig.parseDocument(RootConfig.java:209)
at com.cenqua.fisheye.config.RootConfig.parseDocument(RootConfig.java:199)
at com.cenqua.fisheye.config.RootConfig.load(RootConfig.java:172)
... 8 more
Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 1; columnNumber: 1; Unexpected end of file after null
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
... 15 more
Cause
The file /opt/crucible/crucible_data/config.xml
being loaded by Fisheye as indicated on the logs is empty.
Resolution
In order to solve this, you need to restore a valid backup of your config.xml
and restart your Fisheye instance.