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 157353 - mainClass for preview is null
Summary: mainClass for preview is null
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-23 10:37 UTC by Alexandr Scherbatiy
Modified: 2009-03-23 12:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (45.46 KB, text/plain)
2009-01-23 10:39 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-01-23 10:37:35 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_installer:  #38	Jan 23, 2009 12:39:08 AM

  Product Version         = NetBeans IDE 6.5 (Build 200901221801)
  Operating System        = Mac OS X version 10.5.6 running on i386
  Java; VM; Vendor        = 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133; Apple Inc.


Steps to reproduce:

- Create a JavaFX Script project
- Enable the preview for the Main file
- Edit the Text content
- Press Enter in the file
  Preview shows nothing

Preview output:
Jan 23, 2009 9:38:42 PM org.netbeans.modules.javafx.preview.CodeUtils run
WARNING: mainClass for preview is null!
Comment 1 Alexandr Scherbatiy 2009-01-23 10:39:28 UTC
Created attachment 76178 [details]
IDE log file
Comment 2 Adam Sotona 2009-01-29 17:03:34 UTC
It works perfectly on my Windows and I have currently no access to a Mac machine.
Could you verify when it happens, what conditions are necessary to reproduce, etc...

Thank, you
Comment 3 Alexandr Scherbatiy 2009-01-30 12:19:24 UTC
It is reproduced from time to time.

I see the AssertionError when it happens:

java.lang.AssertionError: Filling
jar:file:/C:/Program%20Files/NetBeans%206.5/javafx2/javafx-sdk/lib/desktop/rt15.jar!/java/lang/Class.class during
jar:file:/C:/Program%20Files/NetBeans%206.5/javafx2/javafx-sdk/lib/shared/javafxc.jar!/com/sun/javafx/runtime/InitHelper.class
	at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1864)
	at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1807)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:400)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:777)
	at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:1981)
	at com.sun.tools.javafx.comp.JavafxClassReader.complete(JavafxClassReader.java:432)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:400)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:777)
	at com.sun.tools.javafx.comp.JavafxClassReader$2.getEnclosingType(JavafxClassReader.java:317)
	at com.sun.tools.javac.code.Type$ClassType.toString(Type.java:589)
	at org.netbeans.api.javafx.editor.FXSourceUtils.typeToString(FXSourceUtils.java:141)
	at org.netbeans.api.javafx.editor.FXSourceUtils.executableElementToString(FXSourceUtils.java:216)
	at org.netbeans.modules.javafx.navigation.ElementScanningTask.element2description(ElementScanningTask.java:307)
	at org.netbeans.modules.javafx.navigation.ElementScanningTask.addMembers(ElementScanningTask.java:237)
	at org.netbeans.modules.javafx.navigation.ElementScanningTask.run(ElementScanningTask.java:126)
	at org.netbeans.modules.javafx.navigation.ElementScanningTask.run(ElementScanningTask.java:77)
[catch] at org.netbeans.modules.javafx.source.scheduler.CompilationJob.run(CompilationJob.java:200)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Comment 4 Adam Sotona 2009-02-02 08:25:27 UTC
It seems to be similar to issue #157623
probably compiler problems again
Comment 5 Alexandr Scherbatiy 2009-02-02 09:08:11 UTC
Compiler issue JFXC-2726 AssertionError: Filling jar:file:/javafxc.jar!/com/sun/javafx/functions/Function0.class during
InstantiationException.class

http://javafx-jira.kenai.com/browse/JFXC-2726
Comment 6 Adam Sotona 2009-03-11 13:31:06 UTC
preview has been removed
Comment 7 Alexandr Scherbatiy 2009-03-23 12:52:41 UTC
verified in JavaFX_NB_651_Plugin:  #70 	20-Mar-2009 20:36:54