Am I getting my hotfix right?

Hi,

I assume if I am connected to net and engage download manager and I get a reply that no updates are available I have all downloads I need.

I gather bug 6466674 hotfix fixes code revertion to original state.

Last several months I have to frequently take care of code error due to IDE interference:

My code:

this.getSessionBean1().getDifferListDataProvider().clearObjectList();

this.getSessionBean1().getDifferListDataProvider().commitChanges();

//fill table stuff

try{

int numOfLines2 = 0;

int count2=0;

String theLine2 =null;

FileReader fr4 =new FileReader("C:/CreatorProjects/Agendpairs.prs");

BufferedReader br4 =new BufferedReader(fr4);

while ((theLine2 = br4.readLine()) !=null){

numOfLines2++;

}

fr4.close();// close the file.

br4.close();

FileReader fr =new FileReader("C:/CreatorProjects/Agendpairs.prs");

BufferedReader br =new BufferedReader(fr);

String s="";

while ((theLine2 = br.readLine()) !=null || count2 <= numOfLines2){

// String[][] parts1 = new String[theLine2.split(";").length][];

String[][] parts1 =new String[theLine2.split(";").length][];

for(int i = 0; i < parts1.length; i++)

parts1[i] = theLine2.split(";");

for(int j = 0; j < parts1.length/2; j++){

for(int k = 0; k < parts1.length/2; k++){

Differ addedName =new Differ(parts1[j][k],parts1[j][k+1]);

this.getSessionBean1().getDifferListDataProvider().appendRow(addedName);

this.getSessionBean1().getDifferListDataProvider().commitChanges();

k++;

break;

}

}

count2++;

}

br.close();

fr.close();

}catch(Exception e){

e.printStackTrace();

}

//end table stuff

IDE meddled code:

this.getSessionBean1().getDifferListDataProvider().clearObjectList();

this.getSessionBean1().getDifferListDataProvider().commitChanges();

//fill table stuff

try{

int numOfLines2 = 0;

int count2=0;

String theLine2 =null;

FileReader fr4 =new FileReader("C:/CreatorProjects/Agendpairs.prs");

BufferedReader br4 =new BufferedReader(fr4);

while ((theLine2 = br4.readLine()) !=null){

numOfLines2++;

}

fr4.close();// close the file.

br4.close();

FileReader fr =new FileReader("C:/CreatorProjects/Agendpairs.prs");

BufferedReader br =new BufferedReader(fr);

String s="";

while ((theLine2 = br.readLine()) !=null || count2 <= numOfLines2){

// String[][] parts1 = new String[theLine2.split(";").length][];

String[][] parts1 =new String[theLine2.split(";").length][;for(int i = 0; i < parts1.length; i++)//here is the error!!!!!!!!!!!!!!!!!!!

parts1[i] = theLine2.split(";");

for(int j = 0; j < parts1.length/2; j++){

for(int k = 0; k < parts1.length/2; k++){

Differ addedName =new Differ(parts1[j][k],parts1[j][k+1]);

this.getSessionBean1().getDifferListDataProvider().appendRow(addedName);

this.getSessionBean1().getDifferListDataProvider().commitChanges();

k++;

break;

}

}

count2++;

}

br.close();

fr.close();

}catch(Exception e){

e.printStackTrace();

}

//end table stuff

can it still be identified as a bug?

thanks

dr.am.mohan rao

[6074 byte] By [Madana] at [2007-11-27 4:09:47]
# 1

You're right that the "No updates found" dialog means you already have all available patches and updates. Yes, bug 6466674 has been fixed in the latest hotfix. That bug was for a similar problem, but not exactly the same. You may have found a new bug that has not yet been reported.

Can you import your project and compile it with NetBeans 5.5 including Visual Web Pack 5.5? There are newer bug fixes in Visual Web code that has been migrated to NetBeans. However, some projects can't be migrated, because a few Creator features have not yet been migrated to NetBeans, such as portlet support.

If you can give the steps for reproducing the problem, then we can find out if it's fixed in NetBeans. If not, then I will file a bug. For example only, here are the steps for reproducing bug 6466674, which has been fixed.

- Create a new Project (JSF Web Application)

- Page1 for the new projct should automatically come up

- Drag a text field to the page

- Click on the Java tab

- Close the page and discard all changes

- Open Page1.jsp

- Click on the Java tab

- Type this into the first line of the prerender method: String test;

- Click on the Design tab

- Drag a text field to the page

- The prerender method has now been cleared and all unsaved changes to the .java file have been lost

vaughna at 2007-7-12 9:15:16 > top of Java-index,Development Tools,Java Tools...
# 2

Hi,

Thanks. I could reproduce the bug in 2 simple steps. (1). Put the code in a page under a button control (ofcourse it has a table which is filled by data read from a txt file).(2).Drag a textfield and drop it any where on the page. Click java tab to see the bug has changed the code. (Please let me know whether you have any problem reproducing it).

For next 6 weeks my Creator project is under evaluation for a competition. Size of project is almost 1GB mainly because of 1700 odd html files in resource folder.( I am wondering what kind of problems await me in launching it). Although the bug itself is predictably irritating it is very easy to take care. I use Creator mainly as a front end. Some 20-25 C-engines run on encrypted txt files generating data which is displayed in tables etc. Also, I have to take care of some live bugs in my patients or their EKGs.(It is just our city was shut down for a couple of days because of a mobile induced blast. Some pervert use of technology!). So I hope you understand it is not fruitful for me right now to spend time on NetBeans. I look forward from you (if possible soon) for a hotfix.

Best regards

dr.am.mohan rao

Madana at 2007-7-12 9:15:16 > top of Java-index,Development Tools,Java Tools...
# 3

Thanks for your instructions. I have reproduced the bug in Java Studio Creator 2 Update 1 with all updates installed. I confirmed that the bug has been fixed in NetBeans 5.5.1 and 6.0 technical Preview. There is no plan to produce another release of Creator. Since you have an easy workaround, this bug by itself does not cause the impact needed to justify a hotfix. I regret the inconvenience.

Creator users are encouraged to migrate their applications to NetBeans, since that's where future product developement is happening. NetBeans Visual Web Pack 5.5.1, to be released tomorrow, provides Creator's web app development features, except for portlet support. NetBeans 6.0, to be released late this year, will complete Creator's migration to open source.

vaughna at 2007-7-12 9:15:16 > top of Java-index,Development Tools,Java Tools...
# 4
Hi,Thanks for the exciting news. I look forward to work with NetBeansVWP.Best regards,dr.am.mohan rao
Madana at 2007-7-12 9:15:16 > top of Java-index,Development Tools,Java Tools...
# 5
Hi,Successfully migrated to NetBeans VisualwebPack 5.5.1. The bug in question is not found.thanksdr.am.mohan rao
Madana at 2007-7-12 9:15:16 > top of Java-index,Development Tools,Java Tools...
# 6

Very good! You'll like NB 6.0 even better, when it's released for production late this year.

If you want NetBeans advice, use the nbusers@netbeans.org mailing list. See http://www.netbeans.org/community/index.html to join the list. If you'd rather get a single daily summary than a separate email for every post, then subscribe to the "Digest" format. If you prefer web based forum access, see Nabble at http://www.nabble.com/NetbeansUsers-f2605.html.

vaughna at 2007-7-12 9:15:16 > top of Java-index,Development Tools,Java Tools...