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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

70 views 0 5
Read article

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