Announcement Announcement Module
Collapse
No announcement yet.
batch process throwing initalizingException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • batch process throwing initalizingException

    hi all,

    in my spring batch application, i'm using an hibernate
    Code:
    org.springframework.batch.item.database.HibernatePagingItemReader
    aloong with a
    Code:
    org.springframework.batch.item.database.orm.HibernateNativeQueryProvider
    to extract data from a database. with the sqlString i'm doing a fech join to eagerly fetch all needed data but when the processor begin it's prosses it throws
    Code:
    [LazyInitializationException] - failed to lazily initialize a collection of role: my.domain.Bean.BeanCollection, no session or session was closed
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: my.domain.Bean.BeanCollection, no session or session was closed
    although i annotated the
    Code:
    @Transactional(propagation = Propagation.REQUIRES_NEW, readOnly = true)
    	public BeanDomain process(Bean cim) throws Exception
    it keep on throwing the exception i don't know how to get ride of it.
    can suggestions are appreciated
    thanks.
Working...
X