Alignment to GeoServer App-Schema export issue

Added by Tigran Melkumyan over 2 years ago

Hi All,

I am trying to export the Join Alignment to App-Schema and the system brings the following error:

"
eclipse.buildId=unknown
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64 -clean

eu.esdihumboldt.hale.common.core
Error
Mon Jan 04 23:00:56 MST 2016
[23:00:56] null

java.lang.NullPointerException
at eu.esdihumboldt.hale.io.appschema.writer.internal.JoinHandler.handleTypeTransformation(JoinHandler.java:239)
at eu.esdihumboldt.hale.io.appschema.writer.AppSchemaMappingGenerator.createTypeMappings(AppSchemaMappingGenerator.java:549)
at eu.esdihumboldt.hale.io.appschema.writer.AppSchemaMappingGenerator.generateMapping(AppSchemaMappingGenerator.java:143)
at eu.esdihumboldt.hale.io.appschema.writer.AbstractAppSchemaConfigurator.execute(AbstractAppSchemaConfigurator.java:90)
at eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider.execute(AbstractIOProvider.java:102)
at eu.esdihumboldt.hale.ui.io.IOWizard$3.run(IOWizard.java:684)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)"

My Source schema and Source data are coming from the PostgreSQL, where I have one spatial polygonal layer(table) and another attribute table. I used the Join function to establish a "one to many" relationship between those tables trough common field.
My Target schema is created by using the FME and XMLSpy software packages.

I am attaching also the HALE project archive file for your consideration.

I would be grateful if you advise me what I am doing wrong.

Thanks,
Tigran Melkumyan


Replies (5)

RE: Alignment to GeoServer App-Schema export issue - Added by Simon Templer over 2 years ago

Hi Tigran,

the problem here seems to be a limitation in the app-schema plugin, that requires a Joined type to reside not in a root property, but inside a nested property of the main target type.
With the usual GML schemas and GML feature types this usually is the case, because nested feature type elements are mostly based on substition groups and thus a property type referencing feature types usually contains the type element again.
I'll ask Stefano Costa, who is the author of the plugin for HALE, if he has some comments or ideas to solve this.

Best regards,
Simon

RE: Alignment to GeoServer App-Schema export issue - Added by Stefano Costa over 2 years ago

Hi Tigran,
I've taken a look to your schema and alignment and I agree with Simon, the problem here is that GeoServer App-Schema works with GML and your XML schema violates GML structural rules, i.e. a GML object must never be the direct child of another GML object, it must always be enclosed in a GML property (see this answer from Ben Caradoc-Davies for a thorough explanation).

I took the liberty to amend your XML schema, you should now be able to achieve what you want. In doing so, I discovered that a little bug is currently preventing element names containing dots from working properly... thus, as you will notice, I also renamed the elements in the attached schema by stripping the "public." prefix from them.

Hope this helps!

Best regards,
Stefano

RE: Alignment to GeoServer App-Schema export issue - Added by Tigran Melkumyan over 2 years ago

Hi Simon and Stefano,

Thanks a lot for your help and explanation!
It works, I transformed it to the GeoServer.

There is another question regarding the version of GeoServer the HALE 2.9.4 supports.

Since it worked with standalone GeoServer 2.8.1 version but gave an error when I tried to transfer it to OpenGeo Suite 4.7 which is utilizing the GeoServer 2.7 version.

Thanks,
Best regards,
Tigran

RE: Alignment to GeoServer App-Schema export issue - Added by Stefano Costa over 2 years ago

Hi Tigran,
as stated in the User Guide, GeoServer version 2.8 or above is required. It may be partially working in a recent release of the 2.7 series, but I wouldn't recommend using it. Don't know about OpenGeo Suite.

Best regards,
Stefano

RE: Alignment to GeoServer App-Schema export issue - Added by Tigran Melkumyan over 2 years ago

Hi Stefano,

Thank you very much!

Best regards,
Tigran

(1-5/5)