Do you mean there are no errors in the logs when you get the 500 error? If so, I’d need the XSD for the data type to see if the same error occurs elsewhere and debug it if so, because there would be two problems there: whatever is causing the 500 error and the code where that error occurs not logging anything about it.
You may want to look at the Tomcat logs as well. For the most part we’ve stamped out error messages going to those logs, but there could still be some cases that write to them.
From:
xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Ben Wagner <thewa...@gmail.com>
Date: Wednesday, June 8, 2022 at 10:23 PM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] Datatype problems
* External Email - Caution * |
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/adec34b6-86f8-42ed-af90-64a5e87f35e7n%40googlegroups.com.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
Another question is whether your data type is configured the same as other working data types. When you go to the Administer Data Types page, are all the checkboxes for the data type checked?
Also, try clicking on the data type on that page, which should pop up a dialog. See if anything looks weird there, especially compared to the other functioning data types from your plugin. You may also click the View XML action in that dialog, then copy and paste the XML into a file. Do that with both the problematic data type and one or two of the functioning data types and see if you can find any differences that might be significant.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/SN6PR02MB511804EE7DA343B54BBB55E1BDA79%40SN6PR02MB5118.namprd02.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/SN6PR02MB5118FEA70D96CD6E8580D41BBDA79%40SN6PR02MB5118.namprd02.prod.outlook.com.
Look in your plugin jar for a file named ansir_networkReportdata_display.xml:
jar tf ansir-plugin.jar | grep ansir_networkReportdata_display
schemas/ansir/display/ansir_networkReportdata_display.xml
Or you can also try:
jar xf ansir-plugin.jar $(jar tf ansir-plugin.jar | grep '/display/’)
find schemas -type f -path "*/display/*" | xargs grep -E '<Displays .* schema-element="ansir:networkReportdata"'
If you have anything that defines a <Displays> element for that data type, you shouldn’t get a NPE there. I tested this by completely removing the generated display document for the data type (i.e. just the default version, nothing custom added) from the jar, which caused the exact error you have below. I added the display document back in and voila it worked fine.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/8b96e4de-924b-4c86-ad02-0a3cfdbf5d87n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/SN6PR02MB5118B05C78370696DFB2A86FBDAC9%40SN6PR02MB5118.namprd02.prod.outlook.com.