Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Won't Fix or Usage Issue
  • Affects Version/s: 3.1.1
  • Fix Version/s: None
  • Component/s: Modules: CXF
  • Labels:
    None
  • User impact:
    High
  • Configuration:
    Hide

    <cxf:proxy-service payload="envelope"
    service="SyncSalesOrderService"
    wsdlLocation="resources/ProcessSalesOrderWSDL/ProcessSalesOrder.wsdl"
    namespace="http://www.openapplications.org/oagis/9/ws"
    validationEnabled="false" />

    Show
    <cxf:proxy-service payload="envelope" service="SyncSalesOrderService" wsdlLocation="resources/ProcessSalesOrderWSDL/ProcessSalesOrder.wsdl" namespace="http://www.openapplications.org/oagis/9/ws" validationEnabled="false" />
  • Log Output:
    Hide
    ERROR 2011-03-16 11:26:58,754 [[Arkiv].connector.http.mule.default.receiver.2] org.apache.cxf.wstx_msv_validation.ResolvingGrammarReaderController: /Applications/mule-enterprise-standalone-3.1.1/bin/ProcessSalesOrder/www.openapplications.org_oagis_9_codelists/CodeLists.xsd (No such file or directory)
    java.io.FileNotFoundException: /Applications/mule-enterprise-standalone-3.1.1/bin/ProcessSalesOrder/www.openapplications.org_oagis_9_codelists/CodeLists.xsd (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown 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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.msv.reader.GrammarReader._parse(GrammarReader.java:517)
    at com.sun.msv.reader.GrammarReader.parse(GrammarReader.java:475)
    at com.sun.msv.reader.GrammarReader.parse(GrammarReader.java:492)
    at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:455)
    at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:423)
    at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:413)
    at com.sun.msv.reader.xmlschema.XMLSchemaReader.switchSource(XMLSchemaReader.java:744)
    at com.sun.msv.reader.xmlschema.ImportState.startSelf(ImportState.java:41)
    at com.sun.msv.reader.State.init(State.java:153)
    at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:637)
    at com.sun.msv.reader.SimpleState.startElement(SimpleState.java:70)
    at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
    at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073)
    at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:359)
    at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:145)
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:390)
    at com.sun.msv.reader.GrammarReader.parse(GrammarReader.java:504)
    at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:455)
    at com.sun.msv.reader.xmlschema.MultiSchemaReader.parse(MultiSchemaReader.java:64)
    at org.apache.cxf.wstx_msv_validation.W3CMultiSchemaFactory.loadSchemas(W3CMultiSchemaFactory.java:65)
    at org.apache.cxf.wstx_msv_validation.Stax2ValidationUtils.getValidator(Stax2ValidationUtils.java:124)
    at org.apache.cxf.wstx_msv_validation.Stax2ValidationUtils.setupValidation(Stax2ValidationUtils.java:70)
    at org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl.setupValidation(WoodstoxValidationImpl.java:71)
    at org.mule.module.cxf.support.ProxySchemaValidationInInterceptor.setSchemaInMessage(ProxySchemaValidationInInterceptor.java:67)
    at org.mule.module.cxf.support.ProxySchemaValidationInInterceptor.handleMessage(ProxySchemaValidationInInterceptor.java:55)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)
    at org.mule.module.cxf.CxfInboundMessageProcessor.sendToDestination(CxfInboundMessageProcessor.java:288)
    at org.mule.module.cxf.CxfInboundMessageProcessor.process(CxfInboundMessageProcessor.java:129)
    at org.mule.module.cxf.config.FlowConfiguringMessageProcessor.process(FlowConfiguringMessageProcessor.java:50)
    at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:72)
    at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
    at org.mule.processor.AbstractInterceptingMessageProcessor.processNext(AbstractInterceptingMessageProcessor.java:81)
    at org.mule.processor.ExceptionHandlingMessageProcessor.process(ExceptionHandlingMessageProcessor.java:25)
    at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:72)
    at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
    at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:63)
    at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
    at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:94)
    at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:72)
    at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
    at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:63)
    at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
    at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:94)
    at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:185)
    at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:158)
    at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:145)
    at org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:247)
    at org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:206)
    at org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:164)
    at org.mule.work.WorkerContext.run(WorkerContext.java:309)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
    at java.lang.Thread.run(Thread.java:680)
    WARN 2011-03-16 11:26:58,758 [[Arkiv].connector.http.mule.default.receiver.2] org.apache.cxf.phase.PhaseInterceptorChain: Interceptor for {http://www.openapplications.org/oagis/9/ws}SyncSalesOrderService has thrown exception, unwinding now
    java.lang.NullPointerException
    §
    Show
    ERROR 2011-03-16 11:26:58,754 [[Arkiv].connector.http.mule.default.receiver.2] org.apache.cxf.wstx_msv_validation.ResolvingGrammarReaderController: /Applications/mule-enterprise-standalone-3.1.1/bin/ProcessSalesOrder/www.openapplications.org_oagis_9_codelists/CodeLists.xsd (No such file or directory) java.io.FileNotFoundException: /Applications/mule-enterprise-standalone-3.1.1/bin/ProcessSalesOrder/www.openapplications.org_oagis_9_codelists/CodeLists.xsd (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown 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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.sun.msv.reader.GrammarReader._parse(GrammarReader.java:517) at com.sun.msv.reader.GrammarReader.parse(GrammarReader.java:475) at com.sun.msv.reader.GrammarReader.parse(GrammarReader.java:492) at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:455) at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:423) at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:413) at com.sun.msv.reader.xmlschema.XMLSchemaReader.switchSource(XMLSchemaReader.java:744) at com.sun.msv.reader.xmlschema.ImportState.startSelf(ImportState.java:41) at com.sun.msv.reader.State.init(State.java:153) at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:637) at com.sun.msv.reader.SimpleState.startElement(SimpleState.java:70) at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073) at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:359) at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:145) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:390) at com.sun.msv.reader.GrammarReader.parse(GrammarReader.java:504) at com.sun.msv.reader.GrammarReader.switchSource(GrammarReader.java:455) at com.sun.msv.reader.xmlschema.MultiSchemaReader.parse(MultiSchemaReader.java:64) at org.apache.cxf.wstx_msv_validation.W3CMultiSchemaFactory.loadSchemas(W3CMultiSchemaFactory.java:65) at org.apache.cxf.wstx_msv_validation.Stax2ValidationUtils.getValidator(Stax2ValidationUtils.java:124) at org.apache.cxf.wstx_msv_validation.Stax2ValidationUtils.setupValidation(Stax2ValidationUtils.java:70) at org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl.setupValidation(WoodstoxValidationImpl.java:71) at org.mule.module.cxf.support.ProxySchemaValidationInInterceptor.setSchemaInMessage(ProxySchemaValidationInInterceptor.java:67) at org.mule.module.cxf.support.ProxySchemaValidationInInterceptor.handleMessage(ProxySchemaValidationInInterceptor.java:55) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113) at org.mule.module.cxf.CxfInboundMessageProcessor.sendToDestination(CxfInboundMessageProcessor.java:288) at org.mule.module.cxf.CxfInboundMessageProcessor.process(CxfInboundMessageProcessor.java:129) at org.mule.module.cxf.config.FlowConfiguringMessageProcessor.process(FlowConfiguringMessageProcessor.java:50) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:72) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89) at org.mule.processor.AbstractInterceptingMessageProcessor.processNext(AbstractInterceptingMessageProcessor.java:81) at org.mule.processor.ExceptionHandlingMessageProcessor.process(ExceptionHandlingMessageProcessor.java:25) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:72) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:63) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:94) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:72) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:63) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:94) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:185) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:158) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:145) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:247) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:206) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:164) at org.mule.work.WorkerContext.run(WorkerContext.java:309) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:680) WARN 2011-03-16 11:26:58,758 [[Arkiv].connector.http.mule.default.receiver.2] org.apache.cxf.phase.PhaseInterceptorChain: Interceptor for {http://www.openapplications.org/oagis/9/ws}SyncSalesOrderService has thrown exception, unwinding now java.lang.NullPointerException §
  • Similar Issues:
    None

Description

Using a WSDL which has import statement for external schemas works just fine unless validation is turned on. When validation is turned on the validation logic in CXF looks for the imports not relative to the WSDL but relative to where mule is started from. CXF allows for the passing of information into the validator to tell it where these schemas are located at but currently we don't allow for the passing of this information in.

Issue Links

Activity

Hide
Roko Kruze added a comment -

Here is the configuration information we need to allow for the cxf endpoint: http://cxf.apache.org/docs/jax-ws-configuration.html

Show
Roko Kruze added a comment - Here is the configuration information we need to allow for the cxf endpoint: http://cxf.apache.org/docs/jax-ws-configuration.html
Hide
Andrew Perepelytsya added a comment -

How does the problem config look like?

Show
Andrew Perepelytsya added a comment - How does the problem config look like?
Hide
Roko Kruze added a comment -

I've added the part of the configuration that creates the issue.

Show
Roko Kruze added a comment - I've added the part of the configuration that creates the issue.
Hide
Mike Schilling added a comment -

WSDLs imported with relative URLs would have the same issue. Likewise, in cases where a Mule proxy advertises a WSDL at a different address, relative imports need to be converted to absolute ones in order for the advertised WSDL to be correct.

Show
Mike Schilling added a comment - WSDLs imported with relative URLs would have the same issue. Likewise, in cases where a Mule proxy advertises a WSDL at a different address, relative imports need to be converted to absolute ones in order for the advertised WSDL to be correct.
Hide
Roko Kruze added a comment -

So DanD can comment on this more but the issue is that when we hand off validation of the request/response to cxf it ignores any type of resolve we give to it and thus we cannot effect the location it will look for the schemas at. In order to fix this we will have to create a fix for CXF and get it committed.

Show
Roko Kruze added a comment - So DanD can comment on this more but the issue is that when we hand off validation of the request/response to cxf it ignores any type of resolve we give to it and thus we cannot effect the location it will look for the schemas at. In order to fix this we will have to create a fix for CXF and get it committed.
Hide
Ramiro Rinaudo added a comment -

Moving open issues from 3.1.2 to 3.1.3

Show
Ramiro Rinaudo added a comment - Moving open issues from 3.1.2 to 3.1.3
Hide
Mike Schilling added a comment -

This would require changes to CXF code

Show
Mike Schilling added a comment - This would require changes to CXF code

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: