[
https://jira.jboss.org/jira/browse/JBAS-6222?page=com.atlassian.jira.plug...
]
Emanuel Muckenhuber commented on JBAS-6222:
-------------------------------------------
Ian, can you that again? this should not happen anymore, as this way of marshalling is not
used any more
"javax.xml.bind.MarshalException: org.w3c.dom.DOMException:
WRONG_DOCUMENT_ERR" error occurs when attempting to update a Topic or Queue via
ManagementView.updateComponent()
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBAS-6222
URL:
https://jira.jboss.org/jira/browse/JBAS-6222
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: ProfileService
Reporter: Ian Springer
Assignee: Scott M Stark
Here's the full stack trace:
javax.xml.bind.MarshalException - with linked exception: [org.w3c.dom.DOMException:
WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.]
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:328) at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:254) at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:83) at
org.jboss.system.server.profileservice.repository.JAXBAttachmentSerializer.saveAttachment(JAXBAttachmentSerializer.java:61)
at
org.jboss.system.server.profileservice.repository.AbstractFileAttachmentsSerializer.saveAttachment(AbstractFileAttachmentsSerializer.java:90)
at
org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.saveAttachmentMetaData(AbstractAttachmentStore.java:398)
at
org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.updateDeployment(AbstractAttachmentStore.java:316)
at
org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository.updateDeployment(SerializableDeploymentRepository.java:1068)
at
org.jboss.system.server.profile.repository.ProfileImpl.updateDeployment(ProfileImpl.java:152)
at
org.jboss.profileservice.management.ManagementViewImpl.updateComponent(ManagementViewImpl.java:1019)
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:623) at
org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121) at
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at
org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:67)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908) at
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1708) at
org.jboss.remoting.Client.invoke(Client.java:612) at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at
org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at
AOPProxy$1.updateComponent(AOPProxy$1.java) at
org.rhq.plugins.jbossas5.JndiResourceComponent.updateResourceConfiguration(JndiResourceComponent.java:138)
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:623) at
org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:450)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at
java.util.concurrent.FutureTask.run(FutureTask.java:166) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at
java.lang.Thread.run(Thread.java:713) Caused by: org.w3c.dom.DOMException:
WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:242) at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:257) at
com.sun.xml.bind.v2.runtime.reflect.AdaptedLister$ListIteratorImpl.next(AdaptedLister.java:111)
at
com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:135)
at
com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:589) at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:312) at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:490) at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:325) at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:254) at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:83) at
org.jboss.system.server.profileservice.repository.JAXBAttachmentSerializer.saveAttachment(JAXBAttachmentSerializer.java:61)
at
org.jboss.system.server.profileservice.repository.AbstractFileAttachmentsSerializer.saveAttachment(AbstractFileAttachmentsSerializer.java:90)
at
org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.saveAttachmentMetaData(AbstractAttachmentStore.java:398)
at
org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.updateDeployment(AbstractAttachmentStore.java:316)
at
org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository.updateDeployment(SerializableDeploymentRepository.java:1068)
at
org.jboss.system.server.profile.repository.ProfileImpl.updateDeployment(ProfileImpl.java:152)
at
org.jboss.profileservice.management.ManagementViewImpl.updateComponent(ManagementViewImpl.java:1019)
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:623) at
org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121) at
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at
org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:67)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908) at
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1708) at
org.jboss.remoting.Client.invoke(Client.java:612) at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at
org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at
AOPProxy$1.updateComponent(AOPProxy$1.java) at
org.rhq.plugins.jbossas5.JndiResourceComponent.updateResourceConfiguration(JndiResourceComponent.java:138)
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:623) at
org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:450)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at
java.util.concurrent.FutureTask.run(FutureTask.java:166) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at
java.lang.Thread.run(Thread.java:713) at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
... 17 more Caused by: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a
different document than the one that created it. at
org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source) at
org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source) at
org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source) at
org.jboss.system.metadata.ServiceMetaData2ElementConverter.addAttributes(ServiceMetaData2ElementConverter.java:277)
at
org.jboss.system.metadata.ServiceMetaData2ElementConverter.createServiceMetaDataElement(ServiceMetaData2ElementConverter.java:76)
at
org.jboss.system.metadata.ServiceMetaDataAdapter.marshal(ServiceMetaDataAdapter.java:60)
at
org.jboss.system.metadata.ServiceMetaDataAdapter.marshal(ServiceMetaDataAdapter.java:37)
at
com.sun.xml.bind.v2.runtime.reflect.AdaptedLister$ListIteratorImpl.next(AdaptedLister.java:109)
at
com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:135)
at
com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:589) at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:312) at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:490) at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:325) at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:254) at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:83) at
org.jboss.system.server.profileservice.repository.JAXBAttachmentSerializer.saveAttachment(JAXBAttachmentSerializer.java:61)
at
org.jboss.system.server.profileservice.repository.AbstractFileAttachmentsSerializer.saveAttachment(AbstractFileAttachmentsSerializer.java:90)
at
org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.saveAttachmentMetaData(AbstractAttachmentStore.java:398)
at
org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.updateDeployment(AbstractAttachmentStore.java:316)
at
org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository.updateDeployment(SerializableDeploymentRepository.java:1068)
at
org.jboss.system.server.profile.repository.ProfileImpl.updateDeployment(ProfileImpl.java:152)
at
org.jboss.profileservice.management.ManagementViewImpl.updateComponent(ManagementViewImpl.java:1019)
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:623) at
org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121) at
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at
org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:67)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908) at
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1708) at
org.jboss.remoting.Client.invoke(Client.java:612) at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
... 17 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira