Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module did not self-register #11

Closed
moxious opened this issue Jan 12, 2016 · 4 comments
Closed

Module did not self-register #11

moxious opened this issue Jan 12, 2016 · 4 comments

Comments

@moxious
Copy link

moxious commented Jan 12, 2016

I'm attempting to use node-tika in a project that builds/tests via CircleCI. Their CI environment installs various things for me, but when my server attempts to start it fails as follows:

[17:54:45] Using gulpfile ~/ow-back/gulpfile.js
[17:54:45] Starting 'syncdb'...
[17:54:45] Finished 'syncdb' after 288 ms
[17:54:45] Starting 'serve'...
[17:54:46] 'serve' errored after 240 ms
[17:54:46] Error: Module did not self-register.
    at Error (native)
    at Object.Module._extensions..node (module.js:450:18)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/ow-back/node_modules/tika/node_modules/java/lib/nodeJavaBridge.js:10:16)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/ow-back/node_modules/tika/node_modules/java/index.js:2:18)
    at Module._compile (module.js:425:26)

CircleCI appears to be running ubuntu, and JAVA_HOME=/usr/lib/jvm/jdk1.7.0 to give you a sense of my java version.

It appears this is some kind of java incompatibility issue, but what are the troubleshooting steps associated with fixing this?

@moxious
Copy link
Author

moxious commented Jan 12, 2016

From my packages.json: "tika": "^1.3.0"

@moxious
Copy link
Author

moxious commented Jan 13, 2016

Extremely suspicious about this, note the error message references /home/ubuntu/ow-back/node_modules/tika/node_modules/java/lib/nodeJavaBridge.js. In my local dev installed copy of node-tika, that file doesn't exist. Is it possible it's using a wrong version somehow?

@mattcg
Copy link
Contributor

mattcg commented May 31, 2016

Hi @moxious, did you ever solve this issue in the end?

@moxious
Copy link
Author

moxious commented May 31, 2016

I never got to the root cause. I did solve it through a mixture of downgrading node, upgrading java, and removing node_modules but I was never sure what actually did it.

@moxious moxious closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants