A Problem with accessing to a Oracle Database
When i try to obtain data from the a database in an Oracle Server, i cannot obtain the data fromthe server, I made the same using the example with LoanBean using the derby client, but I cannot do the same with Oracle.
The result of this is:
java.lang.NullPointerException
and the code:
if (rightName.equals(user.getText() && (rightPass.equals(pass.getText()))
Please, help me.
# 1
Hi Ivan,
Are you sure that is't Oracle problem? How code you specified is related to Oracle?
Find out which of variables is null. It cab be easily done with operators like
info("rightName="+rightName);
...
before operator you specify.
Another way is to use debugger.
Thanks, Misha
(Creator team)
# 2
By the way, if you need to implement user authorization, there is a sample application for this purposes: Create Project | Samples | JAAS AuthenticationThanks, Misha(Creator team)