GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — org.lmdbjava.LmdbNativeException$ConstantDerviedException: Platform constant error code: ENOENT (2) · Issue #62 · lmdbjava/lmdbjava

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

New issue
Copy link
New issue
Copy link
Closed
Closed
org.lmdbjava.LmdbNativeException$ConstantDerviedException: Platform constant error code: ENOENT (2)#62
Copy link

Description

@davidwynter
davidwynter
opened on Aug 14, 2017
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?

Activity

  1. davidwynter commented on Aug 14, 2017

    @davidwynter
    davidwynter
    on Aug 14, 2017
    Author
    More actions

    Ha, my bad, typo in directory name. Traced into lmdbjava to get a view of what was actually happening. checkRc is very revealing. Be useful to add these error messages to the docs rather than a cryptic ENOENT message

  2. davidwynter
    closed this as completedon Aug 14, 2017
  3. bp-alex commented on Aug 15, 2017

    @bp-alex
    bp-alex
    on Aug 15, 2017
    Member
    More actions

    Be useful to add these error messages to the docs rather than a cryptic ENOENT message

    Good idea. I opened issue #63 and this has now been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.