Task #9077 (closed)
Bug: bd-pathway import 2
Reported by: | jburel | Owned by: | jamoore |
---|---|---|---|
Priority: | blocker | Milestone: | OMERO-4.4 |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | ux@…, jamoore, cxallan, mlinkert |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2012-06-19 (17) |
Description (last modified by cxallan)
Import the file
from_skyking/bd-pathway/bram/42_6_1_100208_BJWT_LOPAC_05_08_10nM_R1/201-02-19_000/Experiment.exp
Clean DB, nothing else imported. server howe user root.
error follow
java.lang.RuntimeException: omero.ApiUsageException serverStackTrace = "ome.conditions.ApiUsageException: PreparedStatementCallback; bad SQL grammar [insert into temp_ids (key, id) values (?, ?)]; nested exception is org.postgresql.util.PSQLException: ERROR: relation "temp_ids" does not exist Position: 13 at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:233) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:602) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:614) at org.springframework.jdbc.core.JdbcTemplate.batchUpdate(JdbcTemplate.java:883) at org.springframework.jdbc.core.BatchUpdateUtils.executeBatchUpdate(BatchUpdateUtils.java:32) at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.batchUpdate(SimpleJdbcTemplate.java:257) at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.batchUpdate(SimpleJdbcTemplate.java:253) at ome.util.SqlAction$Impl.createIdsTempTable(SqlAction.java:370) at ome.util.SqlAction$Impl.rewriteHql(SqlAction.java:354) at sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at
This is part of #8587
Change History (3)
comment:1 Changed 12 years ago by cxallan
- Description modified (diff)
- Owner set to jmoore
- Sprint set to 2012-06-19 (17)
comment:2 Changed 12 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
Problem is reproducible with:
import omero import omero.all ids = range(1,10000) params = omero.sys.ParametersI() params.addIds(ids) c = omero.client("localhost") s = c.createSession("root", "ome") q = s.getQueryService() q.findAllByQuery("select i from Image i where i.id in (:ids)", params)
A quick fix has been pushed to sprint17-bugfixes which simply disables rewriteHql for PostreSQL:
commit 5c0ea66e73304cf080afe8d76cc9d1fceceeacbe Author: jmoore <josh@glencoesoftware.com> Date: Wed Jun 6 21:05:14 2012 Quick fix for temp_ids failure (See #3961, Fix #9077) temp_ids was required for Oracle support, but was never fully implemented for PostreSQL. This hasn't shown up previously because only queries with more than 1000 ids triggers the issue.
I've opened a RFE to fully fix the issue (#9109)
comment:3 Changed 12 years ago by rleigh
Imported fine for me on gretsky on 7/6/12.
Confirmed. Assigning to Josh, server side stack trace with timestamps available below: