Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] org.eclipse.sapphire.modeling.CorruptedResourceException

Thanks for the report, Raj. I will look into this for 0.2.1 release.

 

- Konstantin

 

 

From: Raj Alagumalai [mailto:raj.alagumalai@xxxxxxxxxx]
Sent: Friday, February 25, 2011 5:28 PM
To: Konstantin Komissarchik
Cc: Shenxue Zhou
Subject: RE: org.eclipse.sapphire.modeling.CorruptedResourceException

 

I spoke to Shenxue and she explained that the contacts.xml file is created from within calendar.xml.

 

So I deleted all my files and started with a fresh calendar.xml file and noticed that contacts.xml was created when I added a new contact. But when I tried to add a new event, I hit the same exception. I’ve filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=338294 to track this.

 

Thanks

Raj

 

 

 

From: Raj Alagumalai
Sent: Friday, February 25, 2011 5:00 PM
To: Konstantin Komissarchik
Subject: org.eclipse.sapphire.modeling.CorruptedResourceException

 

Konstantin,

 

I notice the following exception and was unsure if this was user error or a bug.

 

I install the latest Sapphire build on Helios SR2

Created a new Java project

Create 3 XML files named Calendar.xml, Contacts.xml and Address.xml

Open calendar.xml in Calendar Editor

Right click on events and add event

 

The following exception is logged in the .log file

 

 

org.eclipse.sapphire.modeling.CorruptedResourceException

                at org.eclipse.sapphire.modeling.xml.RootXmlResource.getXmlElement(RootXmlResource.java:144)

                at org.eclipse.sapphire.modeling.xml.StandardXmlListBindingImpl.getBaseXmlElement(StandardXmlListBindingImpl.java:201)

                at org.eclipse.sapphire.modeling.xml.StandardXmlListBindingImpl.getXmlElement(StandardXmlListBindingImpl.java:188)

                at org.eclipse.sapphire.modeling.xml.StandardXmlListBindingImpl.addUnderlyingObject(StandardXmlListBindingImpl.java:140)

                at org.eclipse.sapphire.modeling.LayeredListBindingImpl.add(LayeredListBindingImpl.java:58)

                at org.eclipse.sapphire.modeling.ModelElementList.addNewElement(ModelElementList.java:243)

                at org.eclipse.sapphire.samples.calendar.integrated.internal.CalendarResource$2.addUnderlyingObject(CalendarResource.java:110)

                at org.eclipse.sapphire.modeling.LayeredListBindingImpl.add(LayeredListBindingImpl.java:58)

                at org.eclipse.sapphire.modeling.ModelElementList.addNewElement(ModelElementList.java:243)

                at org.eclipse.sapphire.ui.swt.renderer.actions.internal.OutlineNodeAddActionHandlerFactory$AddActionHandler.run(OutlineNodeAddActionHandlerFactory.java:118)

                at org.eclipse.sapphire.ui.SapphireActionHandler.execute(SapphireActionHandler.java:89)

                at org.eclipse.sapphire.ui.swt.renderer.SapphireMenuActionPresentation$1.widgetSelected(SapphireMenuActionPresentation.java:91)

                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)

                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)

                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)

                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)

                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)

                at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)

                at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)

                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

                at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)

                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

                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:369)

                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:620)

                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)

                at org.eclipse.equinox.launcher.Main.run(Main.java:1408)


Back to the top