Flex的BlazeDS的Java的NoSuchMethodException

我们有一个Flex BlazeDS的弹簧JMS应用程序。 问题是,有时我们得到一个BlazeDS的错误:NoSuchMethodException。 它不能够找到Java服务。 怪异的问题,这是不会发生的所有项目...... 1时它会通过,并返回结果,第二次失败,第三次出现故障等。 也并不是所有的方法都失败了,只有2个方法调用失败。

Flex的方法:

patientModel.patientRequest.startIndex=1; patientModel.patientRequest.numberOfItems=10; patientModel.patientRequest.medicareId=null; patientModel.patientRequest.dateOfBirth = DateField.stringToDate("04/21/1982","MM/DD/YYYY"); //patientModel.patientRequest.dateOfBirth = new Date(); patientModel.patientRequest.lastName="null; patientModel.patientRequest.firstName="leo"; return service.getPatientDataMeasurements(patientModel.patientRequest);

Java方法:

public PatientDataMeasurementCollectionList getPatientDataMeasurements( PatientDataRequest request);

XML响应:

<ns1:CMSRemoteResponse xmlns:ns1="http://cms.hhs.gov/common/remoting/schema"><CMSDASOutboundHeader><ResponseCMSHeader><HeaderVersion>1.0</HeaderVersion><ServiceName>TestService</ServiceName><ServiceVersion>1.0</ServiceVersion><ServiceType>getPatientDataMeasurements</ServiceType><CompletionCd>7</CompletionCd><LocationCd>3</LocationCd><ComponentCd>2</ComponentCd><Errors><Error><ErrorCode>XXX</ErrorCode><ErrorType>NoSuchMethodException</ErrorType><ErrorMessage>$Proxy17.getPatientDataMeasurements(gov.hhs.cms.ehrds.datacollection.model.PatientDataRequest)</ErrorMessage></Error></Errors></ResponseCMSHeader><ExecutedCMSHeader><HeaderVersion>1.0</HeaderVersion><ServiceName>TestService</ServiceName><ServiceVersion>1.0</ServiceVersion><ServiceType>getPatientDataMeasurements</ServiceType></ExecutedCMSHeader><NewCMSHeader><HeaderVersion>1.0</HeaderVersion><ServiceName>TestService</ServiceName><ServiceVersion>1.0</ServiceVersion><ServiceType>getPatientDataMeasurements</ServiceType></NewCMSHeader></CMSDASOutboundHeader><InboundReqeust><UserInfo><UserId>test123</UserId><RoleNames/></UserInfo><ns1:PatientDataRequest xmlns:ns1="http://cms.hhs.gov/ehrds/datacollection/model"><StartIndex>1</StartIndex><NumberOfItems>10</NumberOfItems><MedicareId>AB123456789</MedicareId><DateOfBirth>2010-08-29T02:55:08.562Z</DateOfBirth><FirstName>leo</FirstName><LastName>cap</LastName></ns1:PatientDataRequest></InboundReqeust><CMSDASResponseBody/></ns1:CMSRemoteResponse>

例外:

BlazeDS Error Detectedorg.springframework.remoting.RemoteInvocationFailureException: Invocation of method [public abstract gov.hhs.cms.ehrds.datacollection.model.PatientDataMeasurementCollectionList gov.hhs.cms.ebs.ehrds.datacollection.service.PatientDataMeasurementService.getPatientDataMeasurements(gov.hhs.cms.ehrds.datacollection.model.PatientDataRequest)] failed in JMS invoker remote service at queue [queue://DS1CN3009/EHR.DATACOLLECTION.PATIENT.REQUEST.1]; nested exception is gov.hhs.cms.common.exception.CodedException: $Proxy17.getPatientDataMeasurements(gov.hhs.cms.ehrds.datacollection.model.PatientDataRequest) [8/28/10 22:55:08:828 EDT] 00000037 ExceptionTran E com.newwave.ExceptionLogger translate BlazeDS Error Detected org.springframework.remoting.RemoteInvocationFailureException: Invocation of method [public abstract gov.hhs.cms.ehrds.datacollection.model.PatientDataMeasurementCollectionList gov.hhs.cms.ebs.ehrds.datacollection.service.PatientDataMeasurementService.getPatientDataMeasurements(gov.hhs.cms.ehrds.datacollection.model.PatientDataRequest)] failed in JMS invoker remote service at queue [queue://DS1CN3009/EHR.DATACOLLECTION.PATIENT.REQUEST.1]; nested exception is gov.hhs.cms.common.exception.CodedException: $Proxy17.getPatientDataMeasurements(gov.hhs.cms.ehrds.datacollection.model.PatientDataRequest) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:211) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy21.getPatientDataMeasurements(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:421) at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183) at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503) at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884) at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:576) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$f3ce9468.serviceMessage(<generated>) at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121) at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158) at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44) at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67) at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146) at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$f3ce9468.service(<generated>) at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:751) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) Caused by: gov.hhs.cms.common.exception.CodedException: $Proxy17.getPatientDataMeasurements(gov.hhs.cms.ehrds.datacollection.model.PatientDataRequest) at gov.hhs.cms.common.remoting.jms.JibxClientRemoteMessageConverter.fromMessage(JibxClientRemoteMessageConverter.java:160) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.extractInvocationResult(JmsInvokerClientInterceptor.java:396) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.executeRequest(JmsInvokerClientInterceptor.java:249) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy21.getPatientDataMeasurements(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:421) at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183) at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503) at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884) at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:576) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$f3ce9468.serviceMessage(<generated>) at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121) at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158) at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44) at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67) at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146) at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$f3ce9468.service(<generated>) at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:751) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) at org.springframework.remoting.support.RemoteInvocationUtils.fillInClientStackTraceIfPossible(RemoteInvocationUtils.java:47) at org.springframework.remoting.support.RemoteInvocationResult.recreate(RemoteInvocationResult.java:115) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.recreateRemoteInvocationResult(JmsInvokerClientInterceptor.java:429) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:204) ... 55 more

我们不知道,如果这一个Flex - BlazeDS的错误或Spring Remoting的问题。 明白了很多,如果有人能够帮助这个问题。

谢谢

哈里什

--------------解决方案-------------

我不知道很多关于参与(除了JAVA)的技术,但有可能是一些调用都使用不同的类加载器? 同一类型的对象,但其通过类不同类加载器加载,都被认为是不相容的, 可能导致一个没有这样的方法错误。

感谢您的回答。 但是我们resolvd这个问题......我给了1队列2的服务,这是服务于正确的服务一次,走错了服务,下一次,却不能找到方法......反正也就迎刃而解:)

分类:柔性 时间:2012-01-01 人气:0
分享到:

相关文章

  • 春天JMS会话使用期开MQ当 2013-01-05

    我使用的春天JMS的3.0.6.RELEASE和开放的MQ. 为什么下面的异常会引起任何的想法? 2012-05-02 17:56:18,420 [stuJmsContainer-803059] WARN org.springframework.jms.listener.DefaultMessageListenerContainer - Setup of JMS message listener invoker failed for destination 'TestQ' - trying to

  • 春天JMS MQJE001:完成码“2”,原因是“2042” 2012-01-20

    我的设置是春季3 JMS,MVC +的WebSphere MQ + 7的Websphere <!-- this is the Message Driven POJO (MDP) --> <bean id="messageListener" class="com.SomeListener" /> <!-- and this is the message listener container --> <bean id="

  • 春天JMS消息侦听器 2012-11-21

    我是新来的JMS,我正在建立的ActiveMQ和Tomcat 6和弹簧. 我有大部分配置了基本的东西,但是我是一个有点困惑的消息侦听容器Spring提供. 读这听起来像消息监听器容器的文件是用来"处理"订阅(我正与主题),退订和传递消息给听众. 我不知道如果我想这个正确. 如果是这样的话,我不看我怎么会有多个类订阅使用消息侦听容器的同一主题的任何文件. 我看到,您可以设置消息监听财产,但将只允许一个类可以订阅一个主题. 它似乎没有权利建立相同的消息侦听容器正好有另外一个用户(消息驱动P

  • 如何线程池中的春天JMS监听 2013-11-17

    我设立一个JMS用户听者与实现5个线程听topATopic池的目标如下,但是,我所看到的在运行时是多个消费者处理相同的记录(总记录*消费者#). 我假设我做错了什么考虑到我是新来的春天. <bean id="messageListener" class="com.abc.app.mdp.Receiver"> <property name="bean" ref="bean" /> </bean>

  • 春天JMS:创建到队列多个连接 2013-12-11

    为了处理大量的来排队,我需要至少一个JMS连接保证在任何时候到那里的消息. 我使用的春天和春天允许只有一个连接上的多个会话. 如果唯一连接失败,应用程序会来停顿,直到春天重新连接到JMS桥梁. 那么,如何可以在Spring里创建多个连接到一个队列,我也怎么做连接池在这里. --------------解决方案------------- 这个问题的答案取决于你是否使用Spring J2EE容器(JBoss的等)之内或在独立的应用. 单机版 - 你会发现池连接成为一个问题. 泉SingleConne

  • 春天JMS的Oracle AQ太多的交易 2014-01-05

    我创建了一个基本的春天applicatin从Oracle AQ阅读. 我遇到以下问题. 请帮我在这 1) - 放置在队列中的消息(由PL / SQL代码)我春天应用出发之前不被这出队. 2) - 应该从队列中删除是全成从队列中读取消息. 这没有发生. 所有邮件保留在队列表. 3) - 一旦消息被读出,则处理进入方框/等待状态,如由下面的日志中,如果任何的消息是在该期间内对队列的地方,则忽略该消息. 它正在采取30 - 40秒提交事务 2012-02-08 13:26:37,700 DEBUG [

  • 与春天JMS生产性能 2014-04-23

    我基于Spring,JMS和ActiveMQ的创建了一个简单生产者消费者模拟,我试图从两侧,生产者和消费者达到高性能, 连接设置: <tx:annotation-driven /> <bean id="transactionManager" class="org.springframework.jms.connection.JmsTransactionManager"> <property name="connectionFa

  • 春天JMS连接:性能方面的考虑 2014-12-09

    我有需要发送/接收消息向/从存储单个JMS服务器上不同的主题. 我想用JmsTemplate发送和MessageListenerContainer登记asyncronous听众. 我的配置是这样的: <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"> <property name="environment"> <props>

  • 春天JMS DefaultMessageListener - 的onMessage()没有被调用 2013-03-30

    我想实现使用TIBCO EMS和Spring框架的一个点,以点邮件系统. 我可以写一个消息队列,但我面临的问题是在消费信息. 我写了一个实现了春天DefaultMesssageListener类的Java类和使用的applicationContext.xml文件是如下图所示范围内: 供消费的消息我写了一个Java类,它读取上面的applicationContext.xml文件. 但是,当我开始我没有得到任何错误的计划,但在同一时间消息没有得到消耗. 谢谢你,Raghu -------------

  • 春天JMS和侦听器的加载 2013-05-28

    我们正在使用Spring JMS来读取一个Oracle AQ队列中的消息. 当我们处理这些消息,我们使用套接字门口送他们到供应商的产品. 在启动时,我们需要启动与供应商的连接,从而可以发送,. 这几天,我注意到,正在从队列中读取消息成立了我们对供应商的连接之前. 有没有办法从开始直到我们的所有其它bean被装载停止JMS监听器. --------------解决方案------------- 您可以使用@DependsOn注释(或depends-on XML属性),使您的JMS侦听等待另一个be

Copyright (C) 55228885.com, All Rights Reserved.

55228885 版权所有 京ICP备15002868号

processed in 0.296 (s). 10 q(s)