sdeleuze
01/23/2019, 8:58 AMhho
01/23/2019, 9:17 AMPersistable
😟sdeleuze
01/23/2019, 9:25 AMreik.schatz
01/23/2019, 10:04 AMreik.schatz
01/23/2019, 10:06 AMreik.schatz
01/23/2019, 10:08 AMmasc3d
01/24/2019, 5:03 PMUndeclaredThrowableException
when an exception occurs within a kt method which is invoked through spring proxy (eg. when using @Transactional
)masc3d
01/24/2019, 5:03 PM@Throws(Throwable::class)
sdeleuze
01/30/2019, 10:46 AMsdeleuze
01/30/2019, 1:49 PMsdeleuze
02/01/2019, 10:40 AMreik.schatz
02/07/2019, 3:07 PMreik.schatz
02/07/2019, 3:07 PMreik.schatz
02/07/2019, 3:07 PM@Component
interface EventTransformer { ..
@Component
class LoginEventTransformer: EventTransformer { ..
@Component
class FieldValueListRowMapper(transformers: List<EventTransformer>) { // autowires properly
reik.schatz
02/13/2019, 9:21 AMsnowe
02/13/2019, 5:18 PMbjonnh
02/14/2019, 10:00 PMbjonnh
02/14/2019, 10:00 PMbjonnh
02/14/2019, 10:00 PMbjonnh
02/14/2019, 10:02 PMbjonnh
02/14/2019, 10:02 PMsnowe
02/14/2019, 10:16 PMMockito cannot mock this class: class org.springframework.amqp.rabbit.core.RabbitTemplate.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 1.8
JVM vendor name : Oracle Corporation
JVM vendor version : 25.192-b12
JVM name : Java HotSpot(TM) 64-Bit Server VM
JVM version : 1.8.0_192-b12
JVM info : mixed mode
OS name : Mac OS X
OS version : 10.14.3
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, interface org.springframework.amqp.rabbit.core.RabbitOperations, interface org.springframework.beans.factory.BeanFactoryAware, class org.springframework.amqp.rabbit.connection.RabbitAccessor, interface org.springframework.amqp.core.MessageListener, interface org.springframework.beans.factory.Aware, class org.springframework.amqp.rabbit.core.RabbitTemplate, interface org.springframework.amqp.core.AmqpTemplate, interface org.springframework.amqp.rabbit.connection.PublisherCallbackChannel$Listener, interface org.springframework.beans.factory.BeanNameAware, interface org.springframework.context.Lifecycle, interface org.springframework.amqp.rabbit.support.ListenerContainerAware, interface org.springframework.beans.factory.InitializingBean]
Obviously it makes sense, but the underlying problem is that this code works perfectly fine on Spring Boot 1.5.6, but as soon as I upgraded to 2.1.2.RELEASE I receive this error.snowe
02/14/2019, 10:18 PMsdeleuze
02/24/2019, 10:45 AMbjonnh
02/25/2019, 9:38 PMbjonnh
02/25/2019, 9:38 PMbjonnh
02/25/2019, 9:40 PMs1m0nw1
02/28/2019, 2:12 PMsdeleuze
03/08/2019, 5:30 PMpoohbar
03/08/2019, 7:58 PMspring.main.allow-bean-definition-overriding=true
Otherwise overriding `@Component`s did not work at all.