[commandbox v4.8.0+00059] - Lucee Error (java.lang.NullPointerException)


I’m getting “java.lang.NullPointerException” exception when connecting to MSSQL database with Lucee 5.3.3. (The same code works fine with Lucee 5.2.9). Attached Screen shot for reference.

commandbox 4.8.0
coldbox 5.6.2
cborm 2.3.0

This appears to be coming from the list() method. Can you send code showing how you’re invoking that method?

Also, the full stack trace please.


below is the function call,

function index( event, rc, prc ){
return getInstance( “Clients” )
.list( asQuery=false )
.map( function( item ){
return item.getMemento( includes=“id” );
} );

Facing same “java.lang.NullPointerException” error with SQL query as well. Attached stack trace of ORM and SQLquery of MSSQL DB.

ORMError.txt (14.8 KB)

SQLQuery.txt (5.24 KB)