core

How do I prepend a directory the library path when loading a core file in gdb on Linux

I have a core file generated on a remote system that I don't have direct access to. I also have local copies of the library files from the remote system, and the executable file for the crashing program. I'd like to analyse this core dump in gdb. For example: gdb path/to/executable path/to/corefile My libraries are in the current d...

reading serial port in java

Hi, i'm begginer in java,i'm reading data from device throgh serial port,i'm getting data for every one minute but first reading is coming half,after that data is coming corectly output i'm getting is:6050.003120815340006050.003120815350006050.0 correct output should be like this:03120815340006050.003120815350006050.0 my code is: im...

core dump at _dl_sysinfo_int80 ()

Hi all, I have created a TCP client that connects to a listening server. We implemeted TCP keep alive also. Some times the client crashes and core dumped. Below are the core dump traces. Problem is in linux kernel version Update 4, kernel 2.6.9-42.0.10. we had two core dumps. (gdb) where #0 0x005e77a2 in _dl_sysinfo_int80 () from /dd...

reading COM port value and printing in textArea which located inside the panel in java

Hi, I'm beginner in java,i have to read COM port and the data should be displyaed inside the TextArea dynamicaly(data will come for every 1 min)which i have created inside JPanel.plz help me i'm not getting how to do... Advance Thanks for reply ...

convert hexadecimal character string to integer in java

Hi, I'm begginer in java I'm reading data from serial port and I have stored the data in string array data is 24 byte length. Data I'm getting as output: 12120814330006050.0 data also contains hexadecimal character in the string I want to read first character of the string. I have done: String str=dispArray[i].substring(1,2); int i= ...

scrollbar action in java

Hi, i'm begginner in java, i have textarea and i have set only verticle scrollbar to that textarea.i'm appending data for every 1 minute to textarea,problem is when new data appends to the textarea scrollbar will move up.To see the new data,every time i have to drag the scroll bar, that is not the requirment.i want scrollbar should not m...

Meaning of serial port parameters in Java?

I'm a beginner in Java. I'm reading data from the serial port. I got serialPort.setSerialPortParams( 9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); What is the meaning of 9600, DATABITS_8,STOPBITS_1 and PARITY_NONE? ...

problem while reading length of the file java

Hi i'm begginner in java i'm reading characters from file(FileReader) but when i read length of the i'm not getting correct result, its displaying less size compare to correct one.plz reply wat is the problem. thanks for reply ...

write data to exel file using jexcelapi in java

Hi, i'm begginer in java i have created exel file and write to that file by using jxl API. but the file is taking 14kB but in VC++ it will create with 2KB i not getting what is the reason,shall i have to use another way to do the coding plz help me to solve the problem thanks. ...

serial port twoway communication java

Hi i'm begginer in java,in my project datalogger is connected to com port i have to send 15 integer value to port then other device will send back 15 as a response,now i'm writing to outputstream but i'm not getting response.how to solve this problem plz help me.(i'm using javax.com package) thanks for reply ...

split string

Hi, I'm a begginer in java I have packet=090209153038020734.0090209153039020734.0 like this I want to split this string and store into an array like two strings: 1) 090209153038020734.0 2) 090209153039020734.0 I have done like this: String packetArray[] = packets.split(packets,Constants.SF); Where: Constants.SF=0x01. But i...

read file from serial port java

Hi, I'm begginner in java, I'm writing ("FLASH").getbytes() like this to serialport. After I'll get FLASH_OK as response, again I've to send file request. After that I'll get response as FILE_OK then I have read file up to end of the file. I'm not getting how to do this process plz help me. Thanks for reply ...

Joptionpane popup window

Hi,i'm reading data from serial port for that i've created one window.when i click connect button i'll get another window showing message as "connected" with ok option and at the same time data starts coming but it wont dump until i click ok button of the front window,i want data should dump without clicking the ok button of the front wi...

Core dump to SAN

If an application is installed to a SAN and the process crashes, can a core dump be written to the SAN partition? I've been trying to track down an issue where our process dies and no core is generated, thus no stack. Both cases were in two completely separate Solaris environments. ulimit -c is unlimited, pstack is in the path. In my...

Integer with leading zeroes

when i write System.out.println(0123); i get 83 however System.out.println((int)0123F); returns 123 why it works that way? ...

split string java

duplicate: http://stackoverflow.com/questions/527595/split-string hi, i'm have string like this 200209151422010231.10408360.00502240.105090.0200209151423010231.10408360.00502289.605090.0 i want to split this 200209151422010231.10408360.00502240.105090.0 200209151423010231.10408360.00502289.605090.0 and store int Array when 0x01 ...

how to read and write from the serial port with java

I want write data to serial port then I'll get reply again I've to write data to the serialport. But the problem is, when I write at first time I'll get reply also but I couldn't write at second. my code package writeToPort; import java.awt.Toolkit; import java.io.*; import java.util.*; import javax.comm.*; import javax.swing.JOption...

How do I interpret this JVM fault?

I have a Java app that makes use of some native code, and it's faulting. I want to find out where it's faulting, but I'm not sure how to read the hs_err_pid dump file: Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x256cbc] V [libjvm.so+0x25df69] V [libjvm.so+0x25dbac] V [libjvm.so+0x2...

Remove end of line characters from Java string

I have string like this "hello java book" I want remove \r and \n from string(hello\r\njava\r\nbook). I want string as "hellojavabook". How can i do this? ...

Implementation of X-modem protocol in Java

I want to receive a file from serial port and I have to use that X-modem protocol is designed to receive a file over serial port in Java. So if anyone can have idea about then plz help me. I am in very much trouble.plz ...