Failed to launch javafx jar on Max OS X 10.7.5 - macos

I am running Mac OS X 10.7.5 on VMware player.
I have installed these on my system -
I have jdk-7u12-ea-bin-b07-macosx-x86_64-27_dec_2012.dmg
jre-7u10-macosx-x64.dmg
netbeans-7.2.1-ml-javase-macosx.dmg
I have set java Java Home pointing to java 1.7. On command prompt it showing version as -
Java(TM) SE Runtime Environment (build 1.7.0_12-ea-b07)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b28, mixed mode)
Whenener I am trying to run a jar file created from my JavaFX application. It throw this fatal error on commd prompt-
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007fff88a54fdf, pid=404, tid=18947
# JRE version: Java(TM) SE Runtime Environment (7.0_12-b07) (build 1.7.0_12-ea-b07)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b28 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libobjc.A.dylib+0x9fdf] objc_msgSend_fixup+0x5f
# 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:
# /Users/User/Desktop/JavaFX/hs_err_pid404.log
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Abort trap: 6
Details of fatal error while ex
http://neelamsharma.s3.amazonaws.com/jarerrorlog.log
On launching netbeans it producing this fatal error -
http://neelamsharma.s3.amazonaws.com/hs_err_while%20_running_netbeans.log
On opening Java Preferences from System Preferences it showing this fatal erros -
http://neelamsharma.s3.amazonaws.com/javapreferences.log
I am unable to do anything on Mac OS X, how can I get rid of this errors ?

Uninstall the EA jdk and use a released version.

I logged an issue for this problem: http://javafx-jira.kenai.com/browse/RT-28144

Neelam, all you need is to change the prism.order system property BEFORE JavaFX loads your javafx.application.Applcation class.
If your class with public static void main(String[]) extends the javafx.application.Application class then move the main(String[]) method to another class, Main.java for example.
2) Add to your main(String[]) method some code that changes the prism.order property to "sw" (software rendering), for example:
public class Main {
public static void main(String[] args) {
AccessController.doPrivileged(new PrivelegedAction<Void>() {
#Override
public Void run() {
Properties props = System.getProperties();
props.put("prism.order", "sw");
Application.launch(YourApplication.class);
return null;
}
});
}
}

Related

Weblogic server getting crashed

Below error is occurring in logs. Application was running fine until last month and it started occurring all of sudden without any changes. I tried to find more about this and I found, this happens due to modification of zip/jar which is in use specially in Linux(Window does not allow modification). It is suggested to find the problematic code/scenarios, which I could not identify so far as this happens only in production. It is also suggested to Run JDKs with -Dsun.zip.disableMemoryMapping=true system property. Which will disable memory mapping and the application will fail instead with a "file corrupted" type ZipException. This property also has some performance impact. Could you please help how can find the problematic code? How likely this property can help in resolving the issue.
Thanks in advance.
Below are the errors shown :
1..
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007fe3fca8053e, pid=6120, tid=140605725304576
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x14f53e] __memmove_ssse3_back+0x23de
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
2.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007f9137df6802, pid=13359, tid=140250685896448
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libzip.so+0x11802] newEntry+0x62
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

Avatar.js on SPARC

Node JS application is working fine with Linux, windows and Solaris. But Node JS is not working in SPARC system because it is not supporting V8 engine.
Myself found a External project called AVATAR, which is used to run NODE JS Programs in JVM (Java Virtual Machine) using the JAVA 8 inbuilt JavaScript Engine – Nashron.
In their official site they have provided me (.so) file for Linux, (.dll) file for Windows using that we compiled the program. By using those files (.so & .dll) we successfully executed Node JS programs in Linux, windows with JAVA 8.
I used same linux (.so) file to run on SPARC platform and it throws below error.
Error Occurred :
-bash-4.1$ java -Djava.library.path=dist -jar dist/avatar-js.jar HttpServer.js
Exception in thread "main" java.lang.UnsatisfiedLinkError: /export/home/thiru/LinuxAVatar/dist/libavatar-js.so: ld.so.1: java: fatal: /export/home/thiru/LinuxAVatar/dist/libavatar-js.so: wrong ELF data format: ELFDATA2LSB (Possible cause: endianness mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.oracle.libuv.LibUV.<clinit>(LibUV.java:33)
at com.oracle.avatar.js.Server.<init>(Server.java:166)
at com.oracle.avatar.js.Server.<init>(Server.java:140)
at com.oracle.avatar.js.Server.<init>(Server.java:128)
at com.oracle.avatar.js.Server.main(Server.java:122)
I have attached the basic HTTP Server Program in NODE JS which I used to run in JVM using avatar.
Could you please provide some feasibility for the below points:
1.Running NODE JS on SPARC system,
2.Is there any build for that .so file for SPARC,
3.shall I use any other Java Script Engines instead of Nashron in SPARC (ex: Spider Monkey).
Link For Official Site: https://avatar-js.java.net/
Procedure to run Avatar : http://blog.jonasbandi.net/2014/03/running-nodejs-applications-on-jvm-with.html
Version of Oracle Solaris OS : Oracle Solaris 11.3 SPARC
JAVA Version :
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java Hotspot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
Thanks in Advance.
var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
});
server.listen(8000);
console.log("Server running at http://127.0.0.1:8585/");
Project Avatar from Oracle is dead.
Officially it's called "development is on hold", but... you know!
See also my blogpost about this: http://www.n-k.de/2015/02/current-status-of-oracles-project-avatar.html
The mentioned alternative "Nodyn" is also dead.
So, you have to look for another option to run node.js on your desired platform.

core was generated by springloaded.jar

I use springloaded-1.2.3.jar to implement hot deploy in my project .And my project run with springboot in Linux. i run the main class with -javaagent springloaded.jar -noverify. it works to hot deploy, but problem is Everytime I run the project for about 1 days, the project will be down ,and generate corefiles and hs_err_pid logs.
Does anyone meet this problem?
the part of the content of the hs_err_pid.log as follow:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8175626f4b, pid=13320, tid=140193591465728
#
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x367f4b] GraphBuilder::try_inline_full(ciMethod*, bool, Bytecodes::Code, Instruction*)+0x2fb
#

EXCEPTION_ACCESS_VIOLATION when trying to use RJava

So I'm trying to make use of R from Java through JRI. I'm using the RJava plugin for Eclipse and the two test files which come with rJava are working fine (rtest and rtest2). But when trying to run this simple code fragment, I get an EXCEPTION_ACCESS_VIOLATION:
public static void main(String... args) {
Rengine re = new Rengine();
if (!re.waitForR()) {
System.out.println("Unable to load R");
return;
} else
System.out.println("Connected to R");
re.eval("x=c(1:10)");
double d = re.eval("mean(x)").asDouble();
System.out.println(d);
}
The output I'm getting:
Connected to R
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006c726096, pid=5284, tid=7868
JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops)
Problematic frame:
C [R.dll+0x26096]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as:
C:\Users\gebruiker\workspace64\RTest\hs_err_pid5284.log
If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
The complete log: http://pastebin.com/18wHWihB
I'm seeing this in the log, does it have to do something with it? (wrong use of the eval function? I just copied an example though...)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.rosuda.JRI.Rengine.rniParse(Ljava/lang/String;I)J+0
j org.rosuda.JRI.Rengine.eval(Ljava/lang/String;Z)Lorg/rosuda/JRI/REXP;+53
j org.rosuda.JRI.Rengine.eval(Ljava/lang/String;)Lorg/rosuda/JRI/REXP;+3
j Main.main([Ljava/lang/String;)V+35
v ~StubRoutines::call_stub
If anybody could help, I'm at a loss and would appreciate it greatly :)
Instanitiate rengine like below, i have just made 10 as default size.
String args1[] = new String[10];
Rengine rengine = new Rengine(args, false, null);
You have to set the environment variable R_HOMEin your JVM environment. Set it in your environment variable won't work, JVM is NOT ware of that. Just figured it out by myself.

Javafx application gives error when minimized in Mac

I build a project just like ODesk Tracker which take snapshots after intervals. The application is working fine in windows and linux. But in Mac when i minimize the application. It gives Error and a popup displays Java Quit Unexpectedly.
A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff885a20e6, pid=1386, tid=1287
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b118) (build 1.8.0-ea-b118)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b60 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libobjc.A.dylib+0x80e6] objc_release+0x16
#
# 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:
# /Users/babita/Documents/workspace/FBTracker 2/hs_err_pid1386.log

Resources