Eclipse+PyDev crash - eclipse

I use Eclipse IDE for Java Developers Kepler Release 2(Build id: 20140224-0627)and PyDev 3.5 under a virtualenv.
But when I try to new a python package or .py file. It crashed....
Information is:
*sys-package-mgr*: processing new jar, '/chimerahomes/jingtao/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar'
*sys-package-mgr*: processing new jar, '/usr/lib/jvm/java-1.7.0-oracle-1.7.0.55.x86_64/jre/lib/resources.jar'
*sys-package-mgr*: processing new jar, '/usr/lib/jvm/java-1.7.0-oracle-1.7.0.55.x86_64/jre/lib/rt.jar'
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=7059, tid=47524454697280
#
# JRE version: Java(TM) SE Runtime Environment (7.0_55-b13) (build 1.7.0_55-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.55-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# 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.
#

This appears to be a bug in java itself (i.e.: PyDev has no compiled source code, only plain java -- although it's possible it could be in Eclipse too).
My suggestion is trying with a different java 7/8 vm.
Alternatively you can try on LiClipse: http://brainwy.github.io/liclipse/ (which comes with a bundled jvm) -- the only thing is that you may want to install JDT on top of it if you are also working with java.

Related

Accessing SWT Libraries in Java modules in 32/64-Bit JVMs

Assuming you have a Java module that defines the following dependencies to SWT:
module com.test.mymodule {
requires org.eclipse.swt.win32.win32.x86;
}
If the module defined above is loaded within a 32-bit based JVM in Windows there are no issues, however within a 64-bit JVM this operation fails as the JVM tries to load native 32-bit libraries within the SWT JAR that then cause the JVM to crash. This will happen on the first line of code that references any SWT class (e.g. if you call Display.getShells). The JARs avaliable on Maven do not define the Atomatic-Module-Name property in the manifest so trying to add the 64-bit version of the library leads to Maven being unable to parse the name of the file correctly.
Furtmore adding a static to the requires has exactly the same effect, as the JVM insists on loading the module specified in the module-info file. Is there any generic SWT module that can be used instead of system-specific modules so that the mymodule module in this sample would load regardless of the bitness/OS of the underlying JVM?
JDK Version:11.0.2, Windows 10 64-Bit
Both the 32-bit and 64 bit versions of SWT binaries are available in Maven Central. The binaries are published to Maven Central for every release.
Links to 64-bit binaries:
https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.swt.win32.win32.x86_64
https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.swt.cocoa.macosx.x86_64
https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.swt.gtk.linux.x86_64
Please note that Eclipse has dropped support for 32-bit since Eclipse 2018-12 (4.10) release.

How to import netty to eclipse without pom errors?

I want to learn the source code of netty, and I import the source code of netty from github, I use maven to import these code but there are some pom errors here when I import the project:
I searched the Internet but I can't get any useful information.So I have nothing to do but to ask for help.
ps,
I attempt to follow the steps here:
and the solution is :
Set up Eclipse with M2E and Java 7/8
Ensure to use the 64-bit version of Eclipse.
Download os-maven-plugin and put it into /plugins (Eclipse 4.5) or /dropins (Eclipse 4.6) directory to work around the problem where m2e does not evaluate an extension specified in our pom.xml. (Unlike its name, it's both a Maven plugin and an Eclipse plugin.)
Import the project via the 'File → Import... → Existing Maven Projects' menu.
Netty project Maven pom.xml settings dictate use of Java SE 1.6, while implicitly using Java 7/8 (1.7/1.8) features if present. This may result in compilation errors in Eclipse. There are two ways to work around this problem:
Look in the 'Window → Preferences → Installed JRE' menu:
Make sure you have Java 7/8 installation available under 'Installed JRE'
Map this Java 7/8 installation onto Java 6: 'Installed JRE → Execution Environments → Java SE 1.6'
Alternatively, Java 7/8 JRE can be selected on per-project basis for each Netty module.
I follow these steps but I cant't solve this problem.
could you please help me to solve this problem? I look forward to your help.
my OS information:
ProductName: Mac OS X
ProductVersion: 10.13.3
BuildVersion: 17D102
my jdk information:
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
my eclipse information:
my maven information:
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)
Maven home: /Users/mingxing/development/tools/apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.3", arch: "x86_64", family: "mac"

No Java Virtual machine was found

I have a 8Gb of ram and I have a java version 1.8.0_111 (I added it in Environment Variables->System).
I downloaded a scala IDE for Eclipse scala-SDK-4.5.0-vfinal-2.11-win32.win32.x86_64, I can't install it, it shown an error this following:
A java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location:
E:\Download\scala-SDK-4.5.0-vfinal-2.11-win32.win32.x86_64\eclipse\jre\bin\javaw.exe
javaw;exe in your current PATH
Knowing that I followed this answer of #Mohamed Adel:
“Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
Can you tell me where is the error in my steps ?

java.io.InvalidClassException: scala.reflect.ClassTag$$anon$1; local class incompatible:: Spark

I'm getting below exception while counting the file rows :
Actually code is working fine if i executes shell in local mode :
But If we try shell with Yarn-client mode -- the below exceptions stack will be returning.
I've been investigated a little bit for the same problem. some are suggesting it's different JVM compatibility issue . It might be true because in other environment am using JDK6 it is working perfect in both local and Yarn-Client modes . In Another Environment am using JDK7 . here am facing the problem while running in yarn-client mode :
java.io.InvalidClassException: scala.reflect.ClassTag$$anon$1; local class incompatible: stream classdesc serialVersionUID = -4937928798201944954, local class serialVersionUID = -8102093212602380348
FYI JAVA - :In Environment am facing the problem
java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470_27sr2fp10-20141218_02(SR2 FP10))
IBM J9 VM (build 2.7, JRE 1.7.0 Linux amd64-64 Compressed References 20141215_227395 (JIT enabled, AOT enabled)
J9VM - R27_Java727_SR2_20141215_1631_B227395
JIT - tr.r13.java_20141003_74587.07
GC - R27_Java727_SR2_20141215_1631_B227395_CMPRSS
J9CL - 20141215_227395)
JCL - 20141217_01 based on Oracle jdk7u75-b12
In another old Environment : it is working fine
java -version
java version "1.6.0_91"
Java(TM) SE Runtime Environment (build 1.6.0_91-b31)
Java HotSpot(TM) 64-Bit Server VM (build 20.91-b07, mixed mode
From here I had moved the code to new Environment : If we suspects that it is incompatible version Issue then it shouldn't work in local mode too. Please clarify my questions:
I fixed it By after setting JAVA_HOME to 1.8
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.31-1.b13.el6_6.x86_64/
export PATH=$JAVA_HOME/bin:$PATH
I also experienced the same issue, my cluster using RHEL and jre-1.7.1-ibm.x86_64.
After spending many hours, I found that the cause of the problem came from the JVM
Solution
I was able to solve this issue by changing the jvm from jre-1.7.1-ibm.x86_64
to java-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.x86_64.

Code Coverage of DDSPublisher.java using EMMA

I am working in Linux platform ,implementing Opensplice DDS with Java using Eclipse as IDE. Publishesr and Subscribers of main classes are getting executed .Currently working in code coverage part using the tool EMMA .I have created the build file using ant script and created the targets for EMMA,At present 'm facing issue as mentioned below,
This is the content at console:
[emmajava] # A fatal error has been detected by the Java Runtime Environment:
[emmajava] #
[emmajava] # SIGSEGV (0xb) at pc=0x00f3a97a, pid=3580, tid=2472213360
[emmajava] #
[emmajava] # JRE version: 6.0_20-b20
[emmajava] # Java VM: OpenJDK Client VM (19.0-b06 mixed mode linux-x86 )
[emmajava] # Derivative: IcedTea6 1.9.1
[emmajava] # Distribution: Custom build (Wed Oct 13 22:53:35 UTC 2010)
[emmajava] # Problematic frame:
[emmajava] # V [libjvm.so+0x20b97a]
[emmajava] #
I would like to know how to use the Opensplice DDS with EMMA coverage?
Should i wanna change any of the configurations ?Finally is it possible to make code
coverage in DDS implementation ? If any body else is aware about this issue, please guide me to proceed it.
Thanks in advance