Petals ESB Container

Unable to detach a container previously attached without restarting it

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 5.0.0
  • Fix Version/s: 5.0.1
  • Component/s: Topology/network
  • Security Level: Public
  • Description:
    Hide

    Attach a container to a target topology. Next, detach this container without restarting it. The detachment fails with the following error:

    target-container-1 2015/11/16 18:37:21,690 GMT+0100 WARNING [Petals.Communication.TopologyService] : An error occurs detaching the container from its current domain
    org.ow2.petals.clientserverapi.topology.exception.DetachContainerException: Can't detach the current container from its domain: An error occurs persisting the topology definition in file '/home/cdeneux/workspace/petals-integration/tests/petals-cli-move-container/launcher-moving-new-container-to-an-existing-topology/target/launcher-moving-new-container-to-an-existing-topology/target-topology/container-2/data/work/topology.xml'.
    	at org.ow2.petals.microkernel.communication.topology.TopologyServiceImpl.detachContainer(TopologyServiceImpl.java:643)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    	at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1249)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1243)
    	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1081)
    	at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203)
    	at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
    	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
    	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1491)
    	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
    	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1332)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1431)
    	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:852)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    	at sun.rmi.transport.Transport$2.run(Transport.java:202)
    	at sun.rmi.transport.Transport$2.run(Transport.java:199)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: org.ow2.petals.microkernel.api.configuration.exception.ConfigurationException: An error occurs persisting the topology definition in file '/home/cdeneux/workspace/petals-integration/tests/petals-cli-move-container/launcher-moving-new-container-to-an-existing-topology/target/launcher-moving-new-container-to-an-existing-topology/target-topology/container-2/data/work/topology.xml'.
    	at org.ow2.petals.microkernel.configuration.ConfigurationServiceImpl.persistTopology(ConfigurationServiceImpl.java:1156)
    	at org.ow2.petals.microkernel.api.configuration.ConfigurationServiceInterceptorLC1a2eb783.persistTopology(ConfigurationServiceInterceptorLC1a2eb783.java:168)
    	at org.ow2.petals.microkernel.api.configuration.ConfigurationServiceFcItf.persistTopology(ConfigurationServiceFcItf.java:59)
    	at org.ow2.petals.microkernel.communication.topology.TopologyServiceImpl.detachContainer(TopologyServiceImpl.java:601)
    	... 48 more
    Caused by: org.ow2.petals.topology.TopologyException: Failed to write local topology on disk
    	at org.ow2.petals.topology.TopologyBuilder.marshallTopologyFile(TopologyBuilder.java:231)
    	at org.ow2.petals.microkernel.configuration.ConfigurationServiceImpl.persistTopology(ConfigurationServiceImpl.java:1154)
    	... 51 more
    Caused by: javax.xml.bind.MarshalException
     - with linked exception:
    [com.sun.istack.SAXException2: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    javax.xml.bind.JAXBException: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.]
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:326)
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)
    	at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:103)
    	at org.ow2.petals.topology.TopologyBuilder.marshallTopologyFile(TopologyBuilder.java:229)
    	... 52 more
    Caused by: com.sun.istack.SAXException2: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    javax.xml.bind.JAXBException: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:250)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:265)
    	at com.sun.xml.bind.v2.runtime.property.ArrayReferenceNodeProperty.serializeListBody(ArrayReferenceNodeProperty.java:122)
    	at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:159)
    	at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:356)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:700)
    	at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:158)
    	at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:356)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:700)
    	at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:158)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:161)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:205)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:333)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:340)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:76)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:498)
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)
    	... 55 more
    Caused by: javax.xml.bind.JAXBException: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:587)
    	at com.sun.xml.bind.v2.runtime.property.ArrayReferenceNodeProperty.serializeListBody(ArrayReferenceNodeProperty.java:112)
    	... 69 more
    Show
    Attach a container to a target topology. Next, detach this container without restarting it. The detachment fails with the following error:
    target-container-1 2015/11/16 18:37:21,690 GMT+0100 WARNING [Petals.Communication.TopologyService] : An error occurs detaching the container from its current domain
    org.ow2.petals.clientserverapi.topology.exception.DetachContainerException: Can't detach the current container from its domain: An error occurs persisting the topology definition in file '/home/cdeneux/workspace/petals-integration/tests/petals-cli-move-container/launcher-moving-new-container-to-an-existing-topology/target/launcher-moving-new-container-to-an-existing-topology/target-topology/container-2/data/work/topology.xml'.
    	at org.ow2.petals.microkernel.communication.topology.TopologyServiceImpl.detachContainer(TopologyServiceImpl.java:643)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    	at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1249)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1243)
    	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1081)
    	at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203)
    	at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
    	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
    	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1491)
    	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
    	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1332)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1431)
    	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:852)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    	at sun.rmi.transport.Transport$2.run(Transport.java:202)
    	at sun.rmi.transport.Transport$2.run(Transport.java:199)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: org.ow2.petals.microkernel.api.configuration.exception.ConfigurationException: An error occurs persisting the topology definition in file '/home/cdeneux/workspace/petals-integration/tests/petals-cli-move-container/launcher-moving-new-container-to-an-existing-topology/target/launcher-moving-new-container-to-an-existing-topology/target-topology/container-2/data/work/topology.xml'.
    	at org.ow2.petals.microkernel.configuration.ConfigurationServiceImpl.persistTopology(ConfigurationServiceImpl.java:1156)
    	at org.ow2.petals.microkernel.api.configuration.ConfigurationServiceInterceptorLC1a2eb783.persistTopology(ConfigurationServiceInterceptorLC1a2eb783.java:168)
    	at org.ow2.petals.microkernel.api.configuration.ConfigurationServiceFcItf.persistTopology(ConfigurationServiceFcItf.java:59)
    	at org.ow2.petals.microkernel.communication.topology.TopologyServiceImpl.detachContainer(TopologyServiceImpl.java:601)
    	... 48 more
    Caused by: org.ow2.petals.topology.TopologyException: Failed to write local topology on disk
    	at org.ow2.petals.topology.TopologyBuilder.marshallTopologyFile(TopologyBuilder.java:231)
    	at org.ow2.petals.microkernel.configuration.ConfigurationServiceImpl.persistTopology(ConfigurationServiceImpl.java:1154)
    	... 51 more
    Caused by: javax.xml.bind.MarshalException
     - with linked exception:
    [com.sun.istack.SAXException2: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    javax.xml.bind.JAXBException: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.]
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:326)
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)
    	at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:103)
    	at org.ow2.petals.topology.TopologyBuilder.marshallTopologyFile(TopologyBuilder.java:229)
    	... 52 more
    Caused by: com.sun.istack.SAXException2: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    javax.xml.bind.JAXBException: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:250)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:265)
    	at com.sun.xml.bind.v2.runtime.property.ArrayReferenceNodeProperty.serializeListBody(ArrayReferenceNodeProperty.java:122)
    	at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:159)
    	at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:356)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:700)
    	at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:158)
    	at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:356)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:700)
    	at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:158)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:161)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:205)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:333)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:340)
    	at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:76)
    	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:498)
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)
    	... 55 more
    Caused by: javax.xml.bind.JAXBException: A DOM document "class com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element is needed. Use Document.getDocumentElement() and set that object instead.
    	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:587)
    	at com.sun.xml.bind.v2.runtime.property.ArrayReferenceNodeProperty.serializeListBody(ArrayReferenceNodeProperty.java:112)
    	... 69 more
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 17 Nov 2015 - 16:28:37 +0100

Fixed in trunk

Show
Christophe DENEUX added a comment - Tue, 17 Nov 2015 - 16:28:37 +0100 Fixed in trunk

People

Dates

  • Created:
    Mon, 16 Nov 2015 - 19:08:16 +0100
    Updated:
    Tue, 17 Nov 2015 - 16:28:37 +0100
    Resolved:
    Tue, 17 Nov 2015 - 16:28:37 +0100