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 33802 - Unknown compilation error attempting to compile source file with no errors - various IDE components stop working - unable to reproduce
Summary: Unknown compilation error attempting to compile source file with no errors - ...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-21 11:07 UTC by bartholomew
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bartholomew 2003-05-21 11:07:51 UTC
I attempted to compile a source file and repeatedly got 
the Errors Compiling xxx.java message in the main window 
of 3.5 RC 1.  The Output window was completely empty and 
simply stopped responding to anything.  The File and View 
menus also became inaccessible.  Identical source file 
compiled fine in 3.4.1.

I installed the RC from zip file since I do not have 
administrative privileges on my PC at work.

Have attached Java source and ide.log files (note the 
source won't compile since it depends on many other 
classes in our application).

=====================================
Java
=====================================

/*
 * ObjectPlanTreeCellRenderer.java
 *
 * Created on September 12, 2002, 11:25 AM
 */

package lionuk.morpheus.tools.objectplan.tree;

import java.awt.Color;
import java.awt.Component;

import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;

import lionuk.morpheus.tools.objectplan.AttributeNode;
import lionuk.morpheus.tools.objectplan.ObjectNode;
import lionuk.morpheus.tools.objectplan.ObjectPlanNode;
import lionuk.morpheus.tools.objectplan.RootNode;
import lionuk.srs.corba.FullAttribute;
import lionuk.swing.util.ImageCache;

/**
 * TreeCellRenderer for the ObjectPlanTree.
 *
 * @author  Bart Read
 *
 * @version	$Revision: 1.7.2.1 $
 */
public class ObjectPlanTreeCellRenderer extends 
DefaultTreeCellRenderer
{
	
	private static final int	MAX_ID_LENGTH	
					= 20;
	
	private static final String	ICON_OBJECT_PLAN
					= "tool16";
	private static final String	ICON_ATTR	
					
	= "treeattr";
	private static final String	ICON_ATTR_INVALID
				
	= "treeattrinvalid";
	private static final String ICON_ATTR_REQUIRED	
				= "treeattrrequired";
	private static final String
	ICON_ATTR_UNRESOLVED			
	= "treeattrunresolved";
	private static final String	ICON_CHILD	
					
	= "treechild";
	private static final String
	ICON_CHILD_CIRCULARITY			
	= "treechildcircularity";
	private static final String	ICON_CHILD_INVALID
				
	= "treechildinvalid";
	private static final String
	ICON_CHILD_INVALID_LOCKED		
	= "treechildinvalidlocked";
	private static final String ICON_CHILD_INVALID_PATH
				= "treechildinvalidpath";
	private static final String	ICON_CHILD_LOCKED
				
	= "treechildlocked";
	private static final String
	ICON_CHILD_READ_ONLY			
	= "treechildreadonly";
	private static final String
	ICON_CHILD_READ_ONLY_INVALID_PATH
	= "treechildreadonlyinvalidpath";
	private static final String	ICON_TOP_LEVEL	
					= "treetoplevel";
	private static final String
	ICON_TOP_LEVEL_INVALID			
	= "treetoplevelinvalid";
	private static final String
	ICON_TOP_LEVEL_INVALID_LOCKED	
	= "treetoplevelinvalidlocked";
	private static final String
	ICON_TOP_LEVEL_LOCKED			
	= "treetoplevellocked";
	
	private ImageCache	ic;
	
	/**
	 * Creates a new instance of 
ObjectPlanTreeCellRenderer.
	 *
	 * @param	cache	ImageCache to use for 
loading icons
	 */
	public ObjectPlanTreeCellRenderer( ImageCache 
cache )
	{
		ic = cache;
	}
	
	/**
	 * Trims the supplied string to MAX_STRING_LENGTH 
and appends ellipsis
	 * marks.  NB.  The final length including the 
ellipsis marks will be
	 * less than or equal to MAX_STRING_LENGTH.
	 *
	 * @param	src		the source string
	 *
	 * @return		the trimmed string
	 */
	protected String trimID( String src )
	{
		if ( src.length() > MAX_ID_LENGTH )
		{
			return src.substring( 0, 
MAX_ID_LENGTH - 3 ) + "...";
		}
		else
		{
			return src;
		}
	}
	
	/**
	 * Gets the component for rendering the tree cell.
	 *
	 * @param	tree		the tree
	 * @param	value		the value
	 * @param	selected	flag indicating 
selection status
	 * @param	expanded	flag indicating 
expansion status
	 * @param	leaf		flag indicating 
whether node is a leaf
	 * @param	row			row index 
in tree
	 * @param	hasFocus	flag indicating 
whether node has focus
	 *
	 * @return	rendering component
	 */
	public Component getTreeCellRendererComponent(
							
			JTree tree,
							
			Object value,
							
			boolean selected,
							
			boolean expanded,
							
			boolean leaf,
							
			int row,
							
			boolean hasFocus )
	{
		super.getTreeCellRendererComponent( tree, 
value, selected, expanded, leaf, row, hasFocus );
		Object userObject = ( ( 
DefaultMutableTreeNode ) value ).getUserObject();
		
		if ( value instanceof AttributeTreeNode )
		{
			AttributeNode attrNode = ( 
AttributeNode ) userObject;
			FullAttribute attr = 
attrNode.getAttribute();
			setText( attrNode.getName() + ": " 
+ ( attr.isTypePath() ? "*" : "" ) + attr.getRefClassName
() );
			if ( 
attrNode.isUnresolvedDependency() )
			{
				setIcon( ic.getIcon( 
ICON_ATTR_UNRESOLVED ) );
			}
			else if ( attr.isRequired() )
			{
				if ( attrNode.isValid() )
				{
					setIcon( ic.getIcon
( ICON_ATTR_REQUIRED ) );
				}
				else
				{
					setIcon( ic.getIcon
( ICON_ATTR_INVALID ) );
				}
			}
			else
			{
				setIcon( ic.getIcon( 
ICON_ATTR ) );
			}
		}
		else if ( value instanceof ObjectTreeNode )
		{
			ObjectNode objNode = ( 
ObjectNode ) userObject;
			if ( objNode instanceof RootNode )
			{
				setText( 
objNode.getOMClassName() + ": " + trimID( 
objNode.getOMObjectId() ) );
				if ( objNode.isValid() )
				{
					setIcon( ic.getIcon
( objNode.isObjectLockedByMe() ? ICON_TOP_LEVEL_LOCKED : 
ICON_TOP_LEVEL ) );
				}
				else
				{
					setIcon( ic.getIcon
( objNode.isObjectLockedByMe() ? 
ICON_TOP_LEVEL_INVALID_LOCKED : ICON_TOP_LEVEL_INVALID ) );
				}
			}
			else
			{
				if ( objNode.isTopLevel() )
				{
					String path = 
objNode.getPath();
					setText( ( null == 
path ? "- No Path -" : path ) + " : " + 
objNode.getOMObjectId() );
				}
				else
				{
					setText( 
objNode.getOMObjectId() );
				}
				
				if ( objNode.isInvalidPath
() )
				{
					setIcon( ic.getIcon
( objNode.isEditable() ? ICON_CHILD_INVALID_PATH : 
ICON_CHILD_READ_ONLY_INVALID_PATH ) );
				}
				else if ( 
objNode.isCircularReference() )
				{
					setIcon( ic.getIcon
( ICON_CHILD_CIRCULARITY ) );
				}
				else if ( objNode.isValid
() )
				{
					setIcon( ic.getIcon
( objNode.isEditable() ? ( objNode.isObjectLockedByMe() ? 
ICON_CHILD_LOCKED : ICON_CHILD ) : 
ICON_CHILD_READ_ONLY ) );
				}
				else
				{
					setIcon( ic.getIcon
( objNode.isObjectLockedByMe() ? 
ICON_CHILD_INVALID_LOCKED : ICON_CHILD_INVALID ) );
				}
			}
		}
		else if ( value instanceof 
ObjectPlanTreeNode )
		{
			setIcon( ic.getIcon( 
ICON_OBJECT_PLAN ) );
			setText( userObject.toString() );
		}

		if ( userObject instanceof ObjectPlanNode 
&& !( ( ObjectPlanNode ) userObject ).isVisible() && !
selected )
		{
			setForeground( Color.lightGray );
		}
		
		return this;
	}
	
}

=================================================
ide.log
=================================================

-----------------------------------------------------------
--------------------
>Log Session: Wednesday, May 21, 2003 9:51:25 AM GMT
>System Info: 
  Product Version       = NetBeans IDE 3.5 RC1 (Build 
200304292350)
  IDE Versioning        = IDE/1 spec=3.42.1 
impl=200304292350
  Operating System      = Windows XP version 5.1 running 
on x86
  Java; VM; Vendor      = 1.4.1_02; Java HotSpot(TM) 
Client VM 1.4.1_02-b06; Sun Microsystems Inc.
  Java Home             = C:\j2sdk1.4.1_02\jre
  System Locale; Encod. = en_US; Cp1252
  Home Dir; Current Dir = C:\WINNT\Profiles\readb; 
Z:\netbeans35rc\bin
  IDE Install; User Dir = Z:\netbeans35rc; 
C:\WINNT\Profiles\readb\.netbeans\3.5rc1
  CLASSPATH             = Z:\netbeans35rc\lib\ext\regexp-
1.2.jar;Z:\netbeans35rc\lib\ext\xerces-
2.0.2.jar;Z:\netbeans35rc\lib\ext\boot.jar;Z:\netbeans35rc\
lib\ext\xml-apis-1.0b2.jar;Z:\netbeans35rc\lib\ext\crimson-
1.1.3.jar;C:\j2sdk1.4.1_02\lib\dt.jar;C:\j2sdk1.4.1_02
\lib\tools.jar
  Boot & ext classpath  = C:\j2sdk1.4.1_02
\jre\lib\rt.jar;C:\j2sdk1.4.1_02
\jre\lib\i18n.jar;C:\j2sdk1.4.1_02
\jre\lib\sunrsasign.jar;C:\j2sdk1.4.1_02
\jre\lib\jsse.jar;C:\j2sdk1.4.1_02
\jre\lib\jce.jar;C:\j2sdk1.4.1_02
\jre\lib\charsets.jar;C:\j2sdk1.4.1_02
\jre\classes;C:\j2sdk1.4.1_02
\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.1_02
\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.1_02
\jre\lib\ext\localedata.jar;C:\j2sdk1.4.1_02
\jre\lib\ext\sunjce_provider.jar
  Dynamic classpath     = 
Z:\netbeans35rc\lib\core.jar;Z:\netbeans35rc\lib\openide.ja
r;Z:\netbeans35rc\lib\core-windows.jar
-----------------------------------------------------------
--------------------
[org.netbeans.core.modules #4] Warning: the module 
org.netbeans.modules.projects uses org.openide.deprecated 
which is deprecated: Clients of obsoleted Open APIs are 
encouraged to remove this dependency. See 
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/o
penide/doc-files/upgrade.html#3.5i-sep
Turning on modules:
	org.openide/1 [3.42.1 200304292350]
	org.openide.src [1.0.1 200304292350]
	org.openide.io [1.0.1 200304292350]
	org.openide.execution [1.0.1 200304292350]
	org.openide.compiler [1.0.1 200304292350]
	org.netbeans.core/1 [1.12.1 200304292350]
	org.netbeans.lib.terminalemulator [1.0.1 
200304292350]
	org.netbeans.core.output/1 [1.0.1 200304292350]
	org.netbeans.core.compiler/1 [1.3.1 200304292350]
	org.openide.debugger [1.0.1 200304292350]
	org.netbeans.modules.editor/1 [1.13.1 200304292350]
	org.netbeans.modules.diff/1 [1.6.1 200304292350]
	org.openidex.util/2 [2.6.1 200304292350]
	org.netbeans.modules.vcscore/1 [1.8.1 200304292350]
	org.netbeans.modules.vcs.advanced/1 [1.8.1 
200304292350]
	org.netbeans.modules.settings/1 [1.3.1]
	org.netbeans.modules.javahelp/1 [1.2.1 
200304292350]
	org.netbeans.modules.utilities/1 [1.13.1 
200304292350]
	org.netbeans.modules.servletapi/1 [1.2.1 
200304292350]
	org.netbeans.modules.servletapi23/1 [1.3.1 
200304292350]
	org.netbeans.core.execution/1 [1.2.1 200304292350]
	org.openide.deprecated [1.2.1 200304292350]
	org.netbeans.core.deprecated [1.2.1 200304292350]
	org.netbeans.modules.projects/1 [1.12.2 
200304292350]
	org.netbeans.modules.debugger.core/3 [2.8.1 
200304292350]
	org.netbeans.modules.debugger.jpda/1 [1.14.1 
200304292350]
	org.netbeans.modules.j2eeserver/2 [1.7.1 
200304292350]
	org.netbeans.libs.xalan/1 [1.1.1 2.3.1]
	org.netbeans.libs.jaxp/1 [1.1.1 1.1.2]
	org.netbeans.api.xml/1 [1.1.1 200304292350]
	org.netbeans.modules.jarpackager/2 [1.13.1 
200304292350]
	org.netbeans.modules.schema2beans/1 [1.4.1 
200304292350]
	org.netbeans.modules.classfile/1 [1.7.1 
200304292350]
	org.netbeans.api.java/1 [1.2.1 200304292350]
	org.netbeans.modules.java/1 [1.15.1 200304292350]
	org.netbeans.modules.html/1 [1.11.1 200304292350]
	org.netbeans.modules.web.core/1 [1.16.1 
200304292350]
	org.netbeans.modules.web.jspparser/1 [1.5.1 
200304292350]
	org.netbeans.modules.web.tomcat.tomcat40/1 [1.8.1 
200304292350]
	org.netbeans.modules.httpserver/1 [1.12.1 
200304292350]
	org.netbeans.modules.web.tomcat.tomcat40.autocompil
e/1 [1.5.1 200304292350]
	org.netbeans.core.windows/1 [1.1.1 200304292350]
	org.netbeans.core.ui/1 [1.1.1 200304292350]
	org.netbeans.modules.autoupdate/1 [2.7.1 
200304292350]
	org.netbeans.modules.welcome/1 [1.4.1 200304292350]
	org.netbeans.modules.javadoc/1 [1.10.1 
200304292350]
	org.netbeans.modules.xml.core/2 [0.8.1 XMLr35]
	org.netbeans.modules.text/1 [1.11.1 200304292350]
	org.netbeans.modules.web.tomcat.bundled/1 [1.3.1 
200304292350]
	org.netbeans.modules.web.taglibed/1 [1.11.1 
200304292350]
	org.netbeans.modules.form/2 [1.12.1 200304292350]
	org.netbeans.modules.xml.schema/1 [0.8.1 
200304292350]
	org.netbeans.modules.xml.catalog/2 [0.9.1 XMLr35]
	org.netbeans.modules.web.ie/1 [1.15.1 200304292350]
	org.netbeans.modules.properties/1 [1.10.1 
200304292350]
	org.netbeans.modules.i18n/1 [1.12.1 200304292350]
	org.netbeans.modules.i18n.form/2 [1.11.1 
200304292350]
	org.netbeans.modules.xml.text/2 [0.8.1 XMLr35]
	org.netbeans.modules.web.core.syntax/1 [1.12.1 
200304292350]
	org.netbeans.modules.xml.tax/2 [0.8.1 XMLr35]
	org.netbeans.modules.xml.tools/2 [0.8.1 
200304292350]
	org.netbeans.modules.vcs.profiles.vss/1 [1.2.1 
200304292350]
	org.netbeans.modules.vcs.profiles.cvsprofiles/1 
[1.2.1 200304292350]
	org.netbeans.modules.extbrowser/1 [0.7.1 
200304292350]
	org.netbeans.core.ide/1 [1.2.1 200304292350]
	org.netbeans.modules.db/1 [1.7.1 200304292350]
	org.netbeans.modules.applet/1 [1.12.1 200304292350]
	org.netbeans.modules.group/1 [0.1.1 200304292350]
	org.netbeans.modules.image/1 [1.10.1 200304292350]
	org.netbeans.modules.web.debug/1 [1.8.1 
200304292350]
	org.netbeans.modules.xsl/1 [0.8.1 XMLr35]
	org.netbeans.modules.clazz/1 [1.12.1 200304292350]
	org.netbeans.modules.beans/1 [1.10.1 200304292350]
	org.netbeans.modules.vcs.cmdline.compat/1 [1.2.1 
200304292350]
	org.netbeans.modules.usersguide/1 [1.12.1 
200304292350]
	org.netbeans.modules.css/2 [0.8.1 200304292350]
	org.netbeans.modules.cvsclient/1 [1.7.1 
200304292350]
	org.netbeans.modules.vcs.profiles.pvcs/1 [1.2.1 
200304292350]
	org.netbeans.modules.properties.syntax/1 [1.10.1 
200304292350]
	org.apache.tools.ant.module/2 [2.16.1 200304292350]
	org.netbeans.modules.web.monitor/1 [1.8.1 
200304292350]
Starting system in multiple views (SDI) UI mode.
Comment 1 Jan Becicka 2003-06-13 18:26:41 UTC
Please attach your files as attachments. Your 
comment is really hard to read.
It looks like a deadlock. If you can reproduce 
it, please do a full thread dump (ctrl-break) 
while the IDE is frozen and attach it to this 
issue. Thanks
Comment 2 psuk 2004-06-22 17:52:11 UTC
Closing as WONTFIX.
Internal compilation and Project System was replaced by Ant-based
build system.