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 95436 - NoClassDefFoundError generated when adding Components
Summary: NoClassDefFoundError generated when adding Components
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
: 95488 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-13 15:51 UTC by Lark Fitzgerald
Modified: 2007-12-07 16:41 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 Lark Fitzgerald 2007-02-13 15:51:48 UTC
build 070212_9 / EE5 project
Blocking M7 release

Steps:
1. Add Standard > Formatted Output to designer.

The following exception is thrown:
java.lang.NoClassDefFoundError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at java.lang.Class.newInstance0(Class.java:350)
	at java.lang.Class.newInstance(Class.java:303)
	at java.beans.Introspector.instantiate(Introspector.java:1454)
	at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:433)
	at java.beans.Introspector.<init>(Introspector.java:359)
	at java.beans.Introspector.getBeanInfo(Introspector.java:159)
	at java.beans.Introspector.getBeanInfo(Introspector.java:220)
	at java.beans.Introspector.getBeanInfo(Introspector.java:188)
	at org.netbeans.modules.visualweb.insync.beans.BeansUnit.getBeanInfo
(BeansUnit.java:907)
	at org.netbeans.modules.visualweb.insync.beans.BeansUnit.getBeanInfo
(BeansUnit.java:931)
	at org.netbeans.modules.visualweb.insync.live.LiveUnit.canCreateBean
(LiveUnit.java:500)
	at org.netbeans.modules.visualweb.insync.Util.findParent(Util.java:756)
	at org.netbeans.modules.visualweb.insync.FacesDnDSupport.computeActions
(FacesDnDSupport.java:1853)
	at org.netbeans.modules.visualweb.insync.FacesDnDSupport.importBean
(FacesDnDSupport.java:485)
	at org.netbeans.modules.visualweb.insync.FacesDnDSupport.importData
(FacesDnDSupport.java:319)
	at org.netbeans.modules.visualweb.designer.jsf.DndSupport.importData
(DndSupport.java:102)
	at 
org.netbeans.modules.visualweb.designer.jsf.HtmlDomProviderImpl.importData
(HtmlDomProviderImpl.java:167)
	at org.netbeans.modules.visualweb.designer.WebForm.importData
(WebForm.java:1640)
	at 
org.netbeans.modules.visualweb.designer.DndHandler.doImportDataDelayed
(DndHandler.java:542)
	at org.netbeans.modules.visualweb.designer.DndHandler.importDataDelayed
(DndHandler.java:385)
	at org.netbeans.modules.visualweb.designer.DndHandler.access$000
(DndHandler.java:73)
[catch] at org.netbeans.modules.visualweb.designer.DndHandler$1.run
(DndHandler.java:310)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Lark Fitzgerald 2007-02-13 16:14:31 UTC
Happens for Standard > Component Label also.
Comment 2 Dongmei Cao 2007-02-13 20:04:01 UTC
Corrected the package names and NAME_* and HINT_* keys for the components. See
changes in the following files:

  
visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/resources/F_ActionListener.comp_palette_item
  
visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/resources/F_Converter.comp_palette_item
  
visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/resources/F_LoadBundle.comp_palette_item
  
visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/resources/F_Validator.comp_palette_item
  
visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/resources/F_ValueChangeListener.comp_palette_item
  
visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/resources/F_Verbatim.comp_palette_item
  
visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/resources/Jsp_Directive_Include.comp_palette_item

visualweb/xhtml/src/org/netbeans/modules/visualweb/xhtml/FragmentPanel.java
Comment 3 Dongmei Cao 2007-02-13 20:15:40 UTC
I closed the wrong issue. Reopen it.
Comment 4 Dongmei Cao 2007-02-13 21:16:44 UTC
User: dongmeic
Date: 2007/02/13 13:10:10

Modified:
  
visualweb/jsfsupport/designtime-1.2/src/org/netbeans/modules/visualweb/faces/dt_1_2/component/html/HtmlOutputFormatBeanInfo.java
  
visualweb/jsfsupport/designtime-1.2/src/org/netbeans/modules/visualweb/faces/dt_1_2/component/html/HtmlOutputLabelBeanInfo.java

Log:
 Fix for issue http://www.netbeans.org/issues/show_bug.cgi?id=95436. Fixed to
point the correct resource bundle

File Changes:

Directory:
/visualweb/jsfsupport/designtime-1.2/src/org/netbeans/modules/visualweb/faces/dt_1_2/component/html/
===============================================================================================================

File [changed]: HtmlOutputFormatBeanInfo.java
Url:
http://visualweb.netbeans.org/source/browse/visualweb/jsfsupport/designtime-1.2/src/org/netbeans/modules/visualweb/faces/dt_1_2/component/html/HtmlOutputFormatBeanInfo.java?r1=1.1&r2=1.2
Delta lines:  +1 -1
-------------------
--- HtmlOutputFormatBeanInfo.java	28 Jan 2007 18:52:27 -0000	1.1
+++ HtmlOutputFormatBeanInfo.java	13 Feb 2007 21:10:06 -0000	1.2
@@ -39,7 +39,7 @@
 public class HtmlOutputFormatBeanInfo extends UIOutputBeanInfoBase {
 
     protected static ResourceBundle resources =
-           
ResourceBundle.getBundle("org.netbeansmodules.visualweb.faces.dt_1_2.component.html.Bundle-JSF",
Locale.getDefault(), HtmlOutputFormatBeanInfo.class.getClassLoader());
+           
ResourceBundle.getBundle("org.netbeans.modules.visualweb.faces.dt_1_2.component.html.Bundle-JSF",
Locale.getDefault(), HtmlOutputFormatBeanInfo.class.getClassLoader());
 
     public HtmlOutputFormatBeanInfo() {
         beanClass = javax.faces.component.html.HtmlOutputFormat.class;

File [changed]: HtmlOutputLabelBeanInfo.java
Url:
http://visualweb.netbeans.org/source/browse/visualweb/jsfsupport/designtime-1.2/src/org/netbeans/modules/visualweb/faces/dt_1_2/component/html/HtmlOutputLabelBeanInfo.java?r1=1.1&r2=1.2
Delta lines:  +1 -1
-------------------
--- HtmlOutputLabelBeanInfo.java	28 Jan 2007 18:52:28 -0000	1.1
+++ HtmlOutputLabelBeanInfo.java	13 Feb 2007 21:10:07 -0000	1.2
@@ -40,7 +40,7 @@
 public class HtmlOutputLabelBeanInfo extends UIOutputBeanInfoBase {
 
     protected static ResourceBundle resources =
-           
ResourceBundle.getBundle("org.netbeansmodules.visualweb.faces.dt_1_2.component.html.Bundle-JSF",
Locale.getDefault(), HtmlOutputLabelBeanInfo.class.getClassLoader());
+           
ResourceBundle.getBundle("org.netbeans.modules.visualweb.faces.dt_1_2.component.html.Bundle-JSF",
Locale.getDefault(), HtmlOutputLabelBeanInfo.class.getClassLoader());
 
 
     public HtmlOutputLabelBeanInfo() {
Comment 5 Dongmei Cao 2007-02-14 01:58:29 UTC
*** Issue 95488 has been marked as a duplicate of this issue. ***
Comment 6 Sherry Zhou 2007-02-14 18:04:18 UTC
Verified at build 070214