On 12/3/15, Jack J. Woehr <[email protected]> wrote:
> Scott Walters wrote:
>> I'm now unable to create a project in NetBeans. Picking New Project ->
>> Java -> Next, I get this screen ("Finding
>> Feature" with the Next button greyed out)
> Oh, and Scott, try changing /usr/local/netbeans/etc/netbeans.conf
>
> netbeans_default_options="-J-client -J-Xss8m -J-Xms256m -J-Xmx512m
> -J-Dapple.laf.useScreenMenuBar=true
> -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true
> -J-Dsun.java2d.dpiaware=true
> -J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false
> -J-Dplugin.manager.check.interval=NEVER"

It looks like this is another one of those NetBeans problems that has
been around for a long time:

https://netbeans.org/bugzilla/show_bug.cgi?id=127248

2007 seems to have been a bad year for NetBeans.  My original issue
was from then as well.

bash-4.3# pkg_info | grep -i jdk
jdk-1.7.0.80p0v0    Java2(TM) SE Dev Kit v1.7.0.80

Switching it to use 1.8.x instead worked around the problem, and it
goes on to show a bouncy progress meter then change to present other
options.  Looking at the ticket, it seems like it's a thread
implementation timing bug, so the fundamental problem is very much not
fixed.  For the sake of the OpenBSD port, it seems like it would be a
good idea to require 1.8.x if other people can verify that this don't
work with jdk-1.7.  I'm imagining other platforms than amd64 would
likely have problems as well.

More diagnostic goo follow (solution moved to the top):

Changing netbeans_default_options to the above and restarting it, it
still gets stuck on that same dialog box in the same way.

I have this in my /etc/login.conf:

default:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin
/usr/local/bin /usr/local/sbin:\
        :umask=022:\
        :datasize-max=infinity:\
        :datasize-cur=infinity:\
        :maxproc-max=infinity:\
        :maxproc-cur=infinity:\
        :openfiles-cur=4096:\
        :stacksize-cur=32M:\
        :localcipher=blowfish,8:\
        :ypcipher=old:\
        :tc=auth-defaults:\
        :tc=auth-ftp-defaults:

staff:\
        :datasize-cur=infinity:\
        :datasize-max=infinity:\
        :maxproc-max=infinity:\
        :maxproc-cur=infinity:\
        :ignorenologin:\
        :requirehome@:\
        :tc=default:

The end of /home/scott/.netbeans/8.1/var/log/messages.log reads:

State Data Manager
  java.lang.Thread.sleep:-2
  org.eclipse.osgi.internal.baseadaptor.StateManager.run:297
  java.lang.Thread.run:745
Inactive RequestProcessor thread
[Was:OpenIDE-request-processor-1/org.netbeans.core.startup.preferences.NbPreferences$1]
  java.lang.Object.wait:-2
  org.openide.util.RequestProcessor$Processor.run:2002
Thread-2
  java.lang.Object.wait:-2
  java.lang.Object.wait:503
  java.util.prefs.AbstractPreferences$EventDispatchThread.run:1476
Active Reference Queue Daemon
  java.lang.Object.wait:-2
  java.lang.Object.wait:503
  org.openide.util.lookup.implspi.ActiveQueue.removeBetter:225
  org.openide.util.lookup.implspi.ActiveQueue.access$400:57
  org.openide.util.lookup.implspi.ActiveQueue$Daemon.run:180
process reaper
  sun.misc.Unsafe.park:-2
  java.util.concurrent.locks.LockSupport.parkNanos:226
  java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill:460
  java.util.concurrent.SynchronousQueue$TransferStack.transfer:359
  java.util.concurrent.SynchronousQueue.poll:942
  java.util.concurrent.ThreadPoolExecutor.getTask:1068
  java.util.concurrent.ThreadPoolExecutor.runWorker:1130
  java.util.concurrent.ThreadPoolExecutor$Worker.run:615
  java.lang.Thread.run:745
Inactive RequestProcessor thread [Was:Find
Modules/org.netbeans.modules.ide.ergonomics.fod.FindComponentModules$2]
  java.lang.Object.wait:-2
  org.openide.util.RequestProcessor$Processor.run:2002
Framework Active Thread
  java.lang.Object.wait:-2
  org.eclipse.osgi.framework.internal.core.Framework.run:1862
  java.lang.Thread.run:745
Inactive RequestProcessor thread
[Was:WinSysModuleChangeHandler/org.netbeans.core.windows.persistence.ModuleChangeHandler$1]
  java.lang.Object.wait:-2
  org.openide.util.RequestProcessor$Processor.run:2002
AWT-Shutdown
  java.lang.Object.wait:-2
  java.lang.Object.wait:503
  sun.awt.AWTAutoShutdown.run:296
  java.lang.Thread.run:745
Reference Handler
  java.lang.Object.wait:-2
  java.lang.Object.wait:503
  java.lang.ref.Reference$ReferenceHandler.run:133
WARNING [org.netbeans.core.TimableEventQueue]: too much time in AWT
thread org.netbeans.modules.sampler.InternalSampler@a14f9d8
WARNING [org.netbeans.core.TimableEventQueue]: no snapshot taken

Cheers,
-scott

Reply via email to