您的位置:首页 > 产品设计 > UI/UE

Failed to set setXIncludeAware(true) for parser com.caucho.xml.parsers.XmlDocumentBuilderFactory@d83

2015-11-24 13:45 471 查看
通过Spring配置访问hbase的时候,运行出现以下错误。

2015-11-24 13:44:27,027 [main] ERROR conf.Configuration (Configuration.java:2370) - Failed to set setXIncludeAware(true) for parser com.caucho.xml.parsers.XmlDocumentBuilderFactory@d83365:java.lang.UnsupportedOperationException: This parser does not
support specification "null" version "null"

java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"

at javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:590)

at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2368)

at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2337)

at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2254)

at org.apache.hadoop.conf.Configuration.size(Configuration.java:2272)

at org.springframework.data.hadoop.configuration.ConfigurationFactoryBean.afterPropertiesSet(ConfigurationFactoryBean.java:89)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)

at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)

at com.sogou.biztracer.web.listener.BiztracerContextLoaderListener.contextInitialized(BiztracerContextLoaderListener.java:34)

at com.caucho.server.webapp.Application.start(Application.java:1647)

at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)

at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)

at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)

at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)

at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)

at com.caucho.server.host.Host.start(Host.java:420)

at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)

at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)

at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)

at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)

at com.caucho.server.host.HostContainer.start(HostContainer.java:504)

at com.caucho.server.resin.ServletServer.start(ServletServer.java:971)

at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)

at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)

at com.caucho.server.deploy.DeployController.start(DeployController.java:517)

at com.caucho.server.resin.ResinServer.start(ResinServer.java:551)

at com.caucho.server.resin.Resin.init(Resin.java)

at com.caucho.server.resin.Resin.main(Resin.java:625)

解决方案:

制定JVM运行参数:

-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: