TIBCO BusinessEvents engine throws a NullPointerException when the result set is empty and using Null as resultTypeURI in function Database.createQuery() function. p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-ali

TIBCO BusinessEvents engine throws a NullPointerException when the result set is empty and using Null as resultTypeURI in function Database.createQuery() function. p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-ali

book

Article ID: KB0089537

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
TIBCO BusinessEvents engine throws NullPointerException when the result set is empty and using Null as resultTypeURI in function Database.createQuery() function.
p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-align: left; widows: 2; orphans: 2; }p.western { font-family: "Calibri",serif; font-size: 11pt; }p.cjk { font-family: "AR PL UKai CN"; font-size: 11pt; }p.ctl { font-size: 11pt; }p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-align: left; widows: 2; orphans: 2; }p.western { font-family: "Calibri",serif; font-size: 11pt; }p.cjk { font-family: "AR PL UKai CN"; font-size: 11pt; }p.ctl { font-size: 11pt; }
Symptoms:
p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-align: left; widows: 2; orphans: 2; }p.western { font-family: "Calibri",serif; font-size: 11pt; }p.cjk { font-family: "AR PL UKai CN"; font-size: 11pt; }p.ctl { font-size: 11pt; }

Error [/Processor/Channels/JMSChannel/EPrOrdSchedulerChannel/In.Thread.9] - [modules.db] [BEMSOF_EPro_IE] Exception in getNextPage

java.lang.NullPointerException

at com.tibco.cep.modules.db.functions.cursor.DatabaseCursorImpl.getQueryData(SourceFile:119)

at com.tibco.cep.modules.db.functions.cursor.ResultSetDatabaseCursor.getNextRows(SourceFile:112)


Cause:
p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-align: left; widows: 2; orphans: 2; }p.western { font-family: "Calibri",serif; font-size: 11pt; }p.cjk { font-family: "AR PL UKai CN"; font-size: 11pt; }p.ctl { font-size: 11pt; }

Defect #BE-20310

Issue/Introduction

TIBCO BusinessEvents engine throws a NullPointerException when the result set is empty and using Null as resultTypeURI in function Database.createQuery() function. p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-align: left; widows: 2; orphans: 2; }p.western { font-family: "Calibri",serif; font-size: 11pt; }p.cjk { font-family: "AR PL UKai CN"; font-size: 11pt; }p.ctl { font-size: 11pt; }

Resolution

p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 10); line-height: 120%; text-align: left; widows: 2; orphans: 2; }p.western { font-family: "Calibri",serif; font-size: 11pt; }p.cjk { font-family: "AR PL UKai CN"; font-size: 11pt; }p.ctl { font-size: 11pt; }

This has been fixed in TIBCO BusinessEvents 5.1.2 HotFix1. With older versions, use “Map” as resultTypeURI as a workaround.