WSO2 ESB& ESB调解员

时间:2013-02-22 08:52:25

标签: jboss ejb wso2 wso2esb

我想使用WSO2 ESB 4.5.1的ESB Mediator,我想调用EJB 3.0,它们部署在Jboss AS 7.1.1中。

是否有ESB Mediator的教程或样本???

提前致谢。


我有一个新错误:

oreLocatorProxyHttpsSoap11Endpoint, WSAction: urn:mediate, SOAPAction: urn:media
te, MessageID: urn:uuid:ffdefa4b-7cd9-4e53-bcd7-8daf410338ce, Direction: request
[2013-02-25 13:46:36,911] ERROR - ServerWorker Error processing POST request
java.lang.IllegalArgumentException: object is not an instance of declaring class
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.synapse.mediators.bean.BeanUtils.invokeInstanceMethod(Bean
    Utils.java:74)
            at org.apache.synapse.mediators.bean.enterprise.EJBMediator.mediate(EJBM
    ediator.java:132)
            at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis
    tMediator.java:60)
            at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMe
    diator.java:114)
            at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
    xyServiceMessageReceiver.java:154)
            at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
            at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
    uest(HTTPTransportUtils.java:172)
            at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosin
    gMethod(ServerWorker.java:416)
            at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java
    :268)
            at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(Native
    WorkerPool.java:172)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:908)
            at java.lang.Thread.run(Thread.java:619)

有人能帮帮我吗??

提前致谢。


我已经在教程http://wso2.org/library/articles/2012/06/ejb-mediator-action-wso2-esb-450中使用了WSO2 ESB 4.5.1和Jboss 5.0.1.GA,但是当我调用代理服务时,我得到了下一个错误:

  [2013-02-22 13:43:57,682]  INFO - ProxyService Successfully created the Axis2 se
   rvice for Proxy service : StoreLocatorProxy
   [2013-02-22 13:47:41,953] ERROR - NativeWorkerPool Uncaught exception
   java.lang.IllegalArgumentException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.synapse.mediators.bean.BeanUtils.invokeInstanceMethod(Bean
   Utils.java:74)
        at org.apache.synapse.mediators.bean.BeanMediator.mediateSetPropertyActi
   on(BeanMediator.java:191)
        at org.apache.synapse.mediators.bean.BeanMediator.mediate(BeanMediator.j
   ava:119)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis
   tMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMe
   diator.java:114)
        at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
   xyServiceMessageReceiver.java:154)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
        at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUt
   il.java:144)
        at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTU
   til.java:139)
        at org.apache.synapse.transport.nhttp.util.RESTUtil.processGetAndDeleteR
   equest(RESTUtil.java:140)
        at org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.processGet
   AndDelete(DefaultHttpGetProcessor.java:464)
        at org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor.process(NHttpGe
   tProcessor.java:296)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java
  :265)
        at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(Native
   WorkerPool.java:172)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
   utor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
   .java:908)

有人能帮帮我吗??

提前致谢。

1 个答案:

答案 0 :(得分:1)

您可以在[1]上参考OT文章“EJB Mediator In Action WSO2 ESB 4.5.0”。

[1]。 http://wso2.org/library/articles/2012/06/ejb-mediator-action-wso2-esb-450

谢谢你, Dharshana。