Exception is thrown when attempting to get an instance from a connection 
pool OrientGraphFactory:
INFO: OrientDB auto-config DISKCACHE=13,846MB (heap=4,542MB os=20,436MB 
disk=20,875MB)

com.orientechnologies.orient.core.exception.OStorageException: Cannot open 
local storage 'target/testDB' with mode=rw
at 
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:214)
at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:243)
at 
com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:285)
at 
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:163)
at 
com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx.<init>(OrientGraphNoTx.java:54)
at 
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getNoTx(OrientGraphFactory.java:93)
at 
edu.umd.devops.service.BaseGraphServiceImpl.getConn(BaseGraphServiceImpl.java:131)
at 
edu.umd.devops.service.BaseGraphServiceImpl.getVertexType(BaseGraphServiceImpl.java:232)
at 
edu.umd.devops.service.BaseGraphServiceImpl.registerClasses(BaseGraphServiceImpl.java:209)
at 
edu.umd.devops.service.BaseGraphServiceImpl.<init>(BaseGraphServiceImpl.java:34)
at 
edu.umd.devops.BaseGraphServiceTest.initService(BaseGraphServiceTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
at 
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: 
Cannot open the storage 'testDB' because it does not exist in path: 
target/testDB
at 
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:159)
... 37 more


I'm able to work around this problem by invoking 
orientGraphFactory.getDatabase() on the factory before any calls to 
getNoTx() which calls the create() method.


*Version 2.0*


*What steps will reproduce the problem?*
orientGraphFactory = new 
OrientGraphFactory("target/testDB").setupPool(1,10);
OrientBaseGraph orientBaseGraph = orientGraphFactory.getNoTx()

*If you're using custom settings please provide them below (to dump all 
the settings run the application using the JVM 
argument -Denvironment.dumpCfgAtStartup=true):*
standard stuff


*What is the expected output? What do you see instead?*
orientBaseGraph is not null and no exceptions

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to