synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charitha Kankanamge (JIRA)" <>
Subject [jira] Created: (SYNAPSE-274) DataRetrievalException throws when getting ?wsdl of a proxy service which has been created using a wsdl having schema imports
Date Tue, 22 Apr 2008 08:01:23 GMT
DataRetrievalException throws when getting ?wsdl of a proxy service which has been created
using a wsdl having schema imports 

                 Key: SYNAPSE-274
             Project: Synapse
          Issue Type: Bug
          Components: Core
    Affects Versions: NIGHTLY
         Environment: ubuntu, jdk15
            Reporter: Charitha Kankanamge

Following exception is thrown when issuing ?wsdl url of a proxy service created using a wsdl
which has schema imports. 

2008-04-22 14:18:09,083 [] [HttpServerWorker-2] ERROR ServerWorker Axis2 fault
writing ?wsdl output
        at org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(
        at org.apache.axis2.description.AxisService.getData(
        at org.apache.axis2.description.AxisService.getWSDL(
        at org.apache.axis2.description.AxisService.printWSDL(
        at org.apache.synapse.transport.nhttp.ServerWorker.processGet(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: org.apache.axis2.dataretrieval.DataRetrievalException
        at org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(
        at org.apache.axis2.dataretrieval.WSDLDataLocator.getData(
        at org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(
        ... 8 more
Caused by: java.lang.NullPointerException
        at java.util.Hashtable.get(
        at org.apache.axis2.description.AxisService.getScheamLocationWithDot(
        at org.apache.axis2.description.AxisService.calculateSchemaNames(
        at org.apache.axis2.description.AxisService.populateSchemaMappings(
        at org.apache.axis2.description.AxisService.populateSchemaMappings(
        at org.apache.axis2.description.AxisService2WSDL11.generateOM(
        at org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(
        ... 10 more

Steps to reproduce:
1. Create a synapse configuration as follows.
<definitions xmlns="">
    <proxy name="TestProxy">
                <address uri="http://testb:9000/soap/calculatorImportSchema"/>
<log level="full"/>
        <publishWSDL uri="file:repository/conf/sample/resources/proxy/calculator_import_schema.wsdl"/>

2. Make sure to use a wsdl having schema imports.
i.e:- <xsd:import namespace="" schemaLocation=""/>
(wsdl is attached here with)
3. Run synapse
4. Go to http://localhost/:8080/soap/TestProxy?wsdl

You will get the above exceptions in Synapse console. Note that the URL ''
is publicly accessible. 

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:
For additional commands, e-mail:

View raw message