Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 61224 - Parsing Exception during startup
Summary: Parsing Exception during startup
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Dorian Birsan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 61359 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-06 11:11 EDT by Philipe Mulet CLA
Modified: 2004-05-07 17:36 EDT (History)
2 users (show)

See Also:


Attachments
Configuration folder (46.32 KB, application/octet-stream)
2004-05-07 07:16 EDT, Philipe Mulet CLA
no flags Details
New configuration after cleaning up first one (43.50 KB, application/octet-stream)
2004-05-07 07:20 EDT, Philipe Mulet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2004-05-06 11:11:35 EDT
Build 20040506

When restarting self-hosting workspace, I observed the following logging 
during startup. I had successfully opened the same workspace with the same 
build before.

!SESSION May 06, 2004 16:57:07.701 --------------------------------------------
-
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -showlocation -refresh
!ENTRY org.eclipse.update.configurator May 06, 2004 16:57:07.721
!MESSAGE ConfigurationParser.parse() error:
!STACK 0
java.lang.IllegalArgumentException
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse
(XMLReaderImpl.java:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.eclipse.update.internal.configurator.ConfigurationParser.parse
(ConfigurationParser.java:68)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.loadConfig
(PlatformConfiguration.java:1140)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.initializeCurren
t(PlatformConfiguration.java:701)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.<init>
(PlatformConfiguration.java:83)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.startup
(PlatformConfiguration.java:642)
        at 
org.eclipse.update.internal.configurator.ConfigurationActivator.getPlatformConf
iguration(ConfigurationActivator.java:296)
        at 
org.eclipse.update.internal.configurator.ConfigurationActivator.initialize
(ConfigurationActivator.java:114)
        at 
org.eclipse.update.internal.configurator.ConfigurationActivator.start
(ConfigurationActivator.java:68)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run
(BundleContextImpl.java:973)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator
(BundleContextImpl.java:969)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start
(BundleContextImpl.java:952)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker
(BundleHost.java:408)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume
(AbstractBundle.java:373)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle
(Framework.java:999)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:571)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL
(StartLevelManager.java:482)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel
(StartLevelManager.java:272)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:442)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent
(EventManager.java:153)
        at org.eclipse.osgi.framework.eventmgr.EventThread$Queued.dispatchEvent
(EventThread.java:56)
        at org.eclipse.osgi.framework.eventmgr.EventThread.run
(EventThread.java:107)
!ENTRY org.eclipse.update.configurator May 06, 2004 16:57:07.801
!MESSAGE ConfigurationParser.parse() error:
!STACK 0
java.lang.IllegalArgumentException
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse
(XMLReaderImpl.java:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.eclipse.update.internal.configurator.ConfigurationParser.parse
(ConfigurationParser.java:68)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.loadConfig
(PlatformConfiguration.java:1166)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.initializeCurren
t(PlatformConfiguration.java:701)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.<init>
(PlatformConfiguration.java:83)
        at 
org.eclipse.update.internal.configurator.PlatformConfiguration.startup
(PlatformConfiguration.java:642)
        at 
org.eclipse.update.internal.configurator.ConfigurationActivator.getPlatformConf
iguration(ConfigurationActivator.java:296)
        at 
org.eclipse.update.internal.configurator.ConfigurationActivator.initialize
(ConfigurationActivator.java:114)
        at 
org.eclipse.update.internal.configurator.ConfigurationActivator.start
(ConfigurationActivator.java:68)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run
(BundleContextImpl.java:973)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator
(BundleContextImpl.java:969)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start
(BundleContextImpl.java:952)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker
(BundleHost.java:408)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume
(AbstractBundle.java:373)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle
(Framework.java:999)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:571)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL
(StartLevelManager.java:482)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel
(StartLevelManager.java:272)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:442)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent
(EventManager.java:153)
        at org.eclipse.osgi.framework.eventmgr.EventThread$Queued.dispatchEvent
(EventThread.java:56)
        at org.eclipse.osgi.framework.eventmgr.EventThread.run
(EventThread.java:107)
Comment 1 John Arthorne CLA 2004-05-06 11:35:58 EDT
Possibly a mangled configuration file? 
Comment 2 Dorian Birsan CLA 2004-05-06 13:08:01 EDT
I put the trace last night, based on the traces you provided for the cheetah 
update problem. It looks like it worked :-)
I will investigate.
Comment 3 Dorian Birsan CLA 2004-05-06 15:55:38 EDT
Philippe, were you running with an old configuration directory or was it just 
created? 
Are you running on NTFS or FAT(32) ?

Can you clean the configuration folder, repeat the above and attach the 
configuration/org.eclipse.update folder here?
Thanks!
Comment 4 Philipe Mulet CLA 2004-05-06 16:12:14 EDT
I was reopening a self-hosting workspace (old) with latest SDK under WinXP.
Comment 5 Philipe Mulet CLA 2004-05-07 07:15:36 EDT
Filesystem is NTFS, and I reproduce it on each startup.
Comment 6 Philipe Mulet CLA 2004-05-07 07:16:16 EDT
Created attachment 10387 [details]
Configuration folder
Comment 7 Philipe Mulet CLA 2004-05-07 07:20:54 EDT
Created attachment 10389 [details]
New configuration after cleaning up first one
Comment 8 Philipe Mulet CLA 2004-05-07 07:22:02 EDT
Clarification. In between attachment 6 [details] and 7, I did cleanup the old 
configuration as suggested by Dorian.

First restart didn't issue any trace. Then exited and restarted, and got 
exceptions back.
Comment 9 Dorian Birsan CLA 2004-05-07 09:57:51 EDT
*** Bug 61359 has been marked as a duplicate of this bug. ***
Comment 10 Dorian Birsan CLA 2004-05-07 10:06:09 EDT
Thanks Philippe, this helped confirm my guess: it is the date attribute that 
is not correctly turned into a Date object.
I will create another attribute instead, to store the long integer  for time, 
and create a Date object out of that one.
Comment 11 Dorian Birsan CLA 2004-05-07 17:36:14 EDT
Instead of using date as string, we will be using date as time (in ms) 
(Date.getTime()). That should fix these issues.
I still write the date of the config as string inside a comment at the very 
top of the file.

Philippe, I wonder if this has anything to do with the cheetah bug you were 
seeing, but I could never reproduce.