org.xml.sax.SAXParseException: Attribute "name" is not declared for element "array".

Hibernate JIRA | Brill Pappin | 1 decade ago
  1. 0

    The documentation lists the format for an array at: http://hibernate.bluemars.net/hib_docs/reference/html/collections.html#collections-s1-6 which says: <array name="foos" table="BAR_FOOS" cascade="all"> <key column="BAR_ID"/> <index column="I"/> <many-to-many column="FOO_ID" class="com.illflow.Foo"/> </array> however in using this in this format: <array name="productCodes" table="processorproductcodes" cascade="all"> <key column="plan_id"/> <many-to-many column="plan_id" class="com.stabilia.orm.greenfields.processor.ProcessorProductCode"/> </array> I get an xml exception: 14:54:43,421 ERROR XMLHelper:37 - Error parsing XML: XML InputStream(15) org.xml.sax.SAXParseException: Attribute "name" is not declared for element "array". at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1411) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.dom4j.io.SAXReader.read(SAXReader.java:339) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:286) at com.stabilia.helpers.HibernateHelper.getConfiguration(HibernateHelper.java:226) at com.stabilia.helpers.HibernateHelper.getSessionFactory(HibernateHelper.java:270) at com.stabilia.helpers.HibernateHelper.getSession(HibernateHelper.java:287) at com.stabilia.orm.greenfields.processor.ProcessorTest.testGetIdentifier(ProcessorTest.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)

    Hibernate JIRA | 1 decade ago | Brill Pappin
    org.xml.sax.SAXParseException: Attribute "name" is not declared for element "array".
  2. 0

    The documentation lists the format for an array at: http://hibernate.bluemars.net/hib_docs/reference/html/collections.html#collections-s1-6 which says: <array name="foos" table="BAR_FOOS" cascade="all"> <key column="BAR_ID"/> <index column="I"/> <many-to-many column="FOO_ID" class="com.illflow.Foo"/> </array> however in using this in this format: <array name="productCodes" table="processorproductcodes" cascade="all"> <key column="plan_id"/> <many-to-many column="plan_id" class="com.stabilia.orm.greenfields.processor.ProcessorProductCode"/> </array> I get an xml exception: 14:54:43,421 ERROR XMLHelper:37 - Error parsing XML: XML InputStream(15) org.xml.sax.SAXParseException: Attribute "name" is not declared for element "array". at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1411) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.dom4j.io.SAXReader.read(SAXReader.java:339) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:286) at com.stabilia.helpers.HibernateHelper.getConfiguration(HibernateHelper.java:226) at com.stabilia.helpers.HibernateHelper.getSessionFactory(HibernateHelper.java:270) at com.stabilia.helpers.HibernateHelper.getSession(HibernateHelper.java:287) at com.stabilia.orm.greenfields.processor.ProcessorTest.testGetIdentifier(ProcessorTest.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)

    Hibernate JIRA | 1 decade ago | Brill Pappin
    org.xml.sax.SAXParseException: Attribute "name" is not declared for element "array".
  3. 0

    SQL Server Reserved Words

    xplanner | 1 decade ago | wobbet
    org.xml.sax.SAXParseException: Attribute "auto-import" is not declared for element "hibernate-mapping".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    DTD Validation Failure

    xplanner | 1 decade ago | wobbet
    org.xml.sax.SAXParseException: Attribute "auto-import" is not declared for element "hibernate-mapping".
  6. 0

    Re: error with xtags and tomcat 3.3

    tomcat-taglibs-user | 2 decades ago | James Strachan
    org.xml.sax.SAXParseException: org.apache.crimson.parser/P-067

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXParseException

      Attribute "name" is not declared for element "array".

      at org.apache.crimson.parser.Parser2.error()
    2. org.apache.crimson
      XMLReaderImpl.parse
      1. org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
      2. org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1411)
      3. org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
      4. org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
      5. org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
      6. org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
      7. org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
      8. org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
      9. org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
      9 frames
    3. dom4j
      SAXReader.read
      1. org.dom4j.io.SAXReader.read(SAXReader.java:339)
      1 frame
    4. net.sf.hibernate
      Configuration.addClass
      1. net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252)
      2. net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:286)
      2 frames
    5. com.stabilia.helpers
      HibernateHelper.getSession
      1. com.stabilia.helpers.HibernateHelper.getConfiguration(HibernateHelper.java:226)
      2. com.stabilia.helpers.HibernateHelper.getSessionFactory(HibernateHelper.java:270)
      3. com.stabilia.helpers.HibernateHelper.getSession(HibernateHelper.java:287)
      3 frames
    6. com.stabilia.orm
      ProcessorTest.testGetIdentifier
      1. com.stabilia.orm.greenfields.processor.ProcessorTest.testGetIdentifier(ProcessorTest.java:44)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    8. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      8 frames
    9. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
      3 frames