Yulia Dubinina

Greenhorn
+ Follow
since Oct 27, 2009
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 Yulia Dubinina

Looks like it doesn't allow to download attached files. Is it possible to attach txt file to a post here?
10 years ago
I saved host and html Strings into files and tried to use match() reading Strings from these files. I looked inside those files and it looks like it should work, I don't understand why it returns false. I tried to attach txt files to this post, but forum doesn't allow me to do so. I renamed files as jpg, but those are simple text files.
10 years ago
I'm trying to find "rebase" substring anywhere in the code of html page. The substring should be separated by anything except digit or letter from both sides. In this specific example it is http://rebase.neb.com/cgi-bin/seqsget?M.EcoCB9615DamP.CP001846.pro

It does worked for me here http://www.regexplanet.com/advanced/java/index.html when I copy-pasted the page source from this forum. However when I copy-paste it from variables in debug it doesn't work for some reason. Are there any sneaky hidden symbols which make it behave like that?

Here is the code example:

10 years ago
Hello

why the following regex

(.*[^\da-zA-Z]+rebase[^\da-zA-Z]+.*)|(^rebase[^\da-zA-Z]+.*)|(.*[^\da-zA-Z]+rebase$)|(^rebase$)

returns false on matches() for String

<HTML><HEAD><TITLE>REBASE Sequence Data</TITLE></HEAD> <!--========================================================--> <!--== Dana Macelis for Dr. R.J. Roberts ======--> <!--========================================================--> <BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#000080 ALINK=#5577CC VLINK=#5577CC> <CENTER> <TABLE WIDTH=100%><TR ALIGN=CENTER VALIGN=CENTER> <TD><A HREF=/rebase/index.html><IMG SRC=/rebase/rebhomeB4.gif BORDER=0 ALT=Home></A></TD> <TD> <FONT SIZE=5><b>REBASE <font color=#5599BB>Sequence Data</font></b></FONT> 06/22/2011<br> <font size=2 color=gray>DNA and Protein sequences are shown in <font color=#77AADD><b>FASTA</b></font> Format.</font> <br><table cellpadding=6><tr> <td bgcolor=#99FF99><a href=javascript:window.close();><font size=2 color=#000000>Close Window</font></a></td><td bgcolor=#FFFF99><a href=javascript:history.go(-1);><font size=2 color=#000000>Back</font></a></td> <td bgcolor=lightyellow><a href=javascript:history.go();><font size=2 color=#000000>Refresh</font></a></td> </tr></table> </TD> <TD><A HREF=/rebase/rebase.seqs.html><IMG SRC=/rebase/rebseqs.gif BORDER=0 ALT=Seqs></A></TD> </TR></TABLE> <br><br> <table><tr><td align=left><b><FONT size=3><xmp> >M.EcoCB9615DamP GATC 278 aa MKKNRAFLKW AGGKYPLLDD IKRHLPKGEC LVEPFVGAGS VFLNTDFSRY ILADINSDLI SLYNIVKMRT DEYVQAAREL FVPETNCAEV YYQFREEFNK SQDPFRRAVL FLYLNRYGYN GLCRYNLRGE FNVPFGRYKK PYFPEAELYH FAEKAQNAFF YCESYADSMA RADDASVVYC DPPYAPLSAT ANFTAYHTNS FTLEQQAHLA EIAEGLVERH IPVLISNHDT MLTREWYQRA KLHVVKVRRS ISSNGGTRKK VDELLALYKP GVVSPAKK </xmp></font></b></td></tr></table><hr> </CENTER> </BODY> </HTML>

when there is "<A HREF=/rebase/rebase.seqs.html>" in it?

Thanks in advance
10 years ago
I've builded my program on JDK 1.5 instead of 1.6 and have been using it for 2 weeks - no hangs so far... Hope it will keep working this way
14 years ago
Don't know if it helps, but I can provide dump which I managed to get from Java Visual VM

14 years ago

avi sinha wrote:please post the code


Actually there is a lot of code, I don't know which part of it to post, because I don't know where the problem is.

avi sinha wrote:and welcome to javaranch


thanks
14 years ago
Hello

I have a Java program which sometimes works OK untill the very end, but sometimes just hangs in a random moment and doesn't react to Ctrl+C or Ctrl+Break. Process doesn't use CPU, so I guess it isn't something like infinite loop (I actually cannot think of places in my program where this kind of loop may occur). I tried to get thread dump to see if there are any deadlocks, but Ctrl+Break doesn't work and jstack doesn't work also (I've read that there is -F option, but it isn't available on Windows). Also I tried to connect to a hanged process with Java Visual VM - doesn't help too (just says 'Connecting...' forever).

I tried to start my program, connect with Java Visual VM to it at the beginning and see how threads visualisation will look like in a moment when program hangs. My programm died after about 50 min and all info which I was able to see was about this period of time (e.g. a timeline diagram stopped changing and the last time mark was 49:23), but Java Visual VM was still connected to a process. I pressed Thread Dump button, it worked, but there was nothing 'criminal' on the dump it provided. So I guess maybe it is not actual thread dump, it is something that Java Visual VM was able to get before process hanged.

What else can I do to find out what's going on in my programm and fix it?
I tried to run it with JDK 1.6.0_07 and 1.6.0_16. I'm using Windows Vista Enterprise SP1, 64-bit.

Thanks in advance, Yulia.
14 years ago