Click here to Skip to main content
15,879,326 members
Home / Discussions / Java
   

Java

 
Questionnew to java - NullPointerException error Pin
Suzy McLain7-Jul-13 12:15
Suzy McLain7-Jul-13 12:15 
AnswerRe: new to java - NullPointerException error Pin
Bernhard Hiller7-Jul-13 20:46
Bernhard Hiller7-Jul-13 20:46 
AnswerRe: new to java - NullPointerException error Pin
mali_angel17-Jul-13 20:11
mali_angel17-Jul-13 20:11 
QuestionLogin process Always false..cannot find the error Pin
mali_angel3-Jul-13 18:16
mali_angel3-Jul-13 18:16 
AnswerRe: Login process Always false..cannot find the error Pin
Shubhashish_Mandal3-Jul-13 19:53
professionalShubhashish_Mandal3-Jul-13 19:53 
QuestionLogin process Always false..cannot find the error Pin
mali_angel3-Jul-13 17:22
mali_angel3-Jul-13 17:22 
AnswerRe: Login process Always false..cannot find the error Pin
mali_angel3-Jul-13 17:28
mali_angel3-Jul-13 17:28 
AnswerRe: Login process Always false..cannot find the error Pin
Shubhashish_Mandal3-Jul-13 19:40
professionalShubhashish_Mandal3-Jul-13 19:40 
The problem is here. Your ResultSet return one row. First rs.next() point to the actual row returned. Again in while loop you use rs.next() so your resultSet move to the next row, and which has no row value(first row already read) so it return false and thus skip the while loop.
Java
System.out.println("sssssssssssssssss" + rs.next());
while(rs.next()) {

Remove the sout.
XML
<pre lang="java">
while(rs.next()) {
</pre>

Regards
Shubhashish

GeneralRe: Login process Always false..cannot find the error Pin
mali_angel3-Jul-13 19:51
mali_angel3-Jul-13 19:51 
GeneralRe: Login process Always false..cannot find the error Pin
Shubhashish_Mandal3-Jul-13 19:54
professionalShubhashish_Mandal3-Jul-13 19:54 
QuestionactionPerformed in another class Pin
chdboy1-Jul-13 19:27
chdboy1-Jul-13 19:27 
SuggestionRe: actionPerformed in another class Pin
Richard MacCutchan1-Jul-13 20:46
mveRichard MacCutchan1-Jul-13 20:46 
AnswerRe: actionPerformed in another class Pin
Shubhashish_Mandal3-Jul-13 19:48
professionalShubhashish_Mandal3-Jul-13 19:48 
Questionwhy java in linux has outstanding performance even jvm slow it down? Pin
crunchor28-Jun-13 17:55
crunchor28-Jun-13 17:55 
AnswerRe: why java in linux has outstanding performance even jvm slow it down? Pin
Richard MacCutchan28-Jun-13 23:19
mveRichard MacCutchan28-Jun-13 23:19 
GeneralRe: why java in linux has outstanding performance even jvm slow it down? Pin
crunchor28-Jun-13 23:22
crunchor28-Jun-13 23:22 
AnswerRe: why java in linux has outstanding performance even jvm slow it down? Pin
NotPolitcallyCorrect29-Jun-13 0:51
NotPolitcallyCorrect29-Jun-13 0:51 
QuestionMessage Closed Pin
27-Jun-13 17:11
crunchor27-Jun-13 17:11 
AnswerRe: official "forum" in oracle really screw up Pin
Richard MacCutchan27-Jun-13 21:23
mveRichard MacCutchan27-Jun-13 21:23 
GeneralRe: official "forum" in oracle really screw up Pin
crunchor27-Jun-13 21:40
crunchor27-Jun-13 21:40 
GeneralRe: official "forum" in oracle really screw up Pin
Richard MacCutchan27-Jun-13 22:33
mveRichard MacCutchan27-Jun-13 22:33 
GeneralRe: official "forum" in oracle really screw up Pin
Pete O'Hanlon27-Jun-13 22:59
mvePete O'Hanlon27-Jun-13 22:59 
GeneralRe: official "forum" in oracle really screw up Pin
Richard MacCutchan27-Jun-13 23:40
mveRichard MacCutchan27-Jun-13 23:40 
GeneralRe: official "forum" in oracle really screw up Pin
crunchor27-Jun-13 23:00
crunchor27-Jun-13 23:00 
AnswerRe: official "forum" in oracle really screw up Pin
jschell28-Jun-13 13:48
jschell28-Jun-13 13:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.