openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Carter (JIRA)" <>
Subject [jira] Created: (OPENJPA-1574) Another exception thrown on first use of @Strategy with @ElementCollection
Date Mon, 15 Mar 2010 19:13:27 GMT
Another exception thrown on first use of @Strategy with @ElementCollection

                 Key: OPENJPA-1574
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 2.0.0-beta2
         Environment: Mac OS X 10.6, Maven 2.2.x, Spring 3.0
            Reporter: Jerry Carter

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(
	at org.apache.openjpa.jdbc.meta.MappingInfo.createColumns(
	at org.apache.openjpa.jdbc.meta.ValueMappingInfo.getColumns(
	at org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(
	at org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(
	at org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(
	at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(
	at org.apache.openjpa.jdbc.meta.ClassMapping.resolveNonRelationMappings(
	at org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(
	at org.apache.openjpa.meta.MetaDataRepository.preMapping(
	at org.apache.openjpa.meta.MetaDataRepository.resolve(
	... 57 more

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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message