Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown in validation as result of duplicated rdfIDs in an IGM #24

Open
maja-r-m opened this issue May 22, 2020 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@maja-r-m
Copy link

Used:
-validator built on 22.05.2020. 3:32AM GMT+2

Behavior:
Generated excelReport is empty.

cmd track:

D:\OCL\ocl_validator-2.1>set INPUTS=inputs

D:\OCL\ocl_validator-2.1>set VALIDATOR_HOME=.

D:\OCL\ocl_validator-2.1>set VALIDATOR_CONFIG=config

D:\OCL\ocl_validator-2.1>chcp 65001
Active code page: 65001

D:\OCL\ocl_validator-2.1>java -Xms1g -cp target/ocl_validator-2.1-jar-with-all-dependencies.jar ocl.OCLEvaluator inputs
[2020-05-22 14:02:15] [INFO ] Reordering done!
[2020-05-22 14:02:15] [INFO ] Transformed:20200513T0930Z_1D_CEPS_SV_001.xml
[2020-05-22 14:02:15] [INFO ] XMI transformation done!
[2020-05-22 14:02:15] [INFO ] Validator ready
[2020-05-22 14:02:16] [INFO ] Start Validation
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature 'open' not found. (file:///D:/OCL/ocl_validator-2.1/0c713e40-0150-45d8-abed-eba00d1695d9, 4997, 319)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:77)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:185)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1563)
at ocl.Validation.evaluate(Validation.java:149)
at ocl.Validation.main(Validation.java:258)
Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'open' not found. (file:///D:/OCL/ocl_validator-2.1/0c713e40-0150-45d8-abed-eba00d1695d9, 4997, 319)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeature(XMLHandler.java:2045)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeature(XMLHandler.java:2009)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeature(XMIHandler.java:172)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XMLHandler.java:2761)
at org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAttribs(SAXXMIHandler.java:79)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFactory(XMLHandler.java:2247)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:2150)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:2085)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.createObject(XMIHandler.java:151)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1894)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1048)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:82)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1026)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:720)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:190)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(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 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
... 4 more
[2020-05-22 14:02:18] [INFO ] End Validation
[2020-05-22 14:02:18] [INFO ] Creating reports...
[2020-05-22 14:02:18] [INFO ] All excel reports created
[2020-05-22 14:02:18] [INFO ] Excel created: inputs\DebugReport.xlsx
[2020-05-22 14:02:18] [INFO ] Cache cleaned

D:\OCL\ocl_validator-2.1>PAUSE
Press any key to continue . . .

Potential issue:
IGM has duplicated rdfIDs

Expected behavior:
Generated excelReport contains IDuniqueness error.

@maja-r-m
Copy link
Author

Identified IDUniqueness issues are attached.
IDuniqueness.xlsx

@marcochiaramello marcochiaramello self-assigned this May 28, 2020
@marcochiaramello marcochiaramello added the bug Something isn't working label May 28, 2020
marcochiaramello added a commit that referenced this issue May 28, 2020
…impossible, e.g. the ones breaking the xml/rdf consistency. If the case, the json containg the broken rules are written immediately in the cache directory, without any further validation. These cases are then treated as any other when writing the excel reports.
@marcochiaramello
Copy link
Collaborator

A new class is introduced to treat cases for which the xmi is impossible, e.g. the ones breaking the xml/rdf consistency. If the case, the json containing the broken rules are written immediately in the cache directory, without any further validation. These cases are then treated as any other when writing the excel reports.

marcochiaramello added a commit that referenced this issue May 29, 2020
picaultj added a commit that referenced this issue Jun 9, 2020
See #24: new class is introduced to treat cases for which the xmi is …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants