[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] FileNotFoundException: tempToDelete.xml (Access is denied)

Hello,

this strange error appears quite regular after switching from toplink to eclipselink. Unfortunatly it's not possible to reproduce in a unit test, but around every third time I start our application I get this here:

Internal Exception: java.lang.RuntimeException: Exception [EclipseLink-7018] (Eclipse Persistence Services - 1.1.2.v20090612-r4475): org.eclipse.persistence.exceptions.ValidationException
Exception Description: File error.
Internal Exception: java.io.FileNotFoundException: C:\acrolinxIQ\server\bin\tempToDelete.xml (Access is denied)


I stepped through the eclipselink sourcecode and I really discovered, that a xml file is written to hard disk only to clone an object when TABLE_PER_CLASS inheritance is used.

This is the method: org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings.reloadXMLEntityMappingsObject(XMLEntityMappings)

I'm working with a huge legacy system, and maybe it's a bug on my side, but why you don't use a memorystream or something comparable fast.

Any comments?

best regards,
hans