October 3rd, 2009
From: message #91617 is a reply to message #90953
The problem of Protocol Voilation comes when you try to connect to Oracle and istead of getting response in recordset or execution there is a blockage appears. for example in Oracle if you have setup like changing userid after 90 days or 60 days. What happened is Oracle will start asking you a question that your password is expiring do you want to change it or not, It means Before connecting to Oracle JDBC is blocked by this question and Oracle needs an Answer yes or no before executing your Query. So, You have to either take the user id which never expires or see the setting in Oracle for such kind of things.
Changed/Renewed the user password solved the issue:
Oracle/PLSQL: Change a user’s password in Oracle
alter user user_name identified by new_password;
OR
Change Oracle Database User Password
SQL> password
Changing password for DAVID
Old password:
New password:
Retype new password:
Posted in JAVA, Oracle | No Comments »
October 3rd, 2009
Here are examples of properly formed Oracle database URLs:
Source:
http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/DB_Connections_Connection_Pooling/swg21168464.html
- Oracle THICK driver:
jdbc:oracle:oci8:@sample
Posted in JAVA, Oracle | No Comments »
September 10th, 2009
“…cannot be resolved to a type”
Resolution:
Simply Refresh eclipse
From: http://philip.yurchuk.com/2008/12/03/eclipse-cannot-be-resolved-to-a-type-error/comment-page-1/#comment-915
Posted in Error, JAVA | No Comments »
September 10th, 2009
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files ServletRequestContext.java /epm/src/org/apache/commons/fileupload/servlet
Resolution:
In Tomcat 5 this file is servlet-api.jar in the common/lib dir. You likely need to add this as an external JAR via the Project Properties > Java Build Path > Libraries > Add External… button.
From: http://www.myeclipseide.com/PNphpBB2+file-printview-t-3632-start-0.html
Posted in Error, JAVA | No Comments »
September 3rd, 2009
Initial setup for XAMPP Virtualhost gives this error:
“Access forbidden!
You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. …”
To solve this:
- on \xampp\apache\conf\httpd.conf, modify:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
to:
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Posted in XAMPP | No Comments »
June 11th, 2009
Setup:
Viewing of table from Search
Resolution:
Modified Search Function on ADAO
Posted in Error, JAVA | 1 Comment »
June 9th, 2009
1. Form Bean
<form-bean name=”pinspecialtyForm” type=”com.kp.ep2.admin.form.AdminPinSpecialtyForm” />
2. View
<action path=”/viewAdminPinSpecialty”
input=”tableadminmenu.jsp”
scope=”request”
type=”com.kp.ep2.admin.action.AdminPinSpecialtyAction” >
<forward name=”pinspecialtytablelist” path=”/viewPinSpecialty.jsp”/>
</action>
3. Save
<action path=”/saveAdminPinSpecialty”
attribute=”pinspecialtyForm” name=”pinspecialtyForm” scope=”request”
type=”com.kp.ep2.admin.action.AdminPinSpecialtyAction” >
<forward name=”pinspecialtytablelist” path=”/viewPinSpecialty.jsp”/>
</action>
4. AddNew
<action path=”/addNewAdminPinSpecialty”
attribute=”pinspecialtyForm” name=”pinspecialtyForm” scope=”request”
type=”com.kp.ep2.admin.action.AdminPinSpecialtyAction” >
<forward name=”newpinspecialty” path=”/addNewPinSpecialty.jsp”/>
</action>
5. SaveNew
<action path=”/saveNewAdminPinSpecialty”
attribute=”pinspecialtyForm” name=”pinspecialtyForm” scope=”request”
type=”com.kp.ep2.admin.action.AdminPinSpecialtyAction” >
<forward name=”newpinspecialty” path=”/addNewPinSpecialty.jsp”/>
</action>
Posted in JAVA | No Comments »
May 28th, 2009
// Javascript
function viewAdminForm(requestaction) {
document.admindataform.elements['formaction'].value = requestaction;
document.admindataform.submit();
}
// html table
<tr>
<td><a href=”javascript:viewAdminForm(’ViewFormsTable’);”>Forms Table</a></td>
<td>Forms table administration screen</td>
</tr>
// form element
<form name=”admindataform” action=”viewAdminForm.do” method=”post”>
<input type=”hidden” name=”formaction” value=”"/>
</form>
Posted in JAVA | No Comments »
May 6th, 2009
Struts is not able to find the mapping for /*(.do) in the struts config file.
The “/*(.do)” could not be existing.
***If it seems not to be working–Restart your PC. [2009-06-03]
***If you got this message, 99.9% recommendation that you nned to restart your machine. [2009-06-04]
Posted in JAVA | No Comments »
May 6th, 2009
1. No form-bean definition on XML:
<form-bean name=”…” type=”…Form” />
2. Be sure too that “…Form” exists.
Restart browser.
Restart PC
Posted in JAVA | No Comments »