[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-devel
Subject:    [ jEdit-devel ] [ jedit-Bugs-3396545 ] NumberFormatException on
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2011-08-29 21:39:34
Message-ID: E1Qy9YP-0003hI-56 () sfs-ml-1 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3396545, was opened at 2011-08-22 20:21
Message generated for change (Comment added) made by vampire0
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3396545&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: editor core
Group: None
> Status: Open
> Resolution: None
Priority: 5
Private: No
Submitted By: Slava Pestov (spestov)
Assigned to: Matthieu Casanova (kpouer)
Summary: NumberFormatException on startup for recent.xml

Initial Comment:
I'm getting this error on startup:

11:16:12 AM [main] [error] main: Exception in thread "main" 
11:16:12 AM [main] [error] main: java.lang.NumberFormatException: For input string: "
11:16:12 AM [main] [error] main: 212"
11:16:12 AM [main] [error] main:  at \
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) \
11:16:12 AM [main] [error] main:  at java.lang.Integer.parseInt(Integer.java:470) \
11:16:12 AM [main] [error] main:  at java.lang.Integer.parseInt(Integer.java:514) \
11:16:12 AM [main] [error] main:  at \
org.gjt.sp.jedit.BufferHistory$RecentHandler.endElement(BufferHistory.java:436) \
11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:266)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2053)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:927)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1759)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2915)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:821)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:750)
 11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) \
11:16:12 AM [main] [error] main:  at \
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
 11:16:12 AM [main] [error] main:  at \
org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:139) 11:16:12 AM [main] \
[error] main:  at org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 11:16:12 AM \
[main] [error] main:  at org.gjt.sp.jedit.BufferHistory.load(BufferHistory.java:175) \
11:16:12 AM [main] [error] main:  at org.gjt.sp.jedit.jEdit.main(jEdit.java:461) ^C

jEdit version 4.3.2

----------------------------------------------------------------------

> Comment By: Björn Kautler (vampire0)
Date: 2011-08-29 23:39

Message:
This still happens with 4.4.1:
https://sourceforge.net/tracker/?func=detail&aid=3400091&group_id=588&atid=100588

[11:45:47] <ensonic> Vampire0, it happens every time here
[11:55:04] <ensonic> Vampire0, -noplugin is not changing anything,
-settings obviously helps for the first time (as then there is no
recent.xml there), but fails the 2nd time the same way

Having a work-around is fine, but how can this happen with 4.4.1?

----------------------------------------------------------------------

Comment By: Matthieu Casanova (kpouer)
Date: 2011-08-25 14:02

Message:
fixed in rev 19833

----------------------------------------------------------------------

Comment By: Matthieu Casanova (kpouer)
Date: 2011-08-25 13:54

Message:
Hi, do you still have the recent.xml file that created the bug ?
It is strange it seems that there was something like this
<CARET>
212</CARET>

I don't see a reason why there would be a \n here since the code to write
this file is 
out.write("<CARET>");
out.write(String.valueOf(entry.caret));
out.write("</CARET>");

Anyway I'll add a check here in case of corrupted file

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3396545&group_id=588

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic