You are not logged in.
Hi
problem as topic. I have this issue since I upgraded to 7.3 (I didn't do this earlier, for I have to reconfigure the android plugin each time a new version comes)
The symptoms are exactly as discribed in this thread:
https://bbs.archlinux.org/viewtopic.php?id=161362
Netbeans shows the splashscreen, the red bar progresses fine just until
"Turning on modules"
then the splash disappears and I get back the prompt, no error message here.
maex@cobalt:~ $ netbeans
maex@cobalt:~ $
I know netbeans has a logfile ([...]/var/log/messages.log) and indeed this tells me there is a permissions problem - which perfectly explains why I can run NB as root. But I do not understand what exactly causes the problem.
Heres the log:
-------------------------------------------------------------------------------
>Log Session: Friday, May 31, 2013 9:40:24 PM CEST
>System Info:
Product Version = NetBeans IDE 7.3 (Build 201302132200) (#93e87decaddf)
Operating System = Linux version 3.9.4-1-ARCH running on i386
Java; VM; Vendor = 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_21-b11
Java Home = /opt/java/jre
System Locale; Encoding = en_US (nb); ANSI_X3.4-1968
Home Directory = /home/maex
Current Directory = /home/maex
User Directory = /home/maex/.netbeans/7.3
Cache Directory = /home/maex/.cache/netbeans/7.3
Installation = /usr/share/netbeans/nb
/usr/share/netbeans/ergonomics
/usr/share/netbeans/ide
/usr/share/netbeans/java
/usr/share/netbeans/apisupport
/usr/share/netbeans/webcommon
/usr/share/netbeans/websvccommon
/usr/share/netbeans/enterprise
/usr/share/netbeans/mobility
/usr/share/netbeans/profiler
/usr/share/netbeans/php
/usr/share/netbeans/harness
/usr/share/netbeans/cnd
/usr/share/netbeans/dlight
/usr/share/netbeans/groovy
/usr/share/netbeans/javacard
/usr/share/netbeans/javafx
/usr/share/netbeans/platform
Boot & Ext. Classpath = /opt/java/jre/lib/resources.jar:/opt/java/jre/lib/rt.jar:/opt/java/jre/lib/sunrsasign.jar:/opt/java/jre/lib/jsse.jar:/opt/java/jre/lib/jce.jar:/opt/java/jre/lib/charsets.jar:/opt/java/jre/lib/jfr.jar:/opt/java/jre/classes:/opt/java/jre/lib/ext/dnsns.jar:/opt/java/jre/lib/ext/sunjce_provider.jar:/opt/java/jre/lib/ext/sunec.jar:/opt/java/jre/lib/ext/localedata.jar:/opt/java/jre/lib/ext/zipfs.jar:/opt/java/jre/lib/ext/sunpkcs11.jar
Application Classpath = /usr/share/netbeans/platform/lib/boot.jar:/usr/share/netbeans/platform/lib/org-openide-modules.jar:/usr/share/netbeans/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/platform/lib/org-openide-util.jar:/usr/share/netbeans/platform/lib/locale/boot_ja.jar:/usr/share/netbeans/platform/lib/locale/boot_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/boot_ru.jar:/usr/share/netbeans/platform/lib/locale/boot_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_zh_CN.jar:/opt/java/lib/dt.jar:/opt/java/lib/tools.jar
Startup Classpath = /usr/share/netbeans/platform/core/org-openide-filesystems.jar:/usr/share/netbeans/platform/core/core.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_ru.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_zh_CN.jar:/usr/share/netbeans/platform/core/locale/core_ru.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_ja.jar:/usr/share/netbeans/platform/core/locale/core_pt_BR.jar:/usr/share/netbeans/platform/core/locale/core_zh_CN.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_pt_BR.jar:/usr/share/netbeans/platform/core/locale/core_ja.jar:/usr/share/netbeans/nb/core/org-netbeans-upgrader.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_ja.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_zh_CN.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_pt_BR.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_ru.jar:/usr/share/netbeans/nb/core/locale/core_nb.jar
-------------------------------------------------------------------------------
INFO [org.netbeans.modules.netbinox]: Install area set to file:/usr/share/netbeans/
!SESSION 2013-05-31 21:40:25.804 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
!ENTRY org.eclipse.osgi 4 0 2013-05-31 21:40:25.805
!MESSAGE Error reading configuration: Permission denied
!STACK 0
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:1879)
at org.eclipse.osgi.storagemanager.StorageManager.initializeInstanceFile(StorageManager.java:188)
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:708)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:220)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:154)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:123)
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:192)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:67)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:84)
at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:166)
at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:127)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1174)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1009)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:722)
java.lang.RuntimeException: Permission denied
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:194)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:67)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:84)
at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:166)
at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:127)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1174)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1009)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:1879)
at org.eclipse.osgi.storagemanager.StorageManager.initializeInstanceFile(StorageManager.java:188)
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:708)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:220)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:154)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:123)
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:192)
... 16 more
I wish I knew which file he can't create.
I double checked the permissions for the .netbeans directory are ok.
(I ran as root)
root@cobalt:~ # chown -R maex.users /home/maex/.netbeans/
(and as maex)
maex@cobalt:~ $ chmod -R +rw .netbeans/
Thanks in advance
(And BTW my _JAVA_OPTIONS are not the cause ,they are blank)
Last edited by keen90 (2013-06-01 08:05:21)
Offline
Try using strace to load netbeans and find out what system calls are being made
Offline
It seems like a plugin is writing in the wrong place, but we can't tell exactly where.
Are you against installing it with the official installer? It will be stored in your user home, so you'll not have problems with that. And you'll be responsible for updating it, which is a good thing when you depend on some problematic plugins.
Satisfied users don't rant, so you'll never know how many of us there are.
Offline
I tried the official installer, too. Same problem.
But now I got it solved - the .cache directory in my homedir had a netbeans subdirectory - belonging to: *sigh* root.
Offline
Running stuff as root when it is not needed tends to break things in that way. This is one of the reasons for why you should not take root in vain.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline