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

Marco Bravo July 31, 2013

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

0 votes
Felix Grund (Scandio)
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.
October 25, 2013

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

0 votes
Felix Grund (Scandio)
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.
August 8, 2013

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

0 votes
Taber Loveless
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.
August 7, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events