|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Problem in Sonar 1.11Hi Guys I’ve updated to Sonar 1.11 and I am
getting this error when trying to run sonar goal: [INFO]
Execute decorators... [INFO]
ANALYSIS SUCCESSFUL, you can browse http://192.168.1.32:9000 [INFO]
Purging database... [WARN]
SQL Error: 1795, SQLState: 42000 [ERROR]
ORA-01795: maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [ERROR]
BUILD ERROR [INFO]
------------------------------------------------------------------------ [INFO]
Can not execute Sonar Embedded
error: org.hibernate.exception.SQLGrammarException: could not execute query ORA-01795:
maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [INFO]
For more information, run Maven with the -e switch [INFO]
------------------------------------------------------------------------ Thanks, Rogerio. |
|
|
|
|
|
RES: Problem in Sonar 1.11Ok Jim, I understand the problem. But I was working fine in version 1.10.1, using some project and
same oracle… So, it’s a new bug in Sonar, even with this bug in
Hibernate+Oracle. Thanks, Rogerio. De: Jim Sellers
[mailto:jim.sellers@...] Looks like you're running into
the issue when there are more than 1000 items in an IN sql statement. eg.
select * from table_name where blah IN('thing1', 'thing2') On Fri, Oct 9, 2009 at 10:36 AM, Rogerio Baldini das Neves
<rogerio.baldini@...>
wrote: Hi
Guys I’ve updated to Sonar 1.11 and I am getting this error when
trying to run sonar goal: [INFO]
Execute decorators... [INFO]
ANALYSIS SUCCESSFUL, you can browse http://192.168.1.32:9000 [INFO]
Purging database... [WARN] SQL
Error: 1795, SQLState: 42000 [ERROR]
ORA-01795: maximum number of expressions in a list is 1000 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD
ERROR [INFO]
------------------------------------------------------------------------ [INFO] Can not
execute Sonar Embedded error:
org.hibernate.exception.SQLGrammarException: could not execute query ORA-01795:
maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [INFO] For more
information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ Thanks, Rogerio. No virus
found in this incoming message. |
|
|
|
|
|
|
|
|
RES: Problem in Sonar 1.11[INFO]
Execute decorators... [INFO]
ANALYSIS SUCCESSFUL, you can browse http://192.168.1.32:9000 [INFO]
Purging database... [WARN]
SQL Error: 1795, SQLState: 42000 [ERROR]
ORA-01795: maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [ERROR]
BUILD ERROR [INFO]
------------------------------------------------------------------------ [INFO]
Can not execute Sonar Embedded
error: org.hibernate.exception.SQLGrammarException: could not execute query ORA-01795:
maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [INFO]
Trace org.apache.maven.lifecycle.LifecycleExecutionException:
Can not execute Sonar at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at
org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
java.lang.reflect.Method.invoke(Method.java:597) at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at
org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused
by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at
org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87) at
org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at
org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117) at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ...
16 more Caused
by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException:
could not execute query at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614) at
org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76) at
org.sonar.plugins.core.purges.PurgeDisabledResources.getSnapshotIds(PurgeDisabledResources.java:67) at
org.sonar.plugins.core.purges.PurgeDisabledResources.purge(PurgeDisabledResources.java:43) at
org.sonar.batch.core.FinalizeSnapshotsJob.purge(FinalizeSnapshotsJob.java:106) at
org.sonar.batch.core.FinalizeSnapshotsJob.execute(FinalizeSnapshotsJob.java:51) at
org.sonar.batch.Batch.executeJobs(Batch.java:91) at
org.sonar.batch.Batch.analyse(Batch.java:79) at
org.sonar.batch.Batch.start(Batch.java:54) at
org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138) at
org.sonar.batch.BatchMojo.execute(BatchMojo.java:130) at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at
org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82) ...
20 more Caused
by: org.hibernate.exception.SQLGrammarException: could not execute query at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90) at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at
org.hibernate.loader.Loader.doList(Loader.java:2235) at
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129) at
org.hibernate.loader.Loader.list(Loader.java:2124) at
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401) at
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) at
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) at
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149) at
org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) at
org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67) ...
31 more Caused
by: java.sql.SQLException: ORA-01795: maximum number of expressions in a list
is 1000 at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316) at
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282) at
oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639) at
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185) at
oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503) at
oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965) at
oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535) at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051) at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984) at
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3026) at
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208) at
org.hibernate.loader.Loader.getResultSet(Loader.java:1812) at
org.hibernate.loader.Loader.doQuery(Loader.java:697) at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259) at
org.hibernate.loader.Loader.doList(Loader.java:2232) ...
39 more [INFO]
------------------------------------------------------------------------ [INFO]
Total time: 24 minutes [INFO]
Finished at: Fri Oct 09 15:09:49 BRT 2009 [INFO]
Final Memory: 117M/762M [INFO]
------------------------------------------------------------------------ Rogério Baldini das Neves De: Freddy Mallet
[mailto:freddy.mallet@...] Hi Rogerio, On Fri, Oct 9, 2009 at 7:20 PM, Rogerio Baldini das Neves
<rogerio.baldini@...>
wrote: Ok Jim, I understand the
problem. But I was working fine in
version 1.10.1, using some project and same oracle… So, it’s a new bug in Sonar,
even with this bug in Hibernate+Oracle. Thanks, Rogerio. De: Jim
Sellers [mailto:jim.sellers@...]
Looks
like you're running into the issue when there are more than 1000 items in an IN
sql statement. eg. select * from table_name where blah IN('thing1',
'thing2') On
Fri, Oct 9, 2009 at 10:36 AM, Rogerio Baldini das Neves <rogerio.baldini@...>
wrote: Hi
Guys I’ve updated to Sonar 1.11 and I am getting this error when trying
to run sonar goal: [INFO]
Execute decorators... [INFO]
ANALYSIS SUCCESSFUL, you can browse http://192.168.1.32:9000 [INFO]
Purging database... [WARN] SQL
Error: 1795, SQLState: 42000 [ERROR]
ORA-01795: maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [ERROR] BUILD
ERROR [INFO]
------------------------------------------------------------------------ [INFO] Can not
execute Sonar Embedded error:
org.hibernate.exception.SQLGrammarException: could not execute query ORA-01795:
maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [INFO] For more
information, run Maven with the -e switch [INFO]
------------------------------------------------------------------------ Thanks, Rogerio. No virus found in this incoming message. No virus
found in this incoming message. |
|
|
|
|
|
RES: Problem in Sonar 1.11Ok. It worked... De: Freddy Mallet
[mailto:freddy.mallet@...]
On Fri, Oct 9, 2009 at 9:06 PM, Rogerio Baldini das Neves
<rogerio.baldini@...>
wrote: [INFO]
Execute decorators... [INFO]
ANALYSIS SUCCESSFUL, you can browse http://192.168.1.32:9000 [INFO]
Purging database... [WARN] SQL
Error: 1795, SQLState: 42000 [ERROR] ORA-01795:
maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [ERROR] BUILD
ERROR [INFO]
------------------------------------------------------------------------ [INFO] Can not execute
Sonar Embedded error:
org.hibernate.exception.SQLGrammarException: could not execute query ORA-01795:
maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException:
Can not execute Sonar
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by:
org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more Caused by:
javax.persistence.PersistenceException:
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
at
org.sonar.plugins.core.purges.PurgeDisabledResources.getSnapshotIds(PurgeDisabledResources.java:67)
at
org.sonar.plugins.core.purges.PurgeDisabledResources.purge(PurgeDisabledResources.java:43)
at
org.sonar.batch.core.FinalizeSnapshotsJob.purge(FinalizeSnapshotsJob.java:106)
at org.sonar.batch.core.FinalizeSnapshotsJob.execute(FinalizeSnapshotsJob.java:51)
at org.sonar.batch.Batch.executeJobs(Batch.java:91)
at org.sonar.batch.Batch.analyse(Batch.java:79)
at org.sonar.batch.Batch.start(Batch.java:54)
at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
... 20 more Caused by:
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2235)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
at org.hibernate.loader.Loader.list(Loader.java:2124)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
... 31 more Caused by:
java.sql.SQLException: ORA-01795: maximum number of expressions in a list is
1000
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
at
oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
at
oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3026)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1812)
at org.hibernate.loader.Loader.doQuery(Loader.java:697)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2232)
... 39 more [INFO] ------------------------------------------------------------------------ [INFO] Total
time: 24 minutes [INFO] Finished
at: Fri Oct 09 15:09:49 BRT 2009 [INFO] Final Memory:
117M/762M [INFO] ------------------------------------------------------------------------ Rogério Baldini das Neves 31 3555
0050 / 31 9968 6642 De: Freddy
Mallet [mailto:freddy.mallet@...]
Hi
Rogerio, On
Fri, Oct 9, 2009 at 7:20 PM, Rogerio Baldini das Neves <rogerio.baldini@...>
wrote: Ok Jim, I understand the
problem. But I was working fine in version
1.10.1, using some project and same oracle… So, it’s a new bug in Sonar,
even with this bug in Hibernate+Oracle. Thanks, Rogerio. De: Jim
Sellers [mailto:jim.sellers@...]
Looks
like you're running into the issue when there are more than 1000 items in an IN
sql statement. eg. select * from table_name where blah IN('thing1',
'thing2') On
Fri, Oct 9, 2009 at 10:36 AM, Rogerio Baldini das Neves <rogerio.baldini@...>
wrote: Hi
Guys I’ve updated to Sonar 1.11 and I am getting this error when
trying to run sonar goal: [INFO] Execute
decorators... [INFO]
ANALYSIS SUCCESSFUL, you can browse http://192.168.1.32:9000 [INFO]
Purging database... [WARN] SQL
Error: 1795, SQLState: 42000 [ERROR]
ORA-01795: maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [ERROR] BUILD
ERROR [INFO]
------------------------------------------------------------------------ [INFO] Can not
execute Sonar Embedded error: org.hibernate.exception.SQLGrammarException:
could not execute query ORA-01795:
maximum number of expressions in a list is 1000 [INFO]
------------------------------------------------------------------------ [INFO] For more
information, run Maven with the -e switch [INFO]
------------------------------------------------------------------------ Thanks, Rogerio. No virus found in this incoming message. No virus found in this incoming message. No virus
found in this incoming message. |
| Free embeddable forum powered by Nabble | Forum Help |