2013-06-26 12 views
0

我目前正在編寫一個無限圖數據庫掃描器,用戶可以通過提供* .boot文件連接到遠程InfiniteGraph。我現在用的是InfiniteGraph使用無限圖而不安裝產品

com.tinkerpop.blueprints.impls.ig.IGGraph的藍圖的實現。

現在,如果機器已經安裝了InfiniteGraph版本,但是在其他情況下失敗,那麼代碼完美工作。我試圖將安裝目錄中的bin文件夾與我的項目捆綁在一起,但仍然失敗。 我使用的代碼:

IGGraph graph = new IGGraph("D:\\PROPERTY_GRAPH_TEST.boot"); 

for (Vertex vertex : graph.getVertices()) { 
    System.out.println("vertex.toString() = " + vertex.toString()); 
} 

我gettings例外:

Exception in thread "main" java.lang.RuntimeException: com.objy.db.ObjyRuntimeException: Query setup error: Configuration Error: Unable to find the objectivity.crg file. 
at com.tinkerpop.blueprints.impls.ig.IGGraph.<init>(IGGraph.java:67) 
at com.globalids.test.TestIGGraph.main(TestIGGraph.java:13) 
Caused by: com.objy.db.ObjyRuntimeException: Query setup error: Configuration Error: Unable to find the objectivity.crg file. 
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:525) 
at com.objy.pm.ErrorManager.exceptionToThrow(Unknown Source) 
at com.objy.pm.ErrorManager.interpretKernelErrors(Unknown Source) 
at com.objy.pm.ErrorManager.checkRegisteredErrors(Unknown Source) 
at com.objy.pm.ExternalInterface.localErrorCheck(Unknown Source) 
at com.objy.pm.ExternalInterface.checkedLong(Unknown Source) 
at com.objy.pm.ExternalInterface.QueryScanItr(Unknown Source) 
at com.objy.pm.QueryScanItr.<init>(Unknown Source) 
at com.objy.db.internal.Query.execute(Unknown Source) 
at com.infinitegraph.impl.ConnectionManager.verifyCompatability(ConnectionManager.java:211) 
at com.infinitegraph.impl.ConnectionManager.connect(ConnectionManager.java:98) 
at com.infinitegraph.GraphFactory.openGraph(GraphFactory.java:227) 
at com.infinitegraph.GraphFactory.open(GraphFactory.java:86) 
at com.tinkerpop.blueprints.impls.ig.IGGraph.<init>(IGGraph.java:62) 
... 1 more 

誰能幫助對此問題?

預先感謝您。

回答

2

感謝您的提問。實際上,分發需要的不僅僅是複製的「bin」才能成功運行。你能確保「etc」和「plugins」目錄每個都複製到與你的「bin」目錄相同的目錄中嗎?這是由於InfiniteGraph使用「bin」目錄的位置在「etc」和「plugins」目錄(文件objectivity.crg以及其他所需文件所在的位置)中查找其他配置文件。如果您有任何其他問題,您可以發送電子郵件至[email protected]。謝謝!

+0

非常感謝。 – Pradatta

相關問題