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

Fix #9 & #8 #18

Merged
merged 6 commits into from
Jun 6, 2018
Merged

Fix #9 & #8 #18

merged 6 commits into from
Jun 6, 2018

Conversation

CfrancCyrille
Copy link
Contributor

@CfrancCyrille CfrancCyrille commented May 30, 2018

Fix #9 : bad langage analysis
Fix #11
Fix #8


This change is Reviewable

@begarco begarco self-requested a review May 31, 2018 15:12
Copy link
Contributor

@begarco begarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NaN values are not handled.

Test APSQ-003 do not pass.

Error Details: APSQ-003 [Project Analysis]
Error Details

org.apache.ibatis.exceptions.PersistenceException: 
### Error committing transaction.  Cause: org.apache.ibatis.executor.BatchExecutorException: org.sonar.db.measure.MeasureMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Batch entry 132 insert into project_measures (
    value,
    metric_id,
    component_uuid,
    analysis_uuid,
    text_value,
    alert_status,
    alert_text,
    person_id,
    variation_value_1,
    measure_data)
    VALUES (
    1.7976931348623157E308,
    227,
    'AWO6N5oMv0LPqXiTewyL',
    'AWO6SaC5v0LPqXiTew0p',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    ) was aborted: ERREUR: champ numérique en dehors des limites
  Detail: Un champ de précision 38 et d'échelle 20 doit être arrondi à une valeur
absolue inférieure à 10^18.  Call getNextException to see other errors in the batch.
### Cause: org.apache.ibatis.executor.BatchExecutorException: org.sonar.db.measure.MeasureMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Batch entry 132 insert into project_measures (
    value,
    metric_id,
    component_uuid,
    analysis_uuid,
    text_value,
    alert_status,
    alert_text,
    person_id,
    variation_value_1,
    measure_data)
    VALUES (
    1.7976931348623157E308,
    227,
    'AWO6N5oMv0LPqXiTewyL',
    'AWO6SaC5v0LPqXiTew0p',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    ) was aborted: ERREUR: champ numérique en dehors des limites
  Detail: Un champ de précision 38 et d'échelle 20 doit être arrondi à une valeur
absolue inférieure à 10^18.  Call getNextException to see other errors in the batch.
	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.commit(DefaultSqlSession.java:227)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.commit(DefaultSqlSession.java:218)
	at org.sonar.db.DbSessionImpl.commit(DbSessionImpl.java:42)
	at org.sonar.db.BatchSession.commit(BatchSession.java:168)
	at org.sonar.server.computation.task.projectanalysis.step.PersistMeasuresStep.execute(PersistMeasuresStep.java:87)
	at org.sonar.server.computation.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:64)
	at org.sonar.server.computation.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:52)
	at org.sonar.server.computation.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:73)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.executeTask(CeWorkerImpl.java:134)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:97)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.withCustomizedThreadName(CeWorkerImpl.java:81)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:73)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:43)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.ibatis.executor.BatchExecutorException: org.sonar.db.measure.MeasureMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Batch entry 132 insert into project_measures (
    value,
    metric_id,
    component_uuid,
    analysis_uuid,
    text_value,
    alert_status,
    alert_text,
    person_id,
    variation_value_1,
    measure_data)
    VALUES (
    1.7976931348623157E308,
    227,
    'AWO6N5oMv0LPqXiTewyL',
    'AWO6SaC5v0LPqXiTew0p',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    ) was aborted: ERREUR: champ numérique en dehors des limites
  Detail: Un champ de précision 38 et d'échelle 20 doit être arrondi à une valeur
absolue inférieure à 10^18.  Call getNextException to see other errors in the batch.
	at org.apache.ibatis.executor.BatchExecutor.doFlushStatements(BatchExecutor.java:146)
	at org.apache.ibatis.executor.BaseExecutor.flushStatements(BaseExecutor.java:129)
	at org.apache.ibatis.executor.BaseExecutor.flushStatements(BaseExecutor.java:122)
	at org.apache.ibatis.executor.BaseExecutor.commit(BaseExecutor.java:242)
	at org.apache.ibatis.executor.CachingExecutor.commit(CachingExecutor.java:119)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.commit(DefaultSqlSession.java:224)
	... 20 more
Caused by: java.sql.BatchUpdateException: Batch entry 132 insert into project_measures (
    value,
    metric_id,
    component_uuid,
    analysis_uuid,
    text_value,
    alert_status,
    alert_text,
    person_id,
    variation_value_1,
    measure_data)
    VALUES (
    1.7976931348623157E308,
    227,
    'AWO6N5oMv0LPqXiTewyL',
    'AWO6SaC5v0LPqXiTew0p',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    ) was aborted: ERREUR: champ numérique en dehors des limites
  Detail: Un champ de précision 38 et d'échelle 20 doit être arrondi à une valeur
absolue inférieure à 10^18.  Call getNextException to see other errors in the batch.
	at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:148)
	at org.postgresql.core.ResultHandlerDelegate.handleError(ResultHandlerDelegate.java:50)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2191)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:472)
	at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:791)
	at org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1563)
	at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
	at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
	at org.apache.ibatis.executor.BatchExecutor.doFlushStatements(BatchExecutor.java:122)
	... 25 more
Caused by: org.postgresql.util.PSQLException: ERREUR: champ numérique en dehors des limites
  Detail: Un champ de précision 38 et d'échelle 20 doit être arrondi à une valeur
absolue inférieure à 10^18.
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2477)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2190)
	... 31 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

Successfully merging this pull request may close these issues.

None yet

3 participants