UnsupportedOperationException from community-filiator --remove in dspace 6.1

91 views
Skip to first unread message

Bolette A. Jurik

unread,
Nov 14, 2017, 4:34:14 AM11/14/17
to DSpace Technical Support
Hi all,

I get a
java.lang.UnsupportedOperationException
when using the community-filiator --remove operation in my dspace 6.1 installation

More specifically
$ ./bin/dspace community-filiator --remove --parent 1902/1 --child 1902/11
Exception: null
java.lang.UnsupportedOperationException
    at java.util.AbstractList.remove(AbstractList.java:161)
    at java.util.AbstractList$Itr.remove(AbstractList.java:374)
    at java.util.AbstractCollection.remove(AbstractCollection.java:293)
    at org.dspace.administer.CommunityFiliator.defiliate(CommunityFiliator.java:264)
    at org.dspace.administer.CommunityFiliator.main(CommunityFiliator.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
    at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)

But it looks like the --set operation works
$ ./bin/dspace community-filiator --set --parent 1902/17 --child 1902/1

Filiation complete. Community: '0f4f6f9d-f9be-45e6-ad13-217b07ad17ad' is parent of community: '1ed059f9-fd5b-4921-a5fe-65dc9ba95265'

Has anyone else experienced this, and/or do you have any idea how to fix the community-filiator --remove operation?

Regards
Bolette


BOLETTE AMMITZBØLL JURIK
Developer,
IT Development 2
DIRECT 8946 2322



Det Kgl. Bibliotek
Royal Danish Library
 
Victor Albecks Vej 1
DK-8000 Aarhus C
 
CVR 2898 8842
EAN 5798 000 792142

Braxton Van Gundy

unread,
May 4, 2022, 11:06:52 AM5/4/22
to DSpace Technical Support
Did you all ever find a solution to this? I'm hitting the exact same issue with Dspace 6.3 right now. 
Reply all
Reply to author
Forward
0 new messages