Crowd import User from JIRA PreparedStatementCallback; bad SQL grammar

Trying to import user from exsisting usign the importer getting this exception:

org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT usr.user_name AS user_name, grp.group_name AS group_name FROM cwd_membership mem INNER JOIN cwd_group grp ON mem.parent_id = grp.id INNER JOIN cwd_user usr ON mem.child_id = usr.ID WHERE membership_type = 'GROUP_USER' AND usr.directory_id = ?]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'membership_type' in 'where clause'

Crowd 2.8.0 (Build:#645 - 2014-11-05)
JIRA v6.3.9#6339-sha1:46fa261
MySQL 14.14 Distrib 5.5.40
Debian 7.7

I guess its a bug, couse it a bad sql gramma. But I was recommended to write here first

1 answer

1 accepted

Hi Frank,

I wasn't able to find any bug report for the error you have stated. Would be possible to describe the exact steps that you performed so we can try to replicate here locally and open a bug report?

Cheers,

Rodrigo

Hi Rodrigo, I dont know why and how. But after restart both it works. Thanks :)

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

50 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot