1

我在 JBoss AS 7.1 中遇到以下异常:

LogManager 未正确安装(您必须将“java.util.logging.manager”系统属性设置为“org.jboss.logmanager.LogManager”)

(完整的跟踪附加在帖子的末尾)。

我已经阅读了关于 JBoss Issue Tracker 的相关讨论,但是虽然我已经按照指示设置了我的 JAVA_OPTS 和 CLASSPATH (这来自我的Standalone.conf):

JAVA_OPTS="$JAVA_OPTS-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl"
CLASSPATH="$CLASSPATH:$JBOSS_HOME/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.2.GA.jar"

...我不断收到相同的日志记录异常。

痕迹:

Exception: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
    at org.jboss.logmanager.Logger.getLogger(Logger.java:60) [jboss-client.jar:7.1.1.Final]
    at org.jboss.logmanager.SerializedLogger.readResolve(SerializedLogger.java:54) [jboss-client.jar:7.1.1.Final]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_03]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1091) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1780) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at java.util.HashMap.readObject(HashMap.java:1043) [rt.jar:1.7.0_03]
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at java.util.HashMap.readObject(HashMap.java:1043) [rt.jar:1.7.0_03]
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at java.util.HashMap.readObject(HashMap.java:1043) [rt.jar:1.7.0_03]
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at java.util.HashMap.readObject(HashMap.java:1043) [rt.jar:1.7.0_03]
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at java.util.HashMap.readObject(HashMap.java:1043) [rt.jar:1.7.0_03]
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at org.apache.shiro.session.mgt.SimpleSession.readObject(SimpleSession.java:500) [shiro-all-1.2.1.jar:1.2.1]
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498) [rt.jar:1.7.0_03]
    at net.sf.ehcache.Element.readObject(Element.java:844) [ehcache-core-ee-2.6.0.jar:]
    at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at java.util.ArrayList.readObject(ArrayList.java:733) [rt.jar:1.7.0_03]
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) [:1.7.0_03]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) [rt.jar:1.7.0_03]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_03]
    at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:324) [rt.jar:1.7.0_03]
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:307) [rt.jar:1.7.0_03]
    at sun.rmi.transport.Transport$1.run(Transport.java:177) [rt.jar:1.7.0_03]
    at sun.rmi.transport.Transport$1.run(Transport.java:174) [rt.jar:1.7.0_03]
    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_03]
    at sun.rmi.transport.Transport.serviceCall(Transport.java:173) [rt.jar:1.7.0_03]
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) [rt.jar:1.7.0_03]
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) [rt.jar:1.7.0_03]
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) [rt.jar:1.7.0_03]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273) [rt.jar:1.7.0_03]
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251) [rt.jar:1.7.0_03]
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160) [rt.jar:1.7.0_03]
    at net.sf.ehcache.distribution.RMICachePeer_Stub.send(Unknown Source) [ehcache-core-ee-2.6.0.jar:]
    at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.writeReplicationQueue(RMIAsynchronousCacheReplicator.java:314) [ehcache-core-ee-2.6.0.jar:]
    at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.replicationThreadMain(RMIAsynchronousCacheReplicator.java:127) [ehcache-core-ee-2.6.0.jar:]
    at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.access$000(RMIAsynchronousCacheReplicator.java:58) [ehcache-core-ee-2.6.0.jar:]
    at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator$ReplicationThread.run(RMIAsynchronousCacheReplicator.java:389) [ehcache-core-ee-2.6.0.jar:]
4

1 回答 1

0

从一直很有帮助的 JBoss 社区中,我收到了将我的类中的非静态Logger成员更改为静态的建议,于是问题就消失了。在撰写本文时,陪审团仍未确定这是否是 JBoss 错误。然而有趣的是,针对 JBoss AS 7 在 JBoss JIRA 中提出的第一个错误(首先查看 URL,您可能会误认为它是不可标记的)再次是相同的LogManager异常。

于 2012-09-06T09:17:16.173 回答