getAckData() produces Stack Over Flow

I’m trying to get the acknowledgement data using getAckData(). But, I keep getting java.lang.StackOverflowError: null.

Would anyone have any clues?

(code and stack from logs pasted below)

def doGet(request, session):
logger = system.util.getLogger(“webdevGet”)
logger.info(’: )’)
alarms = system.alarm.queryJournal(
startDate=‘2017-04-12 07:00:00’,
endDate=‘2017-04-12 08:00:00’,
includeData=False,
includeSystem=False
)
l = len(alarms)
logger.info('length: ’ + str(l))
logger.info('alarms[0]: ’ + str(alarms[0]))
result = {}
columns = [‘Id’,‘AckData’]
rows = []
for alarm in alarms:
row = []
row.append(alarm.getId())
ack = alarm.isAcked()
if ack:
row.append(alarm.getAckData())
rows.append(row)
result[‘columns’] = columns
result[‘rows’] = rows
return {‘json’: result}

(and the stack trace seems to repeat itself)

ServletHandler 12Apr2017 13:14:31 Error for /main/system/webdev/alarms/history
java.lang.StackOverflowError: null

at java.lang.Class.getPackage(Unknown Source)

at org.json.JSONObject.wrap(JSONObject.java:1599)

at org.json.JSONObject.populateMap(JSONObject.java:967)

at org.json.JSONObject.(JSONObject.java:272)

at org.json.JSONObject.wrap(JSONObject.java:1606)

at org.json.JSONObject.populateMap(JSONObject.java:967)

Can you try giving it a journalName in the function call?

I tried journalName=“SQLServer_SQLAuth” which is the name on the status page, and journalName=IgnitionAlarms" which was found on the connection configuration page in the field named “Extra Connection Properties” with the value of “databaseName=IgnitionAlarms”. But, neither work.

There is only one database connection so I don’t know where else to find a name for the journal.

Do you know where it should be found?