Problem with AS400 driver with SQL for Confluence plugin

Hi,

We use the SQL for Confluence plugin. We set up a DataSource for an AS400/DB2 database which is in V7R1.

The Datasource configuration is as follows : 

<Resource name="jdbc/AS400DS" maxWait="-1" maxIdle="10" maxActive="20" password="*******" username="bi" url="jdbc:as400://as400inf;prompt=false;translate binary=true; extended metadata=true" driverClassName="com.ibm.as400.access.AS400JDBCDriver" type="javax.sql.DataSource" auth="Container"/>

 

When using the {sql-query} macro, we get this error : 

Erreur du rendu de la macro 'sql-query' : com.ibm.as400.access.AS400JDBCConnection.isValid(I)Z

Any advice?

Thanks

Stéphane

2 answers

This widget could not be displayed.

Add a select 1 validation query to your configuration. See Data source configuration - application server for how that looks in a configuration.

This widget could not be displayed.

Hi Bob,

It seems we are moving foward on this problem.

We still have a problem : Erreur du rendu de la macro 'sql-query' : java.sql.SQLException: Cannot create PoolableConnectionFactory ([SQL0104] Elément syntaxique <FIN-INSTRUCTION> n'est pas correct. Eléments possibles : + - AS <IDENTIFIER>.)

I think the important info is  : Cannot create PoolableConnectionFactory. We checked the SQL query and it's working fine with the DB client (select NAME from METADATA.BI_ACTIONS).

Do you think it could come from the datasource configuration?

Thanks

Stéphane

"Cannot create PoolableConnectionFactory" is coming from the application server (Tomcat) trying to use your configuration to connect to the database. I suspect your recent addition of the validation query may have a syntax problem???

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
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

195 views 18 7
Join discussion

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