openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Carter (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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(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.


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


Mime
View raw message