Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-108

@AttributeOverrides fails in mapping tool with java.lang.ArrayStoreException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 0.9.7
    • None
    • None
    • windows xp, openjpa_097_incubating

    Description

      @AttributeOverrides fails in mapping tool with java.lang.ArrayStoreException

      @AttributeOverrides(

      { @AttributeOverride(name="charityName", column=@Column(name="ccharityName", length=40)), @AttributeOverride(name="charityAmount", column=@Column(name="ccharityAmount")) }

      )

      Exception in thread "main" java.lang.ArrayStoreException
      at com.ibm.oti.reflect.AnnotationHelper.getReturnValueFromEntry(Native Method)
      at com.ibm.oti.reflect.AnnotationHelper.access$000(AnnotationHelper.java:14)
      at com.ibm.oti.reflect.AnnotationHelper$AnnotationInvocationHandler.invoke(AnnotationHelper.java:104)
      at $Proxy18.value(Unknown Source)
      at org.apache.openjpa.persistence.jdbc.AnnotationPersistenceMappingParser.parseMemberMappingAnnotations(AnnotationPersistenceMappingParser.java:787)
      at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:604)
      at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:344)
      at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:211)
      at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:414)
      at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:272)
      at org.apache.openjpa.meta.ValueMetaDataImpl.resolveDeclaredType(ValueMetaDataImpl.java:426)
      at org.apache.openjpa.meta.ValueMetaDataImpl.resolve(ValueMetaDataImpl.java:405)
      at org.apache.openjpa.jdbc.meta.ValueMappingImpl.resolve(ValueMappingImpl.java:467)
      at org.apache.openjpa.meta.FieldMetaData.resolve(FieldMetaData.java:1574)
      at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:397)
      at org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1630)
      at org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1565)
      at org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:656)
      at org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataRepository.java:556)
      at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:481)
      at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:285)
      at org.apache.openjpa.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:273)
      at org.apache.openjpa.jdbc.meta.MappingTool.getMapping(MappingTool.java:660)
      at org.apache.openjpa.jdbc.meta.MappingTool.buildSchema(MappingTool.java:732)
      at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:630)
      at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:1059)
      at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:966)
      at org.apache.openjpa.jdbc.meta.MappingTool.main(MappingTool.java:907)

      Attachments

        Activity

          People

            kwsutter Kevin W. Sutter
            ghongell George Hongell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: