Export to GitHub

android-logging-log4j - issue #1

Erro start emulator


Posted on Apr 23, 2012 by Quick Camel

[2012-04-23 10:28:38 - XXX] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.xml.DOMConfigurator$5) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 10:28:39 - XXX] ------------------------------ [2012-04-23 10:28:39 - XXX] Android Launch! [2012-04-23 10:28:39 - XXX] adb is running normally.

Comment #1

Posted on Apr 23, 2012 by Swift Camel

Do you have a log4j.xml in your classpath? if so, try to remove it

Comment #2

Posted on Apr 23, 2012 by Quick Camel

I do not have this file.

Attachments

Comment #3

Posted on Apr 23, 2012 by Swift Camel

Ok. Also make sure, that no other used libs ship log4j.xml and please tell me which version of the log4j lib u are using.

Comment #4

Posted on Apr 23, 2012 by Quick Camel

Android: android-logging-log4j-1.0.2.jar Apache: log4j-1.2.16.jar

these are the libs I'm using

Comment #5

Posted on Apr 23, 2012 by Quick Camel

[2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$18) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$19) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$2) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$20) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$21) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$22) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$23) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$24) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$25) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$26) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$27) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$28) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$29) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$3) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$30) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$31) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$32) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$4) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$5) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$6) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$7) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$8) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogBrokerMonitor$9) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogFactor5ErrorDialog$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogFactor5InputDialog$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogFactor5InputDialog$2) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.LogFactor5InputDialog$3) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerModel$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$2) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$3) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$4) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$5) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$6) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$7) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor$8) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:17 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.net.SMTPAppender$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:18 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.xml.DOMConfigurator$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:18 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.xml.DOMConfigurator$2) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:18 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.xml.DOMConfigurator$3) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:18 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.xml.DOMConfigurator$4) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:18 - Teste] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.log4j.xml.DOMConfigurator$5) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class. [2012-04-23 13:35:18 - Teste] ------------------------------ [2012-04-23 13:35:18 - Teste] Android Launch! [2012-04-23 13:35:18 - Teste] adb is running normally. [2012-04-23 13:35:18 - Teste] Performing teste.portal.Main activity launch [2012-04-23 13:35:18 - Teste] Automatic Target Mode: launching new emulator with compatible AVD 'Teste' [2012-04-23 13:35:18 - Teste] Launching a new emulator with Virtual Device 'Teste' [2012-04-23 13:35:23 - Teste] New emulator found: emulator-5554 [2012-04-23 13:35:23 - Teste] Waiting for HOME ('android.process.acore') to be launched...

Comment #6

Posted on Apr 23, 2012 by Quick Camel

Hello I can not identify the moment in which the configuration class is called. For example I created a class within a package but do not see where it is called.

Sorry for bad English.

Comment #7

Posted on Apr 24, 2012 by Swift Camel

I will test it myself these days again. Please be patient. I think I have time at the weekend. Sorry.

Comment #8

Posted on Apr 27, 2012 by Grumpy Cat

I appreciate your good will, thank you. I'll be waiting for your views on the matter.

Thank you!

Comment #9

Posted on Apr 29, 2012 by Swift Camel

I had some further looks now. Unfortunately, my provided example is not very good. I updated the main project page example to fix this issue.

You should refactor your ConfigureLog4J class as described in the fixed example. That means you have to introduce a method hwere tthe code from static block should be moved. Thean call tha method from within your activity code.

Simply placing the class in the class will not work properly, since the Android JVM will only load - and execute the static code block - if the class is used somewhere.

I hope that helps.

Comment #10

Posted on May 5, 2012 by Swift Camel

I haven't heard anything yet. I close the issue.

Comment #11

Posted on Jun 23, 2012 by Swift Camel

(No comment was entered for this change.)

Comment #12

Posted on Sep 19, 2012 by Helpful Panda

I'm also getting this issue. I've searched around and they say it's because log4j wasn't compiled with a compiler that's compatible with DalvikVM. Are you able to replicate this issue? I tried to follow your instructions in comment #9, but I couldn't understand what you were talking about. I'm using log4j-1.2.17. Thanks and I look forward to your reply!

Comment #13

Posted on Sep 19, 2012 by Swift Camel

In comment 9 I just said, that I updated the sample on the project's homepage. Maybe u can attach your code showing how you initialize the log4j system.

Comment #14

Posted on Sep 19, 2012 by Helpful Panda

Thanks for your quick reply. I've created a sample project here. https://github.com/RestlessThinker/android-log4j-prototype

Be sure to watch the console in Eclipse and not the LogCat as it does not show up in LogCat. Thanks again and I look forward to your reply!

Comment #15

Posted on Sep 21, 2012 by Swift Camel

I will have a look at the weekend.

Comment #16

Posted on Sep 22, 2012 by Swift Camel

After a first look, I think your code is correct. I will now try to run your example and see if I can get the same outputs.

A question: Beside the ugly outputs, does the log4j system operate fine while your app is running? As far as I can see, the outputs are only warnings and should not be harmful.

Comment #17

Posted on Sep 22, 2012 by Swift Camel

Ok, I see what you mean. I think we can not do anything about those warning messages. And, IMHO, using a DalvikVM won't help, since Log4J uses some classes e.g. java.beans package, which are not supported by Android. That is the reason why the project android-logging-log4j is existing. Also see http://mindpipe.blogspot.de/2011/11/android-log4j-exception-properties.html

So, I think we have to live with those warnings in Eclipse console.

Comment #18

Posted on Oct 2, 2012 by Helpful Panda

Thank you for looking into it!

Comment #19

Posted on Feb 19, 2013 by Grumpy Monkey

i have problem the same.I try trial very solution but not successfull . Somebody can help me resolve this problem ! Thank you very much ! ps: My project use library : quickblow.jar and asmark-android-7.jar

Status: Invalid

Labels:
Type-Defect Priority-Medium