Skip to main content


Showing posts from June, 2008

Attempted a bean operation on a null object

We might get this error when we try to use a bean somewhere in our JSP! In such a case you can:
You could have such error when using jsp:setProperty or jsp:getProperty on a bean which does not exist. For example, if the "name" attribute does not match the "id" attribute of

Thus check the bean name and id you are using in different places...may be you are not using the same name everywhere!

How to connect to an oracle server on your network

I have an oracle server on my network! I have the client installed on my machine! If I want to connect to the server then I will have to do the following:
Copy the TNS file from Girish system (He has the server) to your systemTNS file is located in the following pathsourcedrive:\oracle\ora92\network\adminNow connect using Oracle SQL*Plus client using the login credentialsNow you can also find the hostname to be used using the TNS file:RDBDB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = PAR1RDBDB)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = RDB) ))If the above pasted code is the content of the TNS file then you can connect to the sever using the hostname RDBDB!

Not able to add a servlet to the project in Eclipse

When you are not able to add a servlet to the current project in eclipse:
Check that when you want to add the servlet, on the Create Servlet window, you have the folder field populated automatically! If its not then the most possible reason is that somehow your JRE was deleted from your classpath!
Just add it using
1. Right Click Project you are working on from Package Explorer-
2. Go to Properties-
3. Go to Java Build Path from the right tree structure-
4. Go to Libraries Tab-
5. Choose Add Library Button-
6. Select JRE System Library-
7. Hit Next, the Radio button will prompt the Workspace default JRE, and let it be that way-
8. Hit Finish

Done now you can add your servlet!