gridgain / gridgain-old

268 stars 85 forks source link

Upgrading to 6.0.3 an expeception is raised if GRIDGAIN_HOME is not set #42

Closed pditommaso closed 10 years ago

pditommaso commented 10 years ago

After upgrading to 6.0.3 I'm getting the following exception when the grid gain home is set in the configuration by using the method GridConfiguration#setGridGainHome().

class org.gridgain.grid.GridException: Failed to start processor: GridProcessorAdapter []
    at org.gridgain.grid.kernal.GridKernal.startProcessor(GridKernal.java:1526)
    at org.gridgain.grid.kernal.GridKernal.start(GridKernal.java:710)
    at org.gridgain.grid.kernal.GridGainEx$GridNamedInstance.start0(GridGainEx.java:1847)
    at org.gridgain.grid.kernal.GridGainEx$GridNamedInstance.start(GridGainEx.java:1233)
    at org.gridgain.grid.kernal.GridGainEx.start0(GridGainEx.java:778)
    at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:462)
    at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:443)
    at org.gridgain.grid.GridGain.start(GridGain.java:303)
    at nextflow.file.ggfs.GgFileSystemProviderTest.setupSpec(GgFileSystemProviderTest.groovy:59)
Caused by: class org.gridgain.grid.GridException: Failed to create directory, property GRIDGAIN_HOME is null.
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.util.GridUtils.resolveWorkDirectory(GridUtils.java:8206)
    at org.gridgain.grid.util.ipc.shmem.GridIpcSharedMemoryServerEndpoint.start(GridIpcSharedMemoryServerEndpoint.java:156)
    at org.gridgain.grid.kernal.processors.ggfs.GridGgfsServer.start(GridGgfsServer.java:116)
    at org.gridgain.grid.kernal.processors.ggfs.GridGgfsServerManager.bind(GridGgfsServerManager.java:76)
    at org.gridgain.grid.kernal.processors.ggfs.GridGgfsServerManager.start0(GridGgfsServerManager.java:52)
    at org.gridgain.grid.kernal.processors.ggfs.GridGgfsManager.start(GridGgfsManager.java:45)
    at org.gridgain.grid.kernal.processors.ggfs.GridGgfsProcessor.start(GridGgfsProcessor.java:87)
    at org.gridgain.grid.kernal.GridKernal.startProcessor(GridKernal.java:1521)
airinev commented 10 years ago

Paolo,

I couldn't reproduce your error in 6.0.3. Please try to run this simplified example:

public static void main(String[] args) throws GridException {
    GridConfiguration cfg = new GridConfiguration();

    cfg.setGridGainHome("/some/path/gg_home");

    try (Grid grid = GridGain.start(cfg)) {
        System.out.println(grid.configuration().getGridGainHome());
    }
}

Does it work for you? Also please provide your full configuration if you can.

pditommaso commented 10 years ago

Hi, actually I'm not able to reproduce it anymore me too. I think, I messed up something when upgrading to the new release.

In any case it looks OK. Sorry for that.

Cheers, Paolo