L'errore non riguarda string o String ma questo tipo di assegnamento che non è consentito:

String codice=new string(${row.CODICE});



L'errore indicato è il seguente:

Generated servlet error:
Syntax error on token "$", AssignmentOperator expected after this token


Grazie!

Ale