Misleading PQ error message


We just had a problem with network connectivity between Confluence and DB server, the PQ Admin DB connection check says [Network error IOException: No route to host], but the queries show

PocketQuery experienced an error!

There were errors executing this statement. Please check whether the following parameters are given: [static_username, projekt_nr]. If the parameters are correct, something must be wrong with the query or the database connection. For inspection, please use the debug mode in the macro or contact your administrator.

So all the users are asking me as the one responsible for the queries what happened J

Would it be possible to show a more informative error in the query results?


1 answer

This widget could not be displayed.


Thank you for your request and continued interest in PocketQuery! Unfortunately I have to tell you that this is currently not possible. More technically, the root cause of this error is a java.sql.SQLException when the query is executed with org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForList. This SQLException can be of many many different kind which we didn't want to handle specifically. Otherwise we'd have to implement something like "if the sql exception is of this kind, show this error...". And we don't want to show the exception message to "simple" Confluence users because it is too technical. That's why we wrote "something must be wrong with the query or the database connection if the parameters are given". I think in your case it's totally OK that they contact you because you seem to be the responsible for PocketQuery and you already found out that it has to do with the database connection. So in my opinion it's totally ok as it went in your case...

But in general I'm always open to ideas for improvement wink

Regards, Felix (Scandio)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

92 views 0 8
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