Community
Participate
Working Groups
Cannot apply any registered profile when org.eclipse.papyrus.core.resourceloading is opened. Stack trace: eclipse.buildId=I20100429-1549 java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR Framework arguments: -product org.eclipse.platform.ide Command-line arguments: -product org.eclipse.platform.ide -data D:\Workspaces\Helios\p2_dev_ws/../runtime -dev file:D:/Workspaces/Helios/p2_dev_ws/.metadata/.plugins/org.eclipse.pde.core/Runtime/dev.properties -os win32 -ws win32 -arch x86 -consoleLog Error Tue Jun 08 10:26:03 CEST 2010 Unhandled event loop exception org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'http://www.eclipse.org/uml2/schemas/Standard/1' is not legal. (pathmap://UML_PROFILES/Standard.profile.uml, 764, 126) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397) at org.eclipse.papyrus.profile.ui.dialogs.RegisteredProfileSelectionDialog.treatSelection(RegisteredProfileSelectionDialog.java:116) at org.eclipse.papyrus.profile.ui.dialogs.RegisteredProfileSelectionDialog.run(RegisteredProfileSelectionDialog.java:85) at org.eclipse.papyrus.profile.ui.compositesformodel.AppliedProfileCompositeOnModel.registeredProfileButtonPressed(AppliedProfileCompositeOnModel.java:544) at org.eclipse.papyrus.profile.ui.compositeforview.AppliedProfileCompositeWithView.registeredProfileButtonPressed(AppliedProfileCompositeWithView.java:47) at org.eclipse.papyrus.profile.ui.compositesformodel.AppliedProfileCompositeOnModel$4.mouseUp(AppliedProfileCompositeOnModel.java:366) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052) 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:2601) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2565) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2399) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:669) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:662) 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:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) at org.eclipse.equinox.launcher.Main.main(Main.java:1383) Caused by: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'http://www.eclipse.org/uml2/schemas/Standard/1' is not legal. (pathmap://UML_PROFILES/Standard.profile.uml, 764, 126) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2663) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XMLHandler.java:2717) at org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAttribs(SAXXMIHandler.java:85) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFactory(XMLHandler.java:2193) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1330) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1468) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1019) at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:87) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1001) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:712) at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:169) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1282) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270) ... 32 more Caused by: java.lang.NullPointerException at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1127) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2658) ... 60 more
The stack says that you have an error in the profile. Can you check with another profile ?
(In reply to comment #1) > The stack says that you have an error in the profile. > Can you check with another profile ? I tested with Ecore, SysML, Standard profiles and get the same result. The profile application works perfectly if I close org.eclipse.papyrus.core.resourceloading and related plug-ins, also the profile application works perfectly with UML2 tree editor.
This bug is fixed since latest commmit for resource loading. I think you shall do an update and tell me if the problem still occurs
I have test in my side, for me, it is ok. I you want you can add it in the build ;-) When it is added, you can fix this task.
It seems that profile application does not work unless the following plugins are bundled: - oep.resourceloading.umlprofile - oep.core.resourceloading - oep.controlmode.history Not using these plug-ins should have no effect on profile application (tested with SysML and these plug-ins closed)
This bug occurs when you try to apply a profile on a model there is a null pointer exception in the class : AppliedProfileCompositeOnModel (line 155) getDomain() returns null. The applyProfile works well with nested Packages. We reproduce the bug with resource loading opened and closed. So it's not a problem about resource loading or history plugins Can you set the bug to fixed if you confirm it ?
Right, thanks Emilien.