Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmanko committed Apr 5, 2023
1 parent d9e54b0 commit 7e081db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/java/org/openhim/mediator/dsub/DsubActor.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ private void handleMessage(MediatorHTTPRequest request) throws JAXBException {
Object result = parseMessage(request);

if (result instanceof Subscribe) {
try {
Subscribe subscribeRequest = (Subscribe) result;

try {
handleSubscriptionMessage(subscribeRequest);
MediatorHTTPResponse creationSuccess = new MediatorHTTPResponse(request,
"Subscription created with success",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.openhim.mediator.dsub.service;

import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.List;

Expand Down Expand Up @@ -98,11 +99,11 @@ public List<NotificationMessageHolderType> getDocumentsForPullPoint(String facil
try {
return pullPoint.getMessages(maxMessages);
}
catch (UnableToGetMessagesFault | ResourceUnknownFault | ParserConfigurationException e) {
catch (UnableToGetMessagesFault | ResourceUnknownFault | ParserConfigurationException | UnsupportedEncodingException e) {
log.error("An error occured while trying to get documents for pullpoint", e);
e.printStackTrace();
}
return null;
return null;
}

@Override
Expand Down

0 comments on commit 7e081db

Please sign in to comment.