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 115685

Summary: Created project is red badged: getBean(String) cannot be applied to ()
Product: obsolete Reporter: Roman Mostyka <romanmostyka>
Component: visualwebAssignee: _ sandipchitale <sandipchitale>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: potingwu
Priority: P1 Keywords: REGRESSION
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Roman Mostyka 2007-09-17 11:09:40 UTC
1. Create web application with "Visual Web JSF" framework.

Result: Web Application root node and "Source Packages" node are red badged. Expand "Source Packages" node.
<package_name> node is also red badged. Expand it. "Page1.java", "RequestBean1.java" and "SessionBean1.java" are all red
badged.
Open Page1.java. Methods which returns corresponding bean instance is red badged. For example:
    protected SessionBean1 getSessionBean1() {
        return (SessionBean1) getBean();
    }
And there is error: 
"getBean(java.lang.String) in com.sun.rave.web.ui.appbase.FacesBean cannot be applied to ()

incovertible types
found: getBean
required: <package_name>.SessionBean1".
Comment 1 Roman Mostyka 2007-09-17 11:23:05 UTC

*** This issue has been marked as a duplicate of 115675 ***
Comment 2 Roman Mostyka 2007-09-17 11:23:13 UTC
*** Issue 115675 has been marked as a duplicate of this issue. ***
Comment 3 Roman Mostyka 2007-09-17 11:26:06 UTC
Was marked as duplicate by mistake because of proxy problem.
Comment 4 Dan Kolar 2007-09-17 15:58:46 UTC
*** Issue 115686 has been marked as a duplicate of this issue. ***
Comment 5 _ potingwu 2007-09-17 17:01:43 UTC
'getBean()' methods are generated by insync. They are not defined in the templates used when project been created.
Comment 6 Lark Fitzgerald 2007-09-17 17:03:16 UTC
I can reproduce this with Zip build:
Product Version: NetBeans IDE Dev (Build 200709171226) 
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 7 _ potingwu 2007-09-17 17:14:29 UTC
> 'getBean()' methods are generated by insync. They are not defined in the templates used when project been created.

I thought I reassigned it to insync!
Comment 8 _ sandipchitale 2007-09-17 17:28:02 UTC
The underlying cause of this same as the issue # 115673 which is really a java/source issue. We are preparing info for
the java/source (Retouche) developers before assigning to them.

*** This issue has been marked as a duplicate of 115673 ***