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 155213

Summary: encountering the intermittent update problem while testing the application
Product: obsolete Reporter: runa <runa>
Component: visualwebAssignee: Winston Prakash <wjprakash>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Project Attached
Project Attached

Description runa 2008-12-11 10:59:00 UTC
Entering this for external customer from the Sun Developer Expert Assistance program:

The customer is following the tutorial:
http://www.netbeans.org/kb/60/web/web-jpa.html
http://www.netbeans.org/kb/60/web/web-jpa-part2.html

The customer is encountering the intermittent update problem while testing the application.
That is the users click "update" successfully for five times, and then encounter the Example case below.
The server log gives no errors, notice that if you put a system.out.println in the add and update buttons, that the
message does not print when the update problem occurs - as if the button is never clicked.  Yet the form refresh takes
place.

Variables:
My production app uses JAAS authentication on the front end, that logic could possibly be mixed with the JPA logic.

Example case: user (using IE6, WinXP), types in two change values, clicks "Update".  The screen flickers, refreshes as
if processing the change, but the view table shows only one value actually updated. Querying the physical database
confirms this.  The faces model cleared values from all input fields as they passed validation checks.

Two applications are required to run this project.  The Model App (will send via separate email), and this Web App. 
Used the two JPA tutorials as the template.

Please read ReadmeFirst.txt, part of which says:
Under WorkloadWebApp, I created two subdirectories: dbScripts and
deployment.  
	\dbScripts contains anything database-related, mainly SQL table create scripts.  
	\deployment contains specific deployment files for this application to run.	
	
Database: Oracle 10g

Last week, we discovered that workstations running less than Java 1.6.0_06 had much higher occurrences of the update
problem.  Last week, my IT department upgraded workstations to 1.6.0_11 - a quick post-installation test showed
workstation update errors very much improved.

Before using JPA, the customer was using cachedRowDataProviders, with no update problems.
Comment 1 runa 2008-12-11 10:59:37 UTC
Created attachment 74848 [details]
Project Attached
Comment 2 runa 2008-12-11 11:07:44 UTC
Created attachment 74849 [details]
Project Attached
Comment 3 _ potingwu 2008-12-11 16:56:29 UTC
Is it a component issue? Please reassign if it's not.
Comment 4 thompsonwd40 2009-03-05 14:46:57 UTC
I have opened another Expert Assist support case number: 11348616 for a J2SE project experiencing the same 
intermittent update problem.  This issue is not limited to Visual Web.  It is not limited to JPA - as I experienced 
the same situation using CachedRowSetDataProvider.  This problem has rendered my environment unstable, to me this is a 
P1 priority issue.  I have been a strong Java/NetBeans advocate for the past two years but, either I find a solution 
soon, or I must advise my management to drop Java development in preference for Microsoft.