【发布时间】:2015-07-30 09:16:08
【问题描述】:
例如我们得到了:
net.sf.jasperreports.engine.JRException: ...
Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException:
Error evaluating expression for source text:
$P{REPORT_SCRIPTLET}.setTestRaw_LogOn_TstMsgOn(true, true)
Caused by: java.lang.LinkageError: loader constraint violation: loader
(instance of java/net/FactoryURLClassLoader) previously initiated loading
for a different type with name "org/slf4j/Logger"
在 Eclipse (Kepler) Preview 中使用 JR 插件 v6.1.0 运行,但不能在另一个运行 5.5.1.final 的 Eclipse 中运行
显然我们正在使用一些构建路径引用的自定义报告脚本,它本身使用 slf4j api 进行日志记录。
它似乎与同一个类的另一个不同版本冲突(对于同一个底层类加载隔离)。
【问题讨论】:
标签: eclipse jasper-reports slf4j