Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 389835

Summary: java.lang.NullPointerException to run auto tests on solaris-gtk
Product: [Eclipse Project] JDT Reporter: Ludmila Shikhvarg <ludmila.shikhvarg>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, Olivier_Thomann, sptaszkiewicz
Version: 3.7.2   
Target Milestone: ---   
Hardware: Other   
OS: Solaris-GTK   
Whiteboard: stalebug

Description Ludmila Shikhvarg CLA 2012-09-18 14:34:30 EDT
Build Identifier: Version: 3.7.2 Build id: M20120208-0800
The problem seen on solaris-gtk against Oracle jdk7 and jdk8:
bash-3.00$ ./runtests
Buildfile: /home1/dtftest/eclipse_3.7.2/eclipse-testing/test.xml

all:

setJVMfromUserSpecified:

setJVMProperties:

jdtcorebuilder:

junit:

setRuntimeArchive:
     [echo] setRuntimeArchive os solaris ws gtk arch x86
     [echo] runtimeArchive eclipse-SDK-3.7.2-solaris-gtk-x86.zip !!!

init:

setup:

setupRepo:

setup-zip:
   [delete] Deleting directory /home1/dtftest/eclipse_3.7.2/eclipse-testing/test-eclipse
    [mkdir] Created dir: /home1/dtftest/eclipse_3.7.2/eclipse-testing/test-eclipse

installExtraPlugins:

installTestPlugins:

setupPlatform:
     [echo] os.arch x86
     [echo] platformTarget platform-zip platformArchive /home1/dtftest/eclipse_3.7.2/eclipse-testing/eclipse-platform-3.7.1-solaris-gtk-x86.zip

platform-zip:
   [delete] Deleting directory /home1/dtftest/eclipse_3.7.2/eclipse-testing/platformLocation
    [mkdir] Created dir: /home1/dtftest/eclipse_3.7.2/eclipse-testing/platformLocation
     [echo] -installIU org.eclipse.jdt.core.tests.builder +

configureTeamTest:

unzipderby:

configureDeltaPack:
     [echo] trying to find org.eclipse.jdt.core.tests.builder_*
     [echo] trying to find org.eclipse.jdt.core.tests.builder_3.7.3.v20111214-0627/test.xml

runSuite:

init:

suite:

init:
     [echo] basedir = /home1/dtftest/eclipse_3.7.2/eclipse-testing/test-eclipse/eclipse

core-test:

java-test:
     [echo] Running org.eclipse.jdt.core.tests.builder.BuilderTests. Result file: /home1/dtftest/eclipse_3.7.2/eclipse-testing/results/solaris.gtk.x86/org.eclipse.jdt.core.tests.builder.BuilderTests.xml.
     [java] An exception occurred while writing to the platform log:
     [java] java.lang.NullPointerException
     [java]     at org.eclipse.equinox.launcher.Main.openLogFile(Main.java:2467)
     [java]     at org.eclipse.equinox.launcher.Main.log(Main.java:2300)
     [java]     at org.eclipse.equinox.launcher.Main.run(Main.java:1421)
     [java]     at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
     [java]     at org.eclipse.core.launcher.Main.main(Main.java:34)
     [java] Logging to the console instead.
     [java] !ENTRY org.eclipse.equinox.launcher 4 0 2012-09-18 11:01:28.901
     [java] !MESSAGE Exception launching the Eclipse Platform:
     [java] An exception occurred while writing to the platform log:
     [java] java.lang.NullPointerException
     [java]     at org.eclipse.equinox.launcher.Main.openLogFile(Main.java:2467)
     [java]     at org.eclipse.equinox.launcher.Main.log(Main.java:2300)
     [java]     at org.eclipse.equinox.launcher.Main.run(Main.java:1422)
     [java]     at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
     [java]     at org.eclipse.core.launcher.Main.main(Main.java:34)
     [java] Logging to the console instead.
     [java] !STACK
     [java] java.lang.VerifyError: Expecting a stackmap frame at branch target 26
     [java] Exception Details:
     [java]   Location:
     [java]     com/oracle/security/ucrypto/UcryptoProvider.<init>()V @16: ifnonnull
     [java]   Reason:
     [java]     Expected stackmap frame at this location.
     [java]   Bytecode:
     [java]     0000000: b801 004c 2a12 090f 120a b700 0bb2 000c
     [java]     0000010: c700 0a2b 0604 54a7 0016 bb00 0d59 2ab2
     [java]     0000020: 000c b700 0eb8 000f 572b 0704 54b2 0010
     [java]     0000030: c600 0a2b 0804 54a7 000c 2ab3 0010 2b10
     [java]     0000040: 0604 542b 1007 0454 b1
     [java]   Stackmap Table:
     [java]     full_frame(@45,{Object[#82],Object[#121]},{})
     [java]     same_frame(@67)
     [java]
     [java]     at java.lang.Class.getDeclaredConstructors0(Native Method)
     [java]     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2403)
     [java]     at java.lang.Class.getConstructor0(Class.java:2713)
     [java]     at java.lang.Class.getConstructor(Class.java:1672)
     [java]     at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:223)
     [java]     at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
     [java]     at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
     [java]     at sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
     [java]     at sun.security.jca.ProviderList$3.get(ProviderList.java:148)
     [java]     at sun.security.jca.ProviderList$3.get(ProviderList.java:143)
     [java]     at java.util.AbstractList$Itr.next(AbstractList.java:358)
     [java]     at java.security.SecureRandom.getPrngAlgorithm(SecureRandom.java:542)
     [java]     at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:187)
     [java]     at java.security.SecureRandom.<init>(SecureRandom.java:155)
     [java]     at java.io.File$TempDirectory.<clinit>(File.java:1797)
     [java]     at java.io.File.createTempFile(File.java:1891)
     [java]     at org.eclipse.equinox.launcher.Main.canWrite(Main.java:1290)
     [java]     at org.eclipse.equinox.launcher.Main.computeDefaultConfigurationLocation(Main.java:1272)
     [java]     at org.eclipse.equinox.launcher.Main.getConfigurationLocation(Main.java:1698)
     [java]     at org.eclipse.equinox.launcher.Main.processConfiguration(Main.java:1754)
     [java]     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:549)
     [java]     at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
     [java]     at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
     [java]     at org.eclipse.core.launcher.Main.main(Main.java:34)
     [java]
     [java] Java Result: 13

collect-results:
     [xslt] Transforming into /home1/dtftest/eclipse_3.7.2/eclipse-testing/results/solaris.gtk.x86

cleanup:

run:

collect:

genResults:
     [copy] Copying 1 file to /home1/dtftest/eclipse_3.7.2/eclipse-testing/results/xml
     [xslt] Transforming into /home1/dtftest/eclipse_3.7.2/eclipse-testing/results/html
     [xslt] Processing /home1/dtftest/eclipse_3.7.2/eclipse-testing/results/xml/org.eclipse.jdt.core.tests.builder_solaris.gtk.x86.xml to /home1/dtftest/eclipse_3.7.2/eclipse-testing/results/html/org.eclipse.jdt.core.tests.builder_solaris.gtk.x86.html
     [xslt] Loading stylesheet /home1/dtftest/eclipse_3.7.2/eclipse-testing/test-eclipse/eclipse/plugins/org.eclipse.test_3.3.100/JUNIT.XSL
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 25 seconds

It says "BUILD SUCCESSFUL", but none of the tests are executed (/results/html files are empty)

Steps to Reproduce:
1. Use eclipse-Automated-Tests-3.7.2 to run automated tests with jdk7 or jdk8.
2. Install jdk from:
http://jdk8.java.net/download.html
http://jdk7.java.net/download.html
3. ./runtests 

All tests are run fine with jdk6 only.
Comment 1 Szymon Ptaszkiewicz CLA 2012-12-10 09:44:13 EST
Moving to JDT/Core for comment.
Comment 2 Jay Arthanareeswaran CLA 2012-12-10 11:03:02 EST
Looks like the VerifyError is a bigger problem. 

Olivier, do you have any idea?
Comment 3 Olivier Thomann CLA 2012-12-10 11:19:48 EST
I don't have a solaris machine on which I could try to run the tests. The VerifyError seems to come from the class:
com/oracle/security/ucrypto/UcryptoProvider

It would be good to try another VM. Looks suspicious. I don't have the .class file to check the validity of the VerifyError.
Comment 4 Jay Arthanareeswaran CLA 2012-12-10 11:26:13 EST
(In reply to comment #3)
> I don't have a solaris machine on which I could try to run the tests. The
> VerifyError seems to come from the class:
> com/oracle/security/ucrypto/UcryptoProvider

I will see if I can get hold of one.

> It would be good to try another VM. Looks suspicious. I don't have the
> .class file to check the validity of the VerifyError.

Ludmila, are you in a position to try other VMs, let's say another JRE 7?
Comment 5 Eclipse Genie CLA 2020-01-21 10:37:13 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.