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

500 error when displaying WKT & GML #98

Open
maccraymer opened this issue May 22, 2020 · 7 comments
Open

500 error when displaying WKT & GML #98

maccraymer opened this issue May 22, 2020 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@maccraymer
Copy link

In the Details view of CRS items, the "Show WKT" & "Show GML" links that top-right of the page give an HTTP Status 500 error when selected.

@maccraymer maccraymer added the bug Something isn't working label May 22, 2020
@ronaldtse
Copy link
Collaborator

Ping @phuonghuynh can you help fix this?

@ronaldtse
Copy link
Collaborator

ronaldtse commented May 26, 2020

e.g.
human-readable: https://geodetic.isotc211.org/item/83f9b452-ab4b-43de-923c-e317518f036a

GML: https://geodetic.isotc211.org/item/83f9b452-ab4b-43de-923c-e317518f036a/gml
=> 500 error

Type Exception Report

Message Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.opengis.gml32.GMLPackage

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Root Cause

java.lang.NoClassDefFoundError: Could not initialize class net.opengis.gml32.GMLPackage
	org.iso.registry.persistence.io.gml.GmlExporter.exportCrs(GmlExporter.java:145)
	org.iso.registry.client.controller.registry.RegisterItemController.viewItemAsGml(RegisterItemController.java:308)
	org.iso.registry.client.controller.registry.RegisterItemController$$FastClassBySpringCGLIB$$9bd34516.invoke(<generated>)
	org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
	org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
	org.iso.registry.client.controller.registry.RegisterItemController$$EnhancerBySpringCGLIB$$d8c67a7c.viewItemAsGml(<generated>)

WKT: https://geodetic.isotc211.org/item/83f9b452-ab4b-43de-923c-e317518f036a/wkt
=> 500 error

HTTP Status 500 – Internal Server Error

Type Exception Report

Message Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.xtext.common.TerminalsRuntimeModule

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Root Cause

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.xtext.common.TerminalsRuntimeModule
	org.eclipse.xtext.common.TerminalsStandaloneSetupGenerated.createInjector(TerminalsStandaloneSetupGenerated.java:40)
	org.eclipse.xtext.common.TerminalsStandaloneSetupGenerated.createInjectorAndDoEMFRegistration(TerminalsStandaloneSetupGenerated.java:34)
	org.eclipse.xtext.common.TerminalsStandaloneSetup.doSetup(TerminalsStandaloneSetup.java:11)
	de.bespire.io.wkt.WellKnownTextStandaloneSetupGenerated.createInjectorAndDoEMFRegistration(WellKnownTextStandaloneSetupGenerated.java:21)
	de.bespire.io.wkt.WellKnownTextStandaloneSetup.doSetup(WellKnownTextStandaloneSetup.java:15)
	org.iso.registry.persistence.io.wkt.WktExporter.exportCrs(WktExporter.java:104)
	org.iso.registry.client.controller.registry.RegisterItemController.viewItemAsWkt(RegisterItemController.java:282)
	org.iso.registry.client.controller.registry.RegisterItemController$$FastClassBySpringCGLIB$$9bd34516.invoke(<generated>)

@phuonghuynh phuonghuynh self-assigned this May 26, 2020
@phuonghuynh
Copy link
Contributor

Yep, @ronaldtse

@phuonghuynh
Copy link
Contributor

Update: Checked this, fixed the WKT error, but GMT still happening. This error only happens on aws env, local is good. I still investigating the error of GMT

@phuonghuynh
Copy link
Contributor

phuonghuynh commented Jun 11, 2020

Found reason that causes 500 error in GML view, Eclipse EMF Framework have issue with Linux server (not PC distro like Ubuntu) when running with Java8

When I downgrade to previous version of Isoregistry, java7, it just works

cc @ronaldtse @florianesser

@phuonghuynh
Copy link
Contributor

@maccraymer staging has been updated. Could you help to check this issue on Stating instance before deploying to Production instance.

@ronaldtse
Copy link
Collaborator

ronaldtse commented Jul 7, 2020

@phuonghuynh can you help deploy to production? I can confirm it works on Staging now. Thanks.

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

3 participants