This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Error updating STS

Oct 16th, 2012, 11:57 AM

Hello,

I'm trying to install update to my STS 2.9.1.RELEASE and getting the error. The file STS downloads indeed is missing the closing tag.

Code:

Unable to read repository at file:/C:/springsource/sts-2.8.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache/compositeContent-87448873.xml
The element type "property" must be terminated by the matching end-tag "</property>".

Two things here: It looks like the cached p2 data got corrupted. The easiest way to solve this is to just delete the content of the p2/org.eclipse.equinox.p2.repository/cache directory. That should solve the problem you are mentioning.

The second thing is: you cannot update from 2.9.1.RELEASE to any of the latest 3.0.0 or 3.1.0 versions of STS via the update mechanism. This is disabled by default and doesn't work if you force it to update those pieces. In case you wanna update STS to 3.x, we recommend to start with a fresh install. Upgrading that will be possible again (so upgrading from 3.0.0 to 3.1.0 or beyond), but the switch to the 3.x versions require a fresh installation of STS. Don't know if you wanted to do that or not, but I thought I should mention that here, just in case... :-)

HTH,
Martin

Comment

Two things here: It looks like the cached p2 data got corrupted. The easiest way to solve this is to just delete the content of the p2/org.eclipse.equinox.p2.repository/cache directory. That should solve the problem you are mentioning.

The second thing is: you cannot update from 2.9.1.RELEASE to any of the latest 3.0.0 or 3.1.0 versions of STS via the update mechanism. This is disabled by default and doesn't work if you force it to update those pieces. In case you wanna update STS to 3.x, we recommend to start with a fresh install. Upgrading that will be possible again (so upgrading from 3.0.0 to 3.1.0 or beyond), but the switch to the 3.x versions require a fresh installation of STS. Don't know if you wanted to do that or not, but I thought I should mention that here, just in case... :-)

Comment

"The easiest way to solve this is to just delete the content of the p2/org.eclipse.equinox.p2.repository/cache directory. That should solve the problem you are mentioning."

I tried this, but the file is replaced by another one with the closing slash missing, even when read only is selected. I cannot see STS in installation details so I cannot see what version I have, uninstall it or deal with it in any other way. The error occurs every time I run update and seems to prevent it from completing.