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

0 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

216 views 0 6
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