Hi all,
I've recently been trying to create a custom datatype (extension base="xnat:imageAssessorData"), targeting XNAT 1.8.6.1. I have been following this guide
XNAT Data Type Development. I have created a basic datatype plugin, and successfully installed it into XNAT. This shows up under Site Administration > Installed Plugins, and the datatype is setup correctly in Administer > Data Types. By POSTing an XML file to the right end point, I am able to create instances of this new datatype, attached to MR experiments.
However, the report page does not appear as the above documentation suggests it would, and trying to use the Edit button shows an error page with "Please create an edit page for custom:BrukerData". The documentation says a default/basic edit and report page would be created for a new datatype, but this does not seem to be happening. After creating multiple instances of the custom datatype, it does not appear in Browse > Data, and trying to add a new tab for this datatype at the project level shows "Failed to create search results", with errors seen in xdat.log when I try:
2023-01-25 15:41:07,857 [http-nio-8080-exec-1] ERROR org.nrg.xdat.search.DisplaySearch -
java.lang.NullPointerException: null
I found
this thread that seems to explain a similar issue. Using "jar tf plugin_name.jar" shows there is no file with any mention of *display.xml (and no .xml files in general). I'm not sure if that is supposed to be automatically generated or not, but I haven't seen it mentioned in the documentation.
Is there something that might explain the lack of default edit/report screens, and search functionality? I'm testing this on a clean XNAT with no other plugins.
Thanks,
Duncan