holodeck-b2b / Holodeck-B2B

Holodeck B2B is an AS4 system-to-system messaging solution that implements the OASIS specifications for ebMS3 and it's AS4 profile. For more information visit the project website
http://holodeck-b2b.org
GNU General Public License v3.0
74 stars 37 forks source link

NullPointerException #131

Closed hkreetz closed 1 year ago

hkreetz commented 2 years ago

Hello!

When we are trying to send a message via AS4, using a x509 cert, a NullPointerException occured. Without using certs, it works.

ServerA: VCOMMSTAGE10 (Sender):

`

http://VCOMMSTAGE11:9090/holodeckb2b/as4

`


ServerB: VCOMMSTAGE11 (Receiver):

`

class="org.holodeckb2b.core.axis2.HTTPListener"> 9090

`


ERROR:

The message could not be submitted to Holodeck B2B due to an error:

Error type: NullPointerException Error message: null

Error details

Exception cause: unknown Stacktrace: java.lang.NullPointerException at org.holodeckb2b.core.submission.MMDCompleter.complete(MMDCompleter.java:107) at org.holodeckb2b.core.submission.MMDCompleter.complete(MMDCompleter.java:92) at org.holodeckb2b.core.submission.MessageSubmitter.doSubmission(MessageSubmitter.java:106) at org.holodeckb2b.core.submission.MessageSubmitter.submitMessage(MessageSubmitter.java:74) at org.holodeckb2b.backend.file.SubmitOperation.doProcessing(SubmitOperation.java:135) at org.holodeckb2b.common.workers.AbstractWorkerTask.run(AbstractWorkerTask.java:80) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.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)


Log:

2022-05-16 09:12:27,475 (pool-2-thread-4)[DEBUG] org.holodeckb2b.core.submission.MessageSubmitter - Start submission of new User Message 2022-05-16 09:12:27,475 (pool-2-thread-4)[TRACE] org.holodeckb2b.core.submission.MessageSubmitter - Get the P-Mode for the message 2022-05-16 09:12:27,475 (pool-2-thread-4)[DEBUG] org.holodeckb2b.core.submission.MessageSubmitter - Found P-Mode: ex-pm-pull-x509 2022-05-16 09:12:27,475 (pool-2-thread-4)[TRACE] org.holodeckb2b.core.submission.MessageSubmitter - Check for completeness: combined with P-Mode all info must be known 2022-05-16 09:12:27,491 (pool-2-thread-4)[ERROR] org.holodeckb2b.backend.file.SubmitOperation - An error occured when processing message meta data from ex-mmd-pull-x509.mmd. Details: null

brianHK79 commented 2 years ago

Hello!

Exactly the same problem at me, with ex-pm-pull-ut-init.xml, ex-pm-pull-x509-init.xml.

Any news about this issue? Thank you for your help.

brianHK79 commented 2 years ago

Hello @hkreetz,

I've found the answer in closed issue: https://github.com/holodeck-b2b/Holodeck-B2B/issues/126 It works for me fine!

Regards

hkreetz commented 2 years ago

Hi brianHK79,

thanks a lot! Works for me as well. But a Null Pointer Exception shouldn't happened at this point anyway.

Regards