<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/microlog/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/microlog/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/microlog/bugs/</id><updated>2010-12-02T09:31:20Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Cant log to file - microlog produces invalid file path</title><link href="https://sourceforge.net/p/microlog/bugs/11/" rel="alternate"/><published>2010-12-02T09:31:20Z</published><updated>2010-12-02T09:31:20Z</updated><author><name>Zakhar</name><uri>https://sourceforge.net/u/azakharo/</uri></author><id>https://sourceforge.net72dfa50c8de9a80f60aac3fdda125172f8aa3f37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My phone is Nokia 6303i. It has got MicroSD card (E:/, the root name was checked with FileSystemRegistry.listRoots).&lt;br /&gt;
I am using microlog-2.3.5.&lt;/p&gt;
&lt;p&gt;My MIDlet has 2 sequential steps in its constuctor:&lt;br /&gt;
1. Create file "by hand" using FileConnection API (filename = "file:///E:/log.txt")&lt;br /&gt;
2. Create FileAppender and call its setFileName () method.&lt;/p&gt;
&lt;p&gt;When I start my MIDlet on my phone I see the following:&lt;br /&gt;
1. First, the file is created "by hand", the phone ask me for the confirmation to create file. I press "info" to get additional info about the file created. &lt;br /&gt;
The phone displays: &lt;br /&gt;
Location:  Memory Card&lt;br /&gt;
File: log.txt.&lt;br /&gt;
I confirm the operation. The file is created without any problems.&lt;br /&gt;
2. Then the phone asks me again for the confirmation to create file in the phone's Gallery. Why is in the gallery??? I press "info" to get additional info about the file created. &lt;br /&gt;
Location: Memory Card///E:&lt;br /&gt;
File: log.txt&lt;br /&gt;
I confirm the operation. After that exception happens.&lt;br /&gt;
"Illegal Argument java/lang/IllegalArgument exception&lt;br /&gt;
Invalid name".&lt;br /&gt;
For me it looks like the bug in microlog's FileAppender.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>First log statement at valid level is lost with no appenders</title><link href="https://sourceforge.net/p/microlog/bugs/10/" rel="alternate"/><published>2009-12-01T19:26:11Z</published><updated>2009-12-01T19:26:11Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netc83b97c50d5ba0adaff5bf96b94c6a09de17a9ca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is an extremely minor bug.&lt;/p&gt;
&lt;p&gt;As of the latest version of net.sf.microlog.core.Logger (revision 1399), a simple logic error causes the first log statement (at a valid priority level) on a Logger to be lost when no appenders have been added.  In line 249, the integer value nofAppenders is set to the size of the appenderList Vector.  However, when nofAppenders is zero and a ConsoleAppender is added in line 257, nofAppenders is not incremented to account for the new appender.  Then attempting to iterate over the appenders in appenderList on line 270 fails since nofAppenders is still zero.&lt;/p&gt;
&lt;p&gt;Adding "nofAppenders++;" directly after line 257 fixes the bug.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Not possible to set the lineseparator in AbstractFileAppende</title><link href="https://sourceforge.net/p/microlog/bugs/9/" rel="alternate"/><published>2009-10-16T07:31:02Z</published><updated>2009-10-16T07:31:02Z</updated><author><name>Johan Karlsson</name><uri>https://sourceforge.net/u/jaywayjohan/</uri></author><id>https://sourceforge.net0e6f855b011a0a54e2797c1ea9d46e1b3a1f1a2d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not possible to set the lineseparator in AbstractFileAppender.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Sun SPOT does not work in Microlog V2.0.x</title><link href="https://sourceforge.net/p/microlog/bugs/8/" rel="alternate"/><published>2009-10-14T11:41:41Z</published><updated>2009-10-14T11:41:41Z</updated><author><name>Johan Karlsson</name><uri>https://sourceforge.net/u/jaywayjohan/</uri></author><id>https://sourceforge.netbefd3a46970c986826df4b47a777be106edfc647</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Microlog does not work out-of-the-box in v2.0.3. There is no jar available. However when compiling the code, the ConsoleAppender is reported to work.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Comments in properties files causes problems</title><link href="https://sourceforge.net/p/microlog/bugs/7/" rel="alternate"/><published>2009-10-13T20:09:11Z</published><updated>2009-10-13T20:09:11Z</updated><author><name>Johan Karlsson</name><uri>https://sourceforge.net/u/jaywayjohan/</uri></author><id>https://sourceforge.net1f30cfbbdbb56f1368e37e39c00dbb6542fceaf9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If the properties file starts with a #-sign, the reading of the properties files fails. This will lead to a NPE when reading the properties file.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>isDebugEnabled() creates a NullPointerException</title><link href="https://sourceforge.net/p/microlog/bugs/6/" rel="alternate"/><published>2009-07-07T06:06:36Z</published><updated>2009-07-07T06:06:36Z</updated><author><name>Johan Karlsson</name><uri>https://sourceforge.net/u/jaywayjohan/</uri></author><id>https://sourceforge.net61abbf6a7e41ffbed29b6448acb2e7eb9e317130</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When calling isDebugEnabled() a NullPointerException is thrown.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RecordStoreAppender fails with java.lang.RuntimeException: W</title><link href="https://sourceforge.net/p/microlog/bugs/5/" rel="alternate"/><published>2009-02-26T07:40:32Z</published><updated>2009-02-26T07:40:32Z</updated><author><name>Reiner Saddey</name><uri>https://sourceforge.net/u/rsaddey/</uri></author><id>https://sourceforge.netc763eb04fd96d27858181f9294c08e8c02f0647d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Applies to:&lt;/p&gt;
&lt;p&gt;Both Version 1.0.0 and current trunk (at revision 721).&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Symptom:&lt;/p&gt;
&lt;p&gt;Only the first log request succeeeds. Subsequent requests fail with "java.lang.RuntimeException: Writing to closed ByteArrayOutputStream."&lt;/p&gt;
&lt;p&gt;Cause:&lt;/p&gt;
&lt;p&gt;Within method createLogData RecordStoreAppender closes its dataOutputStream on each log request, causing all but the first log request to fail.&lt;/p&gt;
&lt;p&gt;Neither dataOutputStream nor byteArrayOutputStream must be closed (not even within method close()), as they are created within the constructor and assumed to be available forever.&lt;/p&gt;
&lt;p&gt;Fix:&lt;/p&gt;
&lt;p&gt;Just remove the "dataOutputStream.close();" from method createLogData.&lt;/p&gt;
&lt;p&gt;Notes:&lt;/p&gt;
&lt;p&gt;1. As DataOutputStream uses the decorator pattern, its close() will delegated to its decorated OutputStream.&lt;/p&gt;
&lt;p&gt;2. jaywayjohan and k_o_ appear not to be able to agree upon as to whether dataOuputStream and byteArrayOutputStream should be class fields or local variables.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>FileAppender not working in some environments</title><link href="https://sourceforge.net/p/microlog/bugs/4/" rel="alternate"/><published>2008-12-28T08:54:06Z</published><updated>2008-12-28T08:54:06Z</updated><author><name>Johan Karlsson</name><uri>https://sourceforge.net/u/jaywayjohan/</uri></author><id>https://sourceforge.netb5bb85741a6f7833acec9de7db2976650df45f1e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The FileAppender does not not log correctly in all environment. This is where the logging takes to much time. The solution is to execute the logging in its own thread, the same was as is done in S3FileAppender et.al.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Coverage report is not correct</title><link href="https://sourceforge.net/p/microlog/bugs/3/" rel="alternate"/><published>2008-12-09T20:11:26Z</published><updated>2008-12-09T20:11:26Z</updated><author><name>Johan Karlsson</name><uri>https://sourceforge.net/u/jaywayjohan/</uri></author><id>https://sourceforge.net2c24ad6354c97c6be028f06f732c079b39b290d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The coverage reports from the Java ME tests are not correct. They show 0% although tests are executed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>microlog.properties is overwritten by one in microlog.jar</title><link href="https://sourceforge.net/p/microlog/bugs/2/" rel="alternate"/><published>2008-08-24T21:23:54Z</published><updated>2008-08-24T21:23:54Z</updated><author><name>Jimisola Laursen</name><uri>https://sourceforge.net/u/jimisola/</uri></author><id>https://sourceforge.netb433d5eda72a9956791dfd20683abf4b2529dcf1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The issue is that the user defined microlog.properties file is overwritten during packaging by the example properties that packaged with the jar file. &lt;/p&gt;
&lt;p&gt;The workaround could be to open the MicroLog0.5.0.2.jar file in winzip and delete the microlog.properties file. &lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/forum/message.php?msg_id=5191139"&gt;https://sourceforge.net/forum/message.php?msg_id=5191139&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>