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

Another exception thrown on first use of @Strategy with @ElementCollection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.0-beta2
    • None
    • None
    • None
    • Mac OS X 10.6, Maven 2.2.x, Spring 3.0

    Description

      As with the earlier issue, if the exception is caught, execution proceeds correctly thereafter.

      Caused by: <openjpa-2.0.0-SNAPSHOT-rexported fatal user error> org.apache.openjpa.persistence.ArgumentException: Attempt to map "com.example.ChildEntity.address" failed: the owning entity is not mapped.
      at org.apache.openjpa.jdbc.meta.MappingInfo.assertTable(MappingInfo.java:628)
      at org.apache.openjpa.jdbc.meta.MappingInfo.createColumns(MappingInfo.java:558)
      at org.apache.openjpa.jdbc.meta.ValueMappingInfo.getColumns(ValueMappingInfo.java:178)
      at org.apache.openjpa.jdbc.meta.strats.HandlerStrategies.map(HandlerStrategies.java:65)
      at org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy.map(HandlerFieldStrategy.java:81)
      at org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(FieldMapping.java:146)
      at org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:78)
      at org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:496)
      at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:461)
      at org.apache.openjpa.jdbc.meta.ClassMapping.resolveNonRelationMappings(ClassMapping.java:894)
      at org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:417)
      at org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:736)
      at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:625)
      ... 57 more

      I am so far struggling to produce a reproducible test case. Perhaps the stack trace will be illuminating.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              no1uno Jerry Carter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: