DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22669>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22669 LoggingEvent.getLevel() throws NoSuchMethodError exception Summary: LoggingEvent.getLevel() throws NoSuchMethodError exception Product: Log4j Version: 1.2 Platform: Sun OS/Version: Solaris Status: NEW Severity: Major Priority: Other Component: Appender AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] OS: Sun OS5.8, Sparc JBoss Version: 3.0.6 Log4j version: log4j-1.2.8.jar and log4j-1.2 Exception: 15:00:36,457 ERROR [STDERR] java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getLevel()Lorg/apache/log4j/Level; 15:00:36,452 WARN [Log4jServletTest] This is the warn message 15:00:36,531 ERROR [STDERR] at com.webster.logaudit.TopicMDB.onMessage(TopicMDB.java:59) 15:00:36,532 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15:00:36,534 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 15:00:36,535 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 15:00:36,536 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 15:00:36,537 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391) 15:00:36,538 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 15:00:36,540 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88) 15:00:36,541 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) 15:00:36,542 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:228) 15:00:36,543 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:92) 15:00:36,545 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100) 15:00:36,546 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) 15:00:36,547 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302) 15:00:36,548 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962) 15:00:36,549 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1038) 15:00:36,551 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:243) 15:00:36,552 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:603) 15:00:36,570 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417) 15:00:36,571 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java:296) 15:00:36,573 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:178) 15:00:36,574 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:642) 15:00:36,575 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536) 15:00:36,576 ERROR [STDERR] java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getLevel()Lorg/apache/log4j/Level; 15:00:36,579 ERROR [STDERR] at com.webster.logaudit.TopicMDB.onMessage(TopicMDB.java:59) 15:00:36,584 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15:00:36,585 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 15:00:36,587 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 15:00:36,588 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 15:00:36,589 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391) 15:00:36,591 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 15:00:36,592 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88) 15:00:36,593 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) 15:00:36,594 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:228) 15:00:36,596 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:92) 15:00:36,597 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100) 15:00:36,615 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) 15:00:36,616 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302) 15:00:36,618 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962) 15:00:36,619 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1038) 15:00:36,620 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:243) 15:00:36,622 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:603) 15:00:36,623 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417) 15:00:36,624 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java:296) 15:00:36,625 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:178) 15:00:36,627 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:642) 15:00:36,628 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536) Here's how I get the logger and send messages: org.apache.log4j.Logger log4jLog = Logger.getLogger(Log4jServletTest.class); log4jLog.debug("This is the debug message"); log4jLog.warn("This is the warn message"); log4jLog.info("This is the info message"); Method in my MDB: LoggingEvent.getLevel() Code Snippet: /**********************************************************/ else if (inMessage instanceof SpyObjectMessage) { LoggingEvent event; event = (LoggingEvent) ((SpyObjectMessage) inMessage).getObject(); TestIUDDAO test = new TestIUDDAO(); test.execute(event.getMessage().toString()); System.out.println("event Audit Message: " + event.getMessage() + " level: " + event.getLevel()); /**********************************************************/ Mehod event.getMessage() works fine, but when I add event.getLevel(), it throws an exception. So without getLevel() everything works normal. Detailed usage: I am using JMS Appender which works great. But when I try to get LoggingEvent.getLevel() in my Message Driven Bean, it get an error. I get the same error when trying LoggingEvent.getLogger(). Thanks for you support in advance. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]