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.plugin.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.asHistoryFile(PreferenceValueConverter.java:122)
at ch.mimo.eclipse.plugin.logfiletools.preferences.PreferenceValueConverter.asUnsortedHistoryFileList(PreferenceValueConverter.java:141)
at ch.mimo.eclipse.plugin.logfiletools.preferences.FileHistoryTracker.init(FileHistoryTracker.java:80)
at ch.mimo.eclipse.plugin.logfiletools.preferences.FileHistoryTracker.getFiles(FileHistoryTracker.java:67)
at ch.mimo.eclipse.plugin.logfiletools.ui.menu.LocalPullDownMenu.fillMenu(LocalPullDownMenu.java:92)
at ch.mimo.eclipse.plugin.logfiletools.ui.menu.LocalPullDownMenu.finalize(LocalPullDownMenu.java:73)
at ch.mimo.eclipse.plugin.logfiletools.LogFileView.fillLocalPullDown(LogFileView.java:358)
at ch.mimo.eclipse.plugin.logfiletools.LogFileView.contributeToActionBars(LogFileView.java:335)
at ch.mimo.eclipse.plugin.logfiletools.LogFileView.createPartControl(LogFileView.java:113)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:4212)
at org.eclipse.ui.internal.WorkbenchPage$18.runWithException(WorkbenchPage.java:3271)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.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.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.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(EclipseAppLauncher.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)
Hi,
I copied your issue to forked project Log Viewer:
http://code.google.com/p/eclipselogviewer/issues/detail?id=22
and will fix it for new plugin.
Andre