The exception you shared last is a totally different one that the previous one:
But you use different graph database directories for the two databases? If it can't read the STORE_VERSION something is really wrong with either the database or the setup ... Does this also happen with other web-containers? Like tomcat or jetty? Can you create a minimal! war that reproduces the issue? Caused by: java.lang.IllegalStateException: Wanted record STORE_VERSION, but this record wasn't read since the neostore didn't contain it at org.neo4j.kernel.impl.store.record.NeoStoreUtil.getValue(NeoStoreUtil.java:127) at org.neo4j.kernel.impl.store.record.NeoStoreUtil.getStoreVersion(NeoStoreUtil.java:155) at org.neo4j.kernel.impl.storemigration.UpgradableDatabase.hasCurrentVersion(UpgradableDatabase.java:114) versus Failed to register Kernel JMX Bean Failed to register JMX Bean org.neo4j.jmx.impl.ManagementBeanProvider[Primitive count] (javax.management.InstanceAlreadyExistsException:org.neo4j:instance=kernel#0,name=Primitive count) Failed to register JMX Bean org.neo4j.jmx.impl.ManagementBeanProvider[Store file sizes] (javax.management.InstanceAlreadyExistsException: org.neo4j:instance=kernel#0,name=Store file sizes) Failed to register Configuration JMX Bean Couldn't close neostore after startup failure > Am 14.05.2015 um 14:46 schrieb Rita <[email protected]>: > > The log that I pasted in the previous message is the one about the test > creation of two new empty test databases. It was not the opening of my two > real databases that are ok, not broken (changing the order of opening I > always get failed with second). So what can I do to use them like in previous > version with Glassfish? > > Rita > > > Il giorno giovedì 14 maggio 2015 14:32:25 UTC+2, Michael Hunger ha scritto: > It seems that you create a new graph database service per request, which is > not what you would want to do. > You should have it created only once and injected into your controllers. > > It is also trying to upgrade the store? Perhaps you should upgrade the store > first and see if the problem persists. > > Also your database seems to be somehow broken, perhaps you can > consistency-check it first? > > http://www.markhneedham.com/blog/2014/01/22/neo4j-backup-store-copy-and-consistency-check/ > > <http://www.markhneedham.com/blog/2014/01/22/neo4j-backup-store-copy-and-consistency-check/> > > Michael > > Am 14.05.2015 um 13:32 schrieb Rita <[email protected] <javascript:>>: > > Thank you for the reply Michael. > I also try to pass from Glassfish 3.1.2 to Glassfish 4 but the problem is the > same: > > > SEVERE: java.lang.RuntimeException: Error starting > org.neo4j.kernel.EmbeddedGraphDatabase, C:\graph1 > at > org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:334) > at > org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59) > at > org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:108) > at > org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:95) > at > org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:176) > at db.Init.open(Init.java:23) > at org.apache.jsp.open_jsp._jspService(open_jsp.java:58) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > at > org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) > at > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) > at > org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137 > ... > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
