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 49067 - Runtime Exception: Must insert new content into body element
Summary: Runtime Exception: Must insert new content into body element
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows 3.1/NT
: P1 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
: 48860 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-15 12:17 UTC by Jan Chalupa
Modified: 2006-03-24 09:53 UTC (History)
1 user (show)

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 Jan Chalupa 2004-09-15 12:17:29 UTC
[pre beta 2 build, continuous build of 2004-09-15
8:30 GMT]

I started with a clean userdir and clicked on New
Project in the Welcome Screen. The New Project
wizard came up. I started navigating through the
Project Categories nodes and get the following
exception:

ava.lang.RuntimeException: Must insert new content
into body element-
	at
javax.swing.text.html.HTMLDocument$HTMLReader.generateEndsSpecsForMidInsert(HTMLDocument.java:1933)
	at
javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1909)
	at
javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1783)
	at
javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1778)
	at
javax.swing.text.html.HTMLDocument.getReader(HTMLDocument.java:127)
	at
javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:228)
	at javax.swing.JEditorPane.read(JEditorPane.java:519)
[catch] at
javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:566)

I was not able to reproduce it immediately, but
after restarting with a clean userdir, it occurred
again.

P1. This must be fixed for Beta 2. The Project
wizard is one of the very first things a new user
will see in the IDE.
Comment 1 Jan Chalupa 2004-09-15 13:56:14 UTC
Re-assigning to phrebejk.
Comment 2 Petr Hrebejk 2004-09-15 15:00:12 UTC
Made the reading of templates descriptons synchronous. In trunk and
beta2 branch

Checking in src/org/netbeans/modules/project/ui/TemplatesPanelGUI.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/TemplatesPanelGUI.java,v
 <--  TemplatesPanelGUI.java
new revision: 1.31; previous revision: 1.30
done
Comment 3 Jiri Rechtacek 2004-09-15 15:27:25 UTC
*** Issue 48860 has been marked as a duplicate of this issue. ***
Comment 4 Jan Chalupa 2004-10-15 21:37:15 UTC
Verified.