Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.0.6 GA, 6.1.0 CE RC1
-
Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
-
Component/s: WCM > Web Content Administration
-
Labels:None
-
Environment:Windows Xp Sp3, 2 GB DDR3 RAM, MySql 5.0
-
Branch Version/s:6.0.x
-
Backported to Branch:Committed
-
Similar Issues:
Description
when we try to use com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.search() in web content templates(using velocity) or in plugin portlet. It gives error in console:
ERROR [JDBCExceptionReporter:234] Unknown column 'id' in 'order clause'

The problem is in custom sql i.e journal.xml
com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByC_G_A_V_T_D_C_T_S_T_D_S_R
in this, you will find "ORDER BY id ASC" but in place of "id" there should be "id_" as in JournalArticle table "id" field doesn't exist.