This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 86828 - [68cat] VM-Crash caused by static code
Summary: [68cat] VM-Crash caused by static code
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 06:26 UTC by bugbridge
Modified: 2009-09-22 11:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output Log File (11.05 KB, application/octet-stream)
2006-10-10 06:28 UTC, ndcosta
Details
Source Information (19.90 KB, text/plain)
2006-10-10 06:29 UTC, ndcosta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-10-10 06:26:16 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original Target Release: ; Suggested Target Milestone : 5.5

Description:
FULL PRODUCT VERSION :
C:\Programme\Java\jdk1.6.0\bin>java -version
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b86, mixed mode, sharing)

NetBeans Beta2 runs on JDK 5.0:

C:\Programme\Java>java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)

FULL OS VERSION :
Windows XP SP-2

EXTRA RELEVANT SYSTEM CONFIGURATION :
Run source code within NetBeans 5.5 Beta 2 (using JDK 5.0_09)

Using Microsoft Access database

All files of sun.jdbc.odbc package are copied to folder "src" of NetBeans project

<--- file: project.properties --->
application.args=
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
debug.classpath=    ${run.classpath}
debug.test.classpath=    ${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/jdk6.0_JdbcOdbcBugs.jar
dist.javadoc.dir=${dist.dir}/javadoc
jar.compress=true
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.source=1.5
javac.target=1.5
javac.test.classpath=    ${javac.classpath}:    ${build.classes.dir}:   
${libs.junit.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
main.class=
meta.inf.dir=${src.dir}/META-INF
platform.active=JDK_1.6.0-beta2-b86
run.classpath=    ${javac.classpath}:    ${build.classes.dir}
# Space-separated list of JVM arguments used when running the project
# (you may also define separate properties like run-sys-prop.name=value instead
of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=-Xbootclasspath/p:${build.classes.dir}
run.test.classpath=    ${javac.test.classpath}:    ${build.test.classes.dir}
src.dir=src
test.src.dir=test

A DESCRIPTION OF THE PROBLEM :
See source code.


THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run NetBeans 5.5 Beta 2

Choose project properties and set Java Platform to "JDK 1.6.0-beta2-b86"
Within NetBeans 5.5 Beta 2 try several times in short and long intervals:
- right-click on project's node
- click "Test Project"
--- runs sometimes ---

Then choose project properties and set Java Platform to "JDK 1.5 (default)"
(Do not build project before)
- right-click on project's node
- click "Test Project"
--- runs always ---



EXPECTED VERSUS ACTUAL BEHAVIOR :
Attached seperatly

REPRODUCIBILITY :
This bug can be reproduced often.

---------- BEGIN SOURCE ----------
Attached seperatly
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
  static {
    System.out.println("JDK Version: "+System.getProperty("java.version"));
//    try {
//    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // Obsolete in JDK 6.0
//    }
//    catch (Exception e) {  e.printStackTrace();  }
  }
Comment 1 ndcosta 2006-10-10 06:28:43 UTC
Created attachment 35066 [details]
Output Log File
Comment 2 ndcosta 2006-10-10 06:29:37 UTC
Created attachment 35067 [details]
Source Information
Comment 3 Jan Lahoda 2007-01-09 10:43:39 UTC
Sorry, but this seems to me to be a JDK bug, not NB IDE bug. Do I miss something?
Comment 4 ulfzibis 2007-01-09 11:43:53 UTC
I also think, it's a JDK-Bug, but it was moved to NetBeans by Sun.

Here was my original Bug-Report:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6480021

... but it was deleted as a couple of other Bugs I posted.
I can't understand, why they delete so much bugs, especially those about the
JDBC-ODBC-Driver.
Comment 5 Petr Hrebejk 2007-05-24 16:24:05 UTC
Java editor can't really not do much with this.
Comment 6 ulfzibis 2009-09-22 11:24:25 UTC
Could you please reopen (I don't have the rights from outside Sun):
  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6480021
and additionally force to make it publicly visible, so I can see the progress.