cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2447) Invalid paths used in CXF for the xml files results in failures in java 6
Date Fri, 25 Sep 2009 19:37:16 GMT

    [ https://issues.apache.org/jira/browse/CXF-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759717#action_12759717
] 

Daniel Kulp commented on CXF-2447:
----------------------------------


I'm not even sure how to go about trying to reproduce this as it seems to work OK for the
simple things I've tried.    It may be sue to my osgi stuff (servicemix) using the SMX stax-api
bundle and woodstox.  Not really sure.    Basically, we just pass the InputSource object that
Spring gives us along to the parsers.   Thus, it's spring that is setting up the URL in the
InputSource, not us, so I'm not sure what can be done.   

In anycase, is there any way you could debug into BusApplicationContext.getConfigResources()?
   There is a block that starts with  
"if (includeDefaults) {" 
that is interesting.   At the end of that block, the resources list should have a list of
resources.  I'd be interested in knowing what the classes are for those Resources (ClassPathResource,
UrlResource, InputStreamResource, etc....) as well as what the values of those fields are.



> Invalid paths used in CXF for the xml files results in failures in java 6
> -------------------------------------------------------------------------
>
>                 Key: CXF-2447
>                 URL: https://issues.apache.org/jira/browse/CXF-2447
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration, Core
>    Affects Versions: 2.3
>         Environment: docking-hg-48-121-dhcp:felix azeckoski$ uname -a
> Darwin docking-hg-48-121-dhcp.ethz.ch 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01
PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
> docking-hg-48-121-dhcp:felix azeckoski$ java -version
> java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)
>            Reporter: Aaron Zeckoski
>            Priority: Critical
>             Fix For: 2.3
>
>
> CXF 2.3.0-SNAPSHOT is failing to parse xml files in java 6. Things work fine for java
5. The error we see on startup of any bundles which use CXF is:
> [FelixStartLevel] WARN org.apache.cxf.bus.spring.SpringBusFactory - Initial attempt to
crate application context was unsuccessful.
> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception
parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is
java.lang.RuntimeException: Couldn't parse stream.
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:109)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:131)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
> 	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
> 	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:263)
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
> 	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
> 	at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
> 	at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
> 	at org.apache.cxf.endpoint.AbstractEndpointFactory.getBus(AbstractEndpointFactory.java:73)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServiceFactory(AbstractWSDLBasedEndpointFactory.java:231)
> 	at org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory(ServerFactoryBean.java:164)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:118)
> 	at org.apache.cxf.dosgi.dsw.handlers.HttpServiceConfigurationTypeHandler.createServer(HttpServiceConfigurationTypeHandler.java:124)
> 	at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceHookUtils.java:86)
> 	at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
> 	at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
> 	at org.apache.cxf.dosgi.dsw.Activator.checkExistingServices(Activator.java:151)
> 	at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:81)
> 	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:667)
> 	at org.apache.felix.framework.Felix.activateBundle(Felix.java:1699)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:1621)
> 	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1076)
> 	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> 	at java.lang.Thread.run(Thread.java:637)
> Caused by: java.lang.RuntimeException: Couldn't parse stream.
> 	at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:945)
> 	at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:357)
> 	at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:113)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
> 	... 36 more
> Caused by: javax.xml.stream.XMLStreamException: java.net.MalformedURLException
> 	at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.setInputSource(XMLStreamReaderImpl.java:217)
> 	at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XMLStreamReaderImpl.java:189)
> 	at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:145)
> 	at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:940)
> 	... 39 more
> Caused by: java.net.MalformedURLException
> 	at java.net.URL.<init>(URL.java:601)
> 	at java.net.URL.<init>(URL.java:464)
> 	at java.net.URL.<init>(URL.java:413)
> 	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650)
> 	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315)
> 	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:1267)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:281)
> 	at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.setInputSource(XMLStreamReaderImpl.java:204)
> 	... 42 more

-- 
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