anb0s / LogViewer

Eclipse Plug-in for tailing log files and eclipse consoles (e.g. SVN, Java Stack Trace, CDT), including syntax coloring with either a regular expression or a word match. It allows you to have multiple logs open concurrently.
http://anb0s.github.io/LogViewer
Eclipse Public License 2.0
35 stars 8 forks source link

A '#' character in logfile name crashes #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Copied issue from Eclipse Logfile Viewer:
http://sourceforge.net/tracker/index.php?func=detail&aid=2928208&group_id=165492
&atid=835604

***
If I open the file abc#def.txt there is no problem. If I close eclipse and
start it again, the logfile viewer displays the error below.
If I delete the file
.metadata\.plugins\org.eclipse.core.runtime\.settings\ch.mimo.eclipse.plugi
n.logfiletools.Logfileview.prefs and restart eclipse, all is working fine
again. Also I can 'repair' this preference file manually by removing the
problematic # character from the stored file name. If you do this, you must
leave the other # characters which are used to separate the history
entries!

Here comes the stack dump of the error:

java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(Unknown Source)
at
ch.mimo.eclipse.plugin.logfiletools.preferences.PreferenceValueConverter.as
HistoryFile(PreferenceValueConverter.java:122)
at
ch.mimo.eclipse.plugin.logfiletools.preferences.PreferenceValueConverter.as
UnsortedHistoryFileList(PreferenceValueConverter.java:141)
at
ch.mimo.eclipse.plugin.logfiletools.preferences.FileHistoryTracker.init(Fil
eHistoryTracker.java:80)
at
ch.mimo.eclipse.plugin.logfiletools.preferences.FileHistoryTracker.getFiles
(FileHistoryTracker.java:67)
at
ch.mimo.eclipse.plugin.logfiletools.ui.menu.LocalPullDownMenu.fillMenu(Loca
lPullDownMenu.java:92)
at
ch.mimo.eclipse.plugin.logfiletools.ui.menu.LocalPullDownMenu.finalize(Loca
lPullDownMenu.java:73)
at
ch.mimo.eclipse.plugin.logfiletools.LogFileView.fillLocalPullDown(LogFileVi
ew.java:358)
at
ch.mimo.eclipse.plugin.logfiletools.LogFileView.contributeToActionBars(LogF
ileView.java:335)
at
ch.mimo.eclipse.plugin.logfiletools.LogFileView.createPartControl(LogFileVi
ew.java:113)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:3
67)
at
org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReferen
ce.java:595)
at
org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPag
e.java:4212)
at
org.eclipse.ui.internal.WorkbenchPage$18.runWithException(WorkbenchPage.jav
a:3271)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreadi
ng.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134
)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.ja
va:803)
at
org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreadi
ng.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134
)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332
)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication
.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java
:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseA
ppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368
)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Original issue reported on code.google.com by andre.bo...@gmail.com on 20 Jan 2010 at 9:02

GoogleCodeExporter commented 9 years ago
The same problem exists in Log Viewer, because settings are stored in 
preference file
with '#' as delimiter for entries (opened files and history files). I will 
change the
store format (see Issue 23).

Original comment by andre.bo...@gmail.com on 20 Jan 2010 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by andre.bo...@gmail.com on 17 Feb 2010 at 7:00

GoogleCodeExporter commented 9 years ago

Original comment by andre.bo...@gmail.com on 25 Feb 2010 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by andre.bo...@gmail.com on 25 Feb 2010 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by andre.bo...@gmail.com on 14 Apr 2010 at 5:28

GoogleCodeExporter commented 9 years ago

Original comment by andre.bo...@anbos.de on 29 Sep 2012 at 7:05

GoogleCodeExporter commented 9 years ago

Original comment by andre.bo...@anbos.de on 20 Sep 2013 at 5:27