Bug 1272981 - SQLGrammarException when executing task query operations on various DBs
Summary: SQLGrammarException when executing task query operations on various DBs
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER5
: 6.2.0
Assignee: Shelly McGowan
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1265725 1283109 1295537
TreeView+ depends on / blocked
 
Reported: 2015-10-19 11:11 UTC by Tomas Livora
Modified: 2020-03-27 19:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:43:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Oracle 12c (10.77 KB, text/plain)
2015-10-19 11:11 UTC, Tomas Livora
no flags Details
PostgreSQL 8.4 (10.44 KB, text/plain)
2015-10-20 12:51 UTC, Tomas Livora
no flags Details
IBM DB2 9.7 (10.53 KB, text/plain)
2015-10-20 12:52 UTC, Tomas Livora
no flags Details
Microsoft SQL Server 2012 (10.70 KB, text/plain)
2015-10-23 09:05 UTC, Tomas Livora
no flags Details

Description Tomas Livora 2015-10-19 11:11:04 UTC
Created attachment 1084335 [details]
Oracle 12c

Description of problem:
When you try to execute some task query operations (either using REST or SOAP interface) on Oracle database, you will get SQLGrammarException.

Version-Release number of selected component (if applicable):
6.2.0 ER4

Steps to Reproduce:
1. Run some process with a task.
2. Try to call for example http://localhost:8080/business-central/rest/query/task?processInstanceId=1
3. See the response

Actual results:
java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression

Expected results:
No exception and valid result.

Additional info:
This bug was probably introduced when trying to fix bug 1265725.

Comment 1 Tomas Livora 2015-10-20 12:48:57 UTC
It seems that this problem is not only present on Oracle but also on other DBs. So far I have identified problems on these databases:

IBM DB2 9.7
Oracle 12c
Oracle 11g R2
PostgreSQL 8.4

Comment 2 Tomas Livora 2015-10-20 12:51:53 UTC
Created attachment 1084737 [details]
PostgreSQL 8.4

Comment 3 Tomas Livora 2015-10-20 12:52:40 UTC
Created attachment 1084738 [details]
IBM DB2 9.7

Comment 5 Tomas Livora 2015-10-23 09:05:29 UTC
Created attachment 1085750 [details]
Microsoft SQL Server 2012

The same problem can be seen on MSSQL. There seems to be no problems on other databases that were not mentioned above (except of Oracle 11g R2 RAC which is currently blocked and would probably behave the same way as other versions of Oracle database).

Comment 6 Marco Rietveld 2015-10-28 02:45:08 UTC
Fixed. Commits: 

6.3.x: 
https://github.com/droolsjbpm/jbpm/commit/4b9cf010

master; 
https://github.com/droolsjbpm/jbpm/commit/0987f956

Comment 7 Marco Rietveld 2015-10-28 09:47:57 UTC
These commits were also part of the fix: 

6.3.x: 
https://github.com/droolsjbpm/droolsjbpm-integration/commit/30b35244

master: 
https://github.com/droolsjbpm/droolsjbpm-integration/commit/df5e8743

Comment 8 Tomas Livora 2015-11-06 10:23:03 UTC
Verified on BPMS 6.2.0 ER5


Note You need to log in before you can comment on or make changes to this bug.