hale icon indicating copy to clipboard operation
hale copied to clipboard

XML schema import gets green check mark in Report List, but failed

Open JohannaOtt opened this issue 7 years ago • 4 comments

when loading a project, the Report List indicates that everything loaded fine image but FeatureTypes are missing. As the schema wasn't stored in the right location, the XML Schema import actually did not work. The error message is shown in the error log image It would be helpful to also indicate this in the Report List to make it easier for the user to find out why FeatureTypes are missing.

JohannaOtt avatar Jun 18 '18 10:06 JohannaOtt

@JohannaOtt Can you provide the stack trace of the error in the error log? That would allow us the see where the error bypasses the report.

stempler avatar Jun 18 '18 12:06 stempler

java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: C:\Users\Johanna Ott\Box Sync\staff\Projects\2018-07 RWS Phase II\Transformation Projects\TN-RO\schemaWEGVAKKEN.xsd (The system cannot find the file specified) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1898) at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1606) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224) at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:512) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:385) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:425) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:451) at eu.esdihumboldt.hale.io.xsd.reader.XmlSchemaReader.execute(XmlSchemaReader.java:339) at eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider.execute(AbstractIOProvider.java:107) at eu.esdihumboldt.hale.common.core.io.impl.AbstractImportProvider.execute(AbstractImportProvider.java:74) at eu.esdihumboldt.hale.ui.service.project.ProjectResourcesUtil$2.run(ProjectResourcesUtil.java:195) at eu.esdihumboldt.hale.ui.util.io.ThreadProgressMonitor.runWithProgressDialog(ThreadProgressMonitor.java:155) at eu.esdihumboldt.hale.ui.service.project.ProjectResourcesUtil.executeProvider(ProjectResourcesUtil.java:227) at eu.esdihumboldt.hale.ui.service.project.ProjectResourcesUtil.executeConfiguration(ProjectResourcesUtil.java:133) at eu.esdihumboldt.hale.ui.service.project.ProjectResourcesUtil.executeConfiguration(ProjectResourcesUtil.java:67) at eu.esdihumboldt.hale.ui.service.project.internal.ProjectServiceImpl.executeConfiguration(ProjectServiceImpl.java:516) at eu.esdihumboldt.hale.ui.service.project.internal.ProjectServiceImpl.executeConfigurations(ProjectServiceImpl.java:501) at eu.esdihumboldt.hale.ui.service.project.internal.ProjectServiceImpl.access$12(ProjectServiceImpl.java:498) at eu.esdihumboldt.hale.ui.service.project.internal.ProjectServiceImpl$OpenProjectAdvisor.handleResults(ProjectServiceImpl.java:276) at eu.esdihumboldt.hale.ui.service.project.internal.ProjectServiceImpl$OpenProjectAdvisor.handleResults(ProjectServiceImpl.java:1) at eu.esdihumboldt.hale.ui.service.project.ProjectResourcesUtil$2.run(ProjectResourcesUtil.java:215) at eu.esdihumboldt.hale.ui.util.io.ThreadProgressMonitor$1.run(ThreadProgressMonitor.java:121) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119) Caused by: org.apache.ws.commons.schema.XmlSchemaException: C:\Users\Johanna Ott\Box Sync\staff\Projects\2018-07 RWS Phase II\Transformation Projects\TN-RO\schemaWEGVAKKEN.xsd (The system cannot find the file specified) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:389) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1892) ... 23 more

JohannaOtt avatar Jun 18 '18 12:06 JohannaOtt

Might be related to #543

florianesser avatar Nov 29 '18 17:11 florianesser

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 19 '24 02:05 github-actions[bot]