<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/microlog/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/microlog/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 02 Dec 2010 09:31:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/microlog/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Cant log to file - microlog produces invalid file path</title><link>https://sourceforge.net/p/microlog/bugs/11/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zakhar</dc:creator><pubDate>Thu, 02 Dec 2010 09:31:20 -0000</pubDate><guid>https://sourceforge.net72dfa50c8de9a80f60aac3fdda125172f8aa3f37</guid></item><item><title>First log statement at valid level is lost with no appenders</title><link>https://sourceforge.net/p/microlog/bugs/10/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 01 Dec 2009 19:26:11 -0000</pubDate><guid>https://sourceforge.netc83b97c50d5ba0adaff5bf96b94c6a09de17a9ca</guid></item><item><title>Not possible to set the lineseparator in AbstractFileAppende</title><link>https://sourceforge.net/p/microlog/bugs/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Not possible to set the lineseparator in AbstractFileAppender.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Karlsson</dc:creator><pubDate>Fri, 16 Oct 2009 07:31:02 -0000</pubDate><guid>https://sourceforge.net0e6f855b011a0a54e2797c1ea9d46e1b3a1f1a2d</guid></item><item><title>Sun SPOT does not work in Microlog V2.0.x</title><link>https://sourceforge.net/p/microlog/bugs/8/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Karlsson</dc:creator><pubDate>Wed, 14 Oct 2009 11:41:41 -0000</pubDate><guid>https://sourceforge.netbefd3a46970c986826df4b47a777be106edfc647</guid></item><item><title>Comments in properties files causes problems</title><link>https://sourceforge.net/p/microlog/bugs/7/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Karlsson</dc:creator><pubDate>Tue, 13 Oct 2009 20:09:11 -0000</pubDate><guid>https://sourceforge.net1f30cfbbdbb56f1368e37e39c00dbb6542fceaf9</guid></item><item><title>isDebugEnabled() creates a NullPointerException</title><link>https://sourceforge.net/p/microlog/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When calling isDebugEnabled() a NullPointerException is thrown.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Karlsson</dc:creator><pubDate>Tue, 07 Jul 2009 06:06:36 -0000</pubDate><guid>https://sourceforge.net61abbf6a7e41ffbed29b6448acb2e7eb9e317130</guid></item><item><title>RecordStoreAppender fails with java.lang.RuntimeException: W</title><link>https://sourceforge.net/p/microlog/bugs/5/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reiner Saddey</dc:creator><pubDate>Thu, 26 Feb 2009 07:40:32 -0000</pubDate><guid>https://sourceforge.netc763eb04fd96d27858181f9294c08e8c02f0647d</guid></item><item><title>FileAppender not working in some environments</title><link>https://sourceforge.net/p/microlog/bugs/4/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Karlsson</dc:creator><pubDate>Sun, 28 Dec 2008 08:54:06 -0000</pubDate><guid>https://sourceforge.netb5bb85741a6f7833acec9de7db2976650df45f1e</guid></item><item><title>Coverage report is not correct</title><link>https://sourceforge.net/p/microlog/bugs/3/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Karlsson</dc:creator><pubDate>Tue, 09 Dec 2008 20:11:26 -0000</pubDate><guid>https://sourceforge.net2c24ad6354c97c6be028f06f732c079b39b290d9</guid></item><item><title>microlog.properties is overwritten by one in microlog.jar</title><link>https://sourceforge.net/p/microlog/bugs/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jimisola Laursen</dc:creator><pubDate>Sun, 24 Aug 2008 21:23:54 -0000</pubDate><guid>https://sourceforge.netb433d5eda72a9956791dfd20683abf4b2529dcf1</guid></item></channel></rss>