Ok now I understand the point. The last error : 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)
is about the WAR generated to reproduce the error but instead it is generating also other problems in the creation from scratch of test db. The error that I am asking for is about 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 So I am not reproducing correctly. Sure, I am using different graphs, different directories! I do not try with other web cointainer because I need glassfish, I am using glassifh since older version and I am only trying to update the web app from 1.9.9 to 2.2.1, but I am stopped with this problem. Il giorno giovedì 14 maggio 2015 15:03:32 UTC+2, Michael Hunger ha scritto: > > 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] <javascript:>>: > > 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/ > > Michael > > Am 14.05.2015 um 13:32 schrieb Rita <[email protected]>: > > 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( > > ... -- 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.
