Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException: little improvement #143

Open
gozus19p opened this issue Dec 1, 2020 · 0 comments
Open

NullPointerException: little improvement #143

gozus19p opened this issue Dec 1, 2020 · 0 comments
Labels
bug Something isn't working issue Issue which are under review, can be bug
Milestone

Comments

@gozus19p
Copy link

gozus19p commented Dec 1, 2020

Hi all,

I am opening this issue with the intent to suggest a little improvement.

This morning I did some inbound tests. The sender produced an AS4 SOAP Envelope not suitable with OpenPEPPOL 4 corner scenario.
He basically omitted UserMessage / MessageProperties field. If I am right, this field is defined as optional in OASIS standard, but it is mandatory in PEPPOL scenario because the receiver must verify its values (they must match with the ones defined in SBDH), referring to this.

Oxalis threw a NullPointerException on no.difi.oxalis.as4.inbound.As4InboundHandler:446:

private As4EnvelopeHeader parseAs4EnvelopeHeader(UserMessage userMessage) {
(...)
        as4EnvelopeHeader.setMessageProperties(userMessage.getMessageProperties().getProperty()
                .stream()
                .map(p -> new As4MessageProperty(p.getName(), p.getType(), p.getValue()))
                .collect(Collectors.toCollection(As4MessageProperties::new)));
(...)
}

I thought it would be useful to share this with you.
Maybe this case could be handled throwing a checked Exception or something similar just to avoid NullPointerException.

The issue has been solved by fixing the sender's SOAP Envelope. I opened this on GitHub just to share the case.

Oxalis AS4 plugin version: 4.1.9 (latest release available).

Have a nice day and stay safe!
Manuel

@SuperJuell SuperJuell added the enhancement New feature or request label Feb 2, 2021
@aaron-kumar aaron-kumar added bug Something isn't working Pri/L Low priority and removed enhancement New feature or request labels Jun 3, 2021
BuddhimaSan pushed a commit to BuddhimaSan/Oxalis-AS4 that referenced this issue Sep 21, 2021
@BuddhimaSan BuddhimaSan mentioned this issue Sep 21, 2021
2 tasks
BuddhimaSan pushed a commit to BuddhimaSan/Oxalis-AS4 that referenced this issue Oct 6, 2021
@aaron-kumar aaron-kumar added the issue Issue which are under review, can be bug label Dec 6, 2021
@aaron-kumar aaron-kumar added this to the 5.x.x milestone Dec 6, 2021
@aaron-kumar aaron-kumar removed the Pri/L Low priority label Jul 29, 2022
@aaron-kumar aaron-kumar modified the milestones: 5.x.x, Future, 6.x.x Jan 16, 2023
@aaron-kumar aaron-kumar modified the milestones: 6.x.x, 7.x.x Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working issue Issue which are under review, can be bug
Projects
Status: Future
Development

No branches or pull requests

3 participants