所以我使用Spring 4 +彈簧引導+ Gridgain 6.0.1創建一個web應用程序,我想運行應用程序作爲一個可執行的JAR,但後來我遇到了URI不分層java.lang.IllegalArgumentException異常的問題:URI不分層。我做了一些研究,看起來這是運行一個可執行的JAR(在IDE運行正常,並通過gradle這個「應用」插件生成的可執行文件,即一個.tar文件)時,一般的問題。我想知道這是GridGain中的一個錯誤嗎?這裏是堆棧跟蹤的一部分:拋出:IllegalArgumentException:創建時GridSpringBean
Caused by: java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.(File.java:418) ~[na:1.8.0] at org.gridgain.grid.util.GridUtils.resolveProjectHome(GridUtils.java:2250) ~[gridgain-platform-6.0.1.jar!/:na] at org.gridgain.grid.util.GridUtils.getGridGainHome(GridUtils.java:2291) ~[gridgain-platform-6.0.1.jar!/:na] at org.gridgain.grid.GridGain$GridNamedInstance.start0(GridGain.java:1326) ~[gridgain-platform-6.0.1.jar!/:na] at org.gridgain.grid.GridGain$GridNamedInstance.start(GridGain.java:1291) ~[gridgain-platform-6.0.1.jar!/:na] at org.gridgain.grid.GridGain.start0(GridGain.java:850) ~[gridgain-platform-6.0.1.jar!/:na] at org.gridgain.grid.GridGain.start(GridGain.java:530) ~[gridgain-platform-6.0.1.jar!/:na] at org.gridgain.grid.GridSpringBean.afterPropertiesSet(GridSpringBean.java:127) ~[gridgain-platform-6.0.1.jar!/:na] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) ~[spring-beans-4.0.5.RELEASE.jar!/:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ~[spring-beans-4.0.5.RELEASE.jar!/:4.0.5.RELEASE] ... 21 common frames omitted
更多信息:
- 作爲嵌入式GridGain運行,所以我沒有設置GRIDGAIN_HOME。
- 罐子使用gradle這個「春天啓動」插件封裝。