Error when using pocket sql in a 'public' page.

If no user is logged in, the page shows "Error rendering macro 'pocketquery' : null" instead of the SQL result.

2013-08-01 12:54:15,916 ERROR [TP-Processor114] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: pocketquery
-- url: /display/SPACE/PAGE | page: 786439 | userName: anonymous | referer: https://xxxx/display/xxxxxx | action: viewpage
java.lang.NullPointerException
at de.scandio.confluence.plugins.pocketquery.macros.PocketQueryMacro.createAdditionalParamsMap(PocketQueryMacro.java:369)
at de.scandio.confluence.plugins.pocketquery.macros.PocketQueryMacro.proceed(PocketQueryMacro.java:179)
at de.scandio.confluence.plugins.pocketquery.macros.PocketQueryMacro.execute(PocketQueryMacro.java:117)
at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:51)
at com.atlassian.confluence.macro.V2CompatibilityMacro.execute(V2CompatibilityMacro.java:40)
at com.atlassian.confluence.macro.LazyLoadingMacroWrapper.execute(LazyLoadingMacroWrapper.java:27)
at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:88)
at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:24)
at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:27)
at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:106)
at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:43)
at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:41)
at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:53)
at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.render(DefaultRenderer.java:80)
at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.render(DefaultRenderer.java:68)
at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.render(DefaultRenderer.java:58)
at com.atlassian.confluence.content.render.xhtml.DeviceTypeAwareRenderer.render(DeviceTypeAwareRenderer.java:42)

3 answers

This widget could not be displayed.
This widget could not be displayed.

Hallo both,

sorry, I saw this post a little late. I'm the developer of the PocketQuery, thank you for your interest in our plugin! We are currently assuming a logged-in user within the macro code, since we did not expect the requirement of anonymous users using the macro.

I will fix this with the new release, such that the macro can be used as anonymous user as well and I'll let you know here when the new version is available. Thank you for your patience!

In the meanwhile, I'd be very happy if you left some feedback for the Plugin at the Marketplace :).

Regards,
Felix

This widget could not be displayed.

I know, this took very long, but find our new release now at the Atlassian Marketplace. The new version solves this problem.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

531 views 3 19
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