今天遇到了一可怕问题,控制台突然出现了如下类似错误,主要原因是因为我用了org.springframework.flex.core.ExceptionTranslator,其内部封装了对异常的处理,
public void save() throws LmxException{
System.out.println("save function is start...");
try {
int a =1 /0;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw new LmxException(e.getMessage());
}
}
每次调用e.printStackTrace();除了抛出应该有的错误外,还抛出如下可怕的信息。
java.lang.ArithmeticException: / by zero
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:1529)
at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:907)
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:688)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:59)
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:572)
at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$d6f635a6.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:147)
at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$d6f635a6.service(<generated>)
at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:863)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:851)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
分享到:
相关推荐
com.springsource.flex.messaging.common-3.2.0.3978.jar
6. **flex-messaging-remoting.jar**:远程方法调用(Remoting)是Flex Messaging的重要组成部分,这个JAR包实现了Flex客户端与Java后端之间的远程对象调用。通过使用Flex Remoting,开发者可以像调用本地对象一样...
【flex的jar包,项目中的jar包,比较多,但是...在上一提交版本中,有人找不到flex.messaging.io包,在此顺便说明,次包在flex-messaging-core.jar中和(此次更新)flex-messaging.jar中(希望与大家共同进步,谢谢)
flex-messaging-core-4.7.3.jar 最新版,下载了好长时间才下载下来,亲测可用!
flex-messaging-remoting.jarflex-messaging-remoting.jarflex-messaging-remoting.jarflex-messaging-remoting.jar
**PyPI 官网下载 | oslo.messaging-5.18.0.tar.gz** 在Python的世界里,`PyPI`(Python Package Index)是官方的软件仓库,它为开发者提供了丰富的Python库资源,方便用户管理和分享自己的Python项目。`oslo....
为了配置BlazeDS,我们需要在Java工程的WEB-INF目录下创建一个名为flex的文件夹,并在此处创建四个关键配置文件:messaging-config.xml、proxy-config.xml、remoting-config.xml和服务配置services-config.xml。...
Flex Messaging Core是Flex Remoting模块的关键部分,提供了远程方法调用(RMI)的能力,使客户端可以像调用本地方法一样调用远程服务器上的服务。 在flex-messaging-core.jar中,包含了一些关键组件和接口,例如: ...
Lotus.Instant.Messaging.and.Web.Conferencing.Java.Toolkit.v6.5.1-ACMELotus公司的即时通讯和网络会议软件(Lotus Instant Messaging and Web Conferencing)的前身是Lotus Sametime,多年以来在商用IM领域中一直...
<class>flex.messaging.services.remoting.adapters.JavaAdapter </adapter> <destination-id>myDestination <channel-definition id="my-amf" class="flex.messaging.channels.AMFChannel"> ...
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class> <init-param> <param-name>services.configuration.file</param-name> <param-value>/WEB-INF/flex/services-config.xml</param-value> ...
在Java和Flex的集成中,主要涉及的技术有Adobe BlazeDS、LCDS(LiveCycle Data Services)或者更现代的Apache Flex SDK,这些工具或库允许Java服务器与Flex客户端进行通信。它们提供了AMF(Action Message Format)...
4. **Remoting**:Flex Messaging支持远程方法调用(RPC),使客户端能够像调用本地函数一样调用服务器上的方法。 5. **Pub/Sub**(发布/订阅)模型:此模型允许客户端订阅特定的消息主题,当服务器有新消息时,会...
flex-messaging-proxy.jarflex-messaging-proxy.jarflex-messaging-proxy.jarflex-messaging-proxy.jar
flex-messaging-opt.jarflex-messaging-opt.jarflex-messaging-opt.jarflex-messaging-opt.jar
python库。 资源全名:oslo.messaging-5.27.0-py2.py3-none-any.whl
<adapter-definition id="java" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/> </adapters> <source>com.example.MyJavaClass</source> ...
资源来自pypi官网。 资源全名:oslo.messaging-5.35.3-py2.py3-none-any.whl
《Python库oslo.messaging深度解析》 在Python的生态系统中,oslo.messaging是一个至关重要的库,它主要用于OpenStack项目中的消息传递和远程过程调用(RPC)。本文将深入探讨oslo.messaging库的功能、架构以及其在...