Unable to export project in SonarQube 10.2

After upgrade to sonarqube 10.2, i can not export a project.
Error:

ava.lang.IllegalStateException: Issue export failed after processing 0 issues successfully
	at org.sonar.ce.task.projectexport.issue.ExportIssuesStep.execute(ExportIssuesStep.java:122)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:79)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:70)
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:57)
	at org.sonar.ce.task.projectexport.ProjectExportProcessor.process(ProjectExportProcessor.java:35)
	at org.sonar.ce.task.projectexport.taskprocessor.ProjectExportTaskProcessor.processProjectExport(ProjectExportTaskProcessor.java:63)
	at org.sonar.ce.task.projectexport.taskprocessor.ProjectExportTaskProcessor.process(ProjectExportTaskProcessor.java:49)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:75)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The requested operation is not supported on forward only result sets.
	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:237)
	at com.microsoft.sqlserver.jdbc.SQLServerResultSet.throwNotScrollable(SQLServerResultSet.java:522)
	at com.microsoft.sqlserver.jdbc.SQLServerResultSet.verifyResultSetIsScrollable(SQLServerResultSet.java:542)
	at com.microsoft.sqlserver.jdbc.SQLServerResultSet.isFirst(SQLServerResultSet.java:1268)
	at com.zaxxer.hikari.pool.HikariProxyResultSet.isFirst(HikariProxyResultSet.java)
	at org.sonar.ce.task.projectexport.issue.ExportIssuesStep.execute(ExportIssuesStep.java:108)
	... 21 more

Hi AndresCo,

I think it is related to the following bug that was fixed in SonarQube 10.3

1 Like

I can confirm that the project export for Sonarqube 10.3 Enterprise works when using a MSSQL database.

2 Likes