Announcement Announcement Module
Collapse
No announcement yet.
Exception while saving config file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception while saving config file

    I get exception when I save changed spring config file.

    Eclipse3.3M5eh, WST 2.0M5, Spring IDE 2.0.0.v200703122318

    eclipse.buildId=I20070222-0951
    java.version=1.5.0_07
    java.vendor=Apple Computer, Inc.
    BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
    Framework arguments: -launcher /Users/victor/eclipse/Eclipse.app/Contents/MacOS/eclipse -name Eclipse -startup /Users/victor/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.0.v20070208a.jar -keyring /Users/victor/.eclipse_keyring -showlocation
    Command-line arguments: -os macosx -ws carbon -arch x86 -launcher /Users/victor/eclipse/Eclipse.app/Contents/MacOS/eclipse -name Eclipse -startup /Users/victor/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.0.v20070208a.jar -keyring /Users/victor/.eclipse_keyring -consoleLog -showlocation

    Error
    Tue Mar 13 02:01:48 MSK 2007
    Internal Error

    org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from file [/Users/victor/Projects/workspace/SprinTest/config.xml]; nested exception is java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class
    Caused by: java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class
    at org.springframework.ide.eclipse.core.io.xml.Xerces DocumentLoader.loadDocument(XercesDocumentLoader.j ava:45)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:351)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:303)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:280)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.readConfig(BeansConfig.java:58 3)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.getBeans(BeansConfig.java:335)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfigValidator.validateConfig(BeansC onfigValidator.java:182)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfigValidator.run(BeansConfigValida tor.java:153)
    at org.eclipse.core.internal.resources.Workspace.run( Workspace.java:1798)
    at org.springframework.ide.eclipse.beans.core.interna l.project.BeansProjectValidator.validate(BeansProj ectValidator.java:47)
    at org.springframework.ide.eclipse.beans.core.interna l.project.BeansProjectValidator.build(BeansProject Validator.java:38)
    at org.springframework.ide.eclipse.core.internal.proj ect.SpringProjectBuilder$1.run(SpringProjectBuilde r.java:155)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
    at org.springframework.ide.eclipse.core.internal.proj ect.SpringProjectBuilder.runBuilders(SpringProject Builder.java:162)
    at org.springframework.ide.eclipse.core.internal.proj ect.SpringProjectBuilder.access$0(SpringProjectBui lder.java:148)
    at org.springframework.ide.eclipse.core.internal.proj ect.SpringProjectBuilder$DeltaVisitor.visit(Spring ProjectBuilder.java:135)
    at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:67)
    at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:76)
    at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:48)
    at org.springframework.ide.eclipse.core.internal.proj ect.SpringProjectBuilder.build(SpringProjectBuilde r.java:93)
    at org.eclipse.core.internal.events.BuildManager$2.ru n(BuildManager.java:621)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:163)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:194)
    at org.eclipse.core.internal.events.BuildManager$1.ru n(BuildManager.java:243)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:246)
    at org.eclipse.core.internal.events.BuildManager.basi cBuildLoop(BuildManager.java:299)
    at org.eclipse.core.internal.events.BuildManager.buil d(BuildManager.java:331)
    at org.eclipse.core.internal.events.AutoBuildJob.doBu ild(AutoBuildJob.java:158)
    at org.eclipse.core.internal.events.AutoBuildJob.run( AutoBuildJob.java:224)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:58)

  • #2
    Are you using a custom namespace with the corresponding BeansConfig file?

    Originally posted by vkirst View Post
    nested exception is java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class
    Caused by: java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class
    We have seen this exception with custom namespace handlers (for details refer to ticket #448). Are you using a custom namespace with the corresponding BeansConfig file?

    Maybe you can open a new ticket here and attach the corresponding BeansConfig file.

    Comment


    • #3
      Xerces location logging available

      Originally posted by vkirst View Post
      nested exception is java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class
      Caused by: java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class
      A similar issue was reported in ticket #507. In build #20 Christian introduced a feature which logs the location of the Xerces libraries for any LinkageError exception thrown during XML parsing.

      Maybe you can give this build a try and check which Xerces location is reported.

      Comment


      • #4
        Thanks! Build 2.0.0.v200703180600 work fine.

        Comment

        Working...
        X