Fisheye upgrade (Error parsing config.xml) error
Asked by Jenin Mohan:

Hi All,

I am trying to upgrade fisheye from 2.9.1 to 3.5.4, I did all the config changes and copied the config.xml file from old fisheye to new one, changing the DB parameters accordingly (created seperate db for new fisheye instance). I am now getting below error in logs while trying to start new fisheye instance:

2014-11-17 06:14:03,396 INFO - loading config from file: /app/share/fisheye/fecru-3.5.4-home/config.xml  
2014-11-17 06:14:03,776 ERROR - Errors parsing /app/share/fisheye/fecru-3.5.4-home/config.xml:  
2014-11-17 06:14:03,777 ERROR - at line 226: Element 'config@<http://www.cenqua.com/fisheye/config-1>' with element-only content type cannot have text content.  
2014-11-17 06:14:03,778 ERROR - Problem with config file: Error parsing config file (see logs): /app/share/fisheye/fecru-3.5.4-home/config.xml  
com.cenqua.fisheye.config.ConfigException: Error parsing config file (see logs): /app/share/fisheye/fecru-3.5.4-home/config.xml  
at com.cenqua.fisheye.config.RootConfig.load(RootConfig.java:166)  
at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:112)  
at com.cenqua.fisheye.ctl.Run.main(Run.java:56)  
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)

Could you please assist me with this?

Thanks and Regards,

Jenin


Answers:
author: Jenin Mohan
body: This issue is resolved now. There is a difference in the database parameters in fisheye 2.9.1 and 3.5.4. I retained the fisheye 3.5.4 db parameters format and manually copied the configuration from fisheye 2.9.1 to 3.5.4 into config.xml file. That resolved the issue for me.

Thanks all!

Regards,

Jenin Mohan


author: gustavo_refosco
body: Hi Jenin,

Can you please take a look at <https://confluence.atlassian.com/display/FISHKB/FishEye+fails+to+start+up+with+parsing+error+in+config.xml> and check if its resolution is helpful? The error message present in this document is similar to yours.

In case it doesn't help, please also give a try validating your XML as insructed at <https://confluence.atlassian.com/pages/viewpage.action?pageId=633439765>. Check for any misspelling you could have inserted in case you changed the config.xml manually.

Regards,

Gustavo Refosco

comments: author: Jenin Mohan
body: Hi Gustavo,I have validated my xml and it does not found any errors in it. Further, the error on the above link is a bit different.Any suggestion?Regards,Jenin Mohan


author: lpater
body: Hi Jenin,

the error seems to be caused by your \<config\> element in the config.xml having text content, where it's only expected to contain other elements.

Something like this would trigger the error:

```
&lt;config version="1.0" control-bind="127.0.0.1:6061"&gt;NO-TEXT-EXPECTED-HERE    &lt;web-server&gt;...&lt;/config&gt;
```


Tags: fisheye-crucible-administration