[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5493) java.lang.IllegalArgumentException: Parameter value [org.hibernate.ejb.criteria.expression.ParameterExpressionImpl at c000b6] was not matching type [java.lang.String]

Lukas Jungmann (JIRA) noreply at atlassian.com
Sat Aug 21 05:41:45 EDT 2010


java.lang.IllegalArgumentException: Parameter value [org.hibernate.ejb.criteria.expression.ParameterExpressionImpl at c000b6] was not matching type [java.lang.String]
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HHH-5493
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5493
             Project: Hibernate Core
          Issue Type: Bug
          Components: query-criteria
    Affects Versions: 3.5.2
         Environment: JBossAS 6-M4
            Reporter: Lukas Jungmann
         Attachments: app.zip

-have attached simple JSF/JPA app for JBoss AS
-deploy it on JBoss AS 6 M4
-load the app in a browser (/index.jsf) and click on the login button there

=> in the server log there is:

Caused by: java.lang.IllegalArgumentException: Parameter value [org.hibernate.ejb.criteria.expression.ParameterExpressionImpl at c000b6] was not matching type [java.lang.String]
	at org.hibernate.ejb.AbstractQueryImpl.registerParameterBinding(AbstractQueryImpl.java:360) [:3.5.2-Final]
	at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:359) [:3.5.2-Final]
	at org.hibernate.ejb.criteria.CriteriaQueryCompiler$1$1.bind(CriteriaQueryCompiler.java:194) [:3.5.2-Final]
	at org.hibernate.ejb.criteria.CriteriaQueryCompiler.compile(CriteriaQueryCompiler.java:247) [:3.5.2-Final]
	at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:437) [:3.5.2-Final]
	at org.jboss.jpa.impl.tx.TransactionScopedEntityManager.createQuery(TransactionScopedEntityManager.java:276) [:2.0.0]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_21]

when I switch JPA provider from hibernate to eclipselink, app starts to behave correctly.

I'm sorry if this is wrong place to report this issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list