Vishal Methi

Ranch Hand
+ Follow
since Jan 14, 2004
Merit badge: grant badges
For More
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 Vishal Methi

Hi ,
I have to remove files from SSH Server. I am using J2SSH.

I have written method to remove two files/directory from server. First directory is getting deleted successfully.
But deleting the 2nd directory i m getting the exception.

Below is my code and exception both.

Code :
public void removeFilesFromFTPServer (SftpClient sftp)
{
try {
sftp.rm("FBCHKBFHLLJEPIIMNJCP1231233677791"); // Running successfully
sftp.rm("MDCMAOCMAEBABMBHPHPL1231233677791"); // Here i m getting exception
}catch(IOException ioe)
{
ioe.printStackTrace();
}

Exception :

java.io.IOException: Failure
at com.sshtools.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(Unknown Source)
at com.sshtools.j2ssh.sftp.SftpSubsystemClient.removeDirectory(Unknown Source)
at com.sshtools.j2ssh.SftpClient.rm(Unknown Source)

Could you please help me what may be the reason.

Thanks in advance.
Thanks man,
From where i can get the ssh api. could you please provide me any more help if you can put some more light over here...

thanks a lot for your support.
15 years ago
Hi,
I am new to SSH Server, could anyone help me how we can use SSH Server,
I have to transfer a file from one location to another location. how i can achieve this. from where i can get the SSH server java api. I have to implement this in java.
Please let me know if you can help me a bit also.

Thanks,
Vishal Methi
15 years ago
Sorry, i didnt get you. can you please clearify me how to reslove this problem.
Hi Friends,
I m new to java and xml, hope that you can help me out to reslove my problem. I have an application which is running perfectly on java 1.4 and throwing an exception when i m using java 1.5 which i have (an exception) put at the bottom of this msg.
I have found out when i m getting this exception.
Below is my method where i m getting an exception and
I m getting exception after this line
"transformer.transform(source, result);" i.e last line of this method.

public void transform(String text,
StreamSource stylesource,
StreamResult result)
{
Parser parser = new Parser();
Document document = parser.parse(text);

// Use a Transformer for output
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(stylesource);

DOMSource source = new DOMSource(document);


transformer.transform(source, result);

}


Could you please help me out.. if you have any idea about it..

and this is the exception which i m getting :

java.lang.StackOverflowError
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:366)

at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:383)

at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
ute(ToHTMLStream.java:950)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
utes(ToHTMLStream.java:1628)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.closeStartTag
(ToHTMLStream.java:1654)
at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStre
am.java:1382)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(To
HTMLStream.java:1433)
at com.sun.org.apache.xml.internal.utils.FastStringBuffer.sendSAXcharact
ers(FastStringBuffer.java:986)
at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.dispatchChar
actersEvents(SAX2DTM2.java:3086)
at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.characters(SAXImp
l.java:1554)
at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.characters(DOM
Adapter.java:320)
at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.characters(Multi
DOM.java:533)
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$2()
at GregorSamsa.applyTemplates()
[ February 08, 2007: Message edited by: Paul Clapham ]
please help me out...

Hi Friends,
I m new to java and xml, hope that you can help me out to reslove my problem. I have an application which is running perfectly on java 1.4 and throwing an exception when i m using java 1.5 which i have (an exception) put at the bottom of this msg.
I have found out when i m getting this exception.
Below is my method where i m getting an exception and
I m getting exception after this line
"transformer.transform(source, result);" i.e last line of this method.

public void transform(String text,
StreamSource stylesource,
StreamResult result)
{
Parser parser = new Parser();
Document document = parser.parse(text);

// Use a Transformer for output
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(stylesource);

DOMSource source = new DOMSource(document);


transformer.transform(source, result);

}


Could you please help me out.. if you have any idea about it..

and this is the exception which i m getting :

java.lang.StackOverflowError
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:366)

at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:383)

at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
ute(ToHTMLStream.java:950)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
utes(ToHTMLStream.java:1628)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.closeStartTag
(ToHTMLStream.java:1654)
at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStre
am.java:1382)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(To
HTMLStream.java:1433)
at com.sun.org.apache.xml.internal.utils.FastStringBuffer.sendSAXcharact
ers(FastStringBuffer.java:986)
at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.dispatchChar
actersEvents(SAX2DTM2.java:3086)
at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.characters(SAXImp
l.java:1554)
at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.characters(DOM
Adapter.java:320)
at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.characters(Multi
DOM.java:533)
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$2()
at GregorSamsa.applyTemplates()
Hi Friends,
I m new to java and xml, hope that you can help me out to reslove my problem. I have an application which is running perfectly on java 1.4 and throwing an exception when i m using java 1.5 which i have (an exception) put at the bottom of this msg.
I have found out when i m getting this exception.
Below is my method where i m getting an exception and
I m getting exception after this line
"transformer.transform(source, result);" i.e last line of this method.

public void transform(String text,
StreamSource stylesource,
StreamResult result)
{
Parser parser = new Parser();
Document document = parser.parse(text);

// Use a Transformer for output
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(stylesource);

DOMSource source = new DOMSource(document);


transformer.transform(source, result);

}


Could you please help me out.. if you have any idea about it..

and this is the exception which i m getting :

java.lang.StackOverflowError
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:366)

at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:383)

at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
ute(ToHTMLStream.java:950)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
utes(ToHTMLStream.java:1628)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.closeStartTag
(ToHTMLStream.java:1654)
at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStre
am.java:1382)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(To
HTMLStream.java:1433)
at com.sun.org.apache.xml.internal.utils.FastStringBuffer.sendSAXcharact
ers(FastStringBuffer.java:986)
at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.dispatchChar
actersEvents(SAX2DTM2.java:3086)
at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.characters(SAXImp
l.java:1554)
at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.characters(DOM
Adapter.java:320)
at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.characters(Multi
DOM.java:533)
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$2()
at GregorSamsa.applyTemplates()
Hi Friends,
I m new to java and xml, hope that you can help me out to reslove my problem. I have an application which is running perfectly on java 1.4 and throwing an exception when i m using java 1.5 which i have (an exception) put at the bottom of this msg.
I have found out when i m getting this exception.
Below is my method where i m getting an exception and
I m getting exception after this line
"transformer.transform(source, result);" i.e last line of this method.

public void transform(String text,
StreamSource stylesource,
StreamResult result)
{
Parser parser = new Parser();
Document document = parser.parse(text);

// Use a Transformer for output
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(stylesource);

DOMSource source = new DOMSource(document);


transformer.transform(source, result);

}


Could you please help me out.. if you have any idea about it..

and this is the exception which i m getting :

java.lang.StackOverflowError
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:366)

at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:383)

at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
ute(ToHTMLStream.java:950)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
utes(ToHTMLStream.java:1628)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.closeStartTag
(ToHTMLStream.java:1654)
at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStre
am.java:1382)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(To
HTMLStream.java:1433)
at com.sun.org.apache.xml.internal.utils.FastStringBuffer.sendSAXcharact
ers(FastStringBuffer.java:986)
at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.dispatchChar
actersEvents(SAX2DTM2.java:3086)
at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.characters(SAXImp
l.java:1554)
at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.characters(DOM
Adapter.java:320)
at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.characters(Multi
DOM.java:533)
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$2()
at GregorSamsa.applyTemplates()
17 years ago
Hi Friends,
I m new to java and xml, hope that you can help me out to reslove my problem. I have an application which is running perfectly on java 1.4 and throwing an exception when i m using java 1.5 which i have (an exception) put at the bottom of this msg.
I have found out when i m getting this exception.
Below is my method where i m getting an exception and
I m getting exception after this line
"transformer.transform(source, result);" i.e last line of this method.

public void transform(String text,
StreamSource stylesource,
StreamResult result)
{
Parser parser = new Parser();
Document document = parser.parse(text);

// Use a Transformer for output
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(stylesource);

DOMSource source = new DOMSource(document);


transformer.transform(source, result);

}


Could you please help me out.. if you have any idea about it..

and this is the exception which i m getting :

java.lang.StackOverflowError
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:366)

at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:383)

at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
ute(ToHTMLStream.java:950)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
utes(ToHTMLStream.java:1628)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.closeStartTag
(ToHTMLStream.java:1654)
at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStre
am.java:1382)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(To
HTMLStream.java:1433)
at com.sun.org.apache.xml.internal.utils.FastStringBuffer.sendSAXcharact
ers(FastStringBuffer.java:986)
at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.dispatchChar
actersEvents(SAX2DTM2.java:3086)
at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.characters(SAXImp
l.java:1554)
at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.characters(DOM
Adapter.java:320)
at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.characters(Multi
DOM.java:533)
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$2()
at GregorSamsa.applyTemplates()
17 years ago
Thanx man...
Now its working properly...
18 years ago
Thanx a lot very much...
Now its working .. but now i have one problem...
can u plz tell me how to write the actionperformed event for button.
18 years ago
hi frnds,
I m new in swing programming, frnds i wrote a sample progam which is shown below.. it shows me the frame but inside that i m not able to view the two jtextfileds and the button...
its two imp for me now.. could u plz help the and tell me where i m wrong...

plz reply me asap...
public class CopyFilesUI extends JFrame{
private JTextField sourceFile = new JTextField ("Source file name");
private JTextField destinationFile = new JTextField ("Destination file name");
private JButton button = new JButton ("Backup");

public CopyFilesUI ()
{
this.getContentPane().setLayout(null);
sourceFile.setBounds( 50 , 50 , 50 , 50);
sourceFile.setVisible(true);
destinationFile.setBounds(150 , 150 , 50 , 50);
sourceFile.setVisible(true);
button.setBounds(250 , 250 , 250 , 250);
sourceFile.setVisible(true);

this.setTitle("Copy files");
this.setVisible(true);
this.setBounds(0 , 0 , 700 , 700);
this.set
}


public static void main(String[] args) {
CopyFilesUI copyFiles = new CopyFilesUI ();
copyFiles.setEnabled(true);


}
}


thanx for ur co-opearation..
18 years ago
Hi ,
I have one simple problem in JTable . I want to select a row and for that i m using ListSelectionModel and seleting the SINGLEROWSELECTION but still its not working .. can u plz tell me the reason what it would be ..


Thanx and Regards
18 years ago
Hey Thanx yaar...
Could u plz one example of it .. It'll be very much helpful for me ..

Thanx again

Vishal
18 years ago
Hi frnds..
Hey i just need one small help. Could u please tell me that which collection object i have to use so that while retriving i can get the data in sorted order and just let me know suppose while retriving the data when it gives in sorted data is it dependent on the key of the map. I need the collection object in MAP interface.
18 years ago