Page 1 of 1

Webservice -error

Posted: Wed Sep 09, 2015 3:52 am
by vijaya
Hi All,

I have written custom webservice . I have generated the client using the wsdl from the service.
I observe below error, when I invoke the service.

2015-09-09 08:20:34,336: ERROR [http-8080-1] org.hibernate.LazyInitializationExce
ption - failed to lazily initialize a collection of role: Mailing.mediatypes, no
session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collecti
on of role: Mailing.mediatypes, no session or session was closed
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitial
izationException(AbstractPersistentCollection.java:358)
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitial
izationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
at org.hibernate.collection.AbstractPersistentCollection.readSize(Abstrac
tPersistentCollection.java:97)
at org.hibernate.collection.PersistentMap.size(PersistentMap.java:114)
at org.agnitas.dao.impl.MailingDaoImpl.getMailing(MailingDaoImpl.java:130
)
at org.agnitas.custom.EmmWebservice.loadTemplate(EmmWebservice.java:197)



Regards,
Vijaya