This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239639 - IllegalArgumentException: Bad level "WARN"
Summary: IllegalArgumentException: Bad level "WARN"
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Logger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-19 05:37 UTC by arungupta
Modified: 2014-07-31 08:58 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202895


Attachments
stacktrace (2.65 KB, text/plain)
2013-12-19 05:37 UTC, arungupta
Details
stacktrace (2.65 KB, text/plain)
2014-01-13 11:06 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arungupta 2013-12-19 05:37:22 UTC
Build: NetBeans IDE Dev (Build 201312180002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Mac OS X

User Comments:
GUEST: Done starting UI

GUEST: <Please provide a description of the problem or the steps to reproduce>
.

arungupta: Installed nightly build on Dec 18 and got this stack trace:

java.lang.IllegalArgumentException: Bad level "WARN"
	at java.util.logging.Level.parse(Level.java:416)
	at org.netbeans.lib.uihandler.LogRecords.parseLevel(LogRecords.java:306)
	at org.netbeans.lib.uihandler.LogRecords$Parser.endElement(LogRecords.java:525)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1789)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2965)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.p

GUEST: <Please provide a description of the problem or the steps to reproduce>

GUEST: <Please provide a description of the problem or the steps to reproduce>1




Stacktrace: 
java.lang.IllegalArgumentException: Bad level "WARN"
   at java.util.logging.Level.parse(Level.java:416)
   at org.netbeans.lib.uihandler.LogRecords.parseLevel(LogRecords.java:306)
   at org.netbeans.lib.uihandler.LogRecords$Parser.endElement(LogRecords.java:525)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1789)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2965)
Comment 1 arungupta 2013-12-19 05:37:24 UTC
Created attachment 143326 [details]
stacktrace
Comment 2 Michel Graciano 2014-01-13 11:06:46 UTC
Created attachment 143890 [details]
stacktrace

Opening the IDE
Comment 3 Exceptions Reporter 2014-01-13 11:06:50 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=202895
Comment 4 Martin Entlicher 2014-07-29 14:39:55 UTC
Fixed by storing levels as numbers in changeset:   276762:44b024152280
http://hg.netbeans.org/core-main/rev/44b024152280
Comment 5 Quality Engineering 2014-07-31 08:58:02 UTC
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/44b024152280
User: mentlicher@netbeans.org
Log: #239639: Store levels by numbers, not by names that can become unknown.