org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException

MyEclipse XML转换异常
本文介绍了在MyEclipse中尝试运行generatorConfig.xml文件时遇到的XML转换异常问题,包括错误描述、原因分析及解决方案。

1、错误描述

22:09:21,005 INFO  [main] Main  - javax.xml.transform.TransformerFactory=null
22:09:21,007 INFO  [main] Main  - java.endorsed.dirs=D:\Java\jdk1.7.0_67\jre\lib\endorsed
22:09:21,012 INFO  [main] Main  - launchFile: D:\MyEclipse10\workspace\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml
22:09:21,083 FATAL [main] Main  - No embedded stylesheet instruction for file: file:/D:/MyEclipse10/workspace/MSSH/src/main/resources/generatorConfig.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/D:/MyEclipse10/workspace/MSSH/src/main/resources/generatorConfig.xml
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:225)
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:186)
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:73)
Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/D:/MyEclipse10/workspace/MSSH/src/main/resources/generatorConfig.xml
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
	... 2 more

2、错误原因

由于MyEclipse中没有命令直接运行generatorConfig.xml,导致报错


3、解决办法

[INFO] Main - javax.xml.transform.TransformerFactory=null [INFO] Main - java.endorsed.dirs=null [INFO] Main - launchFile: C:\Users\34366\work\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml [Fatal Error] mybatis.out.xml:1:1: 文件提前结束。 [FATAL] Main - getAssociatedStylesheets failed <org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: getAssociatedStylesheets failed>org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: getAssociatedStylesheets failed at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:225) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:189) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:75) Caused by: javax.xml.transform.TransformerConfigurationException: getAssociatedStylesheets failed at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.getAssociatedStylesheet(TransformerFactoryImpl.java:786) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:208) ... 2 more Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/34366/work/lianxi1/src/mybatis.out.xml; lineNumber: 1; columnNumber: 1; 文件提前结束。 at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1251) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637) at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.getAssociatedStylesheet(TransformerFactoryImpl.java:774) ... 3 more
06-12
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值