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 178288

Summary: [68cat] LifecycleManager.markForRestart does not work on OpenJDK
Product: ide Reporter: ulfzibis <ulfzibis>
Component: Import SettingsAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: normal CC: dynamite, jskrivanek, sourcewerks
Priority: P3 Keywords: JDK_SPECIFIC
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 168257    
Attachments: Screenshot
messages log
messages log 1
messages log 2

Description ulfzibis 2009-12-08 04:58:18 UTC
Created attachment 92258 [details]
Screenshot

After comfirming "Restart now", nothing happens.

After manually closing and restarting NB, import had succeded.
Comment 1 ulfzibis 2009-12-08 04:59:07 UTC
Happened on fresh installed RC2.
Comment 2 Jiri Skrivanek 2009-12-08 05:02:57 UTC
What JDK, operating system do you use? Could you attach messages.log?
Comment 3 ulfzibis 2009-12-09 02:28:20 UTC
Today I only have little information, as I'm out of office.

JDK: 1.6.0 (not sure about build, but downloaded 2 weeks ago)
Linux: Ubuntu 9.10, but running on KDE from "sudo apt-get install kubuntu-desktop"
Comment 4 ulfzibis 2009-12-10 02:18:43 UTC
Created attachment 92373 [details]
messages log

Product Version: NetBeans IDE 6.8 RC2 (Build 200912022200)
Java: 1.6.0_0; OpenJDK Client VM 14.0-b16
System: Linux version 2.6.31-15-generic running on i386; UTF-8; de_DE (nb)
Userdir: /home/ulf/.netbeans/6.8rc2
Comment 5 ulfzibis 2009-12-10 02:19:40 UTC
Created attachment 92374 [details]
messages log 1
Comment 6 ulfzibis 2009-12-10 02:21:38 UTC
Created attachment 92375 [details]
messages log 2
Comment 7 Jiri Skrivanek 2009-12-10 04:07:58 UTC
It fails because of

java.lang.UnsupportedOperationException: cannot restart in JNLP mode
	at org.netbeans.core.startup.ModuleLifecycleManager.markForRestart(ModuleLifecycleManager.java:97)
	at org.netbeans.core.NbTopManager$NbLifecycleManager.markForRestart(NbTopManager.java:576)
	at org.netbeans.modules.options.export.OptionsChooserPanel.showImportDialog(OptionsChooserPanel.java:229)

Jesse, you added a check for javax.jnlp.BasicService class in issue 168257. It seems this class is loaded when using OpenJDK. Do you know how to check better?
Comment 8 Jesse Glick 2009-12-10 06:01:36 UTC
Not offhand but I imagine it can be fixed somehow.
Comment 9 ulfzibis 2009-12-10 07:30:29 UTC
Additionally on 1st start of RC2 I had again bug 174153.
The import dialogue was such big, that I saw only a grey area without head or bottom, so I couldn't select "No". I only could hit Return, the default behaviour was executed (IIRC this is "Yes" to import from 6.7.1).
Maybe there is some relation.
Comment 10 Jesse Glick 2010-03-11 12:01:31 UTC
core-main #3a7124864695
Comment 11 Jesse Glick 2010-03-11 12:07:24 UTC
core-main #3a7124864695
Comment 12 Quality Engineering 2010-03-12 04:24:42 UTC
Integrated into 'main-golden', will be available in build *201003120200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3a7124864695
User: Jesse Glick <jglick@netbeans.org>
Log: #178288: different check for whether we can restart or not.
Comment 13 Jesse Glick 2010-10-01 14:09:33 UTC
*** Bug 184879 has been marked as a duplicate of this bug. ***
Comment 14 Jaroslav Tulach 2011-04-15 11:14:46 UTC
*** Bug 175259 has been marked as a duplicate of this bug. ***
Comment 15 Marian Mirilovic 2011-06-09 09:57:32 UTC
v/c