Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Conflicting query
Conflicting query [message #480525] Mon, 17 August 2009 14:17 Go to next message
Eclipse UserFriend
Originally posted by: purjopoa.spray.se

I have a web app that stopped working with the following error a few days
ago. I can't see what might cause the error. I have confirmed that the
query in the error message is not duplicated in queries.xml.

If I remove the query VstgJobScopeDescription.deleteAll I will get an
identical error message but with another query. If I remove that one,
again I get an identical error message with a third query etc etc...

Anyone got a clue??

Caused by: Exception [EclipseLink-7092] (Eclipse Persistence Services -
1.1.2.v20090612-r4475):
org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot add a query whose types conflict with an
existing query. Query To Be Added:
[DeleteAllQuery(name="VstgJobScopeDescription.deleteAll"
referenceClass=VstgJobScopeDescription jpql="DELETE FROM
VstgJobScopeDescription")] is named: [VstgJobScopeDescription.deleteAll]
with arguments [[]].The existing conflicting query:
[DeleteAllQuery(name="VstgJobScopeDescription.deleteAll"
referenceClass=VstgJobScopeDescription jpql="DELETE FROM
VstgJobScopeDescription")] is named: [VstgJobScopeDescription.deleteAll]
with arguments: [[]].
at
org.eclipse.persistence.exceptions.ValidationException.exist ingQueryTypeConflict(ValidationException.java:878)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ad dQuery(AbstractSession.java:374)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ad dQuery(AbstractSession.java:346)
at
org.eclipse.persistence.internal.sessions.AbstractSession.pr ocessJPAQueries(AbstractSession.java:1691)
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImp l.initializeDescriptors(DatabaseSessionImpl.java:409)
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImp l.postConnectDatasource(DatabaseSessionImpl.java:666)
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImp l.login(DatabaseSessionImpl.java:630)
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImp l.createEntityManagerImpl(EntityManagerFactoryImpl.java:169)
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImp l.createEntityManager(EntityManagerFactoryImpl.java:150)
at
com.ford.vcc.menupricing.command.impl.importer.CheckMessageN otImportedCommand.execute(CheckMessageNotImportedCommand.jav a:28)
at
com.ford.vcc.menupricing.command.AbstractCommandWrapper.exec ute(AbstractCommandWrapper.java:27)
at
com.ford.vcc.menupricing.command.ConditionalChain.execute(Co nditionalChain.java:104)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.ja va:191)
at
com.ford.vcc.menupricing.command.ChainTraceDecorator.execute (ChainTraceDecorator.java:28)
Re: Conflicting query [message #480836 is a reply to message #480525] Tue, 18 August 2009 15:49 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

If it was working a few days ago, then what did you change a few days ago?

Sounds like you have the same query defined twice, or probably are
referencing the same xml file twice.

---
James


James : Wiki : Book : Blog : Twitter
Previous Topic:Cache Refresh Problem
Next Topic:Source Attach for EclipseLink
Goto Forum:
  


Current Time: Sat Dec 20 10:27:07 GMT 2014

Powered by FUDForum. Page generated in 0.07463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software