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 206569

Summary: org.netbeans.modules.portalpack.portlets.genericportlets.node.ddloaders.PortletXMLDataObject is broken
Product: contrib Reporter: Mr_DoanTuan
Component: PortalpackAssignee: Satyaranjan D <satyaranjan>
Status: NEW ---    
Severity: normal CC: alesak, anton0xf, bfenton, jtulach, mklaehn, roti, tdnorb
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 183824
Attachments: stacktrace

Description Mr_DoanTuan 2011-12-20 12:27:47 UTC
This issue was reported manually by mmirilovic.
It already has 22 duplicates 


Build: NetBeans IDE 7.1 RC2 (Build 201111302200)
VM: Java HotSpot(TM) Client VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Windows 7

User Comments:
Mr_DoanTuan: How to fix its? Thanks

Mr_DoanTuan: help me. help me. help me
help me. help me. help me
help me. help me. help me
help me. help me. help me




Stacktrace: 
java.lang.IllegalArgumentException: We expect CloneableEditorSupport in AbstractLookup[IL[org.netbeans.modules.portalpack.portlets.genericportlets.node.ddloaders.PortletXMLDataObject@152f384[C:\Users\DoanTuan\Documents\NetBeansProjects\PortletDangNhap\web\WEB-INF\portlet.xml@38605a38:83f1d7], org.openide.cookies.EditorCookie, org.openide.cookies.OpenCookie, org.openide.cookies.CloseCookie, org.openide.cookies.PrintCookie, IL[org.openide.loaders.XMLDataObject$2@12b9a0d, IL[C:\Users\DoanTuan\Documents\NetBeansProjects\PortletDangNhap\web\WEB-INF\portlet.xml@38605a38:83f1d7]
   at org.netbeans.core.spi.multiview.text.MultiViewEditorElement.<init>(MultiViewEditorElement.java:97)
   at sun.reflect.GeneratedConstructorAccessor52.newInstance(GeneratedConstructorAccessor52.java:0)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
   at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.createElement(MultiViewFactory.java:431)
   at org.netbeans.core.multiview.MultiViewModel.getElementForDescription(MultiViewModel.java:209)
Comment 1 Mr_DoanTuan 2011-12-20 12:27:49 UTC
Created attachment 114351 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2012-01-04 15:55:49 UTC
*** Bug 206901 has been marked as a duplicate of this bug. ***
Comment 3 Jaroslav Tulach 2012-01-04 16:18:28 UTC
lkp.lookup(CloneableEditorSupport.class) returns null. But maybe the actual lookup is wrongly written and one could first ask for

lkp.lookup(EditorCookie.class)

and then the query for CloneableEditorSupport would succeed. Anyway this bug should probabaly be evaluated by org.netbeans.modules.portalpack.portlets.genericportlets.node.ddloaders.PortletXMLDataObject
Comment 4 Jaroslav Tulach 2012-01-26 13:27:03 UTC
Looks like the portlet support is broken.
Comment 5 Stanislav Aubrecht 2012-02-02 08:50:37 UTC
this is not a window system bug, the owner of portlet support (whoever that is) must take care of this.