汉字导致kettle启动失败

重装了系统,打开spoon,创建数据源,输入用户名、密码登陆kettle数据库时,程序自动退出。

 

修改spoon.bat,转到命令行下启动,情况依旧,报以下错误:

INFO  02-12 06:37:35,523 - Using "C:\Users\Echelon\AppData\Local\Temp\vfs_cache" as temporary files store.
INFO  02-12 06:37:38,905 - Spoon - 主窗口被创建
INFO  02-12 06:37:38,905 - Spoon - 要求资源库
INFO  02-12 06:37:38,925 - RepositoriesMeta - Reading repositories XML file: C:\Users\Echelon\.kettle\repositories.xml
ERROR 02-12 06:37:38,925 - RepositoriesMeta - Error reading information from file : org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.
ERROR 02-12 06:37:38,925 - RepositoriesMeta - org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
    at org.pentaho.di.repository.RepositoriesMeta.readData(RepositoriesMeta.java:167)
    at org.pentaho.di.ui.repository.dialog.RepositoriesDialog.(RepositoriesDialog.java:132)
    at org.pentaho.di.ui.spoon.Spoon.selectRep(Spoon.java:5416)
    at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5548)
    at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:412)

INFO  02-12 06:37:39,675 - VersionChecker - OK
createDialogArea
createContents
createDialogArea
createContents
createDialogArea
createContents
INFO  02-12 06:38:28,267 - RepositoriesMeta - Reading repositories XML file: C:\Users\Echelon\.kettle\repositories.xml
ERROR 02-12 06:38:28,267 - RepositoriesMeta - Error reading information from file : org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.
ERROR 02-12 06:38:28,267 - RepositoriesMeta - org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
    at org.pentaho.di.repository.RepositoriesMeta.readData(RepositoriesMeta.java:167)
    at org.pentaho.di.ui.spoon.Spoon.openRepositoryDialog(Spoon.java:5377)
    at org.pentaho.di.ui.spoon.Spoon.selectRep(Spoon.java:5418)
    at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5548)
    at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:412)

ERROR 02-12 06:38:28,267 - Spoon - 系统里没有定义资源库.

 

到用户目录下找到repositories.xml(我的是C:\Users\Echelon\.kettle\repositories.xml),打开后发现有乱码。原因是我在输入名称时用了汉字,程序在保持时的字符集跟系统不一致所致。将.kettle文件夹删除,重写用E文名称创建后,成功启动。

你可能感兴趣的:(汉字导致kettle启动失败)