Patrick Hayden

Greenhorn
+ Follow
since Jan 06, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Patrick Hayden

The answer is in the first line of the stack trace:

genderText is declared but is never initialized. It is referenced in the ActionListener (text5 = genderText.getText()).

At runtime genderText has the value null so this is evaluated as null.getText().

Hence the null pointer exception.

As a separate issue it is recommended that you explicitly start a Swing application in the Event Dispatch Thread:

4 years ago
Use split() twice. First split on ',' then split the resulting name=value pairs on '=' and remove the remaining whitespace.
4 years ago
Replying to an old issue but might be helpful to somebody. I came across similiar issues when using QTP. Try clearing the environment variable JAVA_TOOL_OPTIONS if it is set and see if this fixes the problem. Note that you will need to set it back to the old value when testing with QTP.

This would also explain why the problem occurs on one server and not the other. One might be used for QTP regression testing.

The com.mercury.ftjadin in the stacktrace is a hint as to the cause.
4 years ago