Foren

Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to req

thumbnail
Kevary ary, geändert vor 9 Jahren.

Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to req

New Member Beiträge: 5 Beitrittsdatum: 28.03.14 Neueste Beiträge
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?
thumbnail
Andew Jardine, geändert vor 9 Jahren.

RE: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Can you provide a little more in the way of details? what you are doing, when it happened, etc.?
thumbnail
Kevary ary, geändert vor 9 Jahren.

RE: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to

New Member Beiträge: 5 Beitrittsdatum: 28.03.14 Neueste Beiträge
It happens when I try to instantiate service builder persistanceImpl classes... without using a liferay session factory (I'm using localsessionfactory)
thumbnail
Andew Jardine, geändert vor 9 Jahren.

RE: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Are you able to share some of your code?