JBilling ActiveMQ 调度程序异常



我正在尝试运行jbilling 4.4.1。但是,我不断收到以下错误;

Exception in thread "ActiveMQ Scheduler" java.lang.IllegalStateException: Can't overwrite cause with java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already.  Could not load org.apache.activemq.broker.region.Queue$8.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
at java.lang.Throwable.initCause(Throwable.java:457)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLo
ading(WebappClassLoaderBase.java:1304)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClas
sLoaderBase.java:1184)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClas
sLoaderBase.java:1145)
at org.apache.activemq.broker.region.Queue.expireMessages(Queue.java:614
at org.apache.activemq.broker.region.Queue.access$100(Queue.java:89)
at org.apache.activemq.broker.region.Queue$2.run(Queue.java:122)
at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.
java:33)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLo  ading(WebappClassLoaderBase.java:1303)
        ... 8 more

如何在不更改源代码的情况下解决此问题?任何帮助将不胜感激。

我遇到了同样的问题,原来问题出在数据库(postgreSQL)中......

Caused by: org.postgresql.util.PSQLException: ERROR: relation     "reseller_entityid_map" does not exist
  Position: 449
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.ja    va:2198)

"reseller_entityid_map"表丢失,创建后重新启动tomcat,线程"ActiveMQ调度程序"中的异常错误消失。

您应该检查以下日志文件:

jbilling-community-4.1.1/bin/logs/jbilling-stacktrace.log

这就是我发现这些错误的地方:

grep -i PSQLException ./jbilling-community-4.1.1/bin/logs/jbilling-stacktrace.log

看起来根本原因是找不到一些 java 类。如果您可以粘贴更多日志,最好是完整的启动日志,即tomcat/logs/catalina.out + tomcat/bin/logs/jbilling.log,那么确定起来会更容易。

使用此分支,您将不会 https://github.com/WebDataConsulting/billing 遇到此问题。此分支包含一系列与定价和多租户定价相关的修复程序。

最新更新