Content Survey and Reporting Plugin: Error message when trying to use survey macro

Eric Riddle July 10, 2012
The Content Survey and Reporting Plugin does everything a lot of things we want for our new Confluence-based knowledgebase, but I'm having a really tough time getting it set up.
I finally have it installed, but now when I put the survey macro on a page, I get the following error:
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 -------------------------------
Anyone have any helpful hints?
Added a 10 Karma bounty. I'd like to get this fixed.

I'll also acccept an answer for a suitable alternative plug-in with the same or similar feature set.

6 answers

1 accepted

1 vote
Answer accepted
Alejandro Conde Carrillo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2013

Sorry about that. I didn't realize that location was not public. Here is a link to the version which will hopefully be released soon: Download link.

Edit: The plugin has been released in the Atlassian Marketplace :)

Joshua Thompson March 19, 2013

Thanks Alex. I've installed this version and the plugin appears to be functioning correctly.

Eric Riddle March 19, 2013

It may be some time before I have a chance to test this, but I will mark this as the accepted answer because someone else successfully tested it.

0 votes
Vidal Abad June 24, 2013

Hi I'm using confluence 5.1.3 and using pluging version 1.3.2.

I'm getting the following error in preview:

Error rendering macro 'kbsurvey' : null

Vidal Abad June 24, 2013

i figured out that if i edited the default question the plugin started to work (just saving the config with no changes did not work).

Vidal Abad June 25, 2013

survey does not seem to be working on any space home pages.

Jeremy Largman
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2013

What's not working - is it giving an error?

Vidal Abad June 25, 2013

My appologies, survey is working on the space home page, it was a cache issue causing the survey to not display.

0 votes
Alejandro Conde Carrillo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2013

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 :)

Joshua Thompson March 14, 2013

Hi Alex, I'm not able to download this plugin. When I get there I have to sign in, and I did so from my personal BitBucket account but it says I do not have access to that repository.

Is that download private or am I doing something wrong?

0 votes
Jeremy Largman
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2013

Hi Eric,

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.

Eric Riddle February 10, 2013

Thank you Jeremy. I will give this a shot and report back, although it could be a few weeks before I get the chance.

Joshua Thompson March 12, 2013

We've updated to v1.3 and are getting the same issue reported by Eric.

0 votes
CharlesH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2012

Hi,

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.

Regards,

Charles

Eric Riddle July 11, 2012

I've tried the 1.1-SHAPSHOT version as well, actually. Same problem.

I'll pass the mySQL setup link along to our IT group and see if that helps. If it does I'll approve this answer. ;)

Eric Riddle July 12, 2012

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.

0 votes
CharlesH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2012
Hi Eric, which version of Confluence and of the plugin are you using? I've not seen that issue before. How many questions have you defined for the survey in your test space? I'd suggest making sure you add one more to the default question as a test. If that doesn't help then you could try resetting the survey via Space Admin.
Eric Riddle July 11, 2012

Confluence 4.2.6

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events