1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Exception in thread "main" org.springframework.orm.hibernate3.HibernateQueryException: Expected positional parameter count: 2, actual parameters: [11641] [select content_id as {stat.contentid}, count(content_id) as {stat.number} from contentviewed where visitor_id in
(select visitor_id from contentviewed where content_id = ? ) and content_id != ? group by content_id order by
count(content_id) LIMIT 5;]; nested exception is org.hibernate.QueryException: Expected positional parameter count: 2, actual parameters: [11641] [select content_id as {stat.contentid}, count(content_id) as {stat.number} from contentviewed where visitor_id in
(select visitor_id from contentviewed where content_id = ? ) and content_id != ? group by content_id order by
count(content_id) LIMIT 5;]
Caused by: org.hibernate.QueryException: Expected positional parameter count: 2, actual parameters: [11641] [select content_id as {stat.contentid}, count(content_id) as {stat.number} from contentviewed where visitor_id in
(select visitor_id from contentviewed where content_id = ? ) and content_id != ? group by content_id order by
count(content_id) LIMIT 5;]
at org.hibernate.impl.AbstractQueryImpl.verifyParameters(AbstractQueryImpl.java:319)
at org.hibernate.impl.SQLQueryImpl.verifyParameters(SQLQueryImpl.java:201)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:145)
at org.springframework.orm.hibernate3.HibernateTemplate$32.doInHibernate(HibernateTemplate.java:906)
.............
.............. |
Partager