Test running handle server in Dspace

208 views
Skip to first unread message

dataquest

unread,
Sep 11, 2023, 7:51:05 AM9/11/23
to dspac...@googlegroups.com
Hello everybody.
I tried to run DSpace handle server (with current codebase from GitHub) according to the guide
I failed to make it run, due to NullPointerException in HandlePlugin class:
"2023-09-08 16:50:33.267+0200" 25 Handle.net Server Software version 9.3.0
java.lang.NullPointerException
      at org.dspace.handle.HandlePlugin.haveNA(HandlePlugin.java:397)
      at net.handle.server.HandleServer.storageHaveNA(HandleServer.java:3640)
      at net.handle.server.HandleServer.applyAutoHomedPrefixes(HandleServer.java:692)
      at net.handle.server.HandleServer.start(HandleServer.java:639)
      at net.handle.server.Main.start(Main.java:288)
      at net.handle.server.Main.main(Main.java:123)
Shutting down...
I wanted to run it with some random handle prefix as a test. I am not sure if that is possible,
and if it could be causing this error.
My questions therefore are:
  1. What could cause this problem? Can it be non-existent/invalid handle prefix?
  2. Is it possible to somehow test run the handle server?
  3. If I manage to get it up running, how can I check if it works?
I failed to find that information in the guide. It might be also useful to specify a bit more
clearly how to edit config.dct or perhaps add an example with specific handle.
When I tried to find information about this, I only found old and/or not relevant 
mails and articles. If such resource exists, please just point me in the right direction.
Many thanks in advance.

With regards,
Majo Berger

marian...@dataquest.sk

dataquest s.r.o.

Veľká Okružná 26A, 010 01 Žilina

www.dataquest.sk

 

image.png

DSpace Technical Support

unread,
Sep 12, 2023, 1:03:23 PM9/12/23
to DSpace Technical Support
Hi Majo,

It's unclear how you've obtained that error.  But, the NullPointerException to me almost seems to imply that DSpace isn't running, or something is incorrect in your Handle configuration.  Maybe if you provided the steps you've taken to get that error, it'd help others provide you with more advice.

As far as I'm aware, it should be possible to run the Handle Server itself with a "fake" handleprefix.  However, it will not resolve "https://hdl.handle.net/" URLs until you have a valid prefix registered with that service.  (If I'm wrong about that, I hope someone else will correct me.  I'll admit, I'm not sure if this changed in more recent versions of the Handle Server software.)

Overall, you don't need to run the Handle Server in DSpace unless you want to generate permanent "https://hdl.handle.net/" URLs for every object.

Tim

dataquest

unread,
Sep 13, 2023, 8:48:49 AM9/13/23
to DSpace Technical Support
Hi, thanks for the answer.

I am sure DSpace was running (but will check again to make sure there were no errors at that moment).
I used exactly the steps from the guide I linked. The only unclear step is modifying the config.dct file (number 4).
There are several places with mentioned handle. I modified all of them. It could be helpful to make that
step more clear or perhaps include example of the file before and after with some specific handle.

I understand that handles will not be resolved on https://hdl.handle.net and I am completely fine with it.

If there could be more specific instructions about the config.dct file, it would certainly be helpful.
If that does not help, I can send more data to try and pinpoint the issue.

With regards,
Majo Berger


--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/9749d856-711e-4eef-8e1d-4e31a6d1c669n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages