# getAckData() produces Stack Over Flow

**URL:** <https://forum.inductiveautomation.com/t/getackdata-produces-stack-over-flow/14031>\
**Category:** Ignition\
**Created:** [April 12, 2017, 6:27pm UTC](https://forum.inductiveautomation.com/t/getackdata-produces-stack-over-flow/14031 "2017-04-12T18:27:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adolfo.rafael.martin](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@adolfo.rafael.martin](https://forum.inductiveautomation.com/u/adolfo.rafael.martin)\
**Post date:** [April 12, 2017, 6:27pm UTC](https://forum.inductiveautomation.com/t/getackdata-produces-stack-over-flow/14031/1 "2017-04-12T18:27:48Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [April 12, 2017, 7:52pm UTC](https://forum.inductiveautomation.com/t/getackdata-produces-stack-over-flow/14031/2 "2017-04-12T19:52:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adolfo.rafael.martin](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@adolfo.rafael.martin](https://forum.inductiveautomation.com/u/adolfo.rafael.martin)\
**Post date:** [April 13, 2017, 7:59pm UTC](https://forum.inductiveautomation.com/t/getackdata-produces-stack-over-flow/14031/3 "2017-04-13T19:59:17Z")

</div>

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?
