I can't analyse old projects after migration from 6.7.7 to 7.9.1: ORA-00600: internal error code

Hi,
I’ve migrated from SQ 6.7.7 to 7.9.1
I try to analyse a project using Jenkins, the job finalize ok, but after SonarQube makes the background tasks, it fails. These are the error details from background tasks section (Jenkins don’t display error):

Error Details
org.apache.ibatis.exceptions.PersistenceException: 
### Error updating database.  Cause: java.sql.SQLException: ORA-00600: internal error code, arguments: [koklismem2: insufficient locator len], [0], [86], [], [], [], [], [], [], [], [], []

### The error may exist in org.sonar.db.component.ComponentMapper
### The error may involve org.sonar.db.component.ComponentMapper.updateBEnabledToFalse-Inline
### The error occurred while setting parameters
### SQL: update projects set     b_changed = 1,          deprecated_kee = kee,     b_copy_component_uuid = copy_component_uuid,     b_description = description,     b_enabled = 0,     b_uuid_path = uuid_path,     b_language = language,     b_long_name = long_name,     b_module_uuid = module_uuid,     b_module_uuid_path = module_uuid_path,     b_name = name,     b_path = path,     b_qualifier = qualifier     where     uuid in  (  ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
### Cause: java.sql.SQLException: ORA-00600: internal error code, arguments: [koklismem2: insufficient locator len], [0], [86], [], [], [], [], [], [], [], [], []

	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:199)
	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:67)
	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58)
	at com.sun.proxy.$Proxy26.updateBEnabledToFalse(Unknown Source)
	at org.sonar.db.DatabaseUtils.executeLargeUpdates(DatabaseUtils.java:168)
	at org.sonar.db.DatabaseUtils.executeLargeUpdates(DatabaseUtils.java:149)
	at org.sonar.db.component.ComponentDao.updateBEnabledToFalse(ComponentDao.java:408)
	at org.sonar.ce.task.projectanalysis.step.PersistComponentsStep.disableRemainingComponents(PersistComponentsStep.java:136)
	at org.sonar.ce.task.projectanalysis.step.PersistComponentsStep.execute(PersistComponentsStep.java:112)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:81)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:72)
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:59)
	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:81)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:209)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:191)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:158)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:133)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:85)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.sql.SQLException: ORA-00600: internal error code, arguments: [koklismem2: insufficient locator len], [0], [86], [], [], [], [], [], [], [], [], []

	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)
	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:461)
	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1104)
	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:550)
	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:268)
	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:655)
	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:270)
	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:91)
	at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970)
	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1205)
	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3666)
	at oracle.jdbc.driver.T4CPreparedStatement.executeInternal(T4CPreparedStatement.java:1426)
	at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3778)
	at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1081)
	at org.apache.commons.dbcp2.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:94)
	at org.apache.commons.dbcp2.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:94)
	at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47)
	at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
	at org.apache.ibatis.executor.ReuseExecutor.doUpdate(ReuseExecutor.java:52)
	at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
	at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
	... 25 more
Caused by: Error : 600, Position : 193, Sql = update projects set
    b_changed = 1,
    
    deprecated_kee = kee,
    b_copy_component_uuid = copy_component_uuid,
    b_description = description,
    b_enabled = 0,
    b_uuid_path = uuid_path,
    b_language = language,
    b_long_name = long_name,
    b_module_uuid = module_uuid,
    b_module_uuid_path = module_uuid_path,
    b_name = name,
    b_path = path,
    b_qualifier = qualifier
    where
    uuid in  (  :1  , :2  , :3  , :4  , :5  , :6  , :7  , :8  , :9  , :10  , :11  , :12  , :13  , :14  , :15  , :16  , :17  , :18  , :19  , :20  , :21  , :22  , :23  , :24  , :25  , :26  , :27  , :28  , :29  , :30  , :31  , :32  , :33  , :34  , :35  , :36  , :37  , :38  , :39  , :40  , :41  , :42  , :43  , :44  , :45  , :46  , :47  , :48  , :49  , :50  , :51  , :52  , :53  , :54  , :55  , :56  , :57  , :58  , :59  , :60  , :61  , :62  , :63  , :64  , :65  , :66  , :67  , :68  , :69  , :70  , :71  , :72  , :73  , :74  , :75  , :76  , :77  , :78  , :79  , :80  , :81  , :82  , :83  , :84  , :85  , :86  , :87  , :88  , :89  , :90  , :91  , :92  , :93  , :94  , :95  , :96  , :97  , :98  , :99  , :100  , :101  , :102  , :103  , :104  , :105  , :106  , :107  , :108  , :109  , :110  , :111  , :112  , :113  , :114  , :115  , :116  , :117  , :118  , :119  , :120  , :121  , :122  , :123  , :124  , :125  , :126  , :127  , :128  , :129  , :130  , :131  , :132  , :133  , :134  , :135  , :136  , :137  , :138  , :139  , :140  , :141  , :142  , :143  , :144  , :145  , :146  , :147  , :148  , :149  , :150  , :151  , :152  , :153  , :154  , :155  , :156  , :157  , :158  , :159  , :160  , :161  , :162  , :163  , :164  , :165  , :166  , :167  , :168  , :169  , :170  , :171  , :172  , :173  , :174  , :175  , :176  , :177  , :178  , :179  , :180  , :181  , :182  , :183  , :184  , :185  , :186  , :187  , :188  , :189  , :190  , :191  , :192  , :193  , :194  , :195  , :196  , :197  , :198  , :199  , :200  , :201  , :202  , :203  , :204  , :205  , :206  , :207  , :208  , :209  , :210  , :211  , :212  , :213  , :214  , :215  , :216  , :217  , :218  , :219  , :220  , :221  , :222  , :223  , :224  , :225  , :226  , :227  , :228  , :229  , :230  , :231  , :232  , :233  , :234  , :235  , :236  , :237  , :238  , :239  , :240  , :241  , :242  , :243  , :244  , :245  , :246  , :247  , :248  , :249  , :250  , :251  , :252  , :253  , :254  , :255  , :256  , :257  , :258  , :259  , :260  , :261  , :262  , :263  , :264  , :265  , :266  , :267  , :268  , :269  , :270  , :271  , :272  , :273  , :274  , :275  , :276  , :277  , :278  , :279  , :280  , :281  , :282  , :283  , :284  , :285  , :286  , :287  , :288  , :289  , :290  , :291  , :292  , :293  , :294  ), OriginalSql = update projects set
    b_changed = 1,
    
    deprecated_kee = kee,
    b_copy_component_uuid = copy_component_uuid,
    b_description = description,
    b_enabled = 0,
    b_uuid_path = uuid_path,
    b_language = language,
    b_long_name = long_name,
    b_module_uuid = module_uuid,
    b_module_uuid_path = module_uuid_path,
    b_name = name,
    b_path = path,
    b_qualifier = qualifier
    where
    uuid in  (  ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ), Error Msg = ORA-00600: internal error code, arguments: [koklismem2: insufficient locator len], [0], [86], [], [], [], [], [], [], [], [], []

	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:513)
	... 46 more

  • I’ve tried to analyse the same project from command console in my local machine, but it display same error.
  • I’ve tried to analyse both Java and PHP project with same results.
  • If I try a new project (or a old project with new projectId) SonarQube creates the new project and show the results right.

About the environment:

  • In my local machine I use the ScannerCli 4.0.0.1744. In Jenkins I use the ScannerMaven 3.7.0.1746/3.2.3
  • I’m using Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 (64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management and Unified Auditing options).
  • I use the ojdbc10.jar driver to connect. (Oracle JDBC driver 19.3.0.0.0)

Do you know what the problem could be?

Hi,

I’ve never heard about this error. Searching for it in google, I’ve found this page : https://support.oracle.com/knowledge/Oracle%20Database%20Products/2474129_1.html, that requires an Oracle Support account to get the details.

Appart from this error during the analysis, are you able to display the project in SonarQube ?

Regards

Hi Julien,
thanks to reply.
Yes, I found it too. The owner of the database is my customer, he has to confirm if has the support account.

Appart, yes, I can see the project in SonarQube, and all previous analysis (analysed with previous versions of SonarQube) I can’t see new results since I migrated to 7.9.1.

Ok, then your customer needs to dig deeper into the error as it’s an internal error from Oracle.

Thanks Julien,
we are in touch with Oracle to solve it.

I will reply here the answer in case it’s useful for anyone.

Hi,
if it’s help someone:
The problem was the parameter max_string_size in database. It was setup originally with the value EXTEND, but when it was set up with STANDARD, the problem did not appear.

This thread can close it.