-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix #9 & #8 #18
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bug fix #6 Plugin's CSS overrides SonarQube's CSS cnescatlab#9 Metrics are not correctly displayed cnescatlab#11 Errors appear in sonar-scanner log
… comment-ratio metrics
begarco
suggested changes
Jun 1, 2018
There was a problem hiding this 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
begarco
approved these changes
Jun 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #9 : bad langage analysis
Fix #11
Fix #8
This change is