- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- java hangs while running unix native executable..p...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 02:47 AM
08-23-2006 02:47 AM
java hangs while running unix native executable..pls help
Gents,
I am new to java ..pls help me to sort out the issue..
My java program hangs while i am trying to call a native unix 'C' executable..
Steps i have done as described below..
1) I have called getRuntime() method to get process object
2)then used 'exec' method to call the executable
3)then i used waitFor method to wait the thread up to completion
the executable i am trying to execute is file processing system(a unix c executable with a shared library)..when input file to that executable is large the java program that calls the executable hangs...no exception coming...
Pls help me
Cheers,
Aneesh A
- Tags:
- Java
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 02:53 AM
08-23-2006 02:53 AM
Re: java hangs while running unix native executable..pls help
solve the problem by step-by-step:
Check your C program standalone with a small file
Check your C program standalone with a large file
Check your exec with a dummy small C program
Check the return of your exec call
Then please update this thread!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 03:05 AM
08-23-2006 03:05 AM
Re: java hangs while running unix native executable..pls help
Thanks for the replay..
I have tested the things as u told
1)exe as stand alone working fine for big and small files
2)When i tried to execute executable from java for small input files it works fine
problem occurs when while i am calling from java only..it hangs after processing almost 700 lines of file..
my java version installed in hpux is
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.02-040225-17:20)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.02-040225-19:18-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)
Hp unix version is 11.11
cheers,
Aneesh A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 03:18 AM
08-23-2006 03:18 AM
Re: java hangs while running unix native executable..pls help
if the code is being executed ok for 700 lines, in my mind, there are two possible problems:
1. Data problem (unlikely, as the standalone works)
2. Resource issues
So have you checked all your log files.
Please also see:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
and
search for "JAGaf70925" in
http://www.hp.com/products1/unix/java/java2/sdkrte14/infolibrary/sdk_rnotes_1.4.2.10.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 03:32 AM
08-23-2006 03:32 AM
Re: java hangs while running unix native executable..pls help
Thanks man
will analyse as per ur links and i will update the thread
Cheers ,
Aneesh A