The presence of an AF3 Library causes a Parsing Exception
Observed behavior.
A SAXParsingException is thrown when a Library is present and a new AF3
Project is imported, or AF3 is restarted.
The following Stack Trace is produced:
!ENTRY org.fortiss.tooling.kernel 4 0 2018-03-29 10:59:49.776
!MESSAGE Exception while loading model file: AF3-Library.af3_lib_23
!STACK 0
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Vorzeitiges
Dateiende.
at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:195)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1297)
at
org.fortiss.tooling.kernel.internal.storage.eclipse.ModelContext.(ModelContext.java:116)
at
org.fortiss.tooling.kernel.internal.storage.eclipse.EclipseResourceStorageService.loadContext(EclipseResourceStorageService.java:279)
at
org.fortiss.tooling.kernel.internal.storage.eclipse.EclipseResourceStorageService.searchResourceForModels(EclipseResourceStorageService.java:146)
at
org.fortiss.tooling.kernel.internal.storage.eclipse.EclipseResourceStorageService.searchResourceForModels(EclipseResourceStorageService.java:149)
at
org.fortiss.tooling.kernel.internal.storage.eclipse.EclipseResourceStorageService.searchWorkspaceForModels(EclipseResourceStorageService.java:135)
at
org.fortiss.tooling.kernel.internal.storage.eclipse.EclipseResourceStorageService.initializeService(EclipseResourceStorageService.java:115)
at
org.fortiss.tooling.kernel.internal.ToolingKernelInternal.initializeKernel(ToolingKernelInternal.java:37)
at
org.fortiss.tooling.kernel.ToolingKernel.initialize(ToolingKernel.java:30)
at
org.fortiss.af3.rcapplication.advisors.ApplicationWorkbenchAdvisor.initialize(ApplicationWorkbenchAdvisor.java:78)
at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:188)
at
org.eclipse.ui.internal.Workbench$22.runWithException(Workbench.java:1573)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2686)
at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:2594)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:608)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at
org.fortiss.af3.rcapplication.AF3Application.start(AF3Application.java:43)
at
org.eclipse.equinox.internal.apEclipseAppHandle.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:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: org.xml.sax.SAXParseExceptionpublicId:
platform:/resource/AF3-Project-Directory/AF3-Lib/AF3-Library.af3_lib_23;
systemId:
platform:/resource/AF3-Project-Directory/AF3-Lib/AF3-Library.af3_lib_23;
lineNumber: 1; columnNumber: 1; Vorzeitiges Dateiende.
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:1472)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
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.jaxSAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at
com.sun.org.apache.xerces.internal.jaxSAXParserImpl.parse(SAXParserImpl.java:327)
at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
… 39 more
How to reproduce.
1. Load the ACC Example.
2. Create an AF3 Library (It does not affect the bug if elements are
added to the library or not).
3. Save the Library.
4. Import the ACC example from the runtime workspace.
Proposed Fix.
Currently none. The root cause has yet to be identified.
(from redmine: issue id 3356, created on 2018-03-29, closed on 2018-03-29)