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 232295 - netbeans 7.3.1: Startup hanging on initial Settings Import
Summary: netbeans 7.3.1: Startup hanging on initial Settings Import
Status: RESOLVED WONTFIX
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 7.3.1
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-05 07:17 UTC by joe_strzemp
Modified: 2013-07-31 17:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Dialog displayed when trying to start Netbeans 7.3.1 (34.57 KB, image/tiff)
2013-07-30 18:41 UTC, joe_strzemp
Details
Netbeans 7.3.1 install log (8.42 KB, application/octet-stream)
2013-07-30 19:45 UTC, joe_strzemp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joe_strzemp 2013-07-05 07:17:22 UTC
When I first try to start-up netbeans 7.3.1 on Mac OS, it hangs with the "Confirm Import Settings" window where the dialog appears incomplete (only a 'Yes' button) and even that is ineffectual since clicking the 'Yes' button does nothing.

Looking in the logs, I found the following:

org.netbeans.ide.baseide.201306052037[12335]: Unable to find any JVMs matching version "1.7.0_10+".

There really should be more friendly user behavior if Java 7 is required or at least the documentation should state that Java 7 is a requirement with netbeans 7.3.1.
Comment 1 joe_strzemp 2013-07-05 07:30:06 UTC
The actual problem may not be related to not finding Java 7.
Perhaps the log messages that followed are insightful:

org.netbeans.ide.baseide.201306052037[12994]: Found jdkhome=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java[13221]: MDS Error: unable to create user DBs in /var/folders/sk/skEkeWFfHiSSHA8Pxw9jhU+++TI/-Caches-//mds
--- last message repeated 3 times ---
Comment 2 isuftin 2013-07-08 15:34:14 UTC
Having the same issue on my Mac Pro.  

Trying to start from command line: 
./netbeans 
Unable to find any JVMs matching version "1.7.0_10+".
Found jdkhome=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

I have no errors or any output at all after it finds jdkhome.

Checking Java version:
java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-11M4508)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)
Comment 3 semanticeffect 2013-07-11 17:55:15 UTC
(In reply to comment #2)
> Having the same issue on my Mac Pro.  
> 
> Trying to start from command line: 
> ./netbeans 
> Unable to find any JVMs matching version "1.7.0_10+".
> Found jdkhome=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> 
> I have no errors or any output at all after it finds jdkhome.
> 
> Checking Java version:
> java -version
> java version "1.6.0_51"
> Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-11M4508)
> Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)



Experiencing the exact same thing on my Mac Pro w/ 10.8.4

Are there any known issues with updating to Java 7?
Comment 4 ekeyser 2013-07-20 15:31:08 UTC
I was running jdk6 and installed the latest jdk7 (7u25) and this appears to have resolved the problem. 

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Comment 5 Theofanis Oikonomou 2013-07-30 10:02:26 UTC
The upgrader, which is responsible for importing settings during first startup, does not impose any requirement for installed jdk version. From the description and the log message it seems like an issue with installer. Libor any insight? Thank you
Comment 6 Libor Fischmeistr 2013-07-30 12:02:17 UTC
I tried to reproduce it on Mac using JDK 1.6.0_45. The "Confirm Import Settings" dialog correctly appeared to me and after confirmation IDE successfully launched.

The message you can see in log (Unable to find any JVMs matching version "1.7.0_10+".) is correct and shows when you don't have 1.7.0_10 or newer. It shows even if you have 1.6 version. For more info see http://wiki.netbeans.org/FaqMacRequires7u10OrNewer

I quite don't understand what is described in comment #2 and #3. Has the IDE launched or not? The message "Unable to find any JVMs matching version "1.7.0_10+"." is not error, it's just info.

I also don't suppose that log messages pasted above are related to this bug.

The upgrader logs into regular IDE log so it could be useful to see that log.
Where to find log: http://wiki.netbeans.org/FaqLogMessagesFile
Comment 7 joe_strzemp 2013-07-30 18:41:44 UTC
Created attachment 138016 [details]
Dialog displayed when trying to start Netbeans 7.3.1
Comment 8 joe_strzemp 2013-07-30 18:46:25 UTC
So let me clarify what I wrote previously:

First, I did install Netbeans 7.3.1, successfully, as far as I know.
I still cannot get past the "Confirm Import Settings" for Netbeans 7.3.1.
I have attached a screen grab of the window showing where it is stuck.
No user input can change that state (clicking on 'Yes' is ineffective).
Note: I can run Netbeans 7.3 with no issues.

After reading through the comments, I no longer believe that the log messages (that I included in my early comment) are (directly) related to the problem I'm seeing, though I *suspect* that since I don't have Java 7 installed, that the lack of Java 7 is likely the issue.  I can't upgrade either the OS or Java to test that theory at this time.

My Mac system is 10.6.8 running in 32-bit mode.
Comment 9 joe_strzemp 2013-07-30 19:45:02 UTC
Created attachment 138018 [details]
Netbeans 7.3.1 install log
Comment 10 Theofanis Oikonomou 2013-07-31 08:45:57 UTC
Thank you for the extra info. The upgrader creates a dialog with two buttons Yes/No. You need to press either the Yes or the No button in order to proceed. Pressing on the x button to close the dialog has no effect. 

I am not sure how you get into the state where only one button is shown. There is no info I can use in the attached log. Could you attach the whole file? Stando, could it be some issue with the JDialog,os,jdk combination? Thank you
Comment 11 Stanislav Aubrecht 2013-07-31 09:04:44 UTC
I think this could be related to a JDK bug which causes problems with window repaints. Note that NetBeans icon is also missing in the screen shot.

http://lists.apple.com/archives/java-dev/2013/Jun/msg00055.html
Comment 12 Theofanis Oikonomou 2013-07-31 10:05:45 UTC
Thank you Stando.

@isuftin & joe_strzemp: you both seem to be running the problematic xM4508 version. Please update using the steps in the previous link and report back reopening this issue if the problem persists. Thank you
Comment 13 joe_strzemp 2013-07-31 17:54:44 UTC
The problem I was seeing with NetBeans 7.3.1 is now resolved.
Yes, I *did* have Java 6 xM4508 installed.

After following the Apple notes on updating to Java 6 xM4509,
NetBeans 7.3.1 now starts up properly.

BTW, the log I included in Comment 9 *was* the complete log
(which may be helpful to know for other issues).