Skip to content

Commit

Permalink
Merge pull request #172 from cinovo/timeoutexceptionproblem
Browse files Browse the repository at this point in the history
timeoutexception problem with daemonscanner
  • Loading branch information
YukiInu authored Jan 10, 2025
2 parents 7ae1f5e + bf8c877 commit 8674869
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 34 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# current master
* Major bug in interconnect core: DaemonScanner causes IllegalArgumentException due to wrong path of TimeoutException

# 1.36
* Update dependencies
* Spring 5.3.39
* AWS 1.12.772
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import de.taimos.dvalin.interconnect.core.daemon.util.DaemonExceptionMapper;
import de.taimos.dvalin.interconnect.model.service.DaemonError;
import de.taimos.dvalin.jms.IJmsConnector;
import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.exceptions.SerializationException;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.SerializationException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;
import de.taimos.dvalin.jms.model.JmsContext.JmsContextBuilder;
import de.taimos.dvalin.jms.model.JmsTarget;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import de.taimos.dvalin.interconnect.model.event.IEvent;
import de.taimos.dvalin.interconnect.model.service.DaemonError;
import de.taimos.dvalin.jms.IJmsConnector;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;
import org.springframework.core.annotation.AnnotationUtils;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.taimos.dvalin.interconnect.core;

import de.taimos.dvalin.interconnect.model.service.DaemonError;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import de.taimos.dvalin.interconnect.model.service.DaemonError;
import de.taimos.dvalin.jms.IJmsConnector;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import de.taimos.dvalin.interconnect.core.daemon.model.InterconnectContext;
import de.taimos.dvalin.interconnect.model.service.DaemonError;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;

import java.util.concurrent.Future;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import de.taimos.dvalin.interconnect.model.service.DaemonScanner.DaemonMethod;
import de.taimos.dvalin.interconnect.model.service.IDaemonHandler;
import de.taimos.dvalin.jms.crypto.ICryptoService;
import de.taimos.dvalin.jms.exceptions.MessageCryptoException;
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException;
import org.slf4j.Logger;

import javax.jms.JMSException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
import de.taimos.dvalin.jms.IJmsConnector;
import de.taimos.dvalin.jms.exceptions.CreationException;
import de.taimos.dvalin.jms.exceptions.CreationException.Source;
import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.exceptions.SerializationException;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.SerializationException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;
import de.taimos.dvalin.jms.model.JmsResponseContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.google.common.base.Preconditions;
import de.taimos.dvalin.interconnect.model.InterconnectMapper;
import de.taimos.dvalin.interconnect.model.InterconnectObject;
import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.model.JmsContext;
import de.taimos.dvalin.jms.model.JmsTarget;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import de.taimos.dvalin.interconnect.model.InterconnectMapper;
import de.taimos.dvalin.interconnect.model.InterconnectObject;
import de.taimos.dvalin.interconnect.model.service.DaemonScanner.DaemonMethod;
import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.model.JmsResponseContext;
import de.taimos.dvalin.jms.model.JmsTarget;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import de.taimos.dvalin.interconnect.core.daemon.util.DaemonMethodInvocationHandler;
import de.taimos.dvalin.interconnect.model.service.DaemonError;
import de.taimos.dvalin.interconnect.model.service.IDaemon;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;

/**
* Copyright 2015 Taimos GmbH<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import de.taimos.dvalin.interconnect.core.daemon.model.InterconnectContext;
import de.taimos.dvalin.interconnect.core.daemon.util.DaemonExceptionMapper;
import de.taimos.dvalin.interconnect.model.service.DaemonError;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import de.taimos.dvalin.jms.exceptions.CommunicationFailureException.CommunicationError;
import de.taimos.dvalin.jms.exceptions.CreationException;
import de.taimos.dvalin.jms.exceptions.CreationException.Source;
import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.exceptions.MessageCryptoException;
import de.taimos.dvalin.jms.exceptions.SerializationException;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException;
import de.taimos.dvalin.interconnect.core.exceptions.SerializationException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;

/**
* Copyright 2024 Cinovo AG<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import de.taimos.dvalin.interconnect.model.service.DaemonScanner;
import de.taimos.dvalin.interconnect.model.service.DaemonScanner.DaemonMethod;
import de.taimos.dvalin.interconnect.model.service.IDaemon;
import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.model.JmsTarget;

import java.lang.reflect.InvocationHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import de.taimos.dvalin.jms.crypto.ACryptoService;
import de.taimos.dvalin.jms.crypto.JmsMessageCryptoUtil;
import de.taimos.dvalin.jms.exceptions.MessageCryptoException;
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException;
import org.apache.activemq.command.ActiveMQTextMessage;

import javax.jms.JMSException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.taimos.dvalin.jms.exceptions;
package de.taimos.dvalin.interconnect.core.exceptions;

/*
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.taimos.dvalin.jms.exceptions;
package de.taimos.dvalin.interconnect.core.exceptions;

/*
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.taimos.dvalin.jms.exceptions;
package de.taimos.dvalin.interconnect.core.exceptions;

/*
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.taimos.dvalin.jms.exceptions;
package de.taimos.dvalin.interconnect.core.exceptions;

/*
* #%L
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* #L%
*/

import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.exceptions.SerializationException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.SerializationException;
import de.taimos.dvalin.jms.model.JmsContext;
import de.taimos.dvalin.jms.model.JmsResponseContext;

Expand Down
6 changes: 3 additions & 3 deletions jms/core/src/main/java/de/taimos/dvalin/jms/JmsConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import de.taimos.dvalin.jms.exceptions.CommunicationFailureException.CommunicationError;
import de.taimos.dvalin.jms.exceptions.CreationException;
import de.taimos.dvalin.jms.exceptions.CreationException.Source;
import de.taimos.dvalin.jms.exceptions.InfrastructureException;
import de.taimos.dvalin.jms.exceptions.SerializationException;
import de.taimos.dvalin.jms.exceptions.TimeoutException;
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;
import de.taimos.dvalin.interconnect.core.exceptions.SerializationException;
import de.taimos.dvalin.interconnect.core.exceptions.TimeoutException;
import de.taimos.dvalin.jms.model.JmsContext;
import de.taimos.dvalin.jms.model.JmsResponseContext;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.taimos.dvalin.jms.crypto;

import de.taimos.dvalin.jms.exceptions.MessageCryptoException;
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException;

import javax.jms.JMSException;
import javax.jms.Message;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.taimos.dvalin.jms.crypto;

import de.taimos.dvalin.jms.exceptions.MessageCryptoException;
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException;

import javax.jms.JMSException;
import javax.jms.Message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* #L%
*/

import de.taimos.dvalin.jms.exceptions.MessageCryptoException;
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException;
import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package de.taimos.dvalin.jms.exceptions;

import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;

/**
* Copyright 2024 Cinovo AG<br>
* <br>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package de.taimos.dvalin.jms.exceptions;

import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException;

/**
* Copyright 2024 Cinovo AG<br>
* <br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* #L%
*/

import de.taimos.dvalin.jms.exceptions.MessageCryptoException;
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

Expand Down

0 comments on commit 8674869

Please sign in to comment.