未检测到 AS4 模块且文件传输失败

我已经部署了带有 AS4 模块的 Oxalis 实例。


OS : Ubuntu 18.04

JDK : openjdk version "1.8.0_222"

Oxalis : v4.0.4

Oxalis-AS4: Oxalis-AS4 RC8

当调用时http://localhost:8080/oxalis/as4收到正确的响应(Hello AS4 World)。


但是,当我尝试使用类路径中包含的 oxalis-as4 jar 文件将文件发送到 AS4 端点时oxalis-standalone.jar,oxalis-standalone 会产生以下错误。它还显示仅AS2部署了传输配置文件。


oxalis-standalone.log

oxalis-standalone.log


2019-09-17 15:01:13,028 WARN [no.difi.oxalis.outbound.transmission.TransmissionRequestBuilder] Endpoint was set by caller not retrieved from SMP, make sure this is intended behaviour. 

2019-09-17 15:01:14,107 ERROR [eu.sendregning.oxalis.Main] Execution failed: no.difi.oxalis.api.lang.OxalisTransmissionException: No Content-Type header in response, probably a server error. 

java.util.concurrent.ExecutionException: no.difi.oxalis.api.lang.OxalisTransmissionException: No Content-Type header in response, probably a server error.

    at java.util.concurrent.FutureTask.report(FutureTask.java:122)

    at java.util.concurrent.FutureTask.get(FutureTask.java:192)

    at eu.sendregning.oxalis.Main.main(Main.java:227)

什么可能导致此问题?预先感谢您的支持!


素胚勾勒不出你
浏览 108回答 1
1回答

GCT1015

看来您没有使用 oxalis-standalone jar 的 AS4 扩展。因此,您没有将 jar 解压到文件夹中,或者在调用 oxalis-standalone.jar 使用该文件夹时没有更改类路径。请查看README.md:https://github.com/difi/Oxalis-AS4。推荐的结构如下所示:├── standalone/&nbsp; &nbsp; <-- We will putt our regular Oxalis Standalone application here...│&nbsp; &nbsp;├── oxalis-standalone.jar│&nbsp; &nbsp;├── posibly-other.jar│&nbsp; &nbsp;└── ...└── as4/&nbsp; &nbsp; <-- ...and our AS4 extension here&nbsp; &nbsp; ├── oxalis-as4.jar&nbsp; &nbsp; ├── many-other.jar&nbsp; &nbsp; └── ...该命令如下所示:java -classpath "standalone/*;as4/*" eu.sendregning.oxalis.Main [followd by the argument like -f c:\some-invoice.xml]然后以下内容应该出现在您的日志中 - 这表明 AS4 支持:INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => peppol-transport-as4-v2_0INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0r1INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver2p0INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0```
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java