[ https://issues.apache.org/jira/browse/TUSCANY-3212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond Feng resolved TUSCANY-3212. ----------------------------------- Resolution: Fixed Fixed under r804091 in 1.5.1 branch and I need to merge it back to 1.6 > writeNamespace failure when writing composite containing policy intents > ----------------------------------------------------------------------- > > Key: TUSCANY-3212 > URL: https://issues.apache.org/jira/browse/TUSCANY-3212 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Policy > Affects Versions: Java-SCA-1.5 > Environment: All > Reporter: Hasan Muhammad > Assignee: Raymond Feng > > When a composite containing policy elements is saved, it throws the following > exception > java.lang.IllegalStateException: writeNamespace() can only be called > following writeStartElement() or writeEmptyElement(). > at > com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwIllegalStateException(StAXMessageProvider.java:45) > at > com.ibm.xml.xlxp.api.stax.XMLStreamWriterBase.writeNamespace(XMLStreamWriterBase.java:514) > at > com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl$XMLStreamWriterProxy.writeNamespace(XMLOutputFactoryImpl.java:148) > at > org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor$XAttr.writeQNamePrefix(BaseStAXArtifactProcessor.java:520) > at > org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor$XAttr.writePrefix(BaseStAXArtifactProcessor.java:607) > at > org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor$XAttr.writePrefix(BaseStAXArtifactProcessor.java:611) > at > org.apache.tuscany.sca.assembly.xml.PolicyAttachPointProcessor.writePolicyPrefixes(PolicyAttachPointProcessor.java:201) > at > org.apache.tuscany.sca.assembly.xml.PolicyAttachPointProcessor.writePolicyPrefixes(PolicyAttachPointProcessor.java:168) > at > org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor.write(JavaImplementationProcessor.java:196) > at > org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor.write(JavaImplementationProcessor.java:74) > at > org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.write(DefaultStAXArtifactProcessorExtensionPoint.java:393) > at > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.write(ExtensibleStAXArtifactProcessor.java:162) > at > org.apache.tuscany.sca.assembly.xml.CompositeProcessor.write(CompositeProcessor.java:697) > at > org.apache.tuscany.sca.assembly.xml.CompositeProcessor.write(CompositeProcessor.java:90) > at > org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.write(DefaultStAXArtifactProcessorExtensionPoint.java:393) > at > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.write(ExtensibleStAXArtifactProcessor.java:162) > at > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.write(ExtensibleStAXArtifactProcessor.java:247) > at > com.ibm.ws.soa.sca.admin.module.loader.TuscanyLoader.write(TuscanyLoader.java:39) > at > com.ibm.ws.soa.sca.admin.cdf.config.ScaModuleContextImpl.commitConfig(ScaModuleContextImpl.java:344) > at > com.ibm.ws.soa.sca.admin.cdf.content.operation.SaveScaConfig.execute(SaveScaConfig.java:145) > at > com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151) > at > com.ibm.wsspi.management.bla.op.compound.CompoundOperation._doPhaseExecute(CompoundOperation.java:102) > at > com.ibm.wsspi.management.bla.op.compound.CompoundOperation.doExecute(CompoundOperation.java:85) > at > com.ibm.wsspi.management.bla.op.Operation.execute(Operation.java:158) > at > com.ibm.wsspi.management.bla.op.compound.CompoundOperation.execute(CompoundOperation.java:68) > at > com.ibm.ws.management.bla.content.steps.WrapperExecute.execute(WrapperExecute.java:100) > at > com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151) > at > com.ibm.wsspi.management.bla.op.compound.CompoundOperation._doPhaseExecute(CompoundOperation.java:102) > at > com.ibm.wsspi.management.bla.op.compound.CompoundOperation.doExecute(CompoundOperation.java:85) > at > com.ibm.wsspi.management.bla.op.Operation.execute(Operation.java:158) > at > com.ibm.wsspi.management.bla.op.compound.CompoundOperation.execute(CompoundOperation.java:68) > at > com.ibm.ws.management.bla.commands.ADTCommand$OperationScheduler.run(ADTCommand.java:524) > at java.lang.Thread.run(Thread.java:735) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.