08-24-2012
Issue using SCO java SerialDemo [CLOSED]
I recently installed the Java Communications API (v2.0Aa) on SCO and I'm having some issues running the SerialDemo application that comes with it.
I can open a connection and send text from SCO to a toy windows app I wrote - that works fine. However, when I try and close the connection, I get the following error:
libthread error: _thr_sigacthandler: fault 1 inside a critical section
What follows after that is a mass of debug text with various values (I don't know what any of it means). Can anyone suggest anything I could read up on to try and figure out what the error actually is? Is more information stored in log files anywhere?
If it helps at all, the offending line in the java program is when the SerialPort object is being closed.
Any suggestions are welcome. I didn't want to immediately just dump the whole thing here and hope someone else can glean something useful from it.
Last edited by jdsnatl; 10-24-2012 at 05:14 PM..
Reason: Marking as closed
8 More Discussions You Might Find Interesting
1. AIX
I'm a AIX novice - please bear with me..
I'm trying to install Java14_64_sdk on an Aix 5.2 server (P690)
I've copied the ff files to a separate directory:
Java14_64.ext
Java14_64.license
Java14_64.sdk
I then run smitty installp, point to the above directory and choose the Java14_64.sdk... (0 Replies)
Discussion started by: morgan_g
0 Replies
2. Shell Programming and Scripting
Hello there,
I'm writing a shellscript and it uses sqlloader, it works good coz load the data into the DB. But I'm runing the shell from a java program with Runtime(). It does execute the shell but the sqlloader doesn't seem to be working!!
Does anybody out there knows why?? (0 Replies)
Discussion started by: ying_dav
0 Replies
3. Programming
Hi all,
Actually I want to flash the image which I have in my system and when I am trying to do it,it is not showing it.simply creates the frame but not displaying the image.I am attaching the code--
Please take a look on it and please provide your valuable suggestions on it so that I... (2 Replies)
Discussion started by: smartgupta
2 Replies
4. SCO
Hi,
We are using SCO UNIX 7.1.3 and the server recently started rebooting by itself.
Do anyone know how can i create a dump or crash dump while the server rebooots?
Your quick help on this is really appreciated.
Regards,
Ravikumar R (1 Reply)
Discussion started by: rrb2009
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am encountering below mentioned exception when I execute my Java program that is supposed to SFTP the file from one server over to another.
Can you please tell me some pointers to resolve this issue?
Exception
HostName- 10.1.1.1 ; userName- bmsftp
log4j:WARN No appenders could be... (0 Replies)
Discussion started by: prashant.ladha
0 Replies
6. Shell Programming and Scripting
Hi,
I am writing a shell script to build Java options dynamically in a variable array and pass them to java.exe. If an option value contains a space, I cannot find a way to get it interpreted correctly. Here is my example:
#!/bin/bash
JAVA_HOME=/opt/jvm/jre1.5.0_18
JAVA_OPTS=("-Xms256m... (4 Replies)
Discussion started by: Romain
4 Replies
7. Programming
Using JRE 1.4.2_12 on SCO OpenServer 5.0.7, I was able to use the Java Comm Api to open and close serial ports. After upgrading to JRE 1.4.2_19, the Java Comm Api complains that the ports are in use. Does anyone have any thoughts on how to make 1.4.2_19 work with Java Comm API?
FYI. I was using... (21 Replies)
Discussion started by: rkelly
21 Replies
8. AIX
I just intalled java8_64.jre and .sdk respectively
installp -agXYd . Java8_64.jre Java8_64.sdk 2>&1 | tee installp.log
Worked like a champ. Now I see this--
jeff@server:/usr> ls -l | grep java
drwxr-xr-x 9 bin bin 512 Sep 22 2010 java14
drwxr-xr-x 7 bin bin ... (9 Replies)
Discussion started by: jeffs42885
9 Replies
jhat(1) General Commands Manual jhat(1)
NAME
jhat - Java Heap Analysis Tool
SYNOPSIS
jhat [ options ] <heap-dump-file>
PARAMETERS
options
Options, if used, should follow immediately after the command name.
heap-dump-file
Java binary heap dump file to be browsed. For a dump file that contains multiple heap dumps, you may specify which dump in the file by
appending "#<number> to the file name, i.e. "foo.hprof#3".
DESCRIPTION
The jhat command parses a java heap dump file and launches a webserver. jhat enables you to browse heap dumps using your favorite web-
browser. jhat supports pre-designed queries (such as 'show all instances of a known class "Foo"') as well as OQL (Object Query Language) -
a SQL-like query language to query heap dumps. Help on OQL is available from the OQL help page shown by jhat. With the default port, OQL
help is available at http://localhost:7000/oqlhelp/
There are several ways to generate a java heap dump:
* Use jmap -dump option to obtain a heap dump at runtime;
* Use jconsole option to obtain a heap dump via HotSpotDiagnosticMXBean @
http://java.sun.com/javase/6/docs/jre/api/management/extension/com/sun/management/HotSpotDiagnosticsMXBean.html at runtime;
* Heap dump will be generated when OutOfMemoryError is thrown by specifying -XX:+HeapDumpOnOutOfMemoryError VM option;
* Use hprof @
http://java.sun.com/developer/technicalArticles/Programming/HPROF.html.
NOTE: This tool is experimental and may not be available in future versions of the JDK.
OPTIONS
-stack false/true
Turn off tracking object allocation call stack. Note that if allocation site information is not available in the heap dump, you have to
set this flag to false. Default is true.
-refs false/true
Turn off tracking of references to objects. Default is true. By default, back pointers (objects pointing to a given object a.k.a refer-
rers or in-coming references) are calculated for all objects in the heap.
-port port-number
Set the port for the jhat's HTTP server. Default is 7000.
-exclude exclude-file
Specify a file that lists data members that should be excluded from the "reachable objects" query. For example, if the file lists
java.lang.String.value, then, whenever list of objects reachable from a specific object "o" are calculated, reference paths involving
java.lang.String.value field will not considered.
-baseline baseline-dump-file
Specify a baseline heap dump. Objects in both heap dumps with the same object ID will be marked as not being "new". Other objects will
be marked as "new". This is useful while comparing two different heap dumps.
-debug int
Set debug level for this tool. 0 means no debug output. Set higher values for more verbose modes.
-version
Report version number and exit.
-h
Output help message and exit.
-help
Output help message and exit.
-J<flag>
Pass <flag> to the Java virtual machine on which jhat is run. For example, -J-Xmx512m to use a maximum heap size of 512MB.
SEE ALSO
* jmap - Java Memory Map
* jconsole - Java Monitoring and Management Console
* hprof - Heap and CPU profiling tool @
http://java.sun.com/developer/technicalArticles/Programming/HPROF.html
05 Aug 2006 jhat(1)