EntryPointNotFoundException using custom component

View: New views
4 Messages — Rating Filter:   Alert me  

EntryPointNotFoundException using custom component

by marcelo.evertree :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have a service that uses a custom component. This component is a POJO with one method, that should receive the result of a custom transformer. Tha fact is I am receiving the following exception:

********************************************************************************
Message               : [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
]
Type                  : org.mule.model.resolvers.EntryPointNotFoundException
Code                  : MULE_ERROR--2
JavaDoc               : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/model/resolver
s/EntryPointNotFoundException.html
********************************************************************************
Exception stack is:
1. [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
] (org.mule.model.resolvers.EntryPointNotFoundException)
  org.mule.model.resolvers.DefaultEntryPointResolverSet:63 (http://www.mulesource.org/docs/site/curr
ent2/apidocs/org/mule/model/resolvers/EntryPointNotFoundException.html)
********************************************************************************

Reading the stacktrace, I see Mule is complaining that my component  br.com.cit.pms.integration.VacationHistoryChangedListener does not have a method with a signature containing br.com.cit.support.humanresources.service.VacationHistoryChangedEvent, which is not true, since the component code is this:
 

 
 
import br.com.cit.support.humanresources.service.VacationHistoryChangedEvent 
public class VacationHistoryChangedListener {

private String vacationProjectID;

public void setVacationProjectID(String vacationProjectID) {
this.vacationProjectID = vacationProjectID;
}

public ReallocateResourceRequest onVacationHistoryChanged(
VacationHistoryChangedEvent event) throws Exception {
            ....
            return request;
        }
}

I suppose mu config file is right, too:

        <service name="pms.vacation_changed_history">
         <inbound>
         <jms:inbound-endpoint topic="Event.Support.HumanResources.VacationHistoryChanged">
         <transformers>
                        <jms:jmsmessage-to-object-transformer/>
                        <custom-transformer class="br.com.cit.mule.XmlToJaxbObjectTransformer">
                         <spring:property name="jaxbObjectClass" 
                         value="br.com.cit.support.humanresources.service.VacationHistoryChangedEvent" />
                        </custom-transformer>
         </transformers>
         </jms:inbound-endpoint>
         </inbound>
<component>
   <singleton-object class="br.com.cit.pms.integration.VacationHistoryChangedListener">
       <property key="vacationProjectID" value="VACA01"/>
   </singleton-object>
</component> 

So, according to this scenario, why can't Mule find my beloved method???

Thanks! 

Re: EntryPointNotFoundException using custom component

by David Dossot-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you sure that the message payload type is VacationHistoryChangedEvent when the transformers have been applied to your inbound JMS message?

D.


On Thu, Nov 5, 2009 at 9:59 AM, Marcelo Augusto <maugusto@...> wrote:
Hi all,

I have a service that uses a custom component. This component is a POJO with one method, that should receive the result of a custom transformer. Tha fact is I am receiving the following exception:

********************************************************************************
Message               : [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
]
Type                  : org.mule.model.resolvers.EntryPointNotFoundException
Code                  : MULE_ERROR--2
JavaDoc               : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/model/resolver
s/EntryPointNotFoundException.html
********************************************************************************
Exception stack is:
1. [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
] (org.mule.model.resolvers.EntryPointNotFoundException)
  org.mule.model.resolvers.DefaultEntryPointResolverSet:63 (http://www.mulesource.org/docs/site/curr
ent2/apidocs/org/mule/model/resolvers/EntryPointNotFoundException.html)
********************************************************************************

Reading the stacktrace, I see Mule is complaining that my component  br.com.cit.pms.integration.VacationHistoryChangedListener does not have a method with a signature containing br.com.cit.support.humanresources.service.VacationHistoryChangedEvent, which is not true, since the component code is this:
 

 
 
import br.com.cit.support.humanresources.service.VacationHistoryChangedEvent 
public class VacationHistoryChangedListener {

private String vacationProjectID;

public void setVacationProjectID(String vacationProjectID) {
this.vacationProjectID = vacationProjectID;
}

public ReallocateResourceRequest onVacationHistoryChanged(
VacationHistoryChangedEvent event) throws Exception {
            ....
            return request;
        }
}

I suppose mu config file is right, too:

        <service name="pms.vacation_changed_history">
         <inbound>
         <jms:inbound-endpoint topic="Event.Support.HumanResources.VacationHistoryChanged">
         <transformers>
                        <jms:jmsmessage-to-object-transformer/>
                        <custom-transformer class="br.com.cit.mule.XmlToJaxbObjectTransformer">
                         <spring:property name="jaxbObjectClass" 
                         value="br.com.cit.support.humanresources.service.VacationHistoryChangedEvent" />
                        </custom-transformer>
         </transformers>
         </jms:inbound-endpoint>
         </inbound>
<component>
   <singleton-object class="br.com.cit.pms.integration.VacationHistoryChangedListener">
       <property key="vacationProjectID" value="VACA01"/>
   </singleton-object>
</component> 

So, according to this scenario, why can't Mule find my beloved method???

Thanks! 


Re: EntryPointNotFoundException using custom component

by marcelo.evertree :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh yes, I am. 

I forgot to mention, but I am logging on console the object returned by my transformer: VacationHistoryChangedEvent. Also note that the stack mentions it is trying to match this type of object.

I found out the problem! :-)

The problem was my component didn't have a setter method for the property. At least that was the change I made that eliminated the exception. I've read it somewhere and now I remember to try it.

It's a shame there is no clue in the stack that was the problem. I hope this thread can help other people...

Thanks!

On Thu, Nov 5, 2009 at 4:07 PM, David Dossot <ddossot@...> wrote:
Are you sure that the message payload type is VacationHistoryChangedEvent when the transformers have been applied to your inbound JMS message?

D.



On Thu, Nov 5, 2009 at 9:59 AM, Marcelo Augusto <maugusto@...> wrote:
Hi all,

I have a service that uses a custom component. This component is a POJO with one method, that should receive the result of a custom transformer. Tha fact is I am receiving the following exception:

********************************************************************************
Message               : [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
]
Type                  : org.mule.model.resolvers.EntryPointNotFoundException
Code                  : MULE_ERROR--2
JavaDoc               : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/model/resolver
s/EntryPointNotFoundException.html
********************************************************************************
Exception stack is:
1. [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
] (org.mule.model.resolvers.EntryPointNotFoundException)
  org.mule.model.resolvers.DefaultEntryPointResolverSet:63 (http://www.mulesource.org/docs/site/curr
ent2/apidocs/org/mule/model/resolvers/EntryPointNotFoundException.html)
********************************************************************************

Reading the stacktrace, I see Mule is complaining that my component  br.com.cit.pms.integration.VacationHistoryChangedListener does not have a method with a signature containing br.com.cit.support.humanresources.service.VacationHistoryChangedEvent, which is not true, since the component code is this:
 

 
 
import br.com.cit.support.humanresources.service.VacationHistoryChangedEvent 
public class VacationHistoryChangedListener {

private String vacationProjectID;

public void setVacationProjectID(String vacationProjectID) {
this.vacationProjectID = vacationProjectID;
}

public ReallocateResourceRequest onVacationHistoryChanged(
VacationHistoryChangedEvent event) throws Exception {
            ....
            return request;
        }
}

I suppose mu config file is right, too:

        <service name="pms.vacation_changed_history">
         <inbound>
         <jms:inbound-endpoint topic="Event.Support.HumanResources.VacationHistoryChanged">
         <transformers>
                        <jms:jmsmessage-to-object-transformer/>
                        <custom-transformer class="br.com.cit.mule.XmlToJaxbObjectTransformer">
                         <spring:property name="jaxbObjectClass" 
                         value="br.com.cit.support.humanresources.service.VacationHistoryChangedEvent" />
                        </custom-transformer>
         </transformers>
         </jms:inbound-endpoint>
         </inbound>
<component>
   <singleton-object class="br.com.cit.pms.integration.VacationHistoryChangedListener">
       <property key="vacationProjectID" value="VACA01"/>
   </singleton-object>
</component> 

So, according to this scenario, why can't Mule find my beloved method???

Thanks! 



Re: EntryPointNotFoundException using custom component

by marcelo.evertree :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ops... I meant I forgot the getter. In theory only the setter should matter, but the absence of the getter was causing the error.

:-)

On Thu, Nov 5, 2009 at 4:07 PM, David Dossot <ddossot@...> wrote:
Are you sure that the message payload type is VacationHistoryChangedEvent when the transformers have been applied to your inbound JMS message?

D.



On Thu, Nov 5, 2009 at 9:59 AM, Marcelo Augusto <maugusto@...> wrote:
Hi all,

I have a service that uses a custom component. This component is a POJO with one method, that should receive the result of a custom transformer. Tha fact is I am receiving the following exception:

********************************************************************************
Message               : [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
]
Type                  : org.mule.model.resolvers.EntryPointNotFoundException
Code                  : MULE_ERROR--2
JavaDoc               : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/model/resolver
s/EntryPointNotFoundException.html
********************************************************************************
Exception stack is:
1. [
The required property "method" is not set on the event
CallableEntryPointResolver:Object "br.com.cit.pms.integration.VacationHistoryChangedListener@1978622
" does not implement required interface "interface org.mule.api.lifecycle.Callable"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=true, acceptVoidMethods=false}"
Could not find entry point on: "br.com.cit.pms.integration.VacationHistoryChangedListener" with argu
ments: "{class br.com.cit.support.humanresources.service.VacationHistoryChangedEvent}" using resolve
r "ReflectionEntryPointResolver{ignoredMethods=[hashCode, getClass, toString, getInvocationHandler,
clone, notifyAll, get*, equals, is*, wait, notify]{transformFirst=false, acceptVoidMethods=false}"
] (org.mule.model.resolvers.EntryPointNotFoundException)
  org.mule.model.resolvers.DefaultEntryPointResolverSet:63 (http://www.mulesource.org/docs/site/curr
ent2/apidocs/org/mule/model/resolvers/EntryPointNotFoundException.html)
********************************************************************************

Reading the stacktrace, I see Mule is complaining that my component  br.com.cit.pms.integration.VacationHistoryChangedListener does not have a method with a signature containing br.com.cit.support.humanresources.service.VacationHistoryChangedEvent, which is not true, since the component code is this:
 

 
 
import br.com.cit.support.humanresources.service.VacationHistoryChangedEvent 
public class VacationHistoryChangedListener {

private String vacationProjectID;

public void setVacationProjectID(String vacationProjectID) {
this.vacationProjectID = vacationProjectID;
}

public ReallocateResourceRequest onVacationHistoryChanged(
VacationHistoryChangedEvent event) throws Exception {
            ....
            return request;
        }
}

I suppose mu config file is right, too:

        <service name="pms.vacation_changed_history">
         <inbound>
         <jms:inbound-endpoint topic="Event.Support.HumanResources.VacationHistoryChanged">
         <transformers>
                        <jms:jmsmessage-to-object-transformer/>
                        <custom-transformer class="br.com.cit.mule.XmlToJaxbObjectTransformer">
                         <spring:property name="jaxbObjectClass" 
                         value="br.com.cit.support.humanresources.service.VacationHistoryChangedEvent" />
                        </custom-transformer>
         </transformers>
         </jms:inbound-endpoint>
         </inbound>
<component>
   <singleton-object class="br.com.cit.pms.integration.VacationHistoryChangedListener">
       <property key="vacationProjectID" value="VACA01"/>
   </singleton-object>
</component> 

So, according to this scenario, why can't Mule find my beloved method???

Thanks!