Bug 239614 - [Examples]: jpa.geonames - CreateSchema failure on deleteAll
Summary: [Examples]: jpa.geonames - CreateSchema failure on deleteAll
Status: RESOLVED DUPLICATE of bug 227113
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 227113
Blocks:
  Show dependency tree
 
Reported: 2008-07-04 09:13 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:05 EDT (History)
3 users (show)

See Also:


Attachments
example.jpa.geonames workaround to get past deleteAll exception (584 bytes, patch)
2008-07-04 09:18 EDT, Michael OBrien CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2008-07-04 09:13:16 EDT
CreateSchema - Fails on deleteAll.
We may want to make delete non-terminal in this example, I was able to proceed further by commenting 45:deleteAll(em) temporarily.
However I fail later when populating the database - we may need an expanded wiki section.


[EL Fine]: Connection(7318012)--DELETE FROM GEO_POINT
Exception in thread "main" javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.0 (Build SNAPSHOT - 20080703)): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: error occurred during batching: ORA-00942: table or view does not exist

Error Code: 17081
	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:382)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.performPreQueryFlush(EJBQueryImpl.java:936)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:427)
	at utils.CreateSchema.deleteAll(CreateSchema.java:99)
	at utils.CreateSchema.deleteAll(CreateSchema.java:114)
	at utils.CreateSchema.main(CreateSchema.java:45)
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.0 (Build SNAPSHOT - 20080703)): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: error occurred during batching: ORA-00942: table or view does not exist

>Fixed by commenting 45:deleteAll(em) temporarily in CreateSchema

LoadCanada - Fails
Exception in thread "main" java.lang.RuntimeException: Automatic download not yet supported
	at utils.load.TabSeparatedRowReader.verifyDataFile(TabSeparatedRowReader.java:52)
	at utils.load.TabSeparatedRowReader.<init>(TabSeparatedRowReader.java:37)
	at utils.load.FeatureLoader.load(FeatureLoader.java:31)
	at utils.PopulateMetadata.main(PopulateMetadata.java:39)

Error Code: 942
Call: SELECT NAME, OFFSET, DSTOFFSET FROM GEO_TIMEZZONE WHERE (NAME LIKE ?)
	bind => [America/%]
Query: ReadAllQuery(model.geonames.TimeZone)
Comment 1 Michael OBrien CLA 2008-07-04 09:13:49 EDT
Leaving untargeted to pass through triage
Comment 2 Michael OBrien CLA 2008-07-04 09:15:46 EDT
>QueryExamples was OK
Comment 3 Michael OBrien CLA 2008-07-04 09:18:28 EDT
Created attachment 106576 [details]
example.jpa.geonames workaround to get past deleteAll exception
Comment 4 Doug Clarke CLA 2008-07-22 10:48:52 EDT

*** This bug has been marked as a duplicate of bug 227113 ***
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:05:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink