Bug 254831 Code Location

After more debugging, it is safe to say that the files related to bug 254831 is located in the “org.eclipse.wst.server.ui” package. There are more file related to this bug within this package, especially in the “org.eclipse.wst.server.ui.internal.wizard” package.

As the previous post mentions about the wizard startup, through more debugging, I was able to locate file relating to the wizard itself. These files are located primarily in the “org.eclipse.wst.server.ui.internal.wizard” package and the “org.eclipse.wst.server.ui.wizard” package. After a new wizard is started, it goes in to the “TaskWizard.java” class, which is directly related to the “WizardFragment.java” class. These two classes are called on repeatedly, as there are many iterations in the “TaskWizard” class that links them together. For example:

private void addSubWizardFragments(WizardFragment fragment, List<WizardFragment> list) {
    Iterator iterator = fragment.getChildFragments().iterator();
    while (iterator.hasNext()) {
       WizardFragment child = (WizardFragment) iterator.next();
       list.add(child);
       addSubWizardFragments(child, list);
    }
 }

After running through loops between the TaskWizard andWizardFragment class, it goes to the “TaskWizardPage.java” class, and then to a “TomcatRuntimeWizard.class” file, that displays “source not found”. This occurs in more than one occasion.

Continuing the wizard, after selecting “Download & Install” and selecting “Agree”, it goes to TaskWizard.java class then to the same “TomcatRuntimeWizard.class”.

When the user clicks “Finish” to the agreement to start the install, it then iterates through the “TaskWizard.java” and the “WizardFragment.java” classes. It then goes to the same “TomcatRuntimeWizard.class” file that displays the error.

After completing this and continuing with the wizard, when the user selects the folder to install the Tomcat files to it once again iterates through the “TaskWizard.java” and the “WizardFragment.java” classes, and touches the “TaskWizardPage.java” class. It also displays the “TomcatRuntimeWizard.class” file.

When the user selects “OK” after selecting the folder, the same action as mentioned above occurs. This is where my debugger freezes, which is around the point the error occurs. These findings gives me an understanding of where the files relating to the wizard is located. Hopefully, playing around with these files can help lead to a solution.

Advertisements

One Response to “Bug 254831 Code Location”

  1. Hi, Nabeel.

    You’re making a lot of progress. I hope that you can share your
    experiences with the students next week. Keep going…

    Peter.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: