xsync null pointer exception

43 views
Skip to first unread message

Jan Bernard Marsman

unread,
Oct 19, 2020, 4:32:01 AM10/19/20
to xnat_discussion
Dear experts, 

For all projects, I transfer my images using xsync. However, for one or two projects this keeps failing. I find the debugging of this extremely difficult. The xsync log mentions a null pointer exception on the XSyncSetupcontroller.java (after saving xsync settings). Other projects work fine BTW.  How would I go about to dive deeper into this message to resolve this issue?

Many thanks for your comments,

Jan

Mohana Ramaratnam

unread,
Oct 19, 2020, 5:00:28 AM10/19/20
to xnat_discussion
Hi Jan,

a) For the projects which are throwing the NullPointerException, are they being synced into the same Remote Xnat as the projects which are successfully being synced?

b) How does the sync JSON for the projects which succeed contrast with the ones that fail (to look up the sync json log in as Admin and use the Xsync setup controller Api)?

Mohana 

--
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/c04ba936-baa1-4a7e-9b28-f907171a2688n%40googlegroups.com.

b.kos...@nencki.edu.pl

unread,
Dec 22, 2020, 8:03:22 AM12/22/20
to xnat_discussion
Dear Mohana,
I am having similar problem. One of my projects fails to synchronize. I've tried to delete all subjects on the target, however, this does not seem to change anything. Synchronization hans at the very first subject and after several hours it produces some (for me) unmeaningful information:

Sync failed

Encountered error 422 Unprocessable Entityorg.springframework.web.client.HttpClientErrorException: 422 Unprocessable Entity at org.nrg.xsync.services.remote.XsyncResponseErrorHandler.handleError(XsyncResponseErrorHandler.java:33) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:708) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:661) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:539) at org.nrg.xsync.services.remote.RemoteRESTServiceImpl.importSubjectWithoutRetry(RemoteRESTServiceImpl.java:620) at org.nrg.xsync.services.remote.RemoteRESTServiceImpl.importSubject(RemoteRESTServiceImpl.java:346) at org.nrg.xsync.connection.RemoteConnectionManager.importSubject(RemoteConnectionManager.java:190) at org.nrg.xsync.local.RemoteSubject.syncSubjectMetaData(RemoteSubject.java:232) at org.nrg.xsync.local.RemoteSubject.storeSubject(RemoteSubject.java:224) at org.nrg.xsync.local.RemoteSubject.sync(RemoteSubject.java:192) at org.nrg.xsync.discoverer.ProjectChangeDiscoverer.syncSubject(ProjectChangeDiscoverer.java:443) at org.nrg.xsync.discoverer.ProjectChangeDiscoverer.sync(ProjectChangeDiscoverer.java:186) at org.nrg.xsync.discoverer.ProjectChangeDiscoverer.call(ProjectChangeDiscoverer.java:107) at org.nrg.xsync.discoverer.ProjectChangeDiscoverer.call(ProjectChangeDiscoverer.java:53) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

Please let me know how to get "sync json" and other debug data.
B.

Mohana Ramaratnam

unread,
Dec 22, 2020, 10:48:28 AM12/22/20
to xnat_discussion
Has your remote authentication expired?

Go to your source project, under Manage Tab - Xsync - reenter your remote XNAT authentication

Bartosz Kossowski

unread,
Dec 22, 2020, 12:11:15 PM12/22/20
to xnat_di...@googlegroups.com
No. It’s still valid. I’ve tried again but it still hangs up at the first subject. 
B. 

You received this message because you are subscribed to a topic in the Google Groups "xnat_discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xnat_discussion/0JZRiuBHYuE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/CAGH9FAwWVnU8ZD1KbqWVz%3DmFUrTrkkjktWKMH3p4ZeG5VGdpPw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages