Community
Participate
Working Groups
Created attachment 269691 [details] Papyrus-RT proglem screen captures I was working on a new TrafficLights model from scratch using Papyrus-RT 1.0.0 and I ran into an issue… After saving and closing my model last night, I opened it this morning and there are lots of errors in the two logs (below) and the following issues were noticeable in the tool (numbers refer to annotation in the attached image): 1) No model is shown in the model explorer 2) Diagram links in the “Welcome” tab are showing diagrams, but with no information 3) Diagrams are displayed with lots of errors as opposed to the original version (4). To fix this, I tried: * closing all open diagrams and re-opening the model. * Closing everything and re-starting Papyrus-RT * Importing the model into a new workspace. * re-installing Papyrus-RT (both RCP or with Papyrus-RT Installer) Without success. Any idea what might have gone wrong and how to fix it and, more importantly, if there is a known way to prevent this? I did try to re-install, but that had no effect. Log: !ENTRY org.eclipse.equinox.p2.core 4 0 2017-08-04 09:33:34.584 !MESSAGE Provisioning exception !STACK 1 org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://download.eclipse.org/modeling/mdt/papyrus/updates/releases. at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:395) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:692) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92) at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.doLoad(LoadMetadataRepositoryJob.java:118) at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.runModal(LoadMetadataRepositoryJob.java:103) at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler$2.runModal(PreloadingRepositoryHandler.java:83) at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob.java:177) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56) !SUBENTRY 1 org.eclipse.equinox.p2.metadata.repository 4 1000 2017-08-04 09:33:34.585 !MESSAGE No repository found at http://download.eclipse.org/modeling/mdt/papyrus/updates/releases. !SESSION 2017-08-04 09:34:59.315 ----------------------------------------------- eclipse.buildId=unknown java.version=1.8.0_74 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -keyring /Users/crivet/.eclipse_keyring Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/crivet/.eclipse_keyring !ENTRY org.eclipse.core.net 1 0 2017-08-04 09:35:07.128 !MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences !ENTRY org.eclipse.papyrus.infra.emf 4 0 2017-08-04 09:35:50.556 !MESSAGE Failed to scan model resource for parent reference. !STACK 0 org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1437) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1019) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327) at org.eclipse.papyrus.infra.emf.internal.resource.OnDemandCrossReferenceIndex.doIndex(OnDemandCrossReferenceIndex.java:177) at org.eclipse.papyrus.infra.emf.internal.resource.OnDemandCrossReferenceIndex.index(OnDemandCrossReferenceIndex.java:154) at org.eclipse.papyrus.infra.emf.internal.resource.OnDemandCrossReferenceIndex.isShard0(OnDemandCrossReferenceIndex.java:100) at org.eclipse.papyrus.infra.emf.internal.resource.AbstractCrossReferenceIndex.lambda$10(AbstractCrossReferenceIndex.java:423) at org.eclipse.papyrus.infra.emf.internal.resource.AbstractCrossReferenceIndex$1.doCall(AbstractCrossReferenceIndex.java:462) at org.eclipse.papyrus.infra.emf.internal.resource.AbstractCrossReferenceIndex$SyncCallable.call(AbstractCrossReferenceIndex.java:483) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) !ENTRY org.eclipse.papyrus.infra.emf 4 0 2017-08-04 09:35:51.187 !MESSAGE Failed to scan model resource for parent reference. !STACK 0 org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1437) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1019) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at
Created attachment 269692 [details] Full log
The "org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file." gives and indication that the model file has become corrupt, or judging from the line and column number simply empty. Checking the complete log gives several such SAXParceExceptions for platform:/resource/TrafficLights-local/TrafficLights-local.uml which I guess is the offending file that has become empty.
(In reply to Peter Cigehn from comment #2) > The "org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; > Premature end of file." gives and indication that the model file has become > corrupt, or judging from the line and column number simply empty. Checking > the complete log gives several such SAXParceExceptions for > platform:/resource/TrafficLights-local/TrafficLights-local.uml which I guess > is the offending file that has become empty. Thanks Peter - just got back from vacation... I had noticed the lack of content in those files and I am not sure how that happened... I had a quick look, but could not find any trace of the files' content - not even in history (either Git or local). I had started re-created the model before I left - and that is still on ToDo List, but it will have to wait a couple of weeks...