Announcement Announcement Module
No announcement yet.
[STS 2.8.0.RELEASE] Error occured processing XML 'null'. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • [STS 2.8.0.RELEASE] Error occured processing XML 'null'.


    We have a project that has always worked under STS 2.7.x. However, today Eclipse prompted me to update my STS. I agreed. And now I'm FULL of problems. All of my Maven projects complain of things like:

    Plugin execution not covered by lifecycle configuration: com.springsource.bundlor:com.springsource.bundlor.maven:1.0.0.RELEASE:bundlor (execution: bundlor, phase: compile)
    I have to manually modify ALL POMs to add stuff as described here:

    My bigger problem, however, is that one project reports the following error:

    Error occured processing XML 'null'. See Error Log for more details	bundle-context.xml
    I checked in the log. The error is:

    !MESSAGE Error occured processing '/XXXXXXXXX/src/main/webapp/WEB-INF/spring/bundle-context.xml'
    !STACK 0
    	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.XmlCatalogDelegatingEntityResolver.resolveEntity(
    	at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
    	at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
    	at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source)
    	at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
    	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    	at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
    	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$
    	at java.util.concurrent.FutureTask$Sync.innerRun(
    	at java.util.concurrent.Executors$
    	at java.util.concurrent.FutureTask$Sync.innerRun(
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
    	at java.util.concurrent.ThreadPoolExecutor$
    Caused by: Illegal character in path at index 10: file:///D:\XXX\XXX\.metadata\.plugins\org.eclipse.wst.internet.cache/-551705775.cache
    	... 30 more
    The path is constructed with backslashes instead of forward slashes. So, we get an URISyntaxException. What now? If I disable the caching, it works. If I enable the caching again, it starts to fail with the error above. How can I tell STS to use forward slashes? Is it even an STS problem? Or an Eclipse problem? Any ideas?

  • #2

    The exception looks like a bug somewhere. I will investigate this. Created an issue in JIRA to track this:



    • #3
      So you have "load namespace handlers and XSD from classpath" enabled and it works again when you activate "disable caching for namespace resolving and loading"? Or do you mean a different caching?


      • #4
        Sorry, I should have expressed myself more clearly.

        Since the problem comes when Eclipse is trying to use a cached XSD, I disabled the Eclipse caching. I did it through Window -> Preferences -> General -> Network Connections -> Cache -> Disable caching. When Eclipse doesn't use the cache, there's no problem. The project is in error-free state. However, if I enable the caching (which, of course, is the default), then Eclipse tries to load the XSD from the cache, but uses backslashes in the URL, so it gets a URISyntaxException. Spring, in turn, reports the rather confusing "Error occured processing XML 'null'. See Error Log for more details" when it tries to parse bundle-context.xml. And the project has a red (error) state in the Package Explorer.

        It should be noted that it doesn't crash all the time. Other projects have bundle-context.xml too, but they don't get this error. The project that fails is super-small. It's just for plumbing purposes. Here's an overview:


        And here's the error:


        There are tons of Maven errors that appeared as a result of upgrading to STS 2.8.0 -- "Plugin execution not covered by lifecycle configuration...". This is a major inconvenience for me because I have to add some junk to all pom.xml files to fix the problems but I cannot commit that junk into our version control system because many people don't use STS 2.8.0 and won't use it any time soon.

        In fact, I will have to revert back to STS 2.7.x by re-installing and reconfiguring it anew because the automatic reversal of the update didn't work (as usual).



        Enabling or disabling "Load NamespaceHandlers and XSDs from project's classpath" doesn't solve the problem.
        Enabling or disabling "Disable caching for namespace resolving and loading" doesn't solve the problem.
        Disabling "Network Connections -> Cache" solves the problem, as I described above but, quite understandably, this is not really a solution to the problem as it introduces other problems.
        Attached Files
        Last edited by blizzard; Oct 19th, 2011, 09:21 AM.


        • #5
          Ah, okay, thanks for the clarification, I was already wondering why the classpath-based namespace caching would affected this... ;-)
          In the meantime I identified the underlying problem in WTP, it is just producing the wrong path on Windows, as far as I understand the code behind this feature. I filed a bug against WTP at Eclipse, lets see how quickly they can come up with a fix.

          Thanks again for reporting and especially for the workaround!


          • #6
            I need to revert back to STS 2.7.2 but I have the following problem:

            1. I download and run STS 2.7.2
            2. I go to Help -> Install New Software... and I enter: (this is the Virgo Tooling update site)
            3. After the Virgo tooling is installed, it tells me it wants to restart Eclipse and I agree.

            And, lo and behold, STS 2.7.2 is now upgraded to STS 2.8.0 even though I haven't activated such an upgrade!!!!! The version I have immediately after installing the Virgo tooling is: Version: 2.8.0.RELEASE, Build Id: 201110171000

            This is terrible! How can I switch back to STS 2.7.2 and have the Virgo server runtime? I have been fighting with STS 2.8.0 for the past two days and this cannot go on any more. I have deadlines. Please, help! I must somehow manage to stay with STS 2.7.x.


            • #7
              I am not sure why this happened while installing the Virgo tooling, but you can try to uncheck (or delete) the general STS update site from the list of available update sites. This should avoid any update messages or so for STS.


              • #8
                I checked this again and there is an "automatic download updates" setting in the preferences that tries to download the updates automatically. You should deselect that and also remove the general STS update site from the list of available update sites. Then the Virgo tooling installs without STS 2.8.0 (so the problem wasn't really related to Virgo tooling). Just tried it myself a minute ago. Seems to be fine.

                BTW: The Virgo tooling isn't compatible with STS 2.8.0 anyway, so please don't upgrade to STS 2.8.0 if you wanna use the Virgo tooling.



                • #9
                  This worked. Thank you! You've been extremely helpful all along.


                  • #10
                    Thanks! Glad to hear I could help!


                    • #11
                      A fix that I have come across for &quot;Error occured processing XML 'null'&quot;

                      So to the orginal topic of the thread, "Error occured processing XML 'null'" I found out how to fix it mostly for the projects I have been working on. Note: Same error, different problem (I think)

                      When I update the version of the dependencies (springframework and/or batch) in the pom files (after the patch for m2e), or correct the version of the namespaces (*-3.0.xsd or *-2.1.xsd), eclipse is happy again. Usually having a property for the version in a parent pom that manages the dependencies is helpful for this reason.

                      I'm working with Java EE 1.6, in Eclipse Indigo with the 2.8.0 Plugin for STS, with the patch for m2e installed via the Dashboard's extension page.

                      2.8.1 isn't out yet so this is just another solution to the problem with the same error.