Hi everybody,

I have a connection in my database, in this I have an interface which checks if a record has already been inserted in a database or not,

when I implement this in a result set, it throws an illegalState Exception, I also have another result set doing a similar task but it works fine.

Can someone advise me on what the problem is?

Thanks

Uhm, show us your code, maybe? Or at least give a much more detailed description than "implemented in a resultset".

I have a resultset

if(rs.next){

//some code

}

and this is in a try catch statement, and when I run the code, and try to enter any username to sign up in the database, I get a server error, saying illegalstateException

And that still tells me next to nothing. Lets see some of your actual code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.