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

The report processing should be more stable / error tolerant #63

Closed
wenns opened this issue Nov 15, 2013 · 4 comments
Closed

The report processing should be more stable / error tolerant #63

wenns opened this issue Nov 15, 2013 · 4 comments
Assignees
Labels
Milestone

Comments

@wenns
Copy link
Contributor

wenns commented Nov 15, 2013

The analysis terminates in an uncontrolled way. A better solution is to log a warning and continue.
Samples:
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: Cannot feed the data into sonar, details: 'com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col
{unknown-source}]: [1,0]'
at org.sonar.runner.Runner.delegateExecution(Runner.java:210)
at org.sonar.runner.Runner.execute(Runner.java:84)
at org.sonar.runner.Main.main(Main.java:67)
Caused by: org.sonar.api.utils.SonarException: Cannot feed the data into sonar, details: 'com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}

@ghost ghost assigned wenns Nov 15, 2013
@wenns wenns closed this as completed Nov 15, 2013
@amai2012
Copy link

amai2012 commented Jun 1, 2016

I just see this error with 0.9.5.
Was this ticket supposed to deal with it? Or ist the hint to use -e/-X the best available option?

0:11:35[ 51m12.32s]       [java] 00:11:33.528 INFO  - Parsing 'other' format
00:11:35[ 51m12.32s]       [java] INFO: ------------------------------------------------------------------------
00:11:35[ 51m12.33s]       [java] INFO: EXECUTION FAILURE
00:11:35[ 51m12.33s]       [java] INFO: ------------------------------------------------------------------------
00:11:35[ 51m12.33s]       [java] Total time: 1:10.849s
00:11:35[ 51m12.55s]       [java] Final Memory: 29M/454M
00:11:35[ 51m12.55s]       [java] INFO: ------------------------------------------------------------------------
00:11:35[ 51m12.55s]       [java] ERROR: Error during Sonar runner execution
00:11:35[ 51m12.55s]       [java] ERROR: Unable to execute Sonar
00:11:35[ 51m12.55s]       [java] ERROR: Caused by: Cannot feed the data into sonar, details: 'com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
00:11:35[ 51m12.55s]       [java]  at [row,col {unknown-source}]: [1,38]'
00:11:35[ 51m12.55s]       [java] ERROR: Caused by: Unexpected EOF in prolog
00:11:35[ 51m12.55s]       [java]  at [row,col {unknown-source}]: [1,38]
00:11:35[ 51m12.55s]       [java] ERROR: 
00:11:35[ 51m12.55s]       [java] ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
00:11:35[ 51m12.55s]       [java] ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

@jmecosta
Copy link
Member

jmecosta commented Jun 1, 2016

Is this random or is the file you are trying to parse corrupted? If that's
the case its good that you get exceptions like this

On Wed, 1 Jun 2016 15:28 amai2012, notifications@github.com wrote:

I just see this error with 0.9.5.
Was this ticket supposed to deal with it? Or ist the hint to use -e/-X the
best available option?

0:11:35[ 51m12.32s] [java] 00:11:33.528 INFO - Parsing 'other' format
00:11:35[ 51m12.32s] [java] INFO: ------------------------------------------------------------------------
00:11:35[ 51m12.33s] [java] INFO: EXECUTION FAILURE
00:11:35[ 51m12.33s] [java] INFO: ------------------------------------------------------------------------
00:11:35[ 51m12.33s] [java] Total time: 1:10.849s
00:11:35[ 51m12.55s] [java] Final Memory: 29M/454M
00:11:35[ 51m12.55s] [java] INFO: ------------------------------------------------------------------------
00:11:35[ 51m12.55s] [java] ERROR: Error during Sonar runner execution
00:11:35[ 51m12.55s] [java] ERROR: Unable to execute Sonar
00:11:35[ 51m12.55s] [java] ERROR: Caused by: Cannot feed the data into sonar, details: 'com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
00:11:35[ 51m12.55s] [java] at [row,col {unknown-source}]: [1,38]'
00:11:35[ 51m12.55s] [java] ERROR: Caused by: Unexpected EOF in prolog
00:11:35[ 51m12.55s] [java] at [row,col {unknown-source}]: [1,38]
00:11:35[ 51m12.55s] [java] ERROR:
00:11:35[ 51m12.55s] [java] ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
00:11:35[ 51m12.55s] [java] ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA_jyGUTevQmFxQ-3lRo8zQiHdRbiVPRks5qHXr9gaJpZM4BNlyP
.

@guwirth
Copy link
Collaborator

guwirth commented Jun 1, 2016

Please have a look here: https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Get-debug-information

Other possibility could also be wrong encoding of file?

@guwirth guwirth added this to the M 0.9.5 milestone Jun 1, 2016
@amai2012
Copy link

amai2012 commented Jun 2, 2016

Thanks.
I could not verify the file immediately, it's a temporary artefact in an automatic buildjob and deleted afterwards by default. I've added the debug switches and tonight the job was successful...

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

No branches or pull requests

4 participants