Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用java npm包时发生致命错误_Java_Node.js_Ubuntu_Meteor_Npm - Fatal编程技术网

使用java npm包时发生致命错误

使用java npm包时发生致命错误,java,node.js,ubuntu,meteor,npm,Java,Node.js,Ubuntu,Meteor,Npm,我在Meteor应用程序中使用“NodeExcelAPI”npm包。它依赖于“java”npm包。我在启动Meteor服务器时遇到以下错误 A fatal error has been detected by the Java Runtime Environment: Internal Error (threadLocalStorage.cpp:56), pid=3880, tid=3074959104 guarantee(get_thread() == thread) failed: mus

我在Meteor应用程序中使用“NodeExcelAPI”npm包。它依赖于“java”npm包。我在启动Meteor服务器时遇到以下错误

A fatal error has been detected by the Java Runtime Environment:

Internal Error (threadLocalStorage.cpp:56), pid=3880, tid=3074959104
guarantee(get_thread() == thread) failed: must be the same thread, quickly

JRE version:  (7.0_45-b18) (build )
Java VM: Java HotSpot(TM) Server VM (24.45-b08 mixed mode, sharing linux-x86 )
Failed to write core dump. Core dumps have been disabled. To enable core dumping,
try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:
/home/support/sTemp/excel-support/node-excel-api_Sample/.meteor/local/build/programs/server/hs_err_pid3880.log

If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
=> Exited from signal: SIGABRT
我怀疑问题出在我的机器的环境设置上,但我无法找出原因。我使用的是Ubuntu 13.10和oracle java 7(/usr/lib/jvm/java-7-oracle/)。我已经设置了JAVA_HOME env变量,还设置了JAVA_HOME\bin in PATH变量


谁能帮我解决这个问题。提前谢谢

该错误表示您已正确设置java,并且正确公开了环境变量

事实上,错误是在cpp代码中检测到的,cpp代码是JVM的包装器。JVM的线程管理是一项非常复杂的工作,必须非常正确地完成

另一方面,节点是单线程的

Meteor使用光纤,这已经在节点的单线程体系结构上添加了一层

当然,JavaNPM包似乎在光纤方面存在问题


查看此问题:并表达您的担忧,以便开发人员优先考虑此问题。

嗯。。。一个快速的谷歌搜索显示这个错误消息,但它可以追溯到2003年!安装了哪个JDK?你能试试另一个吗?@fge-我看到了这个bug页面。我注意到其中提到的受影响版本是1.4 ie Java 4。但是我使用的是Java7(你可以在问题的错误日志中看到)。。。这就是为什么我问您是否可以尝试另一个JRE/JDK(如果不清楚的话,很抱歉),我尝试安装并使用openjdk-7-JDK。但问题依然存在-(但实际使用的是OpenJDK吗(即,您在输出中看到的版本是OpenJDK)?感谢您提供的信息。我查看了node java软件包的开放和关闭问题。我发现以前和关闭之前都提出过类似的问题。但是从中得到的信息对我来说并不满意。因此我提出了一个新问题。没有问题,如果您同意这确实是一个错误,并且这个答案是正确的,请将其标记为接受答案。问题解决后,如果您回来编辑/更新此答案,那就太好了。