kodo.jdo.GeneralException: org.xml.sax.SAXException: file:/D:/eclipsework/BuildCheck/package.jdoquery [Location: Line: 7, C: 28]: org.xml.sax.SAXParseException: Attribute "sql" must be declared for element type "query".

Oracle Community | 666705 | 1 decade ago
  1. 0

    Kodo 4 named query support

    Oracle Community | 1 decade ago | 666705
    kodo.jdo.GeneralException: org.xml.sax.SAXException: file:/D:/eclipsework/BuildCheck/package.jdoquery [Location: Line: 7, C: 28]: org.xml.sax.SAXParseException: Attribute "sql" must be declared for element type "query".

    Root Cause Analysis

    1. kodo.jdo.GeneralException

      org.xml.sax.SAXException: file:/D:/eclipsework/BuildCheck/package.jdoquery [Location: Line: 7, C: 28]: org.xml.sax.SAXParseException: Attribute "sql" must be declared for element type "query".

      at kodo.meta.AbstractCFMetaDataFactory.parse()
    2. kodo.meta
      AbstractCFMetaDataFactory.parse
      1. kodo.meta.AbstractCFMetaDataFactory.parse(AbstractCFMetaDataFactory.java:471)
      1 frame
    3. kodo.jdo
      JDOMetaDataFactory.load
      1. kodo.jdo.JDOMetaDataFactory.load(JDOMetaDataFactory.java:121)
      1 frame
    4. kodo.meta
      MetaDataRepository.getQueryMetaData
      1. kodo.meta.MetaDataRepository.getQueryMetaDataInternal(MetaDataRepository.java:1533)
      2. kodo.meta.MetaDataRepository.getQueryMetaData(MetaDataRepository.java:1496)
      2 frames
    5. kodo.jdo
      PersistenceManagerImpl.newNamedQuery
      1. kodo.jdo.PersistenceManagerImpl.newNamedQuery(PersistenceManagerImpl.java:1032)
      1 frame
    6. com.chubb.buildcheck
      Data4code.main
      1. com.chubb.buildcheck.DaoSql.getNamedData(DaoSql.java:45)
      2. com.chubb.buildcheck.DaoSql.getNamedData(DaoSql.java:26)
      3. com.chubb.buildcheck.Data4code.main(Data4code.java:342)
      3 frames