Bug 310882 - 14 new failures in org.eclipse.persistence.testing.tests.jpa.jgeometry.SpatialJPQLTestSuite
Summary: 14 new failures in org.eclipse.persistence.testing.tests.jpa.jgeometry.Spatia...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Yuan CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-04-28 14:59 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2010-04-28 14:59:37 EDT
The following are Statck Trace:

An exception occurred while creating a query in EntityManager: Exception Description: Error compiling the query [SELECT ss FROM SimpleSpatial ss WHERE FUNC('mdsys.sdo_RELATE', ss.jGeometry, :otherGeometry, :params) = 'TRUE' ORDER BY ss.id ASC], line 1, column 66: unknown state or association field [jGeometry] of class [org.eclipse.persistence.testing.models.jpa.structconverter.SimpleSpatial].

java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Error compiling the query [SELECT ss FROM SimpleSpatial ss WHERE FUNC('mdsys.sdo_RELATE', ss.jGeometry, :otherGeometry, :params) = 'TRUE' ORDER BY ss.id ASC], line 1, column 66: unknown state or association field [jGeometry] of class [org.eclipse.persistence.testing.models.jpa.structconverter.SimpleSpatial].
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1350)
at org.eclipse.persistence.testing.tests.jpa.jgeometry.SpatialJPQLTestSuite.testSDORelateRectangle(SpatialJPQLTestSuite.java:139)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:454)
Caused by: Exception [EclipseLink-8030] (Eclipse Persistence Services - 2.1.0.v20100427-r7072): org.eclipse.persistence.exceptions.JPQLException
Exception Description: Error compiling the query [SELECT ss FROM SimpleSpatial ss WHERE FUNC('mdsys.sdo_RELATE', ss.jGeometry, :otherGeometry, :params) = 'TRUE' ORDER BY ss.id ASC], line 1, column 66: unknown state or association field [jGeometry] of class [org.eclipse.persistence.testing.models.jpa.structconverter.SimpleSpatial].
at org.eclipse.persistence.exceptions.JPQLException.unknownAttribute(JPQLException.java:457)
at org.eclipse.persistence.internal.jpa.parsing.DotNode.validate(DotNode.java:78)
at org.eclipse.persistence.internal.jpa.parsing.FuncNode.validate(FuncNode.java:58)
at org.eclipse.persistence.internal.jpa.parsing.Node.validate(Node.java:91)
at org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode.validate(BinaryOperatorNode.java:34)
at org.eclipse.persistence.internal.jpa.parsing.EqualsNode.validate(EqualsNode.java:41)
at org.eclipse.persistence.internal.jpa.parsing.WhereNode.validate(WhereNode.java:34)
at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:211)
at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:187)
at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:177)
at org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree.populateReadQueryInternal(JPQLParseTree.java:110)
at org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree.populateQuery(JPQLParseTree.java:84)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:209)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:180)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.(EJBQueryImpl.java:132)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.(EJBQueryImpl.java:116)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1348)
at org.eclipse.persistence.testing.tests.jpa.jgeometry.SpatialJPQLTestSuite.testSDORelateRectangle(SpatialJPQLTestSuite.java:139)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:454)
Comment 1 Kevin Yuan CLA 2010-04-28 15:11:51 EDT
Based on the bug 234222 had been fixed, the test cases had been modified to use uppercase begin of the property name, so the property "ss.jGeometry" must be "ss.JGeometry" in org.eclipse.persistence.testing.tests.jpa.jgeometry.SpatialJPQLTestSuite.java.

Fix the test cases, and checked in trunk, the revision# is 7101.
Code reviewed by Christopher Delahunt.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:04:44 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink