take a look at this Paulie.

http://www.nabble.com/Struts2-Many-to-one-New-Record-Save-problem-%28JSP-Drop-down%29-td23442385s2369.html
http://www.nabble.com/Struts2-Many-to-one-New-Record-Save-problem-%28JSP-Drop-down%29-td23442385s2369.html
 

hope it helps,
Harps.


paulie wrote:
> 
> Hello,
> 
> I wanted to see if someone would please respond to my problem below.  I
> need to make a decision on the approach to take so I can move forward with
> development.
> 
> Thanks
> 
> 
> 
> paulie wrote:
>> 
>> Hello,
>> 
>> I am getting a data access failure on my Struts project when I when
>> attempting to save a change to a select box.  I have another select box
>> working based off a different action and set this one up identically (or
>> so it appears).
>> 
>> 
>> Data Access Failure
>> 
>> identifier of an instance of com.pola.model.Trip was altered from 2 to 3;
>> nested exception is org.hibernate.HibernateException: identifier of an
>> instance of com.pola.model.Trip was altered from 2 to 3 
>> 
>> 
>> I saw a similar issue on the forum and updated the lazyLoadingFilter to
>> add singleSession param:
>> 
>>     <filter>
>>         <filter-name>lazyLoadingFilter</filter-name>
>>        
>> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
>>         
>>         <init-param>
>>             <param-name>singleSession</param-name>
>>             <param-value>false</param-value>
>>         </init-param>         
>>     </filter> 
>>         
>> This did resolve the issue for me and I am now able to save a change from
>> a select box.  The problem now is that I am getting a data access failure
>> when I try to update a profile.
>> 
>> 
>> Data Access Failure
>> 
>> Illegal attempt to associate a collection with two open sessions; nested
>> exception is org.hibernate.HibernateException: Illegal attempt to
>> associate a collection with two open sessions 
>> 
>> Can someone please help me identify the problem I am having with the
>> first approach?  I believe that this would be the best way of handling
>> the situation, but I am open to other suggestions.  I have examined the
>> mappings a few times and they appear to be correct.
>> 
>> Thanks
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Data-Access-Failure-using-select-box-tp25394787s2369p25428230.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to