Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 209377

Summary: NumberFormatException in log after startup
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: wmitsuda
Version: unspecified   
Target Milestone: 2.2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2007-11-09 14:40:18 EST
Found this error in the log after startup. Using the current Mylyn weekly build.

-- Error Log --
Date: Fri Nov 09 19:37:35 GMT 2007
Message: Could not process activity event

Severity: Error
Plugin ID: org.eclipse.mylyn
Stack Trace:
java.lang.NumberFormatException: For input string: ".20072007E"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Long.parseLong(Long.java:403)
	at java.lang.Long.parseLong(Long.java:461)
	at java.text.DigitList.getLong(DigitList.java:177)
	at java.text.DecimalFormat.parse(DecimalFormat.java:1298)
	at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1544)
	at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1264)
	at java.text.DateFormat.parse(DateFormat.java:335)
	at org.eclipse.mylyn.internal.context.core.SaxContextContentHandler.createEventFromAttributes(Unknown Source)
	at org.eclipse.mylyn.internal.context.core.SaxContextContentHandler.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at org.eclipse.mylyn.internal.context.core.SaxContextReader.readContext(Unknown Source)
	at org.eclipse.mylyn.internal.context.core.InteractionContextExternalizer.readContextFromXML(Unknown Source)
	at org.eclipse.mylyn.internal.context.core.InteractionContextExternalizer.readContextFromXML(Unknown Source)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.loadActivityMetaContext(Unknown Source)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.getActivityMetaContext(Unknown Source)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.processActivityMetaContextEvent(Unknown Source)
	at org.eclipse.mylyn.internal.monitor.ui.ShellLifecycleListener.<init>(Unknown Source)
	at org.eclipse.mylyn.monitor.ui.MonitorUiPlugin$2.run(Unknown Source)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3296)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2974)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Comment 1 Robert Elves CLA 2007-11-13 19:12:03 EST
Could you have a look through your meta activity context for the string ".20072007E" and see if it is in an interest field?
Comment 2 Steffen Pingel CLA 2007-11-19 14:37:49 EST
*** Bug 210188 has been marked as a duplicate of this bug. ***
Comment 3 Mik Kersten CLA 2007-12-11 13:27:07 EST
Steffen: Change use of SimpleDateFormat to be thread safe.
Comment 4 Steffen Pingel CLA 2007-12-11 13:28:12 EST
Related: bug 174245
Comment 5 Steffen Pingel CLA 2007-12-11 14:03:37 EST
Removed a static field that held the date formatter in InteractionContextExternalizer.
Comment 6 Steffen Pingel CLA 2007-12-11 14:03:41 EST
Created attachment 84996 [details]
mylyn/context/zip