Jawed Nazar Ali

Greenhorn
+ Follow
since Feb 10, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jawed Nazar Ali

Yes every thing is standard distribution, First tomcat isn't starting and I checked the catalina.log to view whats the problem.

Any ways I have solve the problem, it was Mcafee antivirus that is blocking the ports and access.
17 years ago
I am trying to run tomcat 5.5 using JDK 1.5 on windows vista but I am getting permission denied : listening failed error?

I have turned off the firewall but the problem still persists?
How to solve this problem?
[ June 19, 2007: Message edited by: Jawed Nazar Ali ]
17 years ago
Hello,

When I am sending mails from my website and I get the following error message:
-------------------------------------------------------------
Could not connect to SMTP host: mail.sdfpak.org,
port: 25;
nested exception is:
java.net.ConnectException: Connection refused
javax.mail.MessagingException: Could not connect to
SMTP host: mail.sdfpak.org, port: 25;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:695)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:168)
at
javax.mail.Service.connect(Service.java:227)
at
javax.mail.Service.connect(Service.java:131)
.
.
.
.
-------------------------------------------------------------

One thing is worth noting that I can send emails from my local machine using same smtp server after authenticating the server. But SMTP connections are refused on the machine where I have hosted the website.

Any ideas how to solve this problem or what is causing it?


regards,
Jawed Nazar Ali
19 years ago
Thanks and I will keep in mind next time. But when I posted the topic on J2EE group, didn't know where to post but i found this group so posted again, in the hope of getting answer quickly.

regards,
Jawed Nazar Ali
19 years ago
When I send email from my local system it gives me following error. I have checked all the email addresses are ok, I couldn't find any reason why this is happening, as this is perfectly running on diiferent systems.

The error is :
javax.mail.NoSuchProviderException: No provider for Address type: rfc822

Is there any issue of security envloved in it i.e. rights or firewall blocking?

Thanks in advance for the help.

regards,
Jawed Ali
19 years ago
When I send email from my local system it gives me following error. I have checked all the email addresses are ok, I couldn't find any reason why this is happening, as this is perfectly running on diiferent systems.

The error is :
javax.mail.NoSuchProviderException: No provider for Address type: rfc822

Is there any issue of security envloved in it i.e. rights or firewall blocking?

Thanks in advance for the help.

regards,
Jawed Ali
Hello,
The share is visible from any system on network, infact the sharing is given to "everyuser".
and Jsp file can locat the share folder and it returns true if share exixts other wise false, but when i try file permission check it went out of expectations.
I have try the java.io.File.canWrite() it returns true in all cases.
Thanks for the help
Jawed Nazar Ali
20 years ago
Hello All,
I am using following code in my my jsp file:
AccessController.checkPermission(new FilePermission("\\h01\dir1", "write"));
first i try it by sharing "\\h01\dir1" as readonly--->it thrown access control exception [thats ok]
but when i try it by sharing "\\h01\dir1" as full control ---> it again thrown access control exception [that should not happen]
i have only used the above line, nothing else [no stuff related to security manger]. Can any one tell me how to remove this issue.
Thank you,
Jawed Nazar Ali
20 years ago
Hello,
I am using JAVA Stored Procedures, to execute the Oracle EXP.exe utility for taking backups.
My JAVA source file is like this:
----------------------------------------------------------
import java.io.*;
import java.util.*;
import java.security.*;

public class Hello
{
public static void printHello ()
{
String prtString="Hello World";
System.out.println(prtString);
}
public static void backup()
{
try
{
System.out.println("Backup Start");
String exp []= {"EXP.exe","HR/HR","GRANTS=Y","TABLES=(EMPLOYEES)"};
Runtime.getRuntime().exec(exp);
System.out.println("Backup End");
}
catch (IOException ioe)
{
System.out.println("IO Exception Caught: " +ioe.getMessage());
}
catch (AccessControlException ace)
{
System.out.println("Access Control Exception Caught: " +ace.getMessage());
}
catch (Exception e)
{
System.out.println("Exception Caught: " +e.getMessage());
}
}
}
----------------------------------------------------------
and i have made two procedure to publish my JAVA Procedures that those are:
----------------------------------------------------------
CREATE OR REPLACE PROCEDURE printHello
AS LANGUAGE JAVA
NAME 'Hello.printHello()';
/
CREATE OR REPLACE PROCEDURE backup
AS LANGUAGE JAVA
NAME 'Hello.backup()';
/
----------------------------------------------------------
I am executing these procedures like this:
----------------------------------------------------------
SQL> call printHello();
Hello World
Call completed.
SQL> call backup();
Backup Start
Access Control Exception Caught: the Permission (java.io.FilePermission <<ALL
FILES>> execute) has not been granted to HR. The PL/SQL to grant this is
dbms_java.grant_permission( 'HR', 'SYS:java.io.FilePermission', '<<ALL FILES>>',
'execute' )
Call completed.
----------------------------------------------------------
I am getting this File Permission exception on executing backup() procedure. I don't know how to solve the problem, i have try the method "dbms_java.grant_permission( 'HR', 'SYS:java.io.FilePermission', '<<ALL FILES>>',
'execute' )" but the issue remains there.
One more thing, I have executed the "backup()" method using JDK, its working but when i try this on ORACLE JVM the exception is thrown.
Waiting for your comments, and if you have other solution please tell me.
Thank you,
Jawed Nazar Ali
20 years ago
Hello,
I am using JAVA Stored Procedures, to execute the Oracle EXP.exe utility for taking backups.
My JAVA source file is like this:
----------------------------------------------------------
import java.io.*;
import java.util.*;
import java.security.*;

public class Hello
{
public static void printHello ()
{
String prtString="Hello World";
System.out.println(prtString);
}
public static void backup()
{
try
{
System.out.println("Backup Start");
String exp []= {"EXP.exe","HR/HR","GRANTS=Y","TABLES=(EMPLOYEES)"};
Runtime.getRuntime().exec(exp);
System.out.println("Backup End");
}
catch (IOException ioe)
{
System.out.println("IO Exception Caught: " +ioe.getMessage());
}
catch (AccessControlException ace)
{
System.out.println("Access Control Exception Caught: " +ace.getMessage());
}
catch (Exception e)
{
System.out.println("Exception Caught: " +e.getMessage());
}
}
}
----------------------------------------------------------
and i have made two procedure to publish my JAVA Procedures that those are:
----------------------------------------------------------
CREATE OR REPLACE PROCEDURE printHello
AS LANGUAGE JAVA
NAME 'Hello.printHello()';
/
CREATE OR REPLACE PROCEDURE backup
AS LANGUAGE JAVA
NAME 'Hello.backup()';
/
----------------------------------------------------------
I am executing these procedures like this:
----------------------------------------------------------
SQL> call printHello();
Hello World
Call completed.
SQL> call backup();
Backup Start
Access Control Exception Caught: the Permission (java.io.FilePermission <<ALL
FILES>> execute) has not been granted to HR. The PL/SQL to grant this is
dbms_java.grant_permission( 'HR', 'SYS:java.io.FilePermission', '<<ALL FILES>>',
'execute' )
Call completed.
----------------------------------------------------------
I am getting this File Permission exception on executing backup() procedure. I don't know how to solve the problem, i have try the method "dbms_java.grant_permission( 'HR', 'SYS:java.io.FilePermission', '<<ALL FILES>>',
'execute' )" but the issue remains there.
One more thing, I have executed the "backup()" method using JDK, its working but when i try this on ORACLE JVM the exception is thrown.
Waiting for your comments, and if you have other solution please tell me.
Thank you,
Jawed Nazar Ali
20 years ago
Hello guys,
I am using Oracle 9i as DB and Oracle 9iAS for web application server. I want to provide Backup and Recovery functionality to the user via web. I don't know any thing in this regard.
Is it possible that we can take backup and recovery from web application?
Is there any alternative for this function.
any other comments will be appreciated.
Thank you,
Jawed Nazar Ali
20 years ago
Hello guys
I am getting following error on Oracle 9iAS [9.0.3.0.0].
[/B]OracleJSP: oracle.jsp.parse.JspParseException: Line # 8, <jsp aram name="classToUse" value="<%=Utility.getParam(request, "classToUse")%>" />
Error: Attribute: classToUse")% is not a valid attribute name[/B]
i am including a page and setting its prameter using include action.


<jsp:include page="../Include/TableHeader.jsp" flush="true">
<jsp aram name="classToUse" value="<%=classToUse%>" />
<jsp aram name="msgToDisplay1" value="<%=msgToDisplay1%>" />
<jsp aram name="msgToDisplay1" value="<%=msgToDisplay2%>" />
<jsp aram name="title" value="Plasmid Search Screen" />
</jsp:include>


help needed quicly.
20 years ago
hi,
I just want to ask that i have created an application using servlet 2.3 and JSP 1.2 specification, but the application is working not working on my Oracle 9iAS [9.0.2.0.0], i think its aversion conflict. any buddy has idea what steps will lead me to run this application successfully.
for quick reference following is the error i am getting:


java.lang.NoSuchMethodError
at com.IWAYS.util.ApplicationListener.attributeRemoved(D:/my Projects/BTMAZ/src/com/IWAYS/util/ApplicationListener.java:63)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpSession.removeAttribute(EvermindHttpSession.java:167)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpSession.setAttribute(EvermindHttpSession.java:91)
at _include._MenuFooter._jspService(_MenuFooter.java:108)
[SRC:/Administrator/../Include/MenuFooter.jsp:87]
at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindPageContext.include(EvermindPageContext.java:287)
at _administrator._Home1._jspService(_Home1.java:60)
[SRC:/Administrator/Home1.jsp:27]
at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)


waiting for quick reply.
thanks in advance
Regards,
Jawed Nazar Ali
20 years ago
Hello guys,
i have a question related to Oracle 9i Application Server, i have deployed an application on both on Tomcat and Oracle 9iAS(<url>http://otn.oracle.com/docs/tech/java/oc4j/htdocs/getstart.htm</url> . Its written on the above webpage that Oracle9iAS is 100% compatible with tomcat. But application is running fine on Tomcat, no errors, not on Oracle it throws IllegalStateException following is the complete error message displayed on the browser:
----------------------------------------------------------------------------
java.lang.IllegalStateException: Response has already been committed
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1771)
at javax.servlet.ServletResponseWrapper.resetBuffer(ServletResponseWrapper.java:77)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:217)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at _administrator._Login._jspService(_Login.java:206)
[SRC:/Administrator/Login.jsp:123]
at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
----------------------------------------------------------------------------
does any one has answer for this? please help me
thanks in advance.
Jawed Ali
20 years ago
Hello guys,
i have a question related to Oracle 9i Application Server, i have deployed an application on both on Tomcat and Oracle 9iAS(<url>http://otn.oracle.com/docs/tech/java/oc4j/htdocs/getstart.htm</url> . Its written on the above webpage that Oracle9iAS is 100% compatible with tomcat. But application is running fine on Tomcat, no errors, not on Oracle it throws IllegalStateException following is the complete error message displayed on the browser:
----------------------------------------------------------------------------
java.lang.IllegalStateException: Response has already been committed
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1771)
at javax.servlet.ServletResponseWrapper.resetBuffer(ServletResponseWrapper.java:77)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:217)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at _administrator._Login._jspService(_Login.java:206)
[SRC:/Administrator/Login.jsp:123]
at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
----------------------------------------------------------------------------
does any one has answer for this? please help me
thanks in advance.
Jawed Ali
20 years ago