15308 byte By
ricebuna at 2007-10-2 18:51:59
Hi,We are getting the following crash dump. Does any one know what the exception code 0xc0000005 means? Thanks.## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x080024fa, pid=3004, tid=3268## Java VM: Java HotSpot(TM) Client ...
2183 byte By
Colma at 2007-10-2 18:52:19
Hi,I have a C++ server application that has a thread listening for requests on a socket, and when a request comes it will create a client request thread that services that request. The client request thread will create and invoke Java objects and thus attaches and detaches from a JVM as part of ...
917 byte By
Mahalia at 2007-10-2 18:54:03
Hi,I am writing code to provide conditional synchronization to HashMap. So I rewriting a simple HashMap where the synchronization happens only for the put method accessing the same bucket in the HashTable and only incase a new entry is getting added. The rest of the methods including remove ...
Trying to run RXTXcomm.jar in AIX 4.3 on java version 1.1.8. But getting an error as belowjava.lang.UnsatisfiedLinkError: /oracle01/oracle/product/iSuites/Apache/Apache/htdocs/etrans/lib/jre/lib/i386/librxtxSerial.so: A file or directory in the path name does not exist. thrown while loading ...
Hi,I am trying to place an icon on my gnome / KDE system tray using the JDIC TrayIcon class. I've written the code in NetBeans, built it and obtained the JavaSystemTrayTest.jar file. Now when I want to run the application I have to supply to the JVM the native library libtray.so.So, I've ...
472 byte By
doendera at 2007-10-2 18:56:38
Hi all,i've got a program that i want to via a java program,in ms-dos, the programma is called by:mace2 -n9 -p -m10 -c <puzzle.in> puzzle.outBut in my java program if I use:Process mace = Runtime.getRuntime().exec("mace2 -n9 -p -m10 -c <puzzle.in> puzzle.out");the program gets ...
Problem Scenario :We have a J2EE application, which has a front end developed in Java Swing with usage of heavy graphics & managed by the weblogic server. There are several application details in the Hash-Maps containing with nested Hash-Maps & Hash maps contains the Serializable Java ...
Problem Scenario :We have a J2EE application, which has a front end developed in Java Swing with usage of heavy graphics & managed by the weblogic server. There are several application details in the Hash-Maps containing with nested Hash-Maps & Hash maps contains the Serializable Java ...
folks,Can anyone please clarify me , what's the schduling mechanism(Algorithm) used in Sun JRE 1.5 ?Cheers,Saravvij.
HiCan anyone please tell me about the Java Green Threads ?Cheers,Saravvij
Hi,When I pass a enum type to a jni call, the javap command gives my the following prototype:/* * Class:com_model_Model * Method:sendEnum * Signature: (Lcom/model/Model/blerg;)V */JNIEXPORT void JNICALL Java_com_model_Model_sendEnum (JNIEnv * env, jobject modelI, jobject enumI)So now i have the ...
231 byte By
EliMLia at 2007-10-2 19:01:33
Is there any possible to hook keyboard/mouse events in pure java (or java + swt)?If this is possible only with native procedures, may you, please, recomend examples how to do this on differnt platforms (linux and osx)
import java.sql.*;import java.applet.*;import java.awt.*;import java.awt.event.*;public class receiving extends Applet implements ItemListener, ActionListener{Connection conDatabase;//door to the databaseStatement cmdDatabase;//messengerResultSet rsDatabase;//bucketprivate String dbURL = ...
Is it possible to start a JVM relying on an existing classpath and at the same time start the JVM with the -cpThe question is: Can I with the -cp flag somehow append a path to the system default classpath ?cheers,
785 byte By
safira at 2007-10-2 19:07:57
Exception in thread "Thread-3" java.lang.NoClassDefFoundError: <myclass>The strange thing is: it is often found, but sometimes (although still quite often) not found. And this is despite the native thread being the same, and JNIEnv * resulting from AttachCurrentThread also being the same ...
I have a log file from a Javac crash-## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d74f92a, pid=5760, tid=4108## Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)# Problematic frame:# V [jvm.dll+0x6f92a]# T H ...
Hi,,I am wondering if I could use NewDirectByteBuffer to return data efficiently from native code. There seems to be a problem, in that the ByteBuffer is only valid for a short period, after which I must free the memory that I pass to NewDirectByteBuffer. However, there seems to be no way I can ...
776 byte By
jmmtecha at 2007-10-2 19:09:17
I've been examining output generated using -XX:PrintClassHistogram. I noticed that some classnames appear multiple times, each with associated instance and byte counts. I'd like to understand what that means and would appreciate some ...
415 byte By
gojomoa at 2007-10-2 19:09:22
The fix for this issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6186200...may be very important for my app. The issue says it is fixed in "1.4.2_11(b01)", "5.0u7(b01)", and "mustang(b37)".Does "5.0u7(b01)" mean the as-yet-unreleased 1.5.0_7? If so, when is this update 7 expected?Does ...
Hi,I have a multi threaded application built on C++ and compiled using VC++ .net, and which is working fine(in command prompt)Now I have created GUI using Java Swings and , using JNI for communicating with C++ code.In C++ code , I create many threads ( up to 1000) and use Events for ...
Hi Please help me with classpath issuewhen I write on command prompt javac -classpath ./kvem.jar SmsSender.java it compiles wellBut then I insert some database acces codes in my SmsSender.java file which needs another connector.jar file. Ok I copied connector.jar to the same folder and write on ...
Hi Folks,First some background info:. SUN JDK/JRE 1_5_06. SUN JMS 1_1. GnuC. Windows XP Pro. IBM Lotus Notes 6.0.5 Overview:I'm trying to connect a Lotus Notes client to a JMS queue to send messages. Lotus Notes uses an 'abridged' version of JRE 1.3 which does not support JMS and can not be ...
for exapmle i have a dll like wmp.dll which is used by the windows media player to play video filesso i wanna use tat dll i know what methods are there in that dll alsoso some one please help me out very urgentthanx
Hell,I have stored some images in a dll file. now i want to use them in my project. How can i access them? Its urgent plz.
Hello,I am about to do some memory distribution analysis of the content of a java heap. In a first step I build an JVMTI agent which writes all reachable objects with their size to a file. For each reference caught by IterateOverReachableObjects() I write refererer and referee to another file ...
HiI am having a .NET dll to be called with some parameters from Java. I have tried calling it by using object tag in JSP. But the object is not created and its giving null value. Alternatively I am trying to call the same from Java applet. Can anyone help me out regarding how to proceed ...
4900 byte By
Tamino3a at 2007-10-2 19:18:40
Hi,My purpose is to run a Java and a C++ thread parallel.The C++ thread receives events from a hardware. Getting an event it should put this (for testing it is just a String ) to a Java method (there the events will be collected in a vector).The Java thread should compute these vector step by ...
Hi ,I am trying to load a lib file using System.loadLibrary in my class. I have created the lib file using the .h file that i created through javah and the c file that i created using the method in the .h file. The C file was made using xlc compiler 6.0 in AIX 5.1. jre version being used is [ ...
Hi,Please let me know how to find the RAM size of a machine using java program.Thanks & Regards,Nasrin.N
Hi,I have a C function awaiting incoming data; on receiving data, it sends a jbyteArray up to the Java world.The Java method is called perfectly by my C code, and the data is also passed perfectly. But if I touch any of the object's instance variables, strange things happen: when I tried to ...
I recetly migrated to a new machine and I had to reinstall eclipe and the plugins to generate JNI files.I also imported some files that I started working on with my old computer. For some reason, some of my *.c files do not have text highlighting. That is, it looks like it's in note pad with ...
Hi I am working with a very large StringBuffer. It probably has about 1200000-12000000 characters in it. I am setting the heap memory very high- probably 750 MB. When I set the StringBuffer size to 0, I get OutofMemory Errors. IF I set the heap to 9,999,999 I get a OutofMemory Error. However, ...
412 byte By
hochia at 2007-10-2 19:20:44
Hi,I have a machine that has 4 gigs of memory, runs x64 and have java 1.5.Now when i run my program i would like to have as much memory as possible, so maybe around 2.5 gig, but the max i can set it to is 1350. I use this command:java -Xmx1350M -Xms1350 program..So two questions, how can i set ...
Hi,Native interface is used to access code of language. So same as can i access java code from vc++6 as java can access c code.If its possible then how?
please explain how i can do this
7709 byte By
anjurua at 2007-10-2 19:23:54
Hi I'm getting the below error when i tried to run a simple program, where it reads from a csv file and inserts the records into database. it is inserting the first record,but when comes to the second it thorwing the below error in th elog file...can anyone please suggest me how to overcome ...
623 byte By
huwa at 2007-10-2 19:24:54
Hi All,I just noticed that the Thread.getName() method will allocate a new String each time it is called, and this seems like a rather bizarre thing to do. Surely the Thread names would be better off being interned? I can only think of two reasons why this might have happened:1. Thread safety. ...
We have seen this repeating (although no recipe yet) crasher while running Jira under 1.5.0_06 on 64bit FedoraCore5. Has anyone else seen this and does anyone have a workaround to avoid the crash?## An unexpected error has been detected by HotSpot Virtual Machine:## SIGSEGV (0xb) at ...
Is there ever a case where a static block would not be executed?public class ConnPool implements Runnable { static {System.out.println("in static"); } public ConnPool(){System.out.println("in constructor"); }}Why would I have printouts of "in constructor" with out "in static".This happens to ...
635 byte By
fedetxfa at 2007-10-2 19:25:49
We have a simple JNI call. We suspect that after the jni call returns something goes wrong and we get the windows XP crash dialog (telling us javaw.exe has crashed). Since we load and unload the DLL every time, we can keep using the program for a while but after that we get another message ...
266 byte By
Tommasoa at 2007-10-2 19:28:25
Can someone explain the difference between these two methods in a way that a newbie will understand? I looked at the file class ( http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html ) but i did not understand the difference very well. Thanks in advance.
I met the following problem,could anybody help me?Thanks.# An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0b51027f, pid=3776, tid=3664## Java VM: Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode)# Problematic frame:# C ...
174 byte By
prashia at 2007-10-2 19:32:53
how do the uploading of file is handled at the server side. Can any body brief me when the user submit the form with a file uploaded,how it is l handled by any server.
11322 byte By
SaveMea at 2007-10-2 19:32:57
Hi, We are using the tomcat 5.0.13 with the jdk 1.5.05. Our tomcat server is going down regularly with the below error. ## An unexpected error has been detected by HotSpot Virtual Machine:## SIGSEGV (0xb) at pc=0x00975cfe, pid=26763, tid=28040112## Java VM: Java HotSpot(TM) Client VM ...
I was just debugging the problem with our server and got this error (not from the original code, I reproduced it with small code)at java.lang.Thread.run(Unknown Source)java.lang.OutOfMemoryError: unable to create new native threadat java.lang.Thread.start0(Native Method)at ...
358 byte By
arun_a at 2007-10-2 19:37:54
Hi all,I m passing an array of string in my native C codeThe prototype of this native code isJNIEXPORT void JNICALL Java_Hello_paintMainFrame(JNIEnv *env, jobject canvas,jobject graphics, jobjectArray arr){}Now I want to access the elements of this array "arr". How can I do ...
Hi,I was wondering if JNI is the only way to determine if a process ( myApp.exe ) is running on a Windows XP machine?In VB you can use a few commands to determine what processes are running on a machine.I ask this because I've written a Java password program for a VB app. The java program ...
311 byte By
vlb514a at 2007-10-2 19:39:54
Hi,My app is crashing with a hotspot error and it leaves a log file in the directory where I ran it. Can anyone explain how to interpret the log so I can get some clues as to what may have caused the JVM to crash? It's pretty meaningless to me at the moment.Thanks in advance for any ...
Just a quick question - is it possible to configure JVM settings, specifically the max heap size, after the program has begun? I would like my program to be able to process a file and have the max heap size determined by the size of the file, which won't be known until after the program has ...
200 byte By
ivanma at 2007-10-2 19:40:03
HiI was wondering if anyone knows what bytecodes in the range 200-255 are used for? Why are they not defined in the VM Spec etc.?Would appreciate your help.Bestivanm