From: SourceForge.net <no...@so...> - 2005-12-25 17:12:59
|
Bugs item #899520, was opened at 2004-02-18 03:55 Message generated for change (Comment added) made by ezust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=899520&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: severe bug >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Jedit 4.2pre9 Cannot start with Turkish locale Initial Comment: jedit 4.2pre9 cannot start under: Windows XP English with SP1 (all updates from windows update have been applied) Athlon XP 2400 784 MB Ram Turkish Locale J2sdk 1.4.2_03 with the folloving error: [error] GUIUtilities: java.lang.NullPointerException [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 146) [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 176) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.parseStyle(GUIUtilities. java:766) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:864) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:840) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPane.j ava:450) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355) [error] GUIUtilities: at org.gjt.sp.jedit.View.createEditPane(View.java:1546) [error] GUIUtilities: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:139 0) [error] GUIUtilities: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] GUIUtilities: at java.awt.event.InvocationEvent.dispatch(InvocationEven t.java:178) [error] GUIUtilities: at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpOneEventForHierarchy( EventDispatchThread.java:201) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev entDispatchThread.java:151) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:145) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:137) [error] GUIUtilities: at java.awt.EventDispatchThread.run(EventDispatchThread.j ava:100) [error] GUIUtilities: java.lang.NullPointerException [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 146) [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 176) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.parseStyle(GUIUtilities. java:766) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:864) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:840) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPane.j ava:450) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355) [error] GUIUtilities: at org.gjt.sp.jedit.View.createEditPane(View.java:1546) [error] GUIUtilities: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:139 0) [error] GUIUtilities: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] GUIUtilities: at java.awt.event.InvocationEvent.dispatch(InvocationEven t.java:178) [error] GUIUtilities: at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpOneEventForHierarchy( EventDispatchThread.java:201) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev entDispatchThread.java:151) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:145) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:137) [error] GUIUtilities: at java.awt.EventDispatchThread.run(EventDispatchThread.j ava:100) [error] GUIUtilities: java.lang.NullPointerException [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 146) [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 176) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.parseStyle(GUIUtilities. java:766) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:864) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:840) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPane.j ava:450) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355) [error] GUIUtilities: at org.gjt.sp.jedit.View.createEditPane(View.java:1546) [error] GUIUtilities: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:139 0) [error] GUIUtilities: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] GUIUtilities: at java.awt.event.InvocationEvent.dispatch(InvocationEven t.java:178) [error] GUIUtilities: at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpOneEventForHierarchy( EventDispatchThread.java:201) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev entDispatchThread.java:151) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:145) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:137) [error] GUIUtilities: at java.awt.EventDispatchThread.run(EventDispatchThread.j ava:100) [error] GUIUtilities: java.lang.NullPointerException [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 146) [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 176) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.parseStyle(GUIUtilities. java:766) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:864) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:840) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPane.j ava:450) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355) [error] GUIUtilities: at org.gjt.sp.jedit.View.createEditPane(View.java:1546) [error] GUIUtilities: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:139 0) [error] GUIUtilities: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] GUIUtilities: at java.awt.event.InvocationEvent.dispatch(InvocationEven t.java:178) [error] GUIUtilities: at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpOneEventForHierarchy( EventDispatchThread.java:201) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev entDispatchThread.java:151) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:145) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:137) [error] GUIUtilities: at java.awt.EventDispatchThread.run(EventDispatchThread.j ava:100) [error] GUIUtilities: java.lang.NullPointerException [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 146) [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 176) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.parseStyle(GUIUtilities. java:766) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:864) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:840) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPane.j ava:450) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355) [error] GUIUtilities: at org.gjt.sp.jedit.View.createEditPane(View.java:1546) [error] GUIUtilities: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:139 0) [error] GUIUtilities: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] GUIUtilities: at java.awt.event.InvocationEvent.dispatch(InvocationEven t.java:178) [error] GUIUtilities: at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpOneEventForHierarchy( EventDispatchThread.java:201) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev entDispatchThread.java:151) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:145) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:137) [error] GUIUtilities: at java.awt.EventDispatchThread.run(EventDispatchThread.j ava:100) [error] GUIUtilities: java.lang.NullPointerException [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 146) [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 176) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.parseStyle(GUIUtilities. java:766) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:864) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:840) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPane.j ava:450) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355) [error] GUIUtilities: at org.gjt.sp.jedit.View.createEditPane(View.java:1546) [error] GUIUtilities: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:139 0) [error] GUIUtilities: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] GUIUtilities: at java.awt.event.InvocationEvent.dispatch(InvocationEven t.java:178) [error] GUIUtilities: at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpOneEventForHierarchy( EventDispatchThread.java:201) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev entDispatchThread.java:151) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:145) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:137) [error] GUIUtilities: at java.awt.EventDispatchThread.run(EventDispatchThread.j ava:100) [error] GUIUtilities: java.lang.NullPointerException [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 146) [error] GUIUtilities: at java.util.StringTokenizer.<init>(StringTokenizer.java: 176) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.parseStyle(GUIUtilities. java:766) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:864) [error] GUIUtilities: at org.gjt.sp.jedit.GUIUtilities.loadStyles(GUIUtilities. java:840) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPane.j ava:450) [error] GUIUtilities: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355) [error] GUIUtilities: at org.gjt.sp.jedit.View.createEditPane(View.java:1546) [error] GUIUtilities: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:139 0) [error] GUIUtilities: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] GUIUtilities: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] GUIUtilities: at java.awt.event.InvocationEvent.dispatch(InvocationEven t.java:178) [error] GUIUtilities: at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpOneEventForHierarchy( EventDispatchThread.java:201) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev entDispatchThread.java:151) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:145) [error] GUIUtilities: at java.awt.EventDispatchThread.pumpEvents(EventDispatchT hread.java:137) [error] GUIUtilities: at java.awt.EventDispatchThread.run(EventDispatchThread.j ava:100) [error] AWT-EventQueue-0: java.lang.NullPointerException [error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.TextAreaPainter.setStyle s(TextAreaPainter.java:217) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.EditPane.propertiesChanged(EditPa ne.java:450) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.EditPane.<init>(EditPane.java:355 ) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.createEditPane(View.java:154 6) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.restoreSplitConfig(View.java :1390) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.<init>(View.java:1196) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2136) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2114) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2094) [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit.run(jEdit.java:3394) [error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:178) [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java: 454) [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:201) [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:151) [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:145) [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:137) [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:100) ---------------------------------------------------------------------- >Comment By: Alan Ezust (ezust) Date: 2005-12-25 09:12 Message: Logged In: YES user_id=935841 Since it is fixed in 4.3pre2, I will close the bug. ---------------------------------------------------------------------- Comment By: I. Ozgur ERISEN (oerisen) Date: 2005-12-25 06:23 Message: Logged In: YES user_id=985729 this bug seems to be resolved under jedit 4.3pre2 thanks for your comments. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-12-25 06:18 Message: Logged In: NO Hi, I resolved this problem. The problem is due to the famous "i" character in Turkish. The uppercase of "i" is "I" in English. But this is not the case in Turkish. Thus in default Turkish Locale String.toLowerCase() or String.toUpperCase() methods do not work as expected. To reproduce this bug in your own machine run jedit using the following main class: public class Main2 { public static void main(String[] args) { Locale.setDefault(new Locale("tr","TR")); org.gjt.sp.jedit.jEdit.main(args); } } You will encounter the NullPointerException as stated above. To resolve this bug, change GUIUtilities.loadStyles() method as follows: public static SyntaxStyle[] loadStyles(String family, int size, boolean color) { ... String styleName = "view.style." + Token.tokenToString((byte)i).toLowerCase(Locale.ENGLISH); ... When using String.toLowerCase() or String.toUpperCase() methods always pass the Locale parameter. Best regards... Mert Nuhoglu http://mert-nuhoglu.blogspot.com ---------------------------------------------------------------------- Comment By: I. Ozgur ERISEN (oerisen) Date: 2004-03-17 03:26 Message: Logged In: YES user_id=985729 Also under mandrake 10 with turkish locale does not run (also tried cvs build 4.2pre10, it still does not run) I wonder why it gives null pointer expection with turkish locale :( it correctly prints turkish characters under linux and runs with en_US with UTF8 (but does not run under windows with english locale with turkish regional settings) ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-02-18 04:49 Message: Logged In: NO Also under linux this problem persist nearly all of the 4.2pre realeses except pre1 (not sure about it) this is the second time that i entered this issue as a bug. I also tried from several other configurations including processor type and operating systems (win 2k, MDK linux and WinXP-both english and turkish versions with turkish locale-, PIII-300, PII-400, Athlon 900, Athlon XP 1700, 1800, 2400) İ. Özgür ERİŞEN oe...@me... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=899520&group_id=588 |