yathish Gatty

Ranch Hand
+ Follow
since Oct 05, 2004
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 yathish Gatty

Hi,
How do we wrap a text if the lenght of text is large.

I have used <tr><td>text</td></tr>.

Is there a way to wrap this text if the lenght is big.

With Regards,

Yathish
hi,
Regular expression locks up.And it fails to terminate and does not throw any error.Is there some means by which I can exit out when the java util hangs.

With regards,

Yathish
14 years ago
HI,

When I try to match a special character with the regular expression it hangs.

The code for regular expression matching is:
Pattern pattern=Pattern.compile("abc");
Matcher match=pattern.matcher("--------------");
if(match.find()){//it hangs here
}

With regards,

Yathish
14 years ago
Hi,
If I want to read a file through webservice how would I do it?
The senario is I have to upload a file using ASP(client) and read the file and do some functionalities using java.
Please suggest what would be the way to do so.

With regards,
Yathish
14 years ago
Hi,
This is able to create .wsdl and related class files from .wsdl file.
But when I try to access this webservice through ASP.net it is not able to call the related webservice.
It throws an error stating "Unable to import binding 'fileobjectSoapBinding'
from namespace 'urn:fileobject".Unable to import operation 'getFileObject'.
Schema with targetNamespace='http://net.jboss.org/jmx' has invalid syntax.
SimpleType content is missing.

with regards,

Yathish
14 years ago
Hi,
I am able to run webservices passing data types like int,string.But when I pass data type like file object it is not able to create .wsdl file.It throws following warning.

"The class java.io.File is defined in a java or javax package and cannot be converted into an xml schema type. An xml schema anyType will be used to define this class in the wsdl file."

Is there a way so that we can create a .wsdl file so that it takes file objects as a parameter to webserice.

with regards,

Yathish
14 years ago
Hi,
I want to run java code in same server as ASP(client code) is running i.e IIS server.
Could you suggest how to create webservice to run in IIS.

Thanks,

Yathish
14 years ago
Hi,

How to integrate java code with ASP? If this is done using webservices.Then is creating webservice in IIS server is similiar to crearing webservice in jboss?

with regards,
Yathish
14 years ago
Hi all,

I am able to extract the timezone from the sytem when the system has the operating system WINDOWS XP, the timezone contains places with time but i am not able to get the timezone that will contain places with time when the system has WINDOWS 2000.

suppose i have set my system to Windows XP and I have set my system timezone to [(GMT+01:00)Amsterdam,Berlin] and by using the code i am getting the string as "Europe/Berlin". But if i set my system to Windows 2000 and set my system timezone to [(GMT+01:00)Amsterdam,Berlin] and by using the code i am getting only [(GMT+01:00)] but i need the place .
Please send me the code to obtain the places in WINDOWS 2000.

I am sending my code below:


TimeZone str=cal.getTimeZone();
localZonFromSyst=str.getID();
System.out.println(" the place is :" localZonFromSyst);


With Regards
Yathish
14 years ago
Hi,

The code does not display any error codes.

I am waiting for one process to complete and then continuing with the next.i.e execing one at a time.

The change in cpu utilization is sudden.
As far as system memory utilization is concerned there are no issues.It remains constant throughout.

The .exe file i am using is filter.exe of Microsoftword 2000.

Thank you,

with regards,

Yathish
14 years ago
Hi,
I tried to handle the Standard error and standard inputstream by using the following code but this still hangs.Just verify whether this was the solution you specified if not please help me out in this.

The code I have implemented is as follows:



Please help me out in this .

Thank you.

From ,

Yathish

[added code tags to preserve formatting - Ilja]
[ April 26, 2005: Message edited by: Ilja Preuss ]
14 years ago
Thanks for the reply,

I have done as you said

Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(cmd);
int ret=proc.waitFor();
proc.destroy();

But this still it hangs.

Thank you.
14 years ago
Hi,
I am running an .exe file using :

Runtime rt = Runtime.getRuntime();

Process proc = rt.exec(cmd);

Where cmd is String to execute .exe file.

When I run this .exe file continuosly.Say after executing 1000 times it hangs.

When I checked in windows task manager it showed .exe 100% CPU utilised.Then I had to manually release the resource.

How can I avoid this from happening?

Is there a way by which I can programatically release the 100% CPU utilised resource.

Thank You,

With regards,

Yathish
14 years ago
Hi,

I am using htmlparser1.5 .Using lexer i am able to get details about only one node.How to iterate through nodes?

Thank you from,

Yathish
15 years ago
Hi,

I am using SAX parser to parse the XML file and read the content.It works fine.But if it is large XML file about 1MB it takes 20-25 miniutes to parse it.The code that reads the data is given below.Can someone please suggest a solution to this.

String data="";
public void characters(char[] ch, int start, int length)
throws SAXException {

if (thisElement == "data") {

data = data+new String(ch, start, length);
System.out.println("Data :"+data);


}

}

Thanks in advance.

Regards,
Yathish.