Issue Details (XML | Word | Printable)

Key: ABICLOUD-351
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Albert Puig
Reporter: Xavier Fernandez
Votes: 0
Watchers: 0
Operations

Email this issue
Send issue summary in email
If you were logged in you would be able to see more operations.
Abiquo

I can't delete an Image

Created: 29/Nov/09 07:20 AM   Updated: 03/Dec/09 06:42 AM   Resolved: 30/Nov/09 11:28 AM
Component/s: Appliances Library
Affects Version/s: abicloud-1.0.0-RC2
Fix Version/s: abicloud-1.0.0-RC2

Time Tracking:
Not Specified


 Description  « Hide
If I access to abiCloud test environment and I try to delete some of the MW bundle images, appears A message saying that I can't delete the image.

Seams that there is a problem with the sessions:


009-11-29 07:11:46,376 INFO [http-5050-8] c.a.a.r.i.OVFIndex [OVFIndex.java:756] ovfId[http://192.168.6.45:5050/rs/mw/mw.ovf], diskId[1259391202913-snapshot-AbiquoMW.vdi], diskExtension:vmx-04
07:11:46.380 INFO c.a.a.client.ApplianceManagerClient - return code [200] to path [/deleteDisk/]
07:11:46.383 ERROR com.abiquo.util.AbiCloudError - Virtual Appliance error: A HiberateException has occurred while deleting a virtual image.[Error code:ABI-S009 Timestamp:1259475106]. Virtual Appliance error:

Error Code: ABI-S009
Error ID: 1259475106.
org.hibernate.SessionException: Session is closed!
        at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
        at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:789) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
        at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:771) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
        at sun.reflect.GeneratedMethodAccessor849.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_10]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_10]
        at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
        at $Proxy39.delete(Unknown Source) [na:na]
        at com.abiquo.abiserver.commands.VirtualImageCommand.deleteVirtualImage(VirtualImageCommand.java:455) [VirtualImageCommand.class:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_10]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_10]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_10]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_10]
        at com.abiquo.abiserver.commands.BasicCommand.onExecute(BasicCommand.java:376) [BasicCommand.class:na]
        at com.abiquo.abiserver.commands.BasicCommand.execute(BasicCommand.java:217) [BasicCommand.class:na]
        at com.abiquo.abiserver.commands.BasicCommand.execute(BasicCommand.java:260) [BasicCommand.class:na]
        at com.abiquo.abiserver.services.flex.VirtualImageService.deleteVirtualImage(VirtualImageService.java:181) [VirtualImageService.class:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_10]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_10]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_10]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_10]
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:406) [flex-messaging-remoting-3.0.jar:3.0.0.544]
        at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183) [flex-messaging-remoting-3.0.jar:3.0.0.544]
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1417) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:878) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:49) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274) [flex-messaging-core-3.0.jar:3.0.0.544]
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377) [flex-messaging-core-3.0.jar:3.0.0.544]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:na]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:na]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [catalina.jar:na]
        at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20) [Tomcat55AgentValve.class:na]
        at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20) [Tomcat55AgentValve.class:na]
        at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20) [Tomcat55AgentValve.class:na]
        at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20) [Tomcat55AgentValve.class:na]
        at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20) [Tomcat55AgentValve.class:na]
        at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20) [Tomcat55AgentValve.class:na]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:na]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:na]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) [catalina.jar:na]
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) [tomcat-coyote.jar:na]
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [tomcat-coyote.jar:na]
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) [tomcat-coyote.jar:na]
        at java.lang.Thread.run(Thread.java:619) [na:1.6.0_10]


Albert Puig added a comment - 30/Nov/09 11:28 AM
Problem on the utilization of the Hibernate SessionFactory from HibernateUtils and DAOFactory on the same method.