Ηi Tim. It turns out the problem most likely had to do with custom migrations which were (apparently) placed in the form of custom modules under:
org.dspace.storage.rdbms.sqlmigration.postgres (along with ALL other existing migration scripts produced by the dspace community) in under the local customizations project of dspace-api, i.e. under the folder [dspace-src]/dspace/modules/additions The (specific) problem was remedied after completely removing all scripts from the particular location. My migration scripts were transfered to [dspace-src]/etc/postgres/ Thanks! On Wednesday, August 31, 2016 at 4:56:43 PM UTC+3, Tim Donohue wrote: > > Hi P.K., > > I've not seen this issue on the latest master (pre-6.0) codebase. What > version of Tomcat and Java are you running? Does Tomcat start up properly > if you reboot it? > > The area where you are seeing a NullPointerException seems to be implying > the DB Connection may be null (or the Context). Here's the line of code: > https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/core/AbstractHibernateDAO.java#L48 > > Currently, I've been developing/testing off the master codebase with no > issues using Tomcat 7 and Java (OpenJDK) 8. I'm aware that Tomcat 8.0.32 > has a bug that affects the XMLUI (see DS-3142: > https://jira.duraspace.org/browse/DS-3142). But we haven't seen any other > issues similar to this one. > > - Tim > On 8/31/2016 7:24 AM, Pantelis Karamolegkos wrote: > > I just pushed to my dev server the latest changes from the master branch. > > Tomcat seems to be producing the following error: > > *catalina.out*: > Aug 31, 2016 3:21:32 PM org.apache.catalina.core.StandardContext > startInternal > SEVERE: Error listenerStart > > > *localhost.2016-08-31.log * > 31-Aug-2016 15:21:25.408 INFO [localhost-startStop-1] > org.apache.catalina.core.ApplicationContext.log No Spring > WebApplicationInitializer types detected on classpath > 31-Aug-2016 15:21:32.626 SEVERE [localhost-startStop-1] > org.apache.catalina.core.StandardContext.listenerStart Exception sending > context initialized event to listener instance of class > org.dspace.app.util.DSpaceWebappListener > java.lang.NullPointerException > at > org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:48) > at > org.dspace.core.AbstractHibernateDAO.create(AbstractHibernateDAO.java:38) > at org.dspace.app.util.WebAppServiceImpl.create(WebAppServiceImpl.java:49) > at > org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:75) > at > org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5221) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > 31-Aug-2016 15:21:32.627 INFO [localhost-startStop-1] > org.apache.catalina.core.ApplicationContext.log Initializing Spring root > WebApplicationContext > > > No errors in the dspace logs. > > Any ideas? > > Thanks, > > P.K. > -- > 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] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > > > -- > Tim Donohue > Technical Lead for DSpace & DSpaceDirect > DuraSpace.org | DSpace.org | DSpaceDirect.org > > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
