Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

org.lmdbjava.LmdbNativeException$ConstantDerviedException: Platform constant error code: ENOENT (2) #62

Copy link
Copy link
@davidwynter

Description

@davidwynter
Issue body actions

I have the following code:

	public boolean init(Properties prop) {
	boolean fail = false;
	String csEnvironmentStr = prop.getProperty("csEnvironment");
	env = create()
            // LMDB also needs to know how large our DB might be. Over-estimating is OK.
            .setMapSize(53687091200l)
            // LMDB also needs to know how many DBs (Dbi) we want to store in this Env.
            .setMaxDbs(4)
            // Now let's open the Env. The same path can be concurrently opened and
            // used in different processes, but do not open the same path twice in
            // the same process at the same time.
            .open(new File(csEnvironmentStr+"/csdb"));

...

I get this exception, the last line above is line 91 indicated below:

org.lmdbjava.LmdbNativeException$ConstantDerviedException: Platform constant error code: ENOENT (2)
at org.lmdbjava.ResultCodeMapper.checkRc(ResultCodeMapper.java:113)
at org.lmdbjava.Env$Builder.open(Env.java:458)
at org.lmdbjava.Env$Builder.open(Env.java:474)
at uk.co.example.LmDbStore.init(LmDbStore.java:91)

As you can see this code is lifted from the Tutorial example. The path specified does exist. Ideas?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.