You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/11/24 15:11:52 UTC

[jira] Created: (CAMEL-2222) camel-bean - Classes enhanced by CGLIB should skip cglib methods

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.


[jira] Commented: (CAMEL-2222) camel-bean - Classes enhanced by CGLIB should skip cglib methods

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56066#action_56066 ] 

Claus Ibsen commented on CAMEL-2222:
------------------------------------

I actually think that the fixes in 2.1 should let it run out of the box.

> 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.


[jira] Resolved: (CAMEL-2222) camel-bean - Classes enhanced by CGLIB should skip cglib methods

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2222.
--------------------------------

    Resolution: Fixed

Works already in 2.1 where I have done several fixes in the bean component already.

> 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.


[jira] Commented: (CAMEL-2222) camel-bean - Classes enhanced by CGLIB should skip cglib methods

Posted by "Kees de Kooter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56071#action_56071 ] 

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

Sorry, forgot to mention that. Yes I am using Camel 2.0.0.

The 2.1 snapshot is working fine!

> 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.


[jira] Commented: (CAMEL-2222) camel-bean - Classes enhanced by CGLIB should skip cglib methods

Posted by "Kees de Kooter (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (CAMEL-2222) camel-bean - Classes enhanced by CGLIB should skip cglib methods

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56067#action_56067 ] 

Claus Ibsen commented on CAMEL-2222:
------------------------------------

Looks like he is using Camel 2.0.0? Can you confirm which Camel version used?

And can you try using 2.1-SNAPSHOT?


> 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.