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.

[423 byte] By [ivan_cervantes] at [2007-11-26 8:43:49]
# 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)

Mikhail_Matveev at 2007-7-6 22:25:23 > top of Java-index,Development Tools,Java Tools...
# 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)
Mikhail_Matveev at 2007-7-6 22:25:23 > top of Java-index,Development Tools,Java Tools...