Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Amine EL HARRADI
Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to req
May 29, 2014 3:39 PM
Answer

Amine EL HARRADI

Rank: New Member

Posts: 5

Join Date: March 28, 2014

Recent Posts

I got this exception!!!

Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [com.liferay.portal.kernel.dao.orm.SessionFactory] for property 'sessionFactory': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:289)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:154)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:452)
... 41 more

Do you have any solution?
Andrew Jardine
RE: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to
May 29, 2014 3:44 PM
Answer

Andrew Jardine

Community Moderator

Rank: Liferay Legend

Posts: 1216

Join Date: December 22, 2010

Recent Posts

Can you provide a little more in the way of details? what you are doing, when it happened, etc.?
Amine EL HARRADI
RE: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to
May 29, 2014 4:29 PM
Answer

Amine EL HARRADI

Rank: New Member

Posts: 5

Join Date: March 28, 2014

Recent Posts

It happens when I try to instantiate service builder persistanceImpl classes... without using a liferay session factory (I'm using localsessionfactory)
Andrew Jardine
RE: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to
May 30, 2014 1:35 PM
Answer

Andrew Jardine

Community Moderator

Rank: Liferay Legend

Posts: 1216

Join Date: December 22, 2010

Recent Posts

Are you able to share some of your code?