[root@miso bin]# 14:51:22,858 INFO [STDOUT] Exception caught in unsafeOnMessage...
14:51:22,858 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
14:51:22,859 ERROR [STDERR] at java.util.Arrays.copyOf(Unknown Source)
14:51:22,859 ERROR [STDERR] at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
14:51:22,859 ERROR [STDERR] at java.lang.AbstractStringBuilder.append(Unknown Source)
14:51:22,859 ERROR [STDERR] at java.lang.StringBuilder.append(Unknown Source)
14:51:22,859 ERROR [STDERR] at miso.core.model.dictionary.implementation.TreeTDBuilder.buildTailingWordsAndAdvanceLinks(TreeTDBuilder.java:141)
14:51:22,859 ERROR [STDERR] at miso.controller.MisoLanguageService.getLanguageSuite(MisoLanguageService.java:84)
14:51:22,859 ERROR [STDERR] at miso.controller.MisoLanguageService.getLanguageSuite(MisoLanguageService.java:95)
14:51:22,859 ERROR [STDERR] at miso.controller.JobRunnerMDB.unsafeOnMessage(JobRunnerMDB.java:155)
14:51:22,859 ERROR [STDERR] at miso.controller.JobRunnerMDB.onMessage(JobRunnerMDB.java:120)
14:51:22,859 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:51:22,859 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
14:51:22,859 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
14:51:22,859 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
14:51:22,859 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
14:51:22,859 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
14:51:22,859 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
14:51:22,859 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:51:22,859 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
14:51:22,859 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:51:22,860 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
14:51:22,860 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:51:22,860 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
14:51:22,860 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
14:51:22,860 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:51:22,860 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
14:51:22,860 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:51:22,860 ERROR [STDERR] at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:249)
14:51:22,860 ERROR [STDERR] at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
14:51:22,860 ERROR [STDERR] at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
14:51:22,860 ERROR [STDERR] at $Proxy71.onMessage(Unknown Source)
14:51:22,860 ERROR [STDERR] at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
14:51:22,860 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:906)
14:51:22,869 ERROR [STDERR] 2015-4-9 14:51:22 miso.core.model.dictionary.implementation.TreeTDBuilder
信息: Instantiate a new TreeTDBuilder
14:51:22,869 ERROR [STDERR] 2015-4-9 14:51:22 miso.core.model.dictionary.implementation.TreeTDBuilder
信息: Instantiate a new TreeTDBuilder
14:51:22,869 ERROR [STDERR] 2015-4-9 14:51:22 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/electrical_engineering_UTF8.txt
14:51:23,001 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 16198
14:51:23,001 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/electrical_UTF8.txt
14:51:23,209 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 15593
14:51:23,210 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/mechanical_engineering_UTF8.txt
14:51:23,347 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 13230
14:51:23,347 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/mechanical_UTF8.txt
14:51:23,567 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 18804
14:51:23,567 ERROR [STDERR] 2015-4-9 14:51:23 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/new_words_UTF8.txt
14:51:24,720 ERROR [STDERR] 2015-4-9 14:51:24 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 103790
14:51:24,720 ERROR [STDERR] 2015-4-9 14:51:24 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/IT_UTF8.txt
14:51:24,872 ERROR [STDERR] 2015-4-9 14:51:24 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 14801
14:51:24,872 ERROR [STDERR] 2015-4-9 14:51:24 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/bio_UTF8.txt
14:51:25,115 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 20882
14:51:25,115 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/chemical_UTF8.txt
14:51:25,332 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 16436
14:51:25,332 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/math_UTF8.txt
14:51:25,478 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 12768
14:51:25,478 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/medicine_UTF8.txt
14:51:25,711 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 18200
14:51:25,711 ERROR [STDERR] 2015-4-9 14:51:25 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/petroleum_UTF8.txt
14:51:27,710 ERROR [STDERR] 2015-4-9 14:51:27 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 150415
14:51:27,710 ERROR [STDERR] 2015-4-9 14:51:27 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/agriculture_UTF8.txt
14:51:27,885 ERROR [STDERR] 2015-4-9 14:51:27 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 15582
14:51:27,885 ERROR [STDERR] 2015-4-9 14:51:27 miso.controller.MisoLanguageService getLanguageSuite
信息: Loadding dict /dict/translation/ENCN/physics_UTF8.txt
14:51:28,092 ERROR [STDERR] 2015-4-9 14:51:28 miso.controller.MisoLanguageService getLanguageSuite
信息: Load finished, count = 13779
14:51:28,100 ERROR [STDERR] 2015-4-9 14:51:28 miso.controller.MisoLanguageService getLanguageSuite
信息: All dictionary loaded, begin to compile EN-CN (count 322051)
14:51:28,100 ERROR [STDERR] 2015-4-9 14:51:28 miso.core.model.dictionary.implementation.TreeTDBuilder buildTailingWordsAndAdvanceLinks
信息: Starting building tailing words and advance links for dictionary
14:51:32,084 ERROR [STDERR] 2015-4-9 14:51:32 miso.core.model.dictionary.implementation.TreeTDBuilder buildTailingWordsAndAdvanceLinks
信息: Finish advance link compilation.
14:51:32,084 ERROR [STDERR] 2015-4-9 14:51:32 miso.controller.MisoLanguageService getLanguageSuite
信息: All dictionary loaded, begin to compile CN-EN (count 281676)
14:51:32,084 ERROR [STDERR] 2015-4-9 14:51:32 miso.core.model.dictionary.implementation.TreeTDBuilder buildTailingWordsAndAdvanceLinks
信息: Starting building tailing words and advance links for dictionary
如可以幫助我解決EJB 成功部署。酬謝
不用錢,否則玩csdn就變質了
給你提個建議,你的日志at java.util.Arrays.copyOf這個問題,是一個Stringbuilder做append拋出來的。
舉個例子
StringBuilder buffer = new StringBuilder("你好case");
for(;;){
buffer.append(buffer.toString()+buffer.append("你好"));
}
這樣的代碼表示,buffer本身是一種緩存,然而在buffer還沒有固定界限(仍舊處於添加狀態的時候)又做了自己調用自己的append操作,就好比一個永動機,沒完沒了了,直到JVM許可內存耗盡。
看看這樣的建議對你有用嗎。