Broken custom variables

8 views
Skip to first unread message

Ben Wagner

unread,
Oct 16, 2025, 9:26:57 AMOct 16
to xnat_discussion
Hi XNAT team,
  I've been getting some wackiness with custom variables lately, but have hit a real stumbling block today.  I'm trying to add new custom variable and I'm getting the following in the restlet.log:

2025-10-16 08:21:32,067 [ajp-nio-127.0.0.1-8008-exec-8] ERROR org.nrg.xnat.restlet.resources.ProtocolResource - An unknown error occurred trying to store the protocol
java.lang.NullPointerException: null
        at org.nrg.xdat.om.base.BaseXnatDatatypeprotocol.isProjectSpecific(BaseXnatDatatypeprotocol.java:162)
        at org.nrg.xnat.restlet.resources.ProtocolResource.hasChanged(ProtocolResource.java:249)
        at org.nrg.xnat.restlet.resources.ProtocolResource.handlePut(ProtocolResource.java:141)
        at org.restlet.Finder.handle(Finder.java:359)
        at org.restlet.Filter.doHandle(Filter.java:150)
        at org.restlet.Filter.handle(Filter.java:195)
        at org.restlet.Router.handle(Router.java:504)
        at org.restlet.Filter.doHandle(Filter.java:150)
        at org.restlet.Filter.handle(Filter.java:195)
        at org.restlet.Filter.doHandle(Filter.java:150)
        at org.restlet.Filter.handle(Filter.java:195)
        at org.restlet.Router.handle(Router.java:504)
        at org.restlet.Filter.doHandle(Filter.java:150)
        at org.restlet.Filter.handle(Filter.java:195)
        at org.restlet.Filter.doHandle(Filter.java:150)
        at org.restlet.Filter.handle(Filter.java:195)
        at org.restlet.Filter.doHandle(Filter.java:150)
        at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
        at org.restlet.Filter.handle(Filter.java:195)
        at org.restlet.Filter.doHandle(Filter.java:150)
        at org.restlet.Filter.handle(Filter.java:195)
        at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
        at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
<SNIP>

Any suggestions?  Running 1.9.2.3.

Thanks,
Ben

Ben Wagner

unread,
Oct 17, 2025, 12:11:19 PM (14 days ago) Oct 17
to xnat_discussion
Follow up with more wonkiness.  The custom variable finally showed up, but now none of the other custom vars on showing up in the session, but are in the XML.  See attached images.  Any suggestions?
manage_vars.png
session.png
xml.png

Ben Wagner

unread,
Oct 22, 2025, 9:53:02 AM (9 days ago) Oct 22
to xnat_discussion
Hmm..
So, it looks like the definition for this specific group of custom variables was lost/overwritten.  I added them back AND then RESTARTED and they reappeared.  It seems like with each edit lately I'm having to manually restart for them to show.  That's now how it's supposed to work.

Ideas?
Ben

Reply all
Reply to author
Forward
0 new messages