Hi Ealden,

Thanks for your response.
The following is an excerpt of the log messages when lazy="false"

======================================================
    [junit] [po] INFO [main] UserActionTest.testEdit(29) | in testEdit
    [junit] [po] INFO [main] UserActionTest.testEdit(36) | gonna
actionPerform
    [junit] [po] INFO [main] ServletContextSimulator.log(457) |
ActionServlet: init
    [junit] [po] DEBUG [main] UserAction.edit(124) | Entering 'edit' method
    [junit] [po] DEBUG [main] UserAction.edit(141) | confirmed user is the
current user
    [junit] [po] DEBUG [main] UserAction.edit(155) | initialized user
    [junit] [po] DEBUG [main] UserAction.edit(158) | copied properties for
user
    [junit] [po] DEBUG [main] UserAction.edit(160) | confirmPassword set
    [junit] [po] ERROR [main] LazyInitializationException.<init>(19) | could
not initialize proxy - the owning Session was closed
    [junit] org.hibernate.LazyInitializationException: could not initialize
proxy - the owning Session was closed
    [junit] at
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:60)
    [junit] at
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
    [junit] at
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:172)
    [junit] at
com.octasoft.model.Weblog$$EnhancerByCGLIB$$d85df147.getBlogTitle(<generated>)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
    [junit] at java.lang.reflect.Method.invoke(Unknown Source)
    [junit] at
org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
    [junit] at
org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1132)
    [junit] at
org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:259)
    [junit] at
org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:114)
    [junit] at com.octasoft.util.ConvertUtil.convert(ConvertUtil.java:155)
    [junit] at
com.octasoft.util.ConvertUtil.convertLists(ConvertUtil.java:184)
    [junit] at
com.octasoft.webapp.action.BaseAction.convertLists(BaseAction.java:119)
    [junit] at
com.octasoft.webapp.action.UserAction.edit(UserAction.java:163)
    ......
======================================================

My framework is Struts (and Hibernate).


Ealden Esto E. Escañan-2 wrote:
> 
> Hi wnqq
> 
> On 1/15/07, wnqq <[EMAIL PROTECTED]> wrote:
>>
>> Everything works fine except that "ant test-web" fails.
>> Below is the excerpt of the error messages:
>>
> 
> What happens when you turn off lazy initialization (lazy="false")?
> 
> Also, what web framework are you using?  I looked into my copy of
> 1.9.4 with WebWork but the line numbers from your stack trace didn't
> match with what I have.
> 
> -- 
> Ealden Esto E. Escañan
> 

-- 
View this message in context: 
http://www.nabble.com/LazyInitializationException-with-appfuse-1.9.4-tf3014043s2369.html#a8382929
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to