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

Inventory request fails #1344

Closed
timrobertson100 opened this Issue May 24, 2017 · 0 comments

Comments

Projects
3 participants
@timrobertson100
Member

timrobertson100 commented May 24, 2017

The IPT can return http 500 and logs error on inventory requests when there are extensions involved.

The user is presented with a stacktrace as follows:

java.lang.NullPointerException
	com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:285)
	org.gbif.ipt.action.portal.InventoryAction$DatasetItem.setRecordsByExtension(InventoryAction.java:166)
	org.gbif.ipt.action.portal.InventoryAction.populateInventory(InventoryAction.java:215)
	org.gbif.ipt.action.portal.InventoryAction.execute(InventoryAction.java:47)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:892)
	ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1294)
	ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
	com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
	com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
	ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1370)
	ognl.ASTMethod.getValueBody(ASTMethod.java:91)
	ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
	ognl.SimpleNode.getValue(SimpleNode.java:258)
	ognl.Ognl.getValue(Ognl.java:467)
	ognl.Ognl.getValue(Ognl.java:431)

Here are some examples from production installations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment