camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kees de Kooter (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-2222) camel-bean - Classes enhanced by CGLIB should skip cglib methods
Date Tue, 24 Nov 2009 14:31:52 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56065#action_56065
] 

Kees de Kooter commented on CAMEL-2222:
---------------------------------------

Here is a snippet of the code causing the trouble:

{code}
@Service("transactionService")
public class TransactionService {

	@Autowired
	private TransactionRepository repository;
	
	@Transactional
	@Handler
	public void createTransaction(OwnedEntity object) {
        ...
        }

{code}

And this is the tail of the stacktrace:
{noformat}
Caused by: org.apache.camel.component.bean.AmbiguousMethodCallException: Ambiguous method
invocations possible: [public final void com.globaltravelcloud.service.TransactionService$$EnhancerByCGLIB$$73b4ab00.setPreFiltered(boolean),

public final void com.globaltravelcloud.service.TransactionService$$EnhancerByCGLIB$$73b4ab00.setExposeProxy(boolean)]

on the exchange: Exchange[JmsMessage: ActiveMQObjectMessage {commandId = 11, responseRequired
= true, messageId = ID:wollongong-50886-1259072603806-2:2:1:3:1, originalDestination = null,
originalTransactionId = null,
 producerId = ID:wollongong-50886-1259072603806-2:2:1:3, destination = queue://incomingchanges,
transactionId = null,
 expiration = 0, timestamp = 1259072982484, arrival = 0, brokerInTime = 1259072982492, brokerOutTime
= 1259072982498, correlationId = null, replyTo = null, persistent = true, type = null, priority
= 4, groupID = null, groupSequence = 0,
 targetConsumerId = null, compressed = false, userID = null, content = org.apache.activemq.util.ByteSequence@7f2886,

marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 3460, properties
= null, 
readOnlyProperties = true, readOnlyBody = true, droppable = false}]
	at org.apache.camel.component.bean.BeanInfo.chooseBestPossibleMethodInfo(BeanInfo.java:449)
	at org.apache.camel.component.bean.BeanInfo.chooseMethodWithMatchingBody(BeanInfo.java:410)
	at org.apache.camel.component.bean.BeanInfo.chooseMethod(BeanInfo.java:360)
	at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:148)
	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:109)
	at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)
	at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)
	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:81)
	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:79)
	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:141)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:78)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:61)
	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:186)
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:155)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:148)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
	at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
	at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
	at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:83)
	... 9 more

{noformat}

> camel-bean - Classes enhanced by CGLIB should skip cglib methods
> ----------------------------------------------------------------
>
>                 Key: CAMEL-2222
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2222
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> See nabble
> http://old.nabble.com/AmbiguousMethodCallException-on-transactional-spring-bean-to26496269.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message