synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evanthika Amarasiri (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-154) NullpointerException thrown when the xquery reference key is not declared anywhere in the configuration
Date Wed, 17 Oct 2007 08:31:52 GMT
NullpointerException thrown when the xquery reference key is not declared anywhere in the configuration
-------------------------------------------------------------------------------------------------------

                 Key: SYNAPSE-154
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-154
             Project: Synapse
          Issue Type: Bug
    Affects Versions: 1.1.QA.B.2
         Environment: Ubuntu 7.04, JDK1.5.0_12
            Reporter: Evanthika Amarasiri


When executing a configuration where the xquery reference key is not declared in the configuration,
a NullpointerException is thrown

The configuration - NOTE: The xquery reference key xquery-key-req is not declared anywhere
in the configuration
==============
<definitions xmlns="http://ws.apache.org/ns/synapse" xmlns:xquery="http://ws.apache.org/ns/synapse/xquery">

    <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
        <parameter name="root">file:repository/conf/sample/resources/</parameter>
        <parameter name="cachableDuration">30000</parameter>
    </registry>

    <localEntry key="xquery-key-req" src="file:repository/conf/sample/resources/xquery/xquery_req.xq"/>
    
    <proxy name="StockQuoteProxy">
        <target>
            <inSequence>
                <xquery key="xquery-key-req">
                    <variable name="payload" type="ELEMENT"/>
                </xquery>
                <send>
                    <endpoint>
                        <address uri="http://10.100.1.228:9001/soap/SimpleStockQuoteService"/>
                    </endpoint>
                </send>
            </inSequence>
            <outSequence>
                <out>
                     <xquery key="xquery-key-res">
                        <variable name="payload" type="ELEMENT"/>
                    </xquery>
                     <send/>
                </out>
            </outSequence>
        </target>
        <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
    </proxy>
</definitions>

NullpointException thown
====================
java.lang.NullPointerException
        at net.sf.saxon.query.QueryParser.normalizeLineEndings10(QueryParser.java:178)
        at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:80)
        at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:450)
        at net.sf.saxon.xqj.SaxonXQConnection.prepareExpression(SaxonXQConnection.java:169)
        at net.sf.saxon.xqj.SaxonXQConnection.prepareExpression(SaxonXQConnection.java:159)
        at org.apache.synapse.mediators.xquery.XQueryMediator.performQuery(XQueryMediator.java:216)
        at org.apache.synapse.mediators.xquery.XQueryMediator.mediate(XQueryMediator.java:132)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.filters.OutMediator.mediate(OutMediator.java:60)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:121)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:139)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:282)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:126)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:175)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

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


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message