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

Hi,

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.

@jclausen

below is the function call,

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

@brad,
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)