Re: [dspace-tech] DSpace 7.3 - create-administrator error

317 views
Skip to first unread message

Tim Donohue

unread,
Jul 11, 2022, 11:29:27 AM7/11/22
to Jan Broulím, DSpace Technical Support
Hi Jan,

That error appears to be saying you have a database connection issue.  I'd recommend checking your dspace.log file for more details... it's highly likely you have errors in that log file related to the database connection.  It's unclear what the exact problem may be though, so you'd need to check the dspace.log file.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Jan Broulím <jan.b...@gmail.com>
Sent: Monday, July 4, 2022 6:43 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] DSpace 7.3 - create-administrator error
 

Hi,

we are testing DSpace 7.3 and the installation fails with the installation of backend.


This we get from the build as warning:

 2022-07-04 12:56:15,162 WARN  org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean by name or id=database. Will try to look up bean by type next.


and when running create-administrator command, it fails with:

Exception: null

java.lang.NullPointerException

    at org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:59)

    at org.dspace.core.AbstractHibernateDAO.createQuery(AbstractHibernateDAO.java:137)

    at org.dspace.eperson.dao.impl.GroupDAOImpl.findByName(GroupDAOImpl.java:104)

    at org.dspace.eperson.GroupServiceImpl.findByName(GroupServiceImpl.java:401)

    at org.dspace.administer.CreateAdministrator.createAdministrator(CreateAdministrator.java:223)

    at org.dspace.administer.CreateAdministrator.negotiateAdministratorDetails(CreateAdministrator.java:197)

    at org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:84)

    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


When trying the same installation scrips with 7.2.1, it works fine.

Thank you for any help



Jan

--
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/203bdd82-4d8e-4f43-9006-9db25bffe61cn%40googlegroups.com.

Alan Orth

unread,
Jul 15, 2022, 7:55:59 AM7/15/22
to Tim Donohue, Jan Broulím, DSpace Technical Support
Hi both,

If it works in DSpace 7.2.1, but not 7.3, it could be due to the database dialect issue. DSpace 7.3 uses a newer Hibernate, which changes the supported dialects. Make sure your local.cfg and dspace.cfg are using:

db.dialect = org.hibernate.dialect.PostgreSQL94Dialect

Previously the dialect was DSpacePostgreSQL82Dialect. This one bit me and I was confused for weeks until someone mentioned it recently on the DSpace Slack.

Hopefully that helps,



--
Reply all
Reply to author
Forward
0 new messages