【问题标题】:Exception in thread "main" quickfix.ConfigError: FIX44.xml: Could not parse data dictionary file线程“主”quickfix.ConfigError 中的异常:FIX44.xml:无法解析数据字典文件
【发布时间】:2020-05-11 10:19:20
【问题描述】:

我可以使用 UseDataDictionary=N 运行修复,但是当我把它变成 UseDataDictionary=Y 时

FIX44.xml:无法解析数据字典文件

请有人帮我解决问题。

Caused by: quickfix.ConfigError: Could not parse data dictionary file
at quickfix.DataDictionary.load(DataDictionary.java:857)
at quickfix.DataDictionary.read(DataDictionary.java:838)
... 14 more
Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS

    [DEFAULT]
ConnectionType=initiator
HeartBtInt=60
ReconnectInterval=1
FileStorePath=.\fixfiles\initiator
FileLogPath=.\log
StartTime=00:00:00
EndTime=00:00:00
UseDataDictionary=Y
DataDictionary=FIX44.xml
SocketReuseAddress=Y
SocketKeepAlive=Y
SocketTcpNoDelay=Y
ResetOnLogon=Y

【问题讨论】:

  • 您运行的是 JDK9 或更高版本吗?您能否尝试添加--add-modules java.se.ee 作为参数。也许这也有帮助:stackoverflow.com/questions/45723488/…
  • 我正在使用 Java 8 进行编译,但仍然出现错误。
  • 在这种情况下编译无关紧要。您使用哪个 JRE 或 JDK 运行它?

标签: automated-tests fix-protocol


【解决方案1】:

QF 库说它可以加载 DD 但不能解析它,因此您的 DD 已损坏。我建议查看安装包附带的默认 DD。

【讨论】:

  • 有一个NoClassDefFoundError。这显然与 DD 本身无关。
  • 我明白了,所以它有要加载的类但不解析字典。好的...
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-26
  • 1970-01-01
相关资源
最近更新 更多