2013-05-02 55 views
1

我嘗試測試轉換數據的流程示例在此頁: 「http://www.mulesoft.org/documentation/display/current/Transforming+Data+in+a+Flow消息負載的類型爲:字符串

,但我得到這個錯誤在瀏覽器上:導致異常 組件是:DefaultJavaComponent {HellowFlow1 .commponent.30555765}。消息負載的類型爲:字符串

在騾子工作室控制檯的確切消息是:

 
ERROR 2013-05-01 12:39:19,067 [[configureendpoint].connector.http.mule.default.receiver.04] org.mule.exception.DefaultMessagingExceptionStrategy: 
******************************************************************************** 
Message : Failed to find entry point for component, the following resolvers tried but failed: [ 
CallableEntryPointResolver: Object "NameTransformer{this=4146a7, name='null', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]}" does not implement required interface "interface org.mule.api.lifecycle.Callable" 
MethodHeaderPropertyEntryPointResolver: The required property "method" is not set on the event 
AnnotatedEntryPointResolver: Component: NameTransformer{this=4146a7, name='null', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]} doesn't have any annotated methods, skipping. 
ReflectionEntryPointResolver: Found too many possible methods on object "org.mule.examples.hello.NameTransformer" that accept parameters "{class java.lang.String}", Methods matched are "[public void org.mule.transformer.AbstractTransformer.setMimeType(java.lang.String) throws javax.activation.MimeTypeParseException, public final java.lang.Object org.mule.transformer.AbstractTransformer.transform(java.lang.Object) throws org.mule.api.transformer.TransformerException, public void org.mule.transformer.AbstractTransformer.setName(java.lang.String), public void org.mule.transformer.AbstractTransformer.setEncoding(java.lang.String)]" 
] 
Code : MULE_ERROR-321 
-------------------------------------------------------------------------------- 
Exception stack is: 
1. Failed to find entry point for component, the following resolvers tried but failed: [ 
CallableEntryPointResolver: Object "NameTransformer{this=4146a7, name='null', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]}" does not implement required interface "interface org.mule.api.lifecycle.Callable" 
MethodHeaderPropertyEntryPointResolver: The required property "method" is not set on the event 
AnnotatedEntryPointResolver: Component: NameTransformer{this=4146a7, name='null', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]} doesn't have any annotated methods, skipping. 
ReflectionEntryPointResolver: Found too many possible methods on object "org.mule.examples.hello.NameTransformer" that accept parameters "{class java.lang.String}", Methods matched are "[public void org.mule.transformer.AbstractTransformer.setMimeType(java.lang.String) throws javax.activation.MimeTypeParseException, public final java.lang.Object org.mule.transformer.AbstractTransformer.transform(java.lang.Object) throws org.mule.api.transformer.TransformerException, public void org.mule.transformer.AbstractTransformer.setName(java.lang.String), public void org.mule.transformer.AbstractTransformer.setEncoding(java.lang.String)]" 
] (org.mule.model.resolvers.EntryPointNotFoundException) 
org.mule.model.resolvers.DefaultEntryPointResolverSet:52 (http://www.mulesoft.org/docs/site/cur...) 
-------------------------------------------------------------------------------- 
Root Exception stack trace: 
org.mule.model.resolvers.EntryPointNotFoundException: Failed to find entry point for component, the following resolvers tried but failed: [ 
CallableEntryPointResolver: Object "NameTransformer{this=4146a7, name='null', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]}" does not implement required interface "interface org.mule.api.lifecycle.Callable" 
MethodHeaderPropertyEntryPointResolver: The required property "method" is not set on the event 
AnnotatedEntryPointResolver: Component: NameTransformer{this=4146a7, name='null', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]} doesn't have any annotated methods, skipping. 
ReflectionEntryPointResolver: Found too many possible methods on object "org.mule.examples.hello.NameTransformer" that accept parameters "{class java.lang.String}", Methods matched are "[public void org.mule.transformer.AbstractTransformer.setMimeType(java.lang.String) throws javax.activation.MimeTypeParseException, public final java.lang.Object org.mule.transformer.AbstractTransformer.transform(java.lang.Object) throws org.mule.api.transformer.TransformerException, public void org.mule.transformer.AbstractTransformer.setName(java.lang.String), public void org.mule.transformer.AbstractTransformer.setEncoding(java.lang.String)]" 
] 
at org.mule.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:52) 
at org.mule.component.DefaultComponentLifecycleAdapter.invoke(DefaultComponentLifecycleAdapter.java:343) 
at org.mule.component.AbstractJavaComponent.invokeComponentInstance(AbstractJavaComponent.java:86) 
+ 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) 

如果能夠幫我解決這個問題。

回答

2

你沒有顯示,所以我不得不根據該例外,我看到採取胡亂猜測你的XML配置:我敢打賭,你用錯一個Java 組件,而不是一個Java 變壓器當你配置org.mule.examples.hello.NameTransformer

+0

當我讀到OP時,我知道它聽起來很熟悉......我只是無法把它放在手指上。現在你已經提出了,我同意你的評估。 – SteveS 2013-05-02 16:49:24

+0

非常感謝你的真實使用組件而不是java變壓器 – 2013-05-02 17:05:46

相關問題