0

我正在尝试运行 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

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

4

3 回答 3

0

我有同样的问题,原来问题出在数据库(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 Scheduler”错误中的异常就消失了。

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

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

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

grep -i PSQLException ./jbilling-community-4.1.1/bin/logs/jbilling-stacktrace.log
于 2016-06-11T01:28:13.523 回答
0

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

于 2017-08-30T19:48:24.180 回答
0

使用这个 fork,你不会遇到这个问题https://github.com/WebDataConsulting/billing。此分叉包含一系列与定价和多租户定价相关的修复。

于 2017-10-15T20:50:21.930 回答