[mule-user] Exception: Could not find entry point on...

2 views
Skip to first unread message

vkamin

unread,
Feb 13, 2008, 12:45:06 PM2/13/08
to us...@mule.codehaus.org

Hello all:

Not sure if I doing this right,

Properties properties = new Properties();
properties.load(new FileInputStream("config.properties"));
Long pollingFrequency = new Long(
properties
.getProperty("preProcessor.contracts.inDir.pollingFrequency"));
String moveToDirectory = properties
.getProperty("preProcessor.contracts.movetoDir");
String endpointURI =
properties.getProperty("preProcessor.contracts.inDir");

builder = new QuickConfigurationBuilder();

manager = builder.createStartedManager(true, "");
manager = builder.configure("mule-config.xml");
// manager.start();

FileConnector fileConnector = new FileConnector();
fileConnector.setName("preProcessorFileConnector");
fileConnector.setPollingFrequency(pollingFrequency.longValue());
fileConnector.setMoveToDirectory(moveToDirectory);
fileConnector.setAutoDelete(false);

manager.registerConnector(fileConnector);

UMOEndpointURI umoEndpointURI = new
MuleEndpointURI("file://"+endpointURI);
builder.registerComponent("com.pp.umo.FileReceiverUMO",
"preProcessorFileReceiver", umoEndpointURI);

manager.start();

When I throw a file in the "in" folder I get an exception, any ideas am I
missing something.

0 [connector.file.0.receiver.1] ERROR
org.mule.impl.DefaultComponentExceptionStrategy -
********************************************************************************
Message : Could not find entry point on:
"com.umo.FileReceiverUMO" with arguments: "{class [B}"
Type : org.mule.impl.NoSatisfiableMethodsException
Code : MULE_ERROR-101216
JavaDoc :
http://mule.mulesource.org/docs/apidocs/org/mule/impl/NoSatisfiableMethodsException.html
********************************************************************************
Exception stack is:
1. Could not find entry point on: "com.umo.FileReceiverUMO" with arguments:
"{class [B}" (org.mule.impl.NoSatisfiableMethodsException)
org.mule.impl.model.resolvers.DynamicEntryPoint:241
(http://mule.mulesource.org/docs/apidocs/org/mule/impl/NoSatisfiableMethodsException.html)
********************************************************************************
Root Exception stack trace:
org.mule.impl.NoSatisfiableMethodsException: Could not find entry point on:
"com.umo.FileReceiverUMO" with arguments: "{class [B}"
at
org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:241)
at
org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:194)
at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:258)
at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:393)
at
org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:418)
at org.mule.impl.MuleSession.sendEvent(MuleSession.java:349)
at
org.mule.routing.inbound.InboundRouterCollection.send(InboundRouterCollection.java:197)
at
org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:163)
at
org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:581)
at
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:322)
at
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:251)
at
org.mule.providers.file.FileMessageReceiver.processFile(FileMessageReceiver.java:242)
at
org.mule.providers.file.FileMessageReceiver.poll(FileMessageReceiver.java:129)
at
org.mule.providers.PollingReceiverWorker.run(PollingReceiverWorker.java:47)
at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:567)

********************************************************************************

--
View this message in context: http://www.nabble.com/Exception%3A-Could-not-find-entry-point-on...-tp15461028p15461028.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Andrew Perepelytsya

unread,
Feb 13, 2008, 1:13:17 PM2/13/08
to us...@mule.codehaus.org
What is the service signature of your FileReceiverUMO? You are passing in a byte array, but there's nothing accepting it. Also, read the file connector docs, it tells how to use alternative transformers and pass e.g. a File object.

Andrew

vkamin

unread,
Feb 13, 2008, 1:59:50 PM2/13/08
to us...@mule.codehaus.org

mdemo

unread,
Feb 15, 2008, 10:20:39 AM2/15/08
to us...@mule.codehaus.org

Look at the EntryPointResolver on
http://mulesource.org./display/MULEUSER/Models

it describes how Mule invoke your components

regards

--
View this message in context: http://www.nabble.com/Exception%3A-Could-not-find-entry-point-on...-tp15461028p15502437.html

Reply all
Reply to author
Forward
0 new messages