ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuli (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ODE-103) ServiceMixMapper mulfunction in ServiceMix 3.1 clustering mode (fow type = jms)
Date Thu, 22 Mar 2007 05:42:32 GMT

    [ https://issues.apache.org/jira/browse/ODE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483019
] 

Xuli commented on ODE-103:
--------------------------

Following are information printed on the console while error occurs:
------------------------------------------------------------------------------------------------------------------------------
error´╝Ü"NAMESPACE_ERR: An attempt is made to create or change an object in a way
 which is incorrect with regard to namespaces."
ERROR - OdeConsumer                    - Error translating message.
org.apache.ode.jbi.msgmap.MessageTranslationException: Transformer error!
        at org.apache.ode.jbi.msgmap.BaseXmlMapper.parse(BaseXmlMapper.java:83)
        at org.apache.ode.jbi.msgmap.ServiceMixMapper.toODE(ServiceMixMapper.jav
a:166)
        at org.apache.ode.jbi.OdeConsumer$4.call(OdeConsumer.java:256)
        at org.apache.ode.jbi.OdeConsumer$4.call(OdeConsumer.java:217)
        at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.execTransact
ion(QuartzSchedulerImpl.java:275)
        at org.apache.ode.jbi.OdeConsumer.outResponse(OdeConsumer.java:215)
        at org.apache.ode.jbi.OdeConsumer.onJbiMessageExchange(OdeConsumer.java:
166)
        at org.apache.ode.jbi.JbiMessageExchangeEventRouter.onJbiMessageExchange
(JbiMessageExchangeEventRouter.java:40)
        at org.apache.ode.jbi.Receiver$1.run(Receiver.java:190)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:41
7)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.transform.TransformerException: org.w3c.dom.DOMException: N
AMESPACE_ERR: An attempt is made to create or change an object in a way which is
 incorrect with regard to namespaces.
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
m(TransformerImpl.java:651)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
m(TransformerImpl.java:281)
        at org.apache.ode.jbi.msgmap.BaseXmlMapper.parse(BaseXmlMapper.java:77)
        ... 14 more
Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
 or change an object in a way which is incorrect with regard to namespaces.
        at org.apache.xerces.dom.AttrNSImpl.setName(Unknown Source)
        at org.apache.xerces.dom.AttrNSImpl.<init>(Unknown Source)
        at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(Unknown Sour
ce)
        at org.apache.xerces.dom.ElementImpl.setAttributeNS(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.startElement(SAX
2DOM.java:134)
        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStart
Tag(ToXMLSAXHandler.java:205)
        at com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(
ToSAXHandler.java:291)
        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startPrefi
xMapping(ToXMLSAXHandler.java:349)
        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startPrefi
xMapping(ToXMLSAXHandler.java:319)
        at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unk
nown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
mIdentity(TransformerImpl.java:560)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
m(TransformerImpl.java:642)
        ... 16 more
--------------------------------------------------------------------------------------------------------------------------------------

> ServiceMixMapper mulfunction in ServiceMix 3.1 clustering mode (fow type =  jms)
> --------------------------------------------------------------------------------
>
>                 Key: ODE-103
>                 URL: https://issues.apache.org/jira/browse/ODE-103
>             Project: Ode
>          Issue Type: Bug
>          Components: JBI Integration
>    Affects Versions: Incubator
>         Environment: WIndowsXP Pro, ServiceMix 3.1
>            Reporter: Xuli
>
> 1. Set "ode-jbi.messageMapper=org.apache.ode.jbi.msgmap.ServiceMixMapper" in "ode-jbi.properties"
of ODE
> 2. Set flowName="jms" in <sm:container> of servicemix.xml file, then startup ServiceMix
3.1 in clustering mode. 
> 3. send a request to BPEL service
> ODE will throw an exception when it receives a response of SP from NMR. The Normalized
Message content sent to ServiceMixMapper.toODE() is a StringSource, while the default TransformerFactory
set by following lines is Xalan 2.7 in my machine
> ---------------------------------------------------------------------------------------------------
>     protected BaseXmlMapper() {
>         _transformerFactory = TransformerFactory.newInstance();
>     }
> ---------------------------------------------------------------------------------------------------
> Xalan throws NAMESPACE_ERR while doing identity transformation with StringSource.
> I replaced the above lines with
> ---------------------------------------------------------------------------------------------------
>     protected BaseXmlMapper() {
>         _transformerFactory = new net.sf.saxon.TransformerFactoryImpl();
>     }
> ---------------------------------------------------------------------------------------------------
> to explicitly instantiate a Saxon TransformerFactory, then solved the problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message