Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HQL issue in DatasetDAO notUsedByTemporalAllocations method #116

Open
ddelvecchio opened this issue Oct 20, 2022 · 0 comments
Open

HQL issue in DatasetDAO notUsedByTemporalAllocations method #116

ddelvecchio opened this issue Oct 20, 2022 · 0 comments

Comments

@ddelvecchio
Copy link
Collaborator

Looks like there is an ")" in the sql that needs to be removed.

Oct 20, 2022 2:03:14 PM org.hibernate.hql.internal.ast.ErrorTracker reportError
ERROR: line 1:207: expecting EOF, found ')'
Oct 20, 2022 2:03:14 PM org.hibernate.hql.internal.ast.ErrorTracker reportError
ERROR: line 1:207: expecting EOF, found ')'
line 1:207: expecting EOF, found ')'
at antlr.Parser.match(Parser.java:211)
at org.hibernate.hql.internal.antlr.HqlBaseParser.statement(HqlBaseParser.java:217)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:294)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:189)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:144)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:113)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:73)
at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:162)
at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:636)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:748)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:114)
at gov.epa.emissions.framework.services.data.DatasetDAO.notUsedByTemporalAllocations(DatasetDAO.java:1361)
at gov.epa.emissions.framework.services.data.DataServiceImpl.getNotRefdDatasetIds(DataServiceImpl.java:475)
at gov.epa.emissions.framework.services.data.DataServiceImpl.getRemovableDatasets(DataServiceImpl.java:430)
at gov.epa.emissions.framework.services.data.DataServiceImpl.deleteDatasets(DataServiceImpl.java:359)
at gov.epa.emissions.framework.services.cost.ControlStrategyDAO.deleteDatasets(ControlStrategyDAO.java:417)
at gov.epa.emissions.framework.services.cost.ControlStrategyDAO.removeResultDatasets(ControlStrategyDAO.java:399)
at gov.epa.emissions.framework.services.cost.analysis.common.AbstractStrategyTask.deleteStrategyResults(AbstractStrategyTask.java:244)
at gov.epa.emissions.framework.services.cost.analysis.projectFutureYearInventory.StrategyTask.run(StrategyTask.java:44)
at gov.epa.emissions.framework.services.cost.StrategyTask.run(StrategyTask.java:63)
at gov.epa.emissions.framework.services.GCEnforcerTask.run(GCEnforcerTask.java:23)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:832)

[Thread-2] ERROR gov.epa.emissions.framework.services.data.DataServiceImpl - Error checking dataset usage:
java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: expecting EOF, found ')' near line 1, column 207 [select DISTINCT tA.monthlyProfileDataset, tA.name from gov.epa.emissions.framework.services.tempalloc.TemporalAllocation tA where tA.monthlyProfileDataset.id = 505452 OR tA.monthlyProfileDataset.id = 505451)]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:757)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:114)
at gov.epa.emissions.framework.services.data.DatasetDAO.notUsedByTemporalAllocations(DatasetDAO.java:1361)
at gov.epa.emissions.framework.services.data.DataServiceImpl.getNotRefdDatasetIds(DataServiceImpl.java:475)
at gov.epa.emissions.framework.services.data.DataServiceImpl.getRemovableDatasets(DataServiceImpl.java:430)
at gov.epa.emissions.framework.services.data.DataServiceImpl.deleteDatasets(DataServiceImpl.java:359)
at gov.epa.emissions.framework.services.cost.ControlStrategyDAO.deleteDatasets(ControlStrategyDAO.java:417)
at gov.epa.emissions.framework.services.cost.ControlStrategyDAO.removeResultDatasets(ControlStrategyDAO.java:399)
at gov.epa.emissions.framework.services.cost.analysis.common.AbstractStrategyTask.deleteStrategyResults(AbstractStrategyTask.java:244)
at gov.epa.emissions.framework.services.cost.analysis.projectFutureYearInventory.StrategyTask.run(StrategyTask.java:44)
at gov.epa.emissions.framework.services.cost.StrategyTask.run(StrategyTask.java:63)
at gov.epa.emissions.framework.services.GCEnforcerTask.run(GCEnforcerTask.java:23)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: expecting EOF, found ')' near line 1, column 207 [select DISTINCT tA.monthlyProfileDataset, tA.name from gov.epa.emissions.framework.services.tempalloc.TemporalAllocation tA where tA.monthlyProfileDataset.id = 505452 OR tA.monthlyProfileDataset.id = 505451)]
at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:74)
at org.hibernate.hql.internal.ast.ErrorTracker.throwQueryException(ErrorTracker.java:93)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:301)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:189)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:144)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:113)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:73)
at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:162)
at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:636)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:748)
... 13 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant