运行JBoss+JMS+Log4J时,出现下面错误:
18:29:05,359 ERROR [STDERR] log4j:ERROR Error occured while converting date.
18:29:05,000 ERROR [STDERR] java.lang.NullPointerException
18:29:05,000 ERROR [STDERR] at java.lang.System.arraycopy(Native Method)
18:29:05,000 ERROR [STDERR] at java.lang.AbstractStringBuilder.getChars(Unknown Source)
18:29:05,000 ERROR [STDERR] at java.lang.StringBuffer.getChars(Unknown Source)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.helpers.AbsoluteTimeDateFormat.format(AbsoluteTimeDateFormat.java:117)
18:29:05,000 ERROR [STDERR] at java.text.DateFormat.format(Unknown Source)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:444)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.Category.callAppenders(Category.java:203)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.Category.forcedLog(Category.java:388)
18:29:05,000 ERROR [STDERR] at org.apache.log4j.Category.log(Category.java:853)
18:29:05,000 ERROR [STDERR] at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:110)
18:29:05,000 ERROR [STDERR] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:324)
18:29:05,000 ERROR [STDERR] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:254)
18:29:05,000 ERROR [STDERR] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:870)
18:29:05,000 ERROR [STDERR] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
18:29:05,000 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
18:29:05,046 ERROR [STDERR] log4j:ERROR Error occured while converting date.
18:29:05,046 ERROR [STDERR] java.lang.NullPointerException
18:29:05,046 ERROR [STDERR] at java.lang.System.arraycopy(Native Method)
18:29:05,046 ERROR [STDERR] at java.lang.AbstractStringBuilder.getChars(Unknown Source)
18:29:05,046 ERROR [STDERR] at java.lang.StringBuffer.getChars(Unknown Source)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.helpers.AbsoluteTimeDateFormat.format(AbsoluteTimeDateFormat.java:117)
18:29:05,046 ERROR [STDERR] at java.text.DateFormat.format(Unknown Source)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:444)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.Category.callAppenders(Category.java:203)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.Category.forcedLog(Category.java:388)
18:29:05,046 ERROR [STDERR] at org.apache.log4j.Category.log(Category.java:853)
18:29:05,046 ERROR [STDERR] at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:110)
18:29:05,046 ERROR [STDERR] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:324)
18:29:05,046 ERROR [STDERR] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:254)
18:29:05,046 ERROR [STDERR] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:870)
18:29:05,046 ERROR [STDERR] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
18:29:05,046 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
起初以为是LOG4J问题,就把log4j.properties文件的时间模式调整,问题依然,干脆把Log4j的特性都去掉,问题还在。
仔细阅读了一下错误信息,发现了下面一句:
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
查了一下文档http://blog.csdn.net/shiqiang1234/archive/2009/09/22/4582067.aspx,有这句:
如果maxMessagesPerTask属性的值小于0,那么AsyncMessageListenerInvoker.run方法会在循环中反复尝试接收消息,并在接收到消息后调用MessageListener(或者SessionAwareMessageListener);如果 maxMessagesPerTask属性的值不小于0,那么AsyncMessageListenerInvoker.run方法里最多会尝试接收消息 maxMessagesPerTask次,每次接收消息的超时时间由其父类 AbstractPollingMessageListenerContainer的receiveTimeout属性指定。如果在这些尝试中都没有接收到消息,那么AsyncMessageListenerInvoker的idleTaskExecutionCount属性会被累加。
郁闷,原来是OnListener的线程一直在运行,等待不到消息而出错,就改用了:SimpleMessageListenerContainer
好像是发送方或接受发没收到消息而进入了死循环之中,原因还待研究。。。
问题清除。。。
后续工作:
改solution在使用queue是没问题,改用topic是依旧存在,
看来这个线程的问题挺严重的。
OK.
分享到:
相关推荐
Error occured at:2014-03-24 11:42:24 Line no.:85 Error Code: 2006 - MySQL server has gone away 最终找到原因,原来是MySQL导入大批量数据的时候超出了默认允许最大的数据包所以就提示2006 – MySQL server ...
NULL 博文链接:https://navylee.iteye.com/blog/2076985
hprof-conv.exe The connection to adb is down, and a severe error has occured
1. genymotion unfortunately has stopped , 完美解决。 2. 解决genymotion-arm-translation.zip...5.Genymotion安装安卓app,产生 An error occured while deploying the file. This probably means that the app c
4. **监控**:FFmpeg还提供了详细的日志输出,可以帮助分析和调试推流过程中可能出现的问题。 5. **自定义设置**:可以设置推流质量(比特率、分辨率等),调整编码参数以适应不同的网络环境和服务器要求。 总之,...
解决如下问题: Error 1316.A network error occured while attempting ... //来自cloudflashes
NULL 博文链接:https://1307111376.iteye.com/blog/1985359
在使用 VNC 服务时,也需要注意防火墙设置,需要配置规则允许对应端口的 TCP 包通过,例如使用命令 `iptables -I INPUT 1 -p tcp --dport 5901 -j ACCEPT`。 本文档还提供了一些其他命令,例如使用 `netstat -nat`...
错误全局变量 ... 每个都可以抛出一个原因错误,因此...Internal Server Error: An error occured.: Bad type at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.
在进行Windows 10封装的过程中,如果出现问题,可以通过检查`C:\Windows\System32\Sysprep\panther`文件夹下的`setupact.log`文件来获取更多错误信息。其中,常见的错误代码包括: - `SYSPRP Failed to remove apps...
e.g.: 2001-Feb-12 15:07:28.89,24244074,5078,21215 Features added: 1. Window size and status/title bar state are being saved/restored. Changes in version 1.4.0: Bugs fixed: 1. One memory leak ...
Bugfix: fixed the error message which occured when running the graphical package manager "MobApt" 破解Securecrt怕中毒,Xshell 用着不爽,Putty太单薄,手头没Mac用不了iterm2。那就试试这个全能开源的终端...
显示进程全路径文件名对于排查问题、识别恶意软件以及理解系统资源的使用情况至关重要。程序图标则有助于用户快速识别进程对应的程序,尤其是对于那些没有窗口或以系统服务形式运行的进程。 在Windows中,进程的全...
android sdk生成的安卓10的模拟器只能root,不能remount,根据google官方的说法模拟器只有开发者自己编译才行。这个资源就是编译好的结果,替换sdk中system-images文件夹下的android-29. 然后通过avdmanager创建...
直接使用delphi xe2 自带的fastreport居然出现The following error(s) have occured: cannot find TfrxReport的错误。尝试了好几次都不行。网上查阅了一下,解决办法如下: 1.退出delphi xe2 2.下载...
3. **快照与恢复**:虚拟机支持快照功能,可以记录当前状态,当系统出现问题时,可以快速恢复到之前的正常状态。 4. **资源共享**:虚拟机之间可以共享文件、应用和网络资源,便于数据交换和协作。 5. **全屏与窗口...
描述中提到的错误信息"An error occured when trying to cabextract some files." 是在提取或安装过程中遇到的一个常见问题。cabextract是一款用于解压Microsoft CAB格式文件的工具,在ies4linux的安装过程中,可能...
<br>If jUnit is not properly configured, you may get an error like this: BUILD FAILED c:\swingx\nbproject\build-impl.xml:407: Following error occured while executing this line c:\\...
if (err) console.log("an error occured:", err); else console.log("it's nice:", r); if (--toRun === 0) cc.exit(); }); }; worker.js: process.on('message', function(m) { for (var i = 0; i ; i ); ...
- The number of supported NetLinks has been increased from 4 to 64 - Communication error messages will be now displayed in the alarm history of iFIX. This helps to detect, trace and solve ...