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,

On Mon, Jul 11, 2022 at 6:29 PM 'Tim Donohue' via DSpace Technical Support <
[email protected]> wrote:

> 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:* [email protected] <[email protected]> on
> behalf of Jan Broulím <[email protected]>
> *Sent:* Monday, July 4, 2022 6:43 AM
> *To:* DSpace Technical Support <[email protected]>
> *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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/203bdd82-4d8e-4f43-9006-9db25bffe61cn%40googlegroups.com
> <https://groups.google.com/d/msgid/dspace-tech/203bdd82-4d8e-4f43-9006-9db25bffe61cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/PH0PR22MB3274DB417F53B0E049303126ED879%40PH0PR22MB3274.namprd22.prod.outlook.com
> <https://groups.google.com/d/msgid/dspace-tech/PH0PR22MB3274DB417F53B0E049303126ED879%40PH0PR22MB3274.namprd22.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Alan Orth
[email protected]
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAKKdN4WpRkqRO7qfASGBNpFYqjKJOCULYgQJc9HGu%3D4b4h7%3D5w%40mail.gmail.com.

Reply via email to