[
https://issues.apache.org/jira/browse/SYNAPSE-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Asankha C. Perera updated SYNAPSE-274:
--------------------------------------
Fix Version/s: 1.2
Assignee: Asankha C. Perera
Related to https://issues.apache.org/jira/browse/SYNAPSE-200, and was able to
fix this with the help of Deepal from Axis2 team. Will commit as soon as Apache
SVN returns to life :-)
> DataRetrievalException throws when getting ?wsdl of a proxy service which has
> been created using a wsdl having schema imports
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: SYNAPSE-274
> URL: https://issues.apache.org/jira/browse/SYNAPSE-274
> Project: Synapse
> Issue Type: Bug
> Components: Core
> Affects Versions: NIGHTLY
> Environment: ubuntu, jdk15
> Reporter: Charitha Kankanamge
> Assignee: Asankha C. Perera
> Fix For: 1.2
>
> Attachments: calculator.xsd, calculator_import_schema.wsdl,
> Schemaimportservice.aar
>
>
> 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 [127.0.0.1-testb] [HttpServerWorker-2] ERROR
> ServerWorker Axis2 fault writing ?wsdl output
> org.apache.axis2.dataretrieval.DataRetrievalException
> at
> org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:85)
> at
> org.apache.axis2.description.AxisService.getData(AxisService.java:2722)
> at
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1462)
> at
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1334)
> at
> org.apache.synapse.transport.nhttp.ServerWorker.processGet(ServerWorker.java:325)
> at
> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:192)
> 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)
> Caused by: org.apache.axis2.dataretrieval.DataRetrievalException
> at
> org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLDataLocator.java:134)
> at
> org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocator.java:73)
> at
> org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:81)
> ... 8 more
> Caused by: java.lang.NullPointerException
> at java.util.Hashtable.get(Hashtable.java:336)
> at
> org.apache.axis2.description.AxisService.getScheamLocationWithDot(AxisService.java:2585)
> at
> org.apache.axis2.description.AxisService.calculateSchemaNames(AxisService.java:2457)
> at
> org.apache.axis2.description.AxisService.populateSchemaMappings(AxisService.java:2425)
> at
> org.apache.axis2.description.AxisService.populateSchemaMappings(AxisService.java:2408)
> at
> org.apache.axis2.description.AxisService2WSDL11.generateOM(AxisService2WSDL11.java:207)
> at
> org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLDataLocator.java:130)
> ... 10 more
> Steps to reproduce:
> ================
> 1. Create a synapse configuration as follows.
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <proxy name="TestProxy">
> <target>
> <endpoint>
> <address uri="http://testb:9000/soap/calculatorImportSchema"/>
> </endpoint>
> <outSequence>
> <send/>
> <log level="full"/>
> </outSequence>
> </target>
> <publishWSDL
> uri="file:repository/conf/sample/resources/proxy/calculator_import_schema.wsdl"/>
> </proxy>
> </definitions>
> 2. Make sure to use a wsdl having schema imports.
> i.e:- <xsd:import namespace="http://charitha.org/"
> schemaLocation="http://ww2.wso2.org/~charitha/calculator.xsd"/>
> (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
> 'http://ww2.wso2.org/~charitha/calculator.xsd' 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]