OxalisCommunity / Oxalis-AS4

PEPPOL AS4 pMode plugin for Oxalis
33 stars 26 forks source link

CEF Connectivity Test Issue #29

Closed Gagan34in closed 4 years ago

Gagan34in commented 5 years ago

Hello Oxalis team,

I tried to pass CEF eDelivery Connectivity test with static scenario.

CEF eDelivery support sent me a pmode file, keystore and truststore. I am getting error while sending the message.

message.xml file:-

<?xml version="1.0" encoding="UTF-8"?>
<Request>
    eDelivery AS4 Connectivity test.Sending Message
</Request>

I got below error:-

2019-10-02 12:04:16,052 ERROR [eu.sendregning.oxalis.Main] Execution failed: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
java.util.concurrent.ExecutionException: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
        at java.util.concurrent.FutureTask.report(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at eu.sendregning.oxalis.Main.main(Main.java:227)
Caused by: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
        at no.difi.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:116)
        at no.difi.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
        at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:168)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:96)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:49)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Total time spent: 0s
Attempted to send 0 files
Failed transmissions: 1

My oxalis.conf file:-

oxalis.keystore {
     # Relative to OXALIS_HOME
     path=ceftestparty83gwkeystore.jks
     password = "123"
     key.alias = "ceftestparty83gw"
     key.password = "123"
 }
oxalis.truststore {
     password = "123"
     path=ceftestparty83gwtruststore.jks
}

security.validator.class = no.difi.vefa.peppol.security.util.EmptyCertificateValidator

oxalis.path.inbound="/var/peppol/Inbound"

mode.conformance=test
mode.conformance.lookup.locator.hostname="acc.edelivery.tech.ec.europa.eu/edelivery-sml/"
mode.conformance.security.validator.class="no.difi.vefa.peppol.security.util.EmptyCertificateValidator"

oxalis.operation.mode=TEST                           
oxalis.header.parser=dummy
oxalis.as4.type=cef-connectivity

lookup.locator.hostname="acc.edelivery.tech.ec.europa.eu/edelivery-sml/"
lookup.locator.class = no.difi.vefa.peppol.lookup.locator.BusdoxLocator

oxalis.module.as4.outbound = {
    class = no.difi.oxalis.as4.outbound.As4OutboundModule
    dependency = outbound.lookup
}

transport.as4_peppol_v1_to_v2_adapter = {
      profile: bdxr-transport-ebms3-as4-v1p0
      sender: oxalis-as4
      weight: 5000
}
oxalis.transformer.detector = noop

Command:-

java -cp /opt/tomcat/.oxalis/oxalis-dist/oxalis-standalone-as4/standalone/*:/opt/tomcat/.oxalis/oxalis-dist/oxalis-standalone-as4/as4/*  eu.sendregning.oxalis.Main 
-f resources/message.xml
-u http://40.115.23.114:8080/domibus/services/msh?domain=static 
-s ceftestparty83gw 
-r cefsupportgw 
-protocol peppol-transport-as4-v2_0 
-cert  cert/ceftestparty83gw.crt
alessandrolorenzetti commented 5 years ago

Hello Oxalis team,I can't even do the first part of the CEF Connectivity test. I also enter my information if it is useful for you

I installed Oxalis 4.1.0 and the AS4 RC9 plugin

Test Run Script

"C:\Program Files\Java\jre1.8.0_211\bin\java"^
 -classpath "./standalone410/*;./as4_rc9/*" eu.sendregning.oxalis.Main^
 -u "http://40.115.23.114:8080/domibus/services/msh?domain=static"^
 -cert ./ceftestparty68gw/ceftestparty68gw.crt^
 -protocol "peppol-transport-as4-v2_0"^
 -r Cefcefsupportgw^
 -s testparty68gw^
 -f ./DA_SPEDIRE/CEFMessage.xml

Oxalis.conf

oxalis.keystore {
     # Relative to OXALIS_HOME
     path=ceftestparty68gwkeystore.jks
     password = test123
     key.alias = ceftestparty68gw
     key.password = test123
}

oxalis.truststore {
    path = ceftestparty68gwtruststore.jks
    password = test123
}

lookup.locator.hostname = acc.edelivery.tech.ec.europa.eu

oxalis.logging.config=logback.xml

oxalis.header.parser = dummy 
oxalis.as4.type = cef-connectivity

CEFMessage.xml

<?xml version="1.0" encoding="UTF-8"?>
<Request> eDelivery AS4 Connectivity test. Sending Message </Request>

Log Oxalis

2019-09-30 09:30:24,880 INFO [no.difi.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis'.
2019-09-30 09:30:24,896 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis
2019-09-30 09:30:24,896 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis
2019-09-30 09:30:24,896 INFO [no.difi.oxalis.commons.config.ConfigModule] Configuration file: C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis\oxalis.conf
2019-09-30 09:30:24,927 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2019-09-30 09:30:24,927 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: inbound
2019-09-30 09:30:24,927 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: null
2019-09-30 09:30:26,515 INFO [no.difi.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis'.
2019-09-30 09:30:26,516 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis
2019-09-30 09:30:26,519 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis
2019-09-30 09:30:26,521 INFO [no.difi.oxalis.commons.config.ConfigModule] Configuration file: C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis\oxalis.conf
2019-09-30 09:30:26,527 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TOTAL: 20
2019-09-30 09:30:26,528 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_MAX_ROUTE: 2
2019-09-30 09:30:26,529 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_CONNECT: 0
2019-09-30 09:30:26,530 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_READ: 0
2019-09-30 09:30:26,531 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_SOCKET: 0
2019-09-30 09:30:26,532 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Error => TRACKER: quiet
2019-09-30 09:30:26,533 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS2 => NOTIFICATION: not.in.use@difi.no
2019-09-30 09:30:26,533 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2019-09-30 09:30:26,534 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: inbound
2019-09-30 09:30:26,534 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: null
2019-09-30 09:30:26,535 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Identifiers => HOSTNAME:
2019-09-30 09:30:26,536 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Identifiers => MSGID_GENERATOR: default
2019-09-30 09:30:26,538 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => PATH: ceftestparty68gwkeystore.jks
2019-09-30 09:30:26,540 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => PASSWORD: test123
2019-09-30 09:30:26,541 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => KEY_ALIAS: ceftestparty68gw 
2019-09-30 09:30:26,542 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => KEY_PASSWORD: test123
2019-09-30 09:30:26,542 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Header => PARSER: dummy
2019-09-30 09:30:26,543 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => PAYLOAD: default
2019-09-30 09:30:26,543 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => RECEIPT: default
2019-09-30 09:30:26,544 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => EXCEPTION: default
2019-09-30 09:30:26,545 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => HANDLER: default
2019-09-30 09:30:26,545 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => REPORTER: noop
2019-09-30 09:30:26,546 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => HTTP: null
2019-09-30 09:30:26,548 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => TRACER: noop
2019-09-30 09:30:26,549 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Executor => DEFAULT: 50
2019-09-30 09:30:26,550 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Executor => STATISTICS: 50
2019-09-30 09:30:26,551 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tag => GENERATOR: noop
2019-09-30 09:30:26,552 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Timestamp => SERVICE: system
2019-09-30 09:30:26,553 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Evidence => SERVICE: rem
2019-09-30 09:30:26,553 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transformer => DETECTOR: noop
2019-09-30 09:30:26,554 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transformer => WRAPPER: xml
2019-09-30 09:30:26,555 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Statistics => SERVICE: noop
2019-09-30 09:30:26,556 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transmission => VERIFIER: default
2019-09-30 09:30:26,557 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => HOSTNAME:
2019-09-30 09:30:26,559 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => MSGID_GENERATOR: default
2019-09-30 09:30:26,560 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => TYPE: cef-connectivity
2019-09-30 09:30:26,562 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Logging => CONFIG: logback.xml
2019-09-30 09:30:26,562 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Logging => SERVICE: logback
2019-09-30 09:30:26,564 INFO [no.difi.oxalis.commons.logging.LoggingHandler] Logging service: logback
Configuring Logback with configuration: C:\WORK\INFOCAMERE\ACCESSPOINT_AS4_CONNECT_CEF\oxalis\logback.xml

Message failed : null

Total time spent: 0s
Attempted to send 0 files
Failed transmissions: 1

Log Oxalis

2019-09-30 09:30:26,611 INFO [no.difi.oxalis.commons.security.CertificateModule] [] Certificate subject: C=BE, O=eDelivery, CN=ceftestparty68gw 
2019-09-30 09:30:26,613 INFO [no.difi.oxalis.commons.security.CertificateModule] [] Certificate issuer: C=BE, O=eDelivery, CN=ceftestparty68gw 
2019-09-30 09:30:26,885 INFO [no.difi.vefa.peppol.security.ModeDetector] [] Detection error (TEST): Certificate should be publicly signed. 
2019-09-30 09:30:26,885 INFO [no.difi.vefa.peppol.security.ModeDetector] [] Detected mode: LOCAL 
2019-09-30 09:30:26,885 INFO [no.difi.vefa.peppol.security.ModeDetector] [] You are running in a mode where only self-signed may be used. Truststores are unavailable and lookup is not configured, unless provided by you. 
2019-09-30 09:30:26,901 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] [] Prioritized list of transport profiles: 
2019-09-30 09:30:26,901 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] [] => peppol-transport-as4-v2_0 
2019-09-30 09:30:26,901 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] [] => busdox-transport-as2-ver1p0r1 
2019-09-30 09:30:26,901 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] [] => busdox-transport-as2-ver2p0 
2019-09-30 09:30:26,901 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] [] => busdox-transport-as2-ver1p0 
2019-09-30 09:30:27,088 DEBUG [no.difi.oxalis.as4.common.DummyHeaderParser] [] DummyHeaderParser: parse 
2019-09-30 09:30:27,385 ERROR [eu.sendregning.oxalis.Main] [] Execution failed: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided. 
java.util.concurrent.ExecutionException: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
 at java.util.concurrent.FutureTask.report(Unknown Source)
 at java.util.concurrent.FutureTask.get(Unknown Source)
 at eu.sendregning.oxalis.Main.main(Main.java:227)
Caused by: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
 at no.difi.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:116)
 at no.difi.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
 at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:168)
 at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:96)
 at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:49)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
thebilge commented 5 years ago

Hi, any updates on this? The documentation about CEF connectivity test says we need to set header parser to dummy. It should be okey to receive the message but it is not working while sending.

Current dummy parser returns an empty header object and since the oxalis-outbound module checks the values of the header, it fails to build the transmissionRequest. I tried to return a header with some dummy values in my header parser. It did build the transmissionRequest but this time CEF endpoint rejected.

ghost commented 5 years ago

Also having the same problem with version 4.1.0:

`java -classpath "standalone/;as4/" eu.sendregning.oxalis.Main -f E:\DATA\domibus-ceftestparty84gw-pmode.xml -u http://40.115.23.114:8080/domibus/services/msh?domain=static -s ceftestparty64gw -r cefsupportgw -e E:\DATA\CALVI-DEVELOP\Evidence -protocol "peppol-transport-as4-v2_0" -cert E:\APPS\CALVI-DEVELOP\Oxalis\ceftestparty84gw.crt 2019-10-17 15:26:01,484 INFO [no.difi.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'E:\APPS\CALVI-DEVELOP\Oxalis'. 2019-10-17 15:26:01,500 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Home folder: E:\APPS\CALVI-DEVELOP\Oxalis 2019-10-17 15:26:01,500 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Configuration folder: E:\APPS\CALVI-DEVELOP\Oxalis 2019-10-17 15:26:01,500 INFO [no.difi.oxalis.commons.config.ConfigModule] Configuration file: E:\APPS\CALVI-DEVELOP\Oxalis\oxalis.conf 2019-10-17 15:26:01,515 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => CONF: 2019-10-17 15:26:01,531 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: peppol/IN 2019-10-17 15:26:01,531 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: null 2019-10-17 15:26:02,187 INFO [no.difi.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'E:\APPS\CALVI-DEVELOP\Oxalis'. 2019-10-17 15:26:02,187 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Home folder: E:\APPS\CALVI-DEVELOP\Oxalis 2019-10-17 15:26:02,187 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Configuration folder: E:\APPS\CALVI-DEVELOP\Oxalis 2019-10-17 15:26:02,187 INFO [no.difi.oxalis.commons.config.ConfigModule] Configuration file: E:\APPS\CALVI-DEVELOP\Oxalis\oxalis.conf 2019-10-17 15:26:02,187 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TOTAL: 20 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_MAX_ROUTE: 2 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_CONNECT: 0 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_READ: 0 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_SOCKET: 0 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Error => TRACKER: quiet 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS2 => NOTIFICATION: not.in.use@difi.no 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => CONF: 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: peppol/IN 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: null 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Identifiers => HOSTNAME: 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Identifiers => MSGID_GENERATOR: default 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => PATH: ceftestparty84gwkeystore.jks 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => PASSWORD: test123 2019-10-17 15:26:02,203 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => KEY_ALIAS: ceftestparty84gw 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => KEY_PASSWORD: test123 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Header => PARSER: dummy 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => PAYLOAD: default 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => RECEIPT: default 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => EXCEPTION: default 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => HANDLER: default 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => REPORTER: noop 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => HTTP: null 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => TRACER: noop 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Executor => DEFAULT: 50 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Executor => STATISTICS: 50 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tag => GENERATOR: noop 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Timestamp => SERVICE: system 2019-10-17 15:26:02,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Evidence => SERVICE: rem 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transformer => DETECTOR: noop 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transformer => WRAPPER: xml 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Statistics => SERVICE: noop 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transmission => VERIFIER: default 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => HOSTNAME: 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => MSGID_GENERATOR: default 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => TYPE: cef-connectivity 2019-10-17 15:26:02,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Logging => CONFIG: null 2019-10-17 15:26:02,250 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Logging => SERVICE: logback 2019-10-17 15:26:02,250 INFO [no.difi.oxalis.commons.security.CertificateModule] Certificate subject: C=BE, O=eDelivery, CN=ceftestparty84gw 2019-10-17 15:26:02,250 INFO [no.difi.oxalis.commons.security.CertificateModule] Certificate issuer: C=BE, O=eDelivery, CN=ceftestparty84gw 2019-10-17 15:26:02,281 INFO [no.difi.vefa.peppol.security.ModeDetector] Detected mode: TEST 2019-10-17 15:26:02,297 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] Prioritized list of transport profiles: 2019-10-17 15:26:02,297 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => peppol-transport-as4-v2_0 2019-10-17 15:26:02,312 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0r1 2019-10-17 15:26:02,312 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver2p0 2019-10-17 15:26:02,312 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0

Message failed : null

2019-10-17 15:26:02,969 ERROR [eu.sendregning.oxalis.Main] Execution failed: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided. java.util.concurrent.ExecutionException: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided. at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at eu.sendregning.oxalis.Main.main(Main.java:227) Caused by: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided. at no.difi.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:116) at no.difi.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93) at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:168) at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:96) at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:49) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Total time spent: 0s Attempted to send 0 files Failed transmissions: 1`

When will there be a new release available or can I use a release candidate?

jannewaren commented 5 years ago

Hello! I just wanted to report we are now in this same exact situation. Using Oxalis 4.1.0 and Oxalis-AS4 4.1.0-RC10 trying to send anything with the standalone sender results in this error:

./bin-standalone/run-docker.sh -u http://einvoicing2.westeurope.cloudapp.azure.com:8080/domibus/services/msh --protocol "peppol-transport-as4-v2_0" -f conf/ubl.xml -cert conf/gitb-engine.crt -r "9908
:987654321" -s "9908:12345678" -d "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" -p "urn:www.cenbii.eu:profile:bii04:ver2.0"

Logs:

2019-10-22 12:03:59,204 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Home folder: /oxalis
2019-10-22 12:03:59,211 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Configuration folder: /oxalis
2019-10-22 12:03:59,213 INFO [no.difi.oxalis.commons.config.ConfigModule] Configuration file: /oxalis/oxalis.conf
2019-10-22 12:03:59,233 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2019-10-22 12:03:59,233 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: inbound
2019-10-22 12:03:59,233 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: null
2019-10-22 12:04:00,204 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Home folder: /oxalis
2019-10-22 12:04:00,205 INFO [no.difi.oxalis.commons.filesystem.FileSystemModule] Configuration folder: /oxalis
2019-10-22 12:04:00,205 INFO [no.difi.oxalis.commons.config.ConfigModule] Configuration file: /oxalis/oxalis.conf
2019-10-22 12:04:00,210 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TOTAL: 20
2019-10-22 12:04:00,210 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_MAX_ROUTE: 2
2019-10-22 12:04:00,210 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_CONNECT: 3600000
2019-10-22 12:04:00,210 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_READ: 300000
2019-10-22 12:04:00,210 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_SOCKET: 3600000
2019-10-22 12:04:00,211 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Error => TRACKER: quiet
2019-10-22 12:04:00,212 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS2 => NOTIFICATION: devops+peppol@maventa.com
2019-10-22 12:04:00,212 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2019-10-22 12:04:00,212 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: inbound
2019-10-22 12:04:00,213 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: null
2019-10-22 12:04:00,215 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Identifiers => HOSTNAME:
2019-10-22 12:04:00,216 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Identifiers => MSGID_GENERATOR: default
2019-10-22 12:04:00,218 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => PATH: /oxalis/conf/gateway_keystore.jks
2019-10-22 12:04:00,219 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => PASSWORD: [redacted from logs]
2019-10-22 12:04:00,220 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => KEY_ALIAS: blue_gw
2019-10-22 12:04:00,221 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Key store => KEY_PASSWORD: [redacted from logs]
2019-10-22 12:04:00,223 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Header => PARSER: dummy
2019-10-22 12:04:00,224 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => PAYLOAD: default
2019-10-22 12:04:00,226 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => RECEIPT: default
2019-10-22 12:04:00,226 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => EXCEPTION: default
2019-10-22 12:04:00,226 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Persister => HANDLER: default
2019-10-22 12:04:00,227 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => REPORTER: noop
2019-10-22 12:04:00,227 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => HTTP: null
2019-10-22 12:04:00,228 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tracing => TRACER: noop
2019-10-22 12:04:00,229 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Executor => DEFAULT: 50
2019-10-22 12:04:00,230 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Executor => STATISTICS: 50
2019-10-22 12:04:00,231 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Tag => GENERATOR: noop
2019-10-22 12:04:00,231 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Timestamp => SERVICE: system
2019-10-22 12:04:00,232 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Evidence => SERVICE: rem
2019-10-22 12:04:00,233 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transformer => DETECTOR: noop
2019-10-22 12:04:00,233 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transformer => WRAPPER: xml
2019-10-22 12:04:00,234 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Statistics => SERVICE: noop
2019-10-22 12:04:00,235 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Transmission => VERIFIER: default
2019-10-22 12:04:00,236 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => HOSTNAME:
2019-10-22 12:04:00,236 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => MSGID_GENERATOR: default
2019-10-22 12:04:00,236 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] AS4 => TYPE: cef-connectivity
2019-10-22 12:04:00,237 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Logging => CONFIG: null
2019-10-22 12:04:00,237 INFO [no.difi.oxalis.commons.settings.SettingsBuilder] Logging => SERVICE: logback
2019-10-22 12:04:00,498 INFO [no.difi.oxalis.commons.security.CertificateModule] Certificate subject: C=BE, O=eDelivery, CN=blue_gw
2019-10-22 12:04:00,499 INFO [no.difi.oxalis.commons.security.CertificateModule] Certificate issuer: C=BE, O=eDelivery, CN=blue_gw
2019-10-22 12:04:01,092 INFO [no.difi.vefa.peppol.security.ModeDetector] Detection error (TEST): Certificate should be publicly signed.
2019-10-22 12:04:01,096 INFO [no.difi.vefa.peppol.security.ModeDetector] Detected mode: LOCAL
2019-10-22 12:04:01,096 INFO [no.difi.vefa.peppol.security.ModeDetector] You are running in a mode where only self-signed may be used. Truststores are unavailable and lookup is not configured, unless provided by you.
2019-10-22 12:04:01,107 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] Prioritized list of transport profiles:
2019-10-22 12:04:01,109 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => bdxr-transport-ebms3-as4-v1p0
2019-10-22 12:04:01,109 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => peppol-transport-as4-v2_0
2019-10-22 12:04:01,109 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0r1
2019-10-22 12:04:01,109 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver2p0
2019-10-22 12:04:01,109 INFO [no.difi.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0

Message failed : null

2019-10-22 12:04:01,455 ERROR [eu.sendregning.oxalis.Main] Execution failed: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
java.util.concurrent.ExecutionException: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
  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)
Caused by: no.difi.oxalis.api.lang.OxalisTransmissionException: No transmission is provided.
  at no.difi.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:116)
  at no.difi.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
  at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:168)
  at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:96)
  at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:49)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:748)
Total time spent: 0s
Attempted to send 0 files
Failed transmissions: 1

I guess it's pretty clear where the error is coming from (TransmissionTask.java method createTransmissionRequest is to blame) but no idea what's wrong. Maybe I'm just missing some parameter when running this thing.

Next I'm planning to build my own version of Oxalis 4.1.0 with added logging to get visibility what's wrong.

jannewaren commented 5 years ago

Just a small update, we got rid of this No transmission is provided problem by disabling the option oxalis.header.parser=dummy in oxalis.conf - this was referred in here: https://github.com/difi/Oxalis-AS4/blob/master/docs/CEF-connectivity.md

I guess that option is then only meant for receiving access point implementation, not for the standalone sender? Having that option set when sending with the standalone sender, caused the whole header somewhere in TransmissionRequestBuilder.java be totally empty.

Now we are a bit further and we can actually send something to the CEF testbed. We get an error An error occurred while processing your request. Please check the message header for more details. back which apparently comes from their Domibus implementation.

evenos commented 5 years ago

Hi

The header parser attempts to extract information from the payload either being sent or received. As a consequence, transmissions will fail if the payload does not have any header to be extracted.

In the case where you attempt to send messages with a header, you should use the HeaderParser (for messages containing an SBDH the Oxalis defaults work fine). If your testing requires you to send messages without a header, the "dummy" header parser will let the messages pass, but you will be required to provide all necessary parameters yourself.

The majority of the feedback we have got is that people have problems using Oxalis-Standalone to perform the connectivity test. As a result, we are in the middle of updating the CEF-Connectivity guidelines with more comprehensive instructions for Oxalis-Standalone using a payload containing an SBDH that conforms to the CEF Connectivity guidelines, as well as for instructions for direct integrations with Oxalis.

alessandrolorenzetti commented 5 years ago

Hi Even, I followed all your instructions but I still make a mistake in the CEF Connectivity Test.

I also think that into file payload.xml there is the following error: field PROCESSID http://ec.europa.eu/edelivery/services/connectivity-service (I think Wrong) http://ec.europa.eu/e-delivery/services/connectivity-service (I think Right)

"C:\Program Files\Java\jre1.8.0_211\bin\java"^
 -classpath "./standalone410/*;./as4_rc10cef/*" eu.sendregning.oxalis.Main^
 -protocol "peppol-transport-as4-v2_0"^
 -u "http://40.115.23.114:8080/domibus/services/msh?domain=static"^
 -cert ./ceftestparty68gw/ceftestparty68gw.crt^
 -f ./DA_SPEDIRE/cef-sbd.xml
Address: http://40.115.23.114:8080/domibus/services/msh?domain=static
    HttpMethod: POST
    Content-Type: multipart/related; type="application/soap+xml"; boundary="uuid:2d219958-68fa-4a56-8ed1-7fb8b52b7ed6"; start="<root.message@cxf.apache.org>"; start-info="application/soap+xml"
    ExchangeId: b018bd2b-e896-4dcc-80cc-ff297002c16c
    ServiceName: outbound-service
    PortName: port
    PortTypeName: DummyImpl
    Headers: {Accept=*/*}
    Payload: 
--uuid:2d219958-68fa-4a56-8ed1-7fb8b52b7ed6
Content-Type: application/soap+xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>

   <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

   <env:Header>
    <ns2:Messaging xmlns:ns2="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:ns3="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" env:mustUnderstand="true" wsu:Id="_bb045158-9a91-4a5f-966f-5592bc5fce8c">
     <ns2:UserMessage>
      <ns2:MessageInfo>
       <ns2:Timestamp>2019-11-11T15:52:42.858+01:00</ns2:Timestamp>
       <ns2:MessageId>1573483962874.1.-1654905871.Oxalis@PC47344</ns2:MessageId>
      </ns2:MessageInfo>
      <ns2:PartyInfo>
       <ns2:From>
        <ns2:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered">ceftestparty68gw</ns2:PartyId>
        <ns2:Role>http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/initiator</ns2:Role>
       </ns2:From>
       <ns2:To>
        <ns2:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered">ceftestparty68gw</ns2:PartyId>
        <ns2:Role>http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/responder</ns2:Role>
       </ns2:To>
      </ns2:PartyInfo>
      <ns2:CollaborationInfo>
       <ns2:Service type="e-delivery">http://ec.europa.eu/e-delivery/services/connectivity-service</ns2:Service>
       <ns2:Action>submitMessage</ns2:Action>
       <ns2:ConversationId>1573483962874.2.-1654905871.Oxalis@PC47344</ns2:ConversationId>
      </ns2:CollaborationInfo>
      <ns2:MessageProperties>
       <ns2:Property name="originalSender">urn:oasis:names:tc:ebcore:partyid-type:unregistered:ceftestparty68gw</ns2:Property>
       <ns2:Property name="finalRecipient">urn:oasis:names:tc:ebcore:partyid-type:unregistered:cefsupportgw</ns2:Property>
      </ns2:MessageProperties>
      <ns2:PayloadInfo>
       <ns2:PartInfo href="cid:a34cb70b-f4c0-44f7-b4a5-127670f3d93e@PC47344">
        <ns2:PartProperties>
         <ns2:Property name="CompressionType">application/gzip</ns2:Property>
         <ns2:Property name="MimeType">application/xml</ns2:Property>
        </ns2:PartProperties>
       </ns2:PartInfo>
      </ns2:PayloadInfo>
     </ns2:UserMessage>
    </ns2:Messaging>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" env:mustUnderstand="true">
     <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="G36d1c499-93cf-4d3d-b5ab-29598764db5e">MIIDSzCCAjOgAwIBAgIJAM0HxvfQ47TSMA0GCSqGSIb3DQEBCwUAMDwxGTAXBgNVBAMMEGNlZnRlc3RwYXJ0eTY4Z3cxEjAQBgNVBAoMCWVEZWxpdmVyeTELMAkGA1UEBhMCQkUwHhcNMTkwNTAzMTEwODE5WhcNMjAwNTAyMTEwODE5WjA8MRkwFwYDVQQDDBBjZWZ0ZXN0cGFydHk2OGd3MRIwEAYDVQQKDAllRGVsaXZlcnkxCzAJBgNVBAYTAkJFMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1GMklenqQZOfCagCZmg6VJF7I9/VD59C+suuBAMdisD90lienA1k3soDp6RQOwQUnhNrmge24d23wWmeBgiyA9ZN8Aj92DGIwxa3RWYBNSJoV2caBQSnEVPtNzSzsN6q0jwOMnnagZRBAkfNZP8bKgztFDpDpG9HZ1zX0kXCd5BCWYzs5kXaF5/D/HngLGS0DgVu6l7JcZEBip9o0RopGCKF09xiHOOPJaNh7rkjT7H2zzby25qTsYUgPTggG/x4tjk+IjotPk91eMqqKl/HOAcELV4x+HGWCZqS6J41EzolBKWucHummVr7HntE1L+e+6cgEDl2jVZ1vHk/3t6qtQIDAQABo1AwTjAdBgNVHQ4EFgQUV7tKSGmt5TqBglaABWM8xbQYJGkwHwYDVR0jBBgwFoAUV7tKSGmt5TqBglaABWM8xbQYJGkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAZEVe3yNXpafr2V3Mrcds45KE3t+PrXZiUJDsS7FsAkXLnQ7qcp5LUC5QOw/BeSr2vcor20ImQlf4U1k9N6yWMHWHR+UxzirSZtmavy1WpRPzsSgTEolthsycfX+h7IKxtcBEAMaGYmOq6v7bqvnCb6tj6jIjhfHw7RSNmSlCPKnIxK9G88tFne2dSesx23kOhC4I9gCSNe4z0pfZDnrXLvLFZ44iSsjdSuf/IBsz+U77LxQsDqS8NXMDO9aHPVF1kOa6SOLeBR/KIClj1XE636knMpjlfYSeT/BEv11zTiR6V3+wnPCVnwhNB4d70h1rvS4OoO88nUz51yfFIa3tCA==</wsse:BinarySecurityToken>
     <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="EK-5bf6f32e-4e11-4901-84e2-50d560756a12">
      <xenc:EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#rsa-oaep">
       <ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
       <xenc11:MGF xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" Algorithm="http://www.w3.org/2009/xmlenc11#mgf1sha256"/>
      </xenc:EncryptionMethod>
      <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
       <wsse:SecurityTokenReference>
        <wsse:Reference URI="#G36d1c499-93cf-4d3d-b5ab-29598764db5e" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
       </wsse:SecurityTokenReference>
      </ds:KeyInfo>
      <xenc:CipherData>
       <xenc:CipherValue>i+65FeBwB1Leki6DYiTklfbwQbzJy0vPh2CARKamRfCShk0jS7GUzuTbw+IS7dAheAeDVGJ9WzNJboFhHra2poSKoA1LbZmAd3j/XWjlmo7eHDkRuVBo0xxxqEWn6aJC9ui36QyHetkPQWQXS2vhs/TrOszhMmPqe32eRXqOODfF9A9Zhb5HcryA0IeW0IGVN2KMzrbRGIe2tbMxxAZ5PjinF7BuOPTdpQH4qPbJVto0+x94Yg/QGTX4chqCaAZNCrGSncTILUuO5tx/DXyEJDeDkmdFFTC0QhIOZm+1LPzB2FrYya9rUSq7fFfIfkh2kmGjrkz8PVYlsfuGn9fW5w==</xenc:CipherValue>
      </xenc:CipherData>
      <xenc:ReferenceList>
       <xenc:DataReference URI="#ED-e5df2ec9-c001-4b45-a37e-758b734228d7"/>
      </xenc:ReferenceList>
     </xenc:EncryptedKey>
     <xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="ED-e5df2ec9-c001-4b45-a37e-758b734228d7" MimeType="" Type="http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Complete">
      <xenc:EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm"/>
      <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
       <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey">
        <wsse:Reference URI="#EK-5bf6f32e-4e11-4901-84e2-50d560756a12"/>
       </wsse:SecurityTokenReference>
      </ds:KeyInfo>
      <xenc:CipherData>
       <xenc:CipherReference URI="cid:a34cb70b-f4c0-44f7-b4a5-127670f3d93e@PC47344">
        <xenc:Transforms>
         <ds:Transform xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Ciphertext-Transform"/>
        </xenc:Transforms>
       </xenc:CipherReference>
      </xenc:CipherData>
     </xenc:EncryptedData>
     <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-d3e0bb66-f068-4612-8bf0-6a5944db2e7e">MIIDSzCCAjOgAwIBAgIJAM0HxvfQ47TSMA0GCSqGSIb3DQEBCwUAMDwxGTAXBgNVBAMMEGNlZnRlc3RwYXJ0eTY4Z3cxEjAQBgNVBAoMCWVEZWxpdmVyeTELMAkGA1UEBhMCQkUwHhcNMTkwNTAzMTEwODE5WhcNMjAwNTAyMTEwODE5WjA8MRkwFwYDVQQDDBBjZWZ0ZXN0cGFydHk2OGd3MRIwEAYDVQQKDAllRGVsaXZlcnkxCzAJBgNVBAYTAkJFMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1GMklenqQZOfCagCZmg6VJF7I9/VD59C+suuBAMdisD90lienA1k3soDp6RQOwQUnhNrmge24d23wWmeBgiyA9ZN8Aj92DGIwxa3RWYBNSJoV2caBQSnEVPtNzSzsN6q0jwOMnnagZRBAkfNZP8bKgztFDpDpG9HZ1zX0kXCd5BCWYzs5kXaF5/D/HngLGS0DgVu6l7JcZEBip9o0RopGCKF09xiHOOPJaNh7rkjT7H2zzby25qTsYUgPTggG/x4tjk+IjotPk91eMqqKl/HOAcELV4x+HGWCZqS6J41EzolBKWucHummVr7HntE1L+e+6cgEDl2jVZ1vHk/3t6qtQIDAQABo1AwTjAdBgNVHQ4EFgQUV7tKSGmt5TqBglaABWM8xbQYJGkwHwYDVR0jBBgwFoAUV7tKSGmt5TqBglaABWM8xbQYJGkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAZEVe3yNXpafr2V3Mrcds45KE3t+PrXZiUJDsS7FsAkXLnQ7qcp5LUC5QOw/BeSr2vcor20ImQlf4U1k9N6yWMHWHR+UxzirSZtmavy1WpRPzsSgTEolthsycfX+h7IKxtcBEAMaGYmOq6v7bqvnCb6tj6jIjhfHw7RSNmSlCPKnIxK9G88tFne2dSesx23kOhC4I9gCSNe4z0pfZDnrXLvLFZ44iSsjdSuf/IBsz+U77LxQsDqS8NXMDO9aHPVF1kOa6SOLeBR/KIClj1XE636knMpjlfYSeT/BEv11zTiR6V3+wnPCVnwhNB4d70h1rvS4OoO88nUz51yfFIa3tCA==</wsse:BinarySecurityToken>
     <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-83f5d15f-ab3c-4cd9-8a5a-a20b90d33838">
      <ds:SignedInfo>
       <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
        <ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="env"/>
       </ds:CanonicalizationMethod>
       <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
       <ds:Reference URI="#_abcff27e-1c26-41d7-b731-3deda1df4ddb">
        <ds:Transforms>
         <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
        </ds:Transforms>
        <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
        <ds:DigestValue>gaMJNIfxyQxUO7gX0qhtdaJS/RSqObPi8K8yC9IDiGY=</ds:DigestValue>
       </ds:Reference>
       <ds:Reference URI="#_bb045158-9a91-4a5f-966f-5592bc5fce8c">
        <ds:Transforms>
         <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
        </ds:Transforms>
        <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
        <ds:DigestValue>Y0sz0cEFi+0DYZLs6eXiCt90K3yfeIUFPD0/q9FE4Go=</ds:DigestValue>
       </ds:Reference>
      </ds:SignedInfo>
      <ds:SignatureValue>rn5to6VIpu3DMcWRHbjLa6byh3HxVLVx4xzDtGHzWBM095ZbWaUt7JwwH4Y674LGkRtI6Ya5V064hUl3krcj5LoFJTj97lvnXL9B8gTJEoMCChdGMehsbgZK/IPk9JNuUyvtMdsm+TWEi5XwfEGflOt7DpeBqPW0nyjD1lRfyoNqyEA/x9/yvI6xYN98aesVmZNvR3S41PdItKolg8Q+p7BFSzL4rucKwm1ZldlHFyCi4ZqRuFA/7FVuiV40eNrKQXhMNAIgXxIYp7m4dcBECYRqbrp4br22YC8ZM4O3BDaC2CPoqtxty/KS8D+5VkgiMdPTwgUSQNFStunA7IHZNQ==</ds:SignatureValue>
      <ds:KeyInfo Id="KI-fd47563a-8c8d-4428-923d-4d9d820b8f9a">
       <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STR-1784afda-56d1-4635-8ee0-89f20ad61161">
        <wsse:Reference URI="#X509-d3e0bb66-f068-4612-8bf0-6a5944db2e7e" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
       </wsse:SecurityTokenReference>
      </ds:KeyInfo>
     </ds:Signature>
    </wsse:Security>
   </env:Header>
   <env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="_abcff27e-1c26-41d7-b731-3deda1df4ddb"/>
  </env:Envelope>
--uuid:2d219958-68fa-4a56-8ed1-7fb8b52b7ed6
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <a34cb70b-f4c0-44f7-b4a5-127670f3d93e@PC47344>
CompressionType: application/gzip
MimeType: application/xml

g?8X4?B?????L?hQ??$ T&?]??:%8;?IS??????Q?[ ??j;}n`????Y????????^?w?~|?j???n\u???Q?X/?j??f?=?J)W??LW?p???g??n{HA n m{?Yx?H??j?z???`???K?}??n!?????? ??;?QK??Ky ??S&P.T???3?,? ?{E?A?K=??? |??d?rd1??P????r?N??|4???????9?J??#????B?d?? ???,?{?Qf?_? ?-?M?y?_????6??~3??y,?<?t&Q^6??? Za??????V?O???j7?*?k?E4??&??7?*??/?[??s?*???a??!????k??u|?@????f?????-?2??? b?4 8??V???*?#?$ Oa???7???¢????u??a?8?|? Bj???0????K?!C?3?S?`L7 K?di Wb?'<???~?d?w?tQ??^u?2?????:/P{?|??zz??Q[(??|V?-?M????/??>????+/?(k?]K????Q

??b 1E??_?7?? ?????R;&A?Z{8???*E??nv?T?1?e*???[^)B?? ?Q
?U?~L"??R?8???V????Y??[??@????Q}?t8?N?m.n?
?s??A??0??j????Df0???Y?????3?????2?C????p>eA?Ø h?P}?x??z?@?TnI?+?HC;???"6??;?5????i?x???Y@x??J*?f???c?k??"_9?OTozJo\???? ??8????x?~;?????T?| KW??????'Il
%B?)??u???w??Q??%??3??g??????y?'Y&*b??????z
?~?a(s???r???X????p?}???s?{J4???|?0?T?C???)q???o? ???K(???
??óf,[????^{?5??e?y?????????????!?4
??{?>????Qn?
--uuid:2d219958-68fa-4a56-8ed1-7fb8b52b7ed6--
ResponseCode: 500
    ExchangeId: b018bd2b-e896-4dcc-80cc-ff297002c16c
    ServiceName: outbound-service
    PortName: port
    PortTypeName: DummyImpl
    Headers: {transfer-encoding=chunked, Server=Apache-Coyote/1.1, connection=close, content-type=application/soap+xml;charset=UTF-8, Date=Mon, 11 Nov 2019 14:52:43 GMT}
    Payload: <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Header>
        <eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" env:mustUnderstand="true">
            <eb:SignalMessage>
                <eb:MessageInfo>
                    <eb:Timestamp>2019-11-11T14:52:43.563Z</eb:Timestamp>
                    <eb:MessageId>3704fc83-8f3a-46eb-b91f-b0047c89dd7a@domibus.eu</eb:MessageId>
                    <eb:RefToMessageId>1573483962874.1.-1654905871.Oxalis@PC47344</eb:RefToMessageId>
                </eb:MessageInfo>
                <eb:Error category="CONTENT" errorCode="EBMS:0004" origin="ebMS" refToMessageInError="1573483962874.1.-1654905871.Oxalis@PC47344" severity="failure" shortDescription="Other">
                    <eb:Description xml:lang="">Other</eb:Description>
                    <eb:ErrorDetail>unknown error occurred</eb:ErrorDetail>
                </eb:Error>
            </eb:SignalMessage>
        </eb:Messaging>
    </env:Header>
    <env:Body>
        <env:Fault>
            <env:Code>
                <env:Value>env:Receiver</env:Value>
            </env:Code>
            <env:Reason>
                <env:Text xml:lang="en">An error occurred while processing your request. Please check the message header for more details.</env:Text>
            </env:Reason>
        </env:Fault>
    </env:Body>
</env:Envelope>
alessandrolorenzetti commented 5 years ago

I was pointed out that I used a wrong certificate in the parameter -cert.

I changed the certificate and I put the CEF public certificate "cefsupportgw.crt"

Now .... oxalis sends sbd (A) cef responds with error (captured via a tcpmon) (B) oxalis goes wrong in reading the CEF error (C)

(a)

POST /domibus/services/msh?domain=static HTTP/1.1
Content-Type: multipart/related; type="application/soap+xml"; boundary="uuid:8f2e8dce-4c62-4674-b19b-76495fa02142"; start="<root.message@cxf.apache.org>"; start-info="application/soap+xml"
Accept: */*
User-Agent: Apache-CXF/3.3.3
Cache-Control: no-cache
Pragma: no-cache
Host: 40.115.23.114
Connection: keep-alive
Transfer-Encoding: chunked

ff9

--uuid:8f2e8dce-4c62-4674-b19b-76495fa02142
Content-Type: application/soap+xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>
   <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
         <ns2:Messaging xmlns:ns2="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:ns3="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" env:mustUnderstand="true" wsu:Id="_eaad2c29-1c17-4ec9-896d-e6db79d2577d">
            <ns2:UserMessage>
               <ns2:MessageInfo>
                  <ns2:Timestamp>2019-11-11T19:01:26.651+01:00</ns2:Timestamp>
                  <ns2:MessageId>1573495286658.1.-41050836.Oxalis@PC47344</ns2:MessageId>
               </ns2:MessageInfo>
               <ns2:PartyInfo>
                  <ns2:From>
                     <ns2:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered">ceftestparty68gw</ns2:PartyId>
                     <ns2:Role>http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/initiator</ns2:Role>
                  </ns2:From>
                  <ns2:To>
                     <ns2:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered">cefsupportgw</ns2:PartyId>
                     <ns2:Role>http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/responder</ns2:Role>
                  </ns2:To>
               </ns2:PartyInfo>
               <ns2:CollaborationInfo>
                  <ns2:Service type="e-delivery">http://ec.europa.eu/e-delivery/services/connectivity-service</ns2:Service>
                  <ns2:Action>submitMessage</ns2:Action>
                  <ns2:ConversationId>1573495286673.2.-41050836.Oxalis@PC47344</ns2:ConversationId>
               </ns2:CollaborationInfo>
               <ns2:MessageProperties>
                  <ns2:Property name="originalSender">urn:oasis:names:tc:ebcore:partyid-type:unregistered:ceftestparty68gw</ns2:Property>
                  <ns2:Property name="finalRecipient">urn:oasis:names:tc:ebcore:partyid-type:unregistered:cefsupportgw</ns2:Property>
               </ns2:MessageProperties>
               <ns2:PayloadInfo>
                  <ns2:PartInfo href="cid:322d13fb-5970-4232-8dd9-5c19c681693b@PC47344">
                     <ns2:PartProperties>
                        <ns2:Property name="CompressionType">application/gzip</ns2:Property>
                        <ns2:Property name="MimeType">application/xml</ns2:Property>
                     </ns2:PartProperties>
                  </ns2:PartInfo>
               </ns2:PayloadInfo>
            </ns2:UserMessage>
         </ns2:Messaging>
         <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" env:mustUnderstand="true">
            <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="Gec0b85ee-1e48-4e04-9692-335a8ac806aa">MIIDQzCCAiugAwIBAgIJAJh38vAiJqN5MA0GCSqGSIb3DQEBCwUAMDgxFTATBgNVBAMMDGNlZnN1cHBvcnRndzESMBAGA1UECgwJZURlbGl2ZXJ5MQswCQYDVQQGEwJCRTAeFw0xNzA2MjAxNDIwNDJaFw0yNTA5MDYxNDIwNDJaMDgxFTATBgNVBAMMDGNlZnN1cHBvcnRndzESMBAGA1UECgwJZURlbGl2ZXJ5MQswCQYDVQQGEwJCRTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK0NFIerjeSsa8h4UcH6cOv9YeMrRwEN++KLqKZURyE+G/J85B0i5Set1FLOgjtS/stVr8Q4ro9PNEbiCYahDu46xGX0QuPYzZvyL1zXhtkbAp26jEMO99LL8NHZOQv10/8wbQAONaZoZqbBlxfPO2tSJzyJjDX+F1wg3frCYh65QZczJVL2nMGyvEmsKbwPfgffSr9H2zBmCeTzeOa6sRfnc/vVE9MHXU4VwFnXaxzkOMzd6See07WoO1tMqN2GrgjCMhYgkp2d4XkHt0I1W2RiSdkok+x/to8u4Ir/+WX3EPVdy4LCqDoNUfpmWMun5LYEGo+A0MoAAKwbbnr/yFUCAwEAAaNQME4wHQYDVR0OBBYEFL0jF0xoKbgYVAONwdgjfNFwBvaBMB8GA1UdIwQYMBaAFL0jF0xoKbgYVAONwdgjfNFwBvaBMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAA+jLGxWTUJTvwOURShkrOGtZeQ0Ni0WKloK9lLX7GFVPOB5m4XY/2JQF14+BcFJ50UhMDaoC39Jwmn3kMkmpYJTnAFBPPvSldMun8yBEToqaa/IB9GkcGtlTCClc7eE2uCdFP44sz9KebnO9wCwTZYXoXMUGtSsL5BNouZOwZTLf+7vy3b5Pg8mpuZcXjyexHagJ3p7uUQS0ofMGIRtLHVrYz9kjj2zg34xUG8eeIo1JgMnjxY+2uw0glVzVaSDc2rAaz+fmau2UIPtrFYSv0AXX79ipWkCKoAO+uDu46av0SfwWlb5xmAWdmCTgze+T8XrtJ8rwgK6GGrdv8PVEl4=</wsse:BinarySecurityToken>
            <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="EK-47fde772-bfba-4f8d-904f-94b753ebf678">
               <xenc:EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#rsa-oaep">
                  <ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                  <xenc11:MGF xmlns:xenc11="http://www.w3.org/2009ff9/xmlenc11#" Algorithm="http://www.w3.org/2009/xmlenc11#mgf1sha256"/>
               </xenc:EncryptionMethod>
               <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                  <wsse:SecurityTokenReference>
                     <wsse:Reference URI="#Gec0b85ee-1e48-4e04-9692-335a8ac806aa" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
                  </wsse:SecurityTokenReference>
               </ds:KeyInfo>
               <xenc:CipherData>
                  <xenc:CipherValue>eTDQQ76UMb7F0BwKAiOfvTJwuCQFwQUrLnVJhY8S9/g3ZZI5e6RSG4VYcbVck2LE4anQawPwEYwVhCl/dQjymf57OkFuwwk+j3J1xTEGP2/Lg1q7a0uf5Pv/Lqw2r2/m+gJTOvvioNR070mtsvPOefx2jmMRKZAto48RaoOAJQCFWxZIv2xIcFRhNL6sESRoy6UvweciJTHynSJOg1dQZWebmdw2DCJpeocLmtzY7U+bTqI0l6jx5SSG3YfOThV0O24aoP1VFSM/+H9cKoeRVGCLozT9Ilod+440j9TN5M5K0HsctL5Lfxtv4ECgJ9zWnAFLAW0cwsU3r3hIBU9Ubw==</xenc:CipherValue>
               </xenc:CipherData>
               <xenc:ReferenceList>
                  <xenc:DataReference URI="#ED-ee9fc52f-cc52-4ad3-8483-567634e57e83"/>
               </xenc:ReferenceList>
            </xenc:EncryptedKey>
            <xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="ED-ee9fc52f-cc52-4ad3-8483-567634e57e83" MimeType="" Type="http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Complete">
               <xenc:EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm"/>
               <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                  <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey">
                     <wsse:Reference URI="#EK-47fde772-bfba-4f8d-904f-94b753ebf678"/>
                  </wsse:SecurityTokenReference>
               </ds:KeyInfo>
               <xenc:CipherData>
                  <xenc:CipherReference URI="cid:322d13fb-5970-4232-8dd9-5c19c681693b@PC47344">
                     <xenc:Transforms>
                        <ds:Transform xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Ciphertext-Transform"/>
                     </xenc:Transforms>
                  </xenc:CipherReference>
               </xenc:CipherData>
            </xenc:EncryptedData>
            <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-8bf24de0-8730-4614-9cda-b89fd9a17279">MIIDSzCCAjOgAwIBAgIJAM0HxvfQ47TSMA0GCSqGSIb3DQEBCwUAMDwxGTAXBgNVBAMMEGNlZnRlc3RwYXJ0eTY4Z3cxEjAQBgNVBAoMCWVEZWxpdmVyeTELMAkGA1UEBhMCQkUwHhcNMTkwNTAzMTEwODE5WhcNMjAwNTAyMTEwODE5WjA8MRkwFwYDVQQDDBBjZWZ0ZXN0cGFydHk2OGd3MRIwEAYDVQQKDAllRGVsaXZlcnkxCzAJBgNVBAYTAkJFMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1GMklenqQZOfCagCZmg6VJF7I9/VD59C+suuBAMdisD90lienA1k3soDp6RQOwQUnhNrmge24d23wWmeBgiyA9ZN8Aj92DGIwxa3RWYBNSJoV2caBQSnEVPtNzSzsN6q0jwOMnnagZRBAkfNZP8bKgztFDpDpG9HZ1zX0kXCd5BCWYzs5kXaF5/D/HngLGS0DgVu6l7JcZEBip9o0RopGCKF09xiHOOPJaNh7rkjT7H2zzby25qTsYUgPTggG/x4tjk+IjotPk91eMqqKl/HOAcELV4x+HGWCZqS6J41EzolBKWucHummVr7HntE1L+e+6cgEDl2jVZ1vHk/3t6qtQIDAQABo1AwTjAdBgNVHQ4EFgQUV7tKSGmt5TqBglaABWM8xbQYJGkwHwYDVR0jBBgwFoAUV7tKSGmt5TqBglaABWM8xbQYJGkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAZEVe3yNXpafr2V3Mrcds45KE3t+PrXZiUJDsS7FsAkXLnQ7qcp5LUC5QOw/BeSr2vcor20ImQlf4U1k9N6yWMHWHR+UxzirSZtmavy1WpRPzsSgTEolthsycfX+h7IKxtcBEAMaGYmOq6v7bqvnCb6tj6jIjhfHw7RSNmSlCPKnIxK9G88tFne2dSesx23kOhC4I9gCSNe4z0pfZDnrXLvLFZ44iSsjdSuf/IBsz+U77LxQsDqS8NXMDO9aHPVF1kOa6SOLeBR/KIClj1XE636knMpjlfYSeT/BEv11zTiR6V3+wnPCVnwhNB4d70h1rvS4OoO88nUz51yfFIa3tCA==</wsse:BinarySecurityToken>
            <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-309d7e79-7354-4cb0-83e5-290eaa1e432d">
               <ds:SignedInfo>
                  <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                     <ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="env"/>
                  </ds:CanonicalizationMethod>
                  <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
                  <ds:Reference URI="#_8a3b3cf2-5f2d-42bd-ad26-4299028ae2fe">
                     <ds:Transforms>
                        <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                     </ds:Transforms>
                     <ds:DigestMethod Algorithm="http://www.w3.org/200b5f1/04/xmlenc#sha256"/>
                     <ds:DigestValue>Z/AnKmDtQagsEkMv80pjNMQdwCYvwszb25Mh2Du/Qzw=</ds:DigestValue>
                  </ds:Reference>
                  <ds:Reference URI="#_eaad2c29-1c17-4ec9-896d-e6db79d2577d">
                     <ds:Transforms>
                        <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                     </ds:Transforms>
                     <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                     <ds:DigestValue>ul8Ez1dhNXei2e5P98xbdU2Qovb9Ay+lnXJQHvMarso=</ds:DigestValue>
                  </ds:Reference>
               </ds:SignedInfo>
               <ds:SignatureValue>L1bcSLmdXsWPamUL01rdU1N55/DX+JxLMDthPfNVc9q8PzCqwP6kfDqmfmVDyfXQjLBQa/0yrYKjfrL6ByUijqTD5vsHrWaYfPmLPOjAmdsOEyQ1I3gWFkNzvtOIwOIHecHARjsCnpVaKYtjRuOCPH2mteTjyHseAJDj3l+dTALA8pFEgSykPQeZ9ww5U3JpjqXhcnHWbsydhkclpjlERTeLL5f+kh9wUELgDfTx/tsIx8yvBBumxhCZEp2m/njJVXWGOTMlp8mzUuqLAoI0Fz+dZgnJo1f1siv9GF+43mc0pnakTuAvAWVnu2Fp5EavcrgsJuxKf2fqRhwd3CO0Lg==</ds:SignatureValue>
               <ds:KeyInfo Id="KI-e5335291-e0fc-4948-94ec-9939a39586d6">
                  <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STR-46e53f30-6c83-4536-97eb-58aaf6872eec">
                     <wsse:Reference URI="#X509-8bf24de0-8730-4614-9cda-b89fd9a17279" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
                  </wsse:SecurityTokenReference>
               </ds:KeyInfo>
            </ds:Signature>
         </wsse:Security>
      </env:Header>
      <env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="_8a3b3cf2-5f2d-42bd-ad26-4299028ae2fe"/>
   </env:Envelope>--uuid:8f2e8dce-4c62-4674-b19b-76495fa02142Content-Type: application/octet-streamContent-Transfer-Encoding: binaryContent-ID: 
   <322d13fb-5970-4232-8dd9-5c19c681693b@PC47344>CompressionType: application/gzipMimeType: application/xml
      <š~ˆÙn”ËaoªM¿ÔC¯¿ 

(B)

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 11 Nov 2019 18:01:25 GMT
Connection: close

fcc
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
   <env:Header>
      <eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" env:mustUnderstand="true" wsu:Id="_64ae83e2-6b88-4ba6-be53-2bf925a16bbf">
         <eb:SignalMessage>
            <eb:MessageInfo>
               <eb:Timestamp>2019-11-11T18:01:25.743Z</eb:Timestamp>
               <eb:MessageId>c1463008-7c1c-4c16-96a4-c1211c8818c4@domibus.eu</eb:MessageId>
               <eb:RefToMessageId>1573495286658.1.-41050836.Oxalis@PC47344</eb:RefToMessageId>
            </eb:MessageInfo>
            <eb:Error category="PROCESSING" errorCode="EBMS:0103" origin="security" refToMessageInError="1573495286658.1.-41050836.Oxalis@PC47344" severity="failure" shortDescription="PolicyNoncompliance">
               <eb:Description xml:lang="">The processor determined that the message's security methods, parameters, scope or other security policy-level requirements or agreements were not satisfied.</eb:Description>
               <eb:ErrorDetail>These policy alternatives can not be satisfied: {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SignedParts: An attachment was not signed/encrypted</eb:ErrorDetail>
            </eb:Error>
         </eb:SignalMessage>
      </eb:Messaging>
      <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" env:mustUnderstand="true">
         <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-3c5c21c3-87b7-4fe6-87f2-1aba8e4e57d9">
            <ds:SignedInfo>
               <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                  <ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="env"/>
               </ds:CanonicalizationMethod>
               <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
               <ds:Reference URI="#_79213fda-c75e-4c69-a40b-76bb524c4df9">
                  <ds:Transforms>
                     <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                  </ds:Transforms>
                  <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                  <ds:DigestValue>ukB9W67USAzfMHR/JdTB4hvKgodehOgiHLaT5CaybhQ=</ds:DigestValue>
               </ds:Reference>
               <ds:Reference URI="#_64ae83e2-6b88-4ba6-be53-2bf925a16bbf">
                  <ds:Transforms>
                     <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                  </ds:Transforms>
                  <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                  <ds:DigestValue>S5pqphznvVXI85WUVGMWl9Hsu4HL9fq/pz1H1j16xfw=</ds:DigestValue>
               </ds:Reference>
            </ds:SignedInfo>
            <ds:SignatureValue>IclWMTZBTNHM1Iia414+kji80JI73vpa6taZvffM+TlcaSad5QwgrZQpMFkEoJdhF1NBSjAT3uMP&#xd;km9kHodyvseAVr6VVVBykL+BP11qSuv+7U4Pw7a2ZE3U9N8fkKqb4NUizS7BpS6vvHfBbapmCKd0&#xd;6OSNL1f71gTReeqbHQosy2VVavSqKHEz/OB19Kv1AuD4mnCO88rtlNEd9JiLDzD2ENYiO6tlici6&#xd;Z5qmcVkOROySoXivYrNwOQQtz9+2ZQkLDthTlQGTidTPu6+AkuByecz8vEXC0qZl3wFlmqXHxBK2&#xd;5Fup3MtFTWCdiluQgxUvM4eaenfUE2vLtAqJdQ==</ds:SignatureValue>
            <ds:KeyInfo Id="KI-4599bbca-1fcb-4750-87ef-5db9b0b63db9">
               <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STR-f9c469c6-5f85-46c3-808b-b4721d3cc90e">
                  <wsse:KeyIdentifier EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">vSMXTGgpuBhUA43B2CN80XAG9oE=</wsse:KeyIdentifier>
               </wsse:SecurityTokenReference>
            </ds:KeyInfo>
         </ds:Signature>
      </wsse:Security>
   </env:Header>
   <env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="_79213fda-c75e-4c69-a40b-76bb524c4df9">
      <env:Fault>
         <env:Code>
            <env:Value>env:Receiver</env:Value>
         </env:Code>
         <env:Reason>
            <env:Text xml:lang="en">An error occurred while processing your request. Please check the message header for more details.</env:Text>
         </env:Reason>
      </env:Fault>
   </env:Body></env:Envelope>0

(C)

019-11-11 19:01:28,283 WARN [org.apache.cxf.phase.PhaseInterceptorChain] [] Interceptor for {oxalis.difi.no/}outbound-service#{http://cxf.apache.org/jaxws/dispatch}Invoke has thrown exception, unwinding now 
org.apache.cxf.binding.soap.SoapFault: The signature or decryption was invalid
    at org.apache.cxf.ws.security.wss4j.WSS4JUtils.createSoapFault(WSS4JUtils.java:236)
    at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:376)
    at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:212)
    at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JInInterceptor.handleMessage(PolicyBasedWSS4JInInterceptor.java:123)
    at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JInInterceptor.handleMessage(PolicyBasedWSS4JInInterceptor.java:76)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:829)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1693)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1570)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
    at org.apache.cxf.ext.logging.LoggingOutputStream.postClose(LoggingOutputStream.java:53)
    at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:228)
    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
    at org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:349)
    at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:322)
    at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:241)
    at no.difi.oxalis.as4.outbound.As4MessageSender.send(As4MessageSender.java:65)
    at no.difi.oxalis.as4.outbound.As4MessageSenderFacade.send(As4MessageSenderFacade.java:22)
    at no.difi.oxalis.api.outbound.MessageSender.send(MessageSender.java:59)
    at no.difi.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:149)
    at no.difi.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
    at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:168)
    at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:96)
    at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:49)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.wss4j.common.ext.WSSecurityException: The signature or decryption was invalid
    at org.apache.wss4j.dom.processor.SignatureProcessor.handleToken(SignatureProcessor.java:204)
    at org.apache.wss4j.dom.engine.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:340)
    at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:320)
    ... 35 common frames omitted
2019-11-11 19:01:28,286 ERROR [no.difi.oxalis.commons.error.QuietErrorTracker] [] [9571ab0d-3c5c-43f4-b4da-9b5b14ad9bc3] The signature or decryption was invalid
thebilge commented 5 years ago

Hi, could you please push the changes you implemented for "oxalis-as4-4.1.0-connectivity-SNAPSHOT-dist.zip" to a branch so that we can also work on it maybe? I suspect that we need to update policy.xml in the resource folder, or OxalisAlgorithmSuiteLoader...

Gagan34in commented 5 years ago

Hello Oxalis team,

For CEF eDelivery Connectivity test, I have updated the configuraton of Oxalis(AS4 RC10) mentioned at https://github.com/difi/Oxalis-AS4/blob/master/docs/CEF-connectivity.md but getting the below error. I have tried to change the configuration also but didn't help.

message.xml file:-

<?xml version="1.0" encoding="UTF-8"?>
<StandardBusinessDocument xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">
    <StandardBusinessDocumentHeader>
        <HeaderVersion>1.0</HeaderVersion>
        <Sender>
            <!-- This Sender section describes the PEPPOL Sender -->
            <!-- It corresponds to an OriginalSender in AS4 -->
          <Identifier>urn:oasis:names:tc:ebcore:partyid-type:unregistered:C1</Identifier>
      </Sender>
      <Receiver>
           <!-- This Sender section describes the PEPPOL Receiver -->
           <!-- It corresponds to an FinalRecipient in AS4 -->
           <Identifier>urn:oasis:names:tc:ebcore:partyid-type:unregistered:C4</Identifier>
        </Receiver>
        <DocumentIdentification>
            <!-- This DocumentIdentification section describes the content of the payload -->
            <!-- It is noe essential to the CEF connectivity test, but is needed for a valid SBDH -->

            <Standard>NONE</Standard>
            <TypeVersion>1.0</TypeVersion>
            <InstanceIdentifier>555bcb4c-940b-4694-9b90-d9b0ae1e937b</InstanceIdentifier>
            <Type>CEF Connectivity test</Type>
            <CreationDateAndTime>2019-10-30T11:20:05.304+02:00</CreationDateAndTime>
        </DocumentIdentification>
        <BusinessScope>
            <Scope>
                <!-- This Scope section describes the PEPPOL DocumentType -->
                <!-- It corresponds to an Action in AS4 (PMode[1].BusinessInfo.Action) -->

                <Type>DOCUMENTID</Type>
                <!-- We add an empty Identifier element to set the 'DocumentIdentifier Schema' to en empty string -->
                <!-- If we do not do this Oxalis-Standalone will add a default 'DocumentType Schema' that will prefix the Action with "busdox-docid-qns", or what is defined in this element, and "::" -->
                <Identifier/>
                <InstanceIdentifier>connectivity::cef##connectivity::submitMessage</InstanceIdentifier>
            </Scope>
            <Scope>
                <!-- This Scope section describes the PEPPOL Process -->
                <!-- It corresponds to an Service in AS4 (PMode[1].BusinessInfo.Service) -->

                <Type>PROCESSID</Type>
                <!-- This Identifier describes the PEPPOL 'Process Schema' and corresponds to a Service.Type in AS4 (PMode[].BusinessInfo.Service.type) -->
                <Identifier>e-delivery</Identifier>
                <!-- This InstanceIdentifier describes the PEPPOL 'Process Value' and corresponds to an Service in AS4 (PMode[1].BusinessInfo.Service) -->
                <InstanceIdentifier>http://ec.europa.eu/edelivery/services/connectivity-service</InstanceIdentifier>
            </Scope>
        </BusinessScope>
    </StandardBusinessDocumentHeader>
    <Request> eDelivery AS4 Connectivity test. Sending Message </Request>
</StandardBusinessDocument>

I got below error:-

2019-11-26 13:57:10,389 ERROR [no.difi.oxalis.commons.error.QuietErrorTracker] [bb5817f4-cabe-4e07-9952-be50e0b32a8d] An error occurred while processing your request. Please check the message header for more details.
javax.xml.ws.soap.SOAPFaultException: An error occurred while processing your request. Please check the message header for more details.
        at org.apache.cxf.jaxws.DispatchImpl.mapException(DispatchImpl.java:285)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:330)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:241)
        at no.difi.oxalis.as4.outbound.As4MessageSender.send(As4MessageSender.java:65)
        at no.difi.oxalis.as4.outbound.As4MessageSenderFacade.send(As4MessageSenderFacade.java:22)
        at no.difi.oxalis.api.outbound.MessageSender.send(MessageSender.java:59)
        at no.difi.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:149)
        at no.difi.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
        at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:168)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:96)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:49)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.cxf.binding.soap.SoapFault: An error occurred while processing your request. Please check the message header for more details.
        at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.unmarshalFault(Soap12FaultInInterceptor.java:156)
        at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:66)
        at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:52)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:112)
        at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:70)
        at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:35)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:829)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1693)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1570)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
        at org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:349)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:322)
        ... 15 common frames omitted
2019-11-26 13:57:10,404 ERROR [eu.sendregning.oxalis.Main] Execution failed: javax.xml.ws.soap.SOAPFaultException: An error occurred while processing your request. Please check the message header for more details.
java.util.concurrent.ExecutionException: javax.xml.ws.soap.SOAPFaultException: An error occurred while processing your request. Please check the message header for more details.
        at java.util.concurrent.FutureTask.report(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at eu.sendregning.oxalis.Main.main(Main.java:227)
Caused by: javax.xml.ws.soap.SOAPFaultException: An error occurred while processing your request. Please check the message header for more details.
        at org.apache.cxf.jaxws.DispatchImpl.mapException(DispatchImpl.java:285)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:330)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:241)
        at no.difi.oxalis.as4.outbound.As4MessageSender.send(As4MessageSender.java:65)
        at no.difi.oxalis.as4.outbound.As4MessageSenderFacade.send(As4MessageSenderFacade.java:22)
        at no.difi.oxalis.api.outbound.MessageSender.send(MessageSender.java:59)
        at no.difi.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:149)
        at no.difi.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
        at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:168)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:96)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:49)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.cxf.binding.soap.SoapFault: An error occurred while processing your request. Please check the message header for more details.
        at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.unmarshalFault(Soap12FaultInInterceptor.java:156)
        at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:66)
        at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:52)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:112)
        at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:70)
        at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:35)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:829)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1693)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1570)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
        at org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:349)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:322)
        ... 15 common frames omitted
Total time spent: 5s
Attempted to send 0 files
Failed transmissions: 1

My oxalis.conf file:-

oxalis.keystore {
     path=ceftestparty83gwkeystore.jks
     password = "*******"
     key.alias = "ceftestparty83gw"
     key.password = "*******"
 }

security.truststore.ap = ceftestparty83gwtruststore.jks
security.truststore.password = "*******"

oxalis.path.inbound="\Inbound"

oxalis.as4.type=cef-connectivity

lookup.locator.hostname="acc.edelivery.tech.ec.europa.eu/edelivery-sml/"

lookup.locator.class = no.difi.vefa.peppol.lookup.locator.BusdoxLocator

oxalis.module.as4.outbound = {
    class = no.difi.oxalis.as4.outbound.As4OutboundModule
    dependency = outbound.lookup
}

transport.as4_peppol_v1_to_v2_adapter = {
      profile: bdxr-transport-ebms3-as4-v1p0
      sender: oxalis-as4
      weight: 5000
}
oxalis.transformer.detector = noop

transport.as4_peppol_v2 = {
    profile: peppol-transport-as4-v2_0
    sender: oxalis-as4
    weight: 5000
}

transport.as2_sha1 = {
    profile: busdox-transport-as2-ver1p0
    sender: oxalis-as2
    weight: 1000
}

transport.as2_sha512 = {
    profile: busdox-transport-as2-ver1p0r1
    sender: oxalis-as2
    weight: 2000
}

Command:-

java -classpath "api/*;as4/*;bin/*" eu.sendregning.oxalis.Main 
-f resources/message.xml 
-u http://40.115.23.114:8080/domibus/services/msh?domain=static 
-s ceftestparty83gw 
-r cefsupportgw 
-protocol  peppol-transport-as4-v2_0 
-cert cert/ceftestparty83gw.crt
FrodeBjerkholt commented 4 years ago

I have now released RC11 that I have successfully performed a CEF connectivity test with.