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 118993 - Table component jsp not updated after changing binding
Summary: Table component jsp not updated after changing binding
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 05:11 UTC by John Baker
Modified: 2007-10-18 15:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (156.80 KB, text/plain)
2007-10-16 05:44 UTC, John Baker
Details
log (80.45 KB, text/plain)
2007-10-16 11:48 UTC, _ alexpetrov
Details
server log (5.57 KB, text/plain)
2007-10-16 11:48 UTC, _ alexpetrov
Details
screenshot (130.03 KB, image/jpeg)
2007-10-16 11:49 UTC, _ alexpetrov
Details
screenshot (33.57 KB, image/jpeg)
2007-10-16 11:50 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2007-10-16 05:11:20 UTC
May be related to 118646

jsp source is not updated for Table component bound to Trip table after adding a TripType table through Query Editor

To reproduce:

1) DnD Table component
2) DnD TRIP table and bind to the Table 
3) Open the Query Editor by double-clicking on the rowset
4) Add a TRAVEL.TRIPTYPE table and remove all columns except for name
5) Switch back to the Designer
6) Execute

Result:

Browser Page shows an unbound Table component 
and Glassfish has the following exceptions:

StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: javax.faces.FacesException:
javax.el.PropertyNotFoundException: The class 'webapplication550.Page1' does not have the property 'tableColumn1'.
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:594)
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:325)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
        at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
        at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:361)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: javax.faces.FacesException: org.apache.jasper.JasperException: javax.faces.FacesException:
javax.el.PropertyNotFoundException: The class 'webapplication550.Page1' does not have the property 'tableColumn1'.
        at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
        at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320)
        ... 40 more
Caused by: org.apache.jasper.JasperException: javax.faces.FacesException: javax.el.PropertyNotFoundException: The class
'webapplication550.Page1' does not have the property 'tableColumn1'.
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:402)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
        at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:542)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:366)
        at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
        ... 43 more
Caused by: javax.faces.FacesException: javax.el.PropertyNotFoundException: The class 'webapplication550.Page1' does not
have the property 'tableColumn1'.
        at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:240)
        at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:211)
        at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476)
        at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660)
        at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1126)
        at org.apache.jsp.Page1_jsp._jspx_meth_webuijsf_tableColumn_0(Page1_jsp.java from :495)
        at org.apache.jsp.Page1_jsp._jspx_meth_webuijsf_tableRowGroup_0(Page1_jsp.java from :458)
        at org.apache.jsp.Page1_jsp._jspx_meth_webuijsf_table_0(Page1_jsp.java from :416)
        at org.apache.jsp.Page1_jsp._jspx_meth_webuijsf_form_0(Page1_jsp.java from :347)
        at org.apache.jsp.Page1_jsp._jspx_meth_webuijsf_body_0(Page1_jsp.java from :306)
        at org.apache.jsp.Page1_jsp._jspx_meth_webuijsf_html_0(Page1_jsp.java from :203)
        at org.apache.jsp.Page1_jsp._jspx_meth_webuijsf_page_0(Page1_jsp.java from :162)
        at org.apache.jsp.Page1_jsp._jspx_meth_f_view_0(Page1_jsp.java from :123)
        at org.apache.jsp.Page1_jsp._jspService(Page1_jsp.java from :89)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
        ... 58 more
Caused by: javax.el.PropertyNotFoundException: The class 'webapplication550.Page1' does not have the property
'tableColumn1'.
        at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:547)
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:249)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
        at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
        at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:229)
        ... 74 more
deployed with moduleid = WebApplication551
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/WebApplication551'
Comment 1 John Baker 2007-10-16 05:12:34 UTC
This may be related to 118646, but not certain

Using todays trunk build
Comment 2 John Baker 2007-10-16 05:44:02 UTC
Created attachment 50998 [details]
log file
Comment 3 _ alexpetrov 2007-10-16 11:47:07 UTC
I was able to reproduce it on:
Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710160000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86

The file "messages.log" contains IllegalStateException exceptions - see the attachment.
(Used JSF component DataTable is not Woodstock component)

Glassfish's log contains (see the attached file)
"com.sun.rave.web.ui.appbase.ApplicationException: The cachedRowSet property is null".

After project running a web-browser will show empty web-page.

When the step #6 of the scenario is performed:
- table view on Designer is changed: the table cells contain only wrong value "Text" instead of values "123", "abc",..
  (see the attached screenshot)
- table layout is changed:  (see the attached screenshot)

I think this bug is caused by http://www.netbeans.org/issues/show_bug.cgi?id=118646
Comment 4 _ alexpetrov 2007-10-16 11:48:06 UTC
Created attachment 51016 [details]
log
Comment 5 _ alexpetrov 2007-10-16 11:48:47 UTC
Created attachment 51017 [details]
server log
Comment 6 _ alexpetrov 2007-10-16 11:49:21 UTC
Created attachment 51019 [details]
screenshot
Comment 7 _ alexpetrov 2007-10-16 11:50:03 UTC
Created attachment 51020 [details]
screenshot
Comment 8 _ alexpetrov 2007-10-16 15:03:51 UTC
Verified when http://www.netbeans.org/issues/show_bug.cgi?id=118646 was fixed.
Not reproduced on the latest trunk build (http://deadlock.netbeans.org/hudson/job/trunk/3985/):
Product Version: NetBeans IDE Dev (Build 071016)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86
Comment 9 _ alexpetrov 2007-10-16 15:04:32 UTC
Verified when http://www.netbeans.org/issues/show_bug.cgi?id=118646 was fixed.
Not reproduced on the latest trunk build (http://deadlock.netbeans.org/hudson/job/trunk/3985/):
Product Version: NetBeans IDE Dev (Build 071016)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86
Comment 10 Winston Prakash 2007-10-16 15:18:38 UTC
This was a problem in beta2 branch also. Was it fixed there?
Comment 11 Petr Blaha 2007-10-16 15:24:13 UTC
The bug was resolved by fix of issue #118646 that is fixed in trunk. Mila will merge the fix in beta2 branch when there
will be no objections on review mailing list. I guess, the fix would be in beta2 tomorrow.
Comment 12 _ alexpetrov 2007-10-18 15:06:59 UTC
Verified, not reproduced on:
Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710172300)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86