Please help me diagnose the following problem. I have a Swing program
(running under 1.4.2_04) that uses JNI to get some hardware-level
information and return that info as a csv String. The String returns and I
am able to run .split() on it. At some point after that (this seems to
vary), my program simply exits during the middle of execution. I've
peppered the code with println() statements and the program appears to be
exiting after a successful println() and before entering a method call.
The first line of code in the method is another println() statement, but
that println() is never making it back to the console. I am using "java -
jar blah" to execute the program. When I use Ant to start the program, it
still exits in this fashion, but Ant prints a line telling me "Java Result:
128". If you wish, email me at hankgay AT integra-soft DOT com. TIA.
Hank 2 2164
The first thing to do is, place this code between a try catch block,
then print the stack trace in the exception block
Hank wrote: Please help me diagnose the following problem. I have a Swing program (running under 1.4.2_04) that uses JNI to get some hardware-level information and return that info as a csv String. The String returns and I am able to run .split() on it. At some point after that (this seems to vary), my program simply exits during the middle of execution. I've peppered the code with println() statements and the program appears to be exiting after a successful println() and before entering a method call. The first line of code in the method is another println() statement, but that println() is never making it back to the console. I am using "java - jar blah" to execute the program. When I use Ant to start the program, it still exits in this fashion, but Ant prints a line telling me "Java Result: 128". If you wish, email me at hankgay AT integra-soft DOT com. TIA.
Hank
I've got the try{} catch{} blocks (sorry if I failed to make that clear),
but the e.printStackTra ce() and System.out.prin tln() are not printing
anything to the console, so either it's dying without throwing an exception
or the output has been rerouted, which I didn't do.
Hank
kevinc <ke****@elp.rr. com> wrote in
news:BO******** **********@fe2. texas.rr.com: The first thing to do is, place this code between a try catch block, then print the stack trace in the exception block This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rui Pacheco |
last post by:
Hi
I am developing an Swing applet. I am using Eclipse as my IDE and I am
compiling the classes through the command line. Everything went ok, but
suddenly it started to give the error "Package javax.swing not found in
import."
I searched Google groups and found that it's a classpath problem, but I
can't seem to get it right. Can anyone help me? And why did it break all of
a sudden, without any changes to the system?
This is my...
|
by: Rich Bernstein |
last post by:
Is it possible to write a .NET service that could also be run as a user
application? This might be something along the lines of defining multiple
entry points, to be used based on how the program is executed.
I would like to do this without creating a DLL for all the program code, and
two executables for the service/application front ends....
Thanks.
--
|
by: Ken Varn |
last post by:
On a few occasions, IIS has thrown up a pop-up error message box stating
that aspnet_wp generated an error. The browser interface comes back with a
web page that indicates Server Application Unavailable and tells me to look
at the Event Viewer to get details on the error. All Event Viewer shows is
that the aspnet_wp stopped unexpectedly. See below:
aspnet_wp.exe (PID: 2060) stopped unexpectedly.
Most of the time the ASP.NET web page...
|
by: Ken |
last post by:
When running a program in the debugger, what would cause it to crash without
any error messages? I get "The program has exited with code 0 (0x0)".
The program is a MDI app with threading for several serial ports. It only
crashes when data is being received on one or more of the serial ports.
Could someone please give me some ideas about what would cause a program to
terminate in this way?
Thanks....
|
by: Ramesh Dodamani |
last post by:
Environment:
XP Pro, VS.Net 2003, .Net 1.1.4322 with SP1 & KB Hotfix 886903
P4 2.2GHz, 1 GB RAM
My system was working fine till a few weeks back when I started seeing the
following errors.
"aspnet_wp.exe (PID: xxxx) stopped unexpectedly"
I am seeing the this error currently happen, but unlike the description in
articles Q823409 or 821387, I am not downloading any large file .The error
| |
by: FishingScout |
last post by:
I am re-writing an MS VC++ 6.0 application in Visual Studio 2005
VB.NET. In order for my new application to communicate with some
hardware (an RFID reader) I need to communicate with a DLL that was
written in MS VC++ 6.0. I have found some excellent discussions that
have helped me define the structures to marshal the data between the
unmanaged and managed code. My problem is that my application is not
working correctly. The result is...
|
by: Jon Paal |
last post by:
anybody know what causes this error message reported by visual studio just in tiime debugger ?
I get it when trying to populate a simple gridview from a datareader. Running locally, the code compiles, but after the page
renders, I get the debugger popping up and it gives me the following error message
"an unhandled exception('System.NullReferenceException') occurred in aspnet_wp_exe "
|
by: gnuist006 |
last post by:
I have some code like this:
(if (test)
(exit)
(do something))
or
(if (test)
|
by: r035198x |
last post by:
I have put together this article to give people starting Swing an awareness of issues that need to be considered when creating a Swing application. Most of the Swing tutorials that I have seen just help people display some nice widgets quickly without explaining some issues that need to be tackled when a full application needs to be developed. This article does not go into full implementation details because those can be found by reading the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |