N SRao

Greenhorn
+ Follow
since Nov 13, 2001
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by N SRao

Hi
When i am trying to establish connection from applet to servlet using URLConnection..
It is giving me java.io.ioexception Connection failure with 500.
Can anybody let me know why and how to solve this.
Thanks&Regards,
Subba
20 years ago
hi,
When i am running the applet (JRE1.3.1_02 on windows2000 ,windows98) with the cache_option as Plugin it gives me the following exception
java.io.IOException: Connection failure with 407
at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.cachescheme.PluginURLConnection.downLoadFile(Unknown Source)
at sun.plugin.cachescheme.PluginJarCacheHandler.downloadJarFileToCache(Unknown Source)
at sun.plugin.cachescheme.PluginJarCacheHandler.cacheHandler(Unknown Source)
at sun.plugin.cachescheme.PluginJarCacheHandler.getJarFilesPath(Unknown Source)
at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Kindly let me know the solution
Thanks
Subba
20 years ago
Hi,
I created one self signed applet.
But when i run the applet some times it closes the applet (browser itself) and generated and error file. I am giving the details in the file
---filestart----
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f918be
Function name=memmove
Library=C:\winnt\System32\ntdll.dll
Current Java thread:
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.FilePermission$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(Unknown Source)
at java.io.FilePermission.<init>(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at ilog.views.sdm.renderer.IlvStyleSheetRenderer.try(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
---fileend---
so kindly give me the solution so that the applet is not closed.And how can we see that the error file is not generated.
Thanks&Regards
Subba
20 years ago
Hi,
I am running the applet which has menubar,toolbar with lot of images and where user can drag and drop the images on the panel provided in the applet itself. My problem is when ever i refresh the screen by clicking the refresh button on the browser the entire applet will be appear distorted with the toolbar, menubar, images and all the other panels in the applet will appear double and none of the events will be fired.
so kindly let me know what will be the solution
thanks
subba
20 years ago
Hi,
I have to search a word in the file.
After finding the word i have to append a new line after that word. please give me the solution ASAP.
regards,
srao
21 years ago
Hi
I am geting problem with the session in servlet.I am using the jswdk 1.0.1 as webserver. I am chaining 4 servlets one by one and passing the session variable from one servlet to other servlet. But when I tried to access the session variable from the next servlets, getting the session variable as null.
I am using the session objects as follows in all the 4 servlets.
No where I used session invalidate or timeout methods.
HttpSession httpSession = req.getSession(true);
session.getValue(arg);
session.putValue(arg);
her I am sending entire code.

public class MailServlet extends HttpServlet
{
private ObjectInputStream is;
private ObjectInputStream is;
Vector v_fwdMail= new Vector();
Vector v_fileName,v_mailFiles,v_attachFile;
public void service(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
Vector v_messageData;
String name="",comment="";
v_messageData=new Vector();
v_attachFile=new Vector();
Vector v_fwdAttach = new Vector();
try
{
System.out.println("Before Sesion");
HttpSession httpSession = req.getSession(true);

is=new ObjectInputStream(req.getInputStream());
System.out.println("Before Sesion 1");
v_messageData=(Vector)is.readObject();
name=(String)v_messageData.elementAt(0);
System.out.println("Name : "+name);
comment=(String)v_messageData.elementAt(1);
httpSession.putValue("com",comment);
System.out.println(" my comment are here "+comment);
v_attachFile=(Vector)v_messageData.elementAt(2);
//httpSession.putValue("subject",subject);
System.out.println(" Vector size is " + v_attachFile.size());
httpSession.putValue("fwdMailFile",v_fwdAttach);
writeData(res);
}

catch(Exception e)
{
System.out.println("Error in getting Names from request : "+e.getMessage());
}
}
public void writeData(HttpServletResponse res)
{
String url="";
url = "http://192.168.1.122:8080/servlet/ThirdServlet?login=yes";


try
{
//Code for serializing the data from Livelink
ObjectOutputStream os = new ObjectOutputStream(res.getOutputStream());
os.writeObject(url);
os.flush();
os.close();
System.out.println("Object written");
}
catch(Exception e)
{
System.out.println("Error in Serializing: "+e.getMessage());
}

}
}
thanks
hari
21 years ago
Hi I am using the com.oreilly.servlet.MultipartRequest for uploading the file, but I want to set the default file value in HTML, beacuse it is fixed file which I want to upload.How to do this ?I have tried like this but servlet is giving file as "null".
<INPUT TYPE=FILE NAME=file value="E:/mail/NewTest.class">
Please solve my problem.
Can any body help me?;
21 years ago
Dear Sandeep, I tried using this URLencode, but my problem was not solved, please give alternate solution
thanks
Hari
21 years ago
Hi
I am geting problem with the session in servlet.I am using the jswdk 1.0.1 as webserver. I am chaining 4 servlets one by one and passing the session variable from one servlet to other servlet. But when I tried to access the session variable from the next servlets, getting the session variable as null.

I am using the session objects as follows in all the 4 servlets.
No where I used session invalidate or timeout methods.
HttpSession httpSession = req.getSession(true);
session.getValue(arg);
session.putValue(arg);
thanks
srao
21 years ago
Hi
I am geting problem with the session in servlet.I am using the jswdk 1.0.1 as webserver. I am chaining 4 servlets one by one and passing the session variable from one servlet to other servlet. But when I tried to access the session variable from the next servlets, getting the session variable as null.

thanks
srao
21 years ago
Hi,
Can anybody let me know what is procedure for signing the applet.
And kindly let me know the sites wrt to this ASAP.
thanks
srao
21 years ago