Error rendering macro 'kbsurvey' : Cannot construct com.atlassian.confluence.plugins.knowledgebase.config.SurveyQuestion as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct com.atlassian.confluence.plugins.knowledgebase.config.SurveyQuestion as it does not have a no-args constructor line number : 7 path : /surveyconfig/questionMap/entry/surveyquestion cause-message : Cannot construct com.atlassian.confluence.plugins.knowledgebase.config.SurveyQuestion as it does not have a no-args constructor class : com.atlassian.confluence.plugins.knowledgebase.config.SurveyConfig cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException required-type : com.atlassian.confluence.plugins.knowledgebase.config.SurveyQuestion -------------------------------
Content Survey and Reporting Plugin 1.1
I cannot define any test questions now, either.
When I first installed I left the default "was this useful?" question and added one for "was it well-written?"
I then went to a page and added the macro and began to get the "no-augs constructor" error you see above.
Now I can't get back to the survey pages. When I go to the Space Admin page and click either of the Survey options, I get an error page that has the same "no-augs constructor" error message.
I tried uninstalling and re-installing the plugin today, but it did no good.
We're using Confluence 4.2.1 and the exact text of the Content Survey & Reporting Plugin (listed as Knowledge Base Survey Plugin in the admin screen) is 1.1-SNAPSHOT.
We ended up with this version after witnessing the issue described here: https://studio.plugins.atlassian.com/browse/CKBSP-27
The JAR file attached to that issue is for mySQL only. From your earlier question I know that you're using that database so it may be worth trying that specific version of the plugin. However, that's your call of course! There don't seem to be any issues listed in Jira for this plugin and the keyword "no-args constructor".
It might also be worth checking that your mySQL database is set-up along the lines recommended by Atlassian (https://confluence.atlassian.com/display/DOC/Database+Setup+For+MySQL). The options for character encoding (UTF8), case sensitivity and InnoDB are important ones and may have a bearing on what you're seeing with this plugin.
Sadly, none of the above worked.
We checked the database against the setup for MySQL page (and the associated common issues page) and did fix one or two little things.
However, that did not fix the Survey plugin. Still getting the no-augs constructor error.
I tried both the regular and the -SNAPSHOT version of the plugin.
Are there other plugins that duplicate some or all of the functionality of the survey plugin? We mostly just want to insert a short questionnaire on each page and have a way to check on the results in a centralized location.
The other features of the survey function (like macros to list helpful pages) were just gravy. Tasty, but not required.
Sorry it took me so long to see this question! We're just about to release a new version - 1.3 - which uses ActiveObjects for the data storage. You can download a copy of it here. We didn't fix any bug like the one you're reporting here, but it'll at least eliminate the confusion around which version, as it's database agnostic.
If you still have that problem in 1.3, we'll add a no-args constructor to that object. I'm puzzled by why I can't replicate it, but no matter, it should be an easy enough fix.
This is a problem with the old plugin and Java 7. It is fixed in the latest version I am working on and it should be released soon.
I have uploaded a beta of the plugin which should fix the problem. It is compatible with Confluence 4.3 and later.
Enjoy it and any feedback is welcomed :)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community, Jessica here from the Confluence Product Marketing team! July’s community challenge is all about sharing pictures — and as an extension of our first post on what ...
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!
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