Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Crowd import User from JIRA PreparedStatementCallback; bad SQL grammar

Frank Kubis December 19, 2014

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
Answer accepted
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2014

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

Frank Kubis December 29, 2014

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
TAGS
AUG Leaders

Atlassian Community Events