ActiveObjects saves nulls

Hi,

I'm writing a plugin, it using ActiveObjects, my plugin works fine(saving and retrieving values) with HSQL db(If I invoke it from atlassian sdk using atlas-run). But when I move the plugin to same version JIRA of other instance(using mysql), the save operation stores null values in all the columns of AO* table:

+----+-------------------------------+---
| ID | TEST1 | TEST2 | TEST3 |
+----+-------------------------------+---
|  1 |  NULL |  NULL |  NULL |
|  2 |  NULL |  NULL |  NULL |

Could you please let me know where I'm missing?

Thanks a million!

2 answers

When I've had that happen it indicates you may not have saved your entities, or there is something up with your plugin, check logs? I test against postgres and mysql, each does work (you dont specific a product, so Im assuming JIRA)

That does not mean there is not a bug on MySQL and ActiveObjects working on an specific versions of JIRA.

Just the same bug than @chintu926 on JIRA + MySQL (and probably @Nabil too) has been reported for one of my plug-ins using Active Objects... and, for example, I've found this bug reported by an user trying to use the Tempo add-on:

https://tempoplugin.jira.com/browse/JTMPO-795

According to that user, a problem with ActiveObjects was not related to the plug-in. It was related to ActiveObjects working with MySQL on JIRA. After he upgraded JIRA, the problem was resolved and the plug-in worked fine.

Did you ever get that sorted out?

I also have the problem that save() leaves the columns at null.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 23 hours ago in Featured Groups

Are you managing your users efficiently?

Hi everyone, I am Marek, a Senior Product Manager for Crowd   Server and Data Center   here at Atlassian. I would like to spark a discussion about challenges you have with managing use...

93 views 1 3
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you