# getClass produces blank

**URL:** <https://forum.inductiveautomation.com/t/getclass-produces-blank/14058>\
**Category:** Ignition\
**Created:** [April 14, 2017, 5:13pm UTC](https://forum.inductiveautomation.com/t/getclass-produces-blank/14058 "2017-04-14T17:13:17Z")\
**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 14, 2017, 5:13pm UTC](https://forum.inductiveautomation.com/t/getclass-produces-blank/14058/1 "2017-04-14T17:13:17Z")

</div>

I’m trying to better understand things by printing their class or type.  
But, when I try to print result of getClass() in the code below, I get a blank.

What could I be doing wrong?

```
alarms = system.alarm.queryJournal(
   startDate='2017-04-12 07:00:00', 
   endDate='2017-04-12 08:00:00',
   includeData=False,
   includeSystem=False
)
alarmsInJava = alarms.getDataset()
logger.info('getClass of alarmsInJava: ' + str(alarmsInJava.getClass()))
```

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [April 14, 2017, 6:46pm UTC](https://forum.inductiveautomation.com/t/getclass-produces-blank/14058/2 "2017-04-14T18:46:13Z")

</div>

See if this helps instead:

```python
logger.infof('type of alarmsInJava: %s', type(alarmsInJava). __name__ )

```

---

<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 14, 2017, 6:50pm UTC](https://forum.inductiveautomation.com/t/getclass-produces-blank/14058/3 "2017-04-14T18:50:07Z")

</div>

> [@kcollins](#):
>
> type(alarmsInJava). **name**

Yes. Thank you very much.
