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 11990 - Creating new project fires exception
Summary: Creating new project fires exception
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: anovak
URL:
Keywords:
: 12565 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-05-07 15:36 UTC by Jaromir Uhrik
Modified: 2008-12-22 23:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (9.48 KB, text/plain)
2001-05-07 15:37 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2001-05-07 15:36:25 UTC
[Dev 182, jdk1.4.0-beta-b63]
Run IDE and create new project. When this action is finishing the exception is 
fired - see attached ide.log
Comment 1 Jaromir Uhrik 2001-05-07 15:37:30 UTC
Created attachment 1313 [details]
ide.log
Comment 2 Jan Chalupa 2001-06-20 09:03:21 UTC
*** Issue 12565 has been marked as a duplicate of this issue. ***
Comment 3 mslama 2001-06-20 16:53:16 UTC
Fixed in org.netbeans.core.windows.frames.SplitContainerImpl in method
componentRemoved() added check if component is in JTabbedPane before it is
removed. (In JDK 1.4 method JTabbedPane.remove() fires exception when component
being removed is not present in JTabbedPane.) It happens that in hidden (not
active) workspace components are not actually added to JTabbedPane in
SplitContainerImpl.

Fixed in main trunk.

Fixed in SplitContainerImpl.java rev.1.14.
Comment 4 Jan Zajicek 2001-06-22 13:15:41 UTC
Jara, please verify this, thanks.
Comment 5 Jaromir Uhrik 2001-06-22 15:57:47 UTC
Reopening because the problem persists. After creating the new project the IDE 
fires the exception below. Moreover it is done in 'neverending' cycles and the 
creation of the project is never finished.

>Log Session: Pátek, 22. èerven 2001 16:33:51 CEST
>System Info: 
  Product Version       = NetBeans IDE, Development Version (Build 200106220100)
  IDE Versioning        = IDE/1 spec=1.14 impl=200106220100
  Operating System      = Windows 2000 version 5.0 running on x86
  Java; VM; Vendor      = 1.4.0-beta; Java HotSpot(TM) Client VM 1.4.0-beta-
b65; Sun Microsystems Inc.
  Java Home             = C:\jdk1.4\jre
  System Locale         = cs_CZ
  Home Dir; Current Dir = C:\Documents and Settings\ju122756; D:\Build\dev33\22
\netbeans\bin
  IDE Install; User Dir = D:\Build\dev33\22\netbeans; D:\Build\dev33\22
\netbeans\bin\fdlashfakljshf
  CLASSPATH             = D:\Build\dev33\22\netbeans\lib\patches\openide-
compat.jar;D:\Build\dev33\22\netbeans\lib\core.jar;D:\Build\dev33\22
\netbeans\lib\openide-fs.jar;D:\Build\dev33\22\netbeans\lib\openide-
nodes.jar;D:\Build\dev33\22\netbeans\lib\openide-util.jar;D:\Build\dev33\22
\netbeans\lib\openide.jar;D:\Build\dev33\22
\netbeans\lib\ext\jaxp.jar;D:\Build\dev33\22
\netbeans\lib\ext\jh.jar;D:\Build\dev33\22
\netbeans\lib\ext\parser.jar;D:\Build\dev33\22
\netbeans\lib\ext\regexp.jar;D:\Build\dev33\22\netbeans\lib\ext\rmi-
ext.jar;D:\Build\dev33\22\netbeans\lib\ext\sax2.jar;D:\Build\dev33\22
\netbeans\lib\ext\servlet.jar;D:\Build\dev33\22
\netbeans\lib\ext\xerces.jar;C:\jdk1.4\lib\dt.jar;C:\jdk1.4\lib\tools.jar
-------------------------------------------------------------------------------
[INFO] Loaded modules: org.netbeans.core/1 (1.0/unspec); 
org.apache.tools.ant.module/2 (2.3/200106220100); 
org.netbeans.modules.autoupdate/1 (1.7/200106220100); 
org.netbeans.modules.clazz/1 (1.7/200106220100); 
org.netbeans.modules.debugger.core/2 (2.1/200106220100); 
org.netbeans.modules.applet/1 (1.7/200106220100); 
org.netbeans.modules.debugger.debug/1 (1.9/200106220100); 
org.netbeans.modules.debugger.jpda/1 (1.9/200106220100); 
org.netbeans.modules.editor/1 (1.8/200106220100); org.netbeans.modules.html/1 
(1.8/200106220100); org.netbeans.modules.httpserver/1 (1.7/200106220100); 
org.netbeans.modules.extbrowser/1 (0.3/200106220100); 
org.netbeans.modules.icebrowser/1 (1.7/200106220100); 
org.netbeans.modules.image/1 (1.7/200106220100); 
org.netbeans.modules.jarpackager/2 (1.7.1/200106220100); 
org.netbeans.modules.java/1 (1.7/200106220100); org.netbeans.modules.beans/1 
(1.7/200106220100); org.netbeans.modules.form/2 (1.7/200106220100); 
org.netbeans.modules.javadoc/1 (1.7/200106220100); org.netbeans.modules.jndi/1 
(1.4/200106220100); org.netbeans.modules.objectbrowser/1 (1.7/200106220100); 
org.netbeans.modules.projects/1 (1.7/200106220100); 
org.netbeans.modules.properties/1 (1.7/200106220100); 
org.netbeans.modules.i18n/1 (1.7/200106220100); 
org.netbeans.modules.i18n.form/2 (1.7/200106220100); 
org.netbeans.modules.properties.syntax/1 (1.7/200106220100); 
org.netbeans.modules.text/1 (1.7/200106220100); 
org.netbeans.modules.usersguide/1 (1.8/200106220100); 
org.netbeans.modules.web.core/1 (1.4/200106220100); 
org.netbeans.modules.web.core.syntax/1 (1.4/200106220100); org.openidex.util/1 
(1.9/200106220100); org.netbeans.modules.scripting/1 (1.4/200106220100); 
org.netbeans.modules.utilities/1 (1.7/200106220100); 
org.netbeans.modules.apisupport.lite/1 (0.2/200106220100); 
org.netbeans.modules.rmi/1 (1.4/200106220100); org.netbeans.modules.vcscore/1 
(1.5/200106220100); org.netbeans.modules.cvsclient/1 (1.4/200106220100); 
org.netbeans.modules.vcs.advanced/1 (1.5/200106220100); 
org.netbeans.modules.vcs.cmdline/1 (1.8/200106220100)
[org.netbeans.core.modules] *********** Exception occurred ************
Fri Jun 22 16:34:08 CEST 2001: org.openide.util.io.SafeException: null
java.lang.NullPointerException
	at org.openide.util.SharedClassObject.createInstancePrivileged
(SharedClassObject.java:417)
	at org.openide.util.SharedClassObject$SetAccessibleAction.run
(SharedClassObject.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.openide.util.SharedClassObject.findObject
(SharedClassObject.java:388)
	at org.openide.util.SharedClassObject$WriteReplace.readObject
(SharedClassObject.java:471)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:30)
	at sun.reflect.InflatableMethodAccessorImpl.invoke
(InflatableMethodAccessorImpl.java:48)
	at java.lang.reflect.Method.invoke(Method.java:306)
	at java.io.ObjectStreamClass.invokeReadObject
(ObjectStreamClass.java:730)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1659)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1562)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1202)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:297)
	at org.openide.util.io.NbObjectInputStream.readSafely
(NbObjectInputStream.java:78)
[catch] at org.netbeans.core.ModuleInstaller.deExternalizeModules
(ModuleInstaller.java:1038)
	at org.netbeans.core.ModuleInstaller.initialize
(ModuleInstaller.java:291)
	at org.netbeans.core.NonGui.run(NonGui.java:492)
	at org.netbeans.core.Main.run(Main.java:187)
	at org.openide.TopManager.initializeTopManager(TopManager.java:120)
	at org.openide.TopManager.getDefault(TopManager.java:81)
	at org.netbeans.core.Main.main(Main.java:286)
	at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
	at java.lang.Thread.run(Thread.java:579)
Creating samples directory D:\Build\dev33\22
\netbeans\bin\fdlashfakljshf\sampledir
Adding samples directory D:\Build\dev33\22
\netbeans\bin\fdlashfakljshf\sampledir to Filesystems.
OK, samples directory is still in Filesystems.
java.lang.StackOverflowError
	at java.security.Security.getProperty(Security.java:1185)
	at sun.security.provider.PolicyFile.initPolicyFile(PolicyFile.java:503)
	at sun.security.provider.PolicyFile.initPolicyFile(PolicyFile.java:487)
	at sun.security.provider.PolicyFile.access$000(PolicyFile.java:245)
	at sun.security.provider.PolicyFile$1.run(PolicyFile.java:413)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.security.provider.PolicyFile.init(PolicyFile.java:411)
	at sun.security.provider.PolicyFile.implies(PolicyFile.java:1069)
	at java.security.ProtectionDomain.implies(ProtectionDomain.java:199)
	at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:258)
	at java.security.AccessController.checkPermission
(AccessController.java:400)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
	at org.netbeans.core.execution.TopSecurityManager.checkPermission
(TopSecurityManager.java:255)
	at java.security.Security.getProperty(Security.java:1185)
	at sun.security.provider.PolicyFile.initPolicyFile(PolicyFile.java:503)
	at sun.security.provider.PolicyFile.initPolicyFile(PolicyFile.java:487)
	at sun.security.provider.PolicyFile.access$000(PolicyFile.java:245)
	at sun.security.provider.PolicyFile$1.run(PolicyFile.java:413)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.security.provider.PolicyFile.init(PolicyFile.java:411)
	at sun.security.provider.PolicyFile.implies(PolicyFile.java:1069)
	at java.security.ProtectionDomain.implies(ProtectionDomain.java:199)
	at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:258)
	at java.security.AccessController.checkPermission
(AccessController.java:400)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
	at org.netbeans.core.execution.TopSecurityManager.checkPermission
(TopSecurityManager.java:255)
	
Comment 6 mslama 2001-06-22 16:39:53 UTC
It is not problem of window system now. From stack trace it seems it is problem
with security manager? Reassigning to Ales Novak
Comment 7 Jan Chalupa 2001-06-28 09:15:16 UTC
Please note that the stack-trace was generated on JDK 1.4.0-beta-b65. There was 
a bug that caused problems with the NB SecurityManager in that build. It has 
been already fixed in the recent promoted builds of beta-refresh.

Please verify on beta-refresh-b70.
Comment 8 Jaromir Uhrik 2001-06-28 10:31:45 UTC
Already fixed - works fine in beta-refresh-b70.
Comment 9 Jaromir Uhrik 2001-06-28 10:50:35 UTC
Verified on Pilsen 010627_1 and jdk 1.4.0-beta_refresh-b70.
Comment 10 Quality Engineering 2003-07-01 16:47:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.