167 byte By
babaka at 2007-11-26 17:08:45
HiI have a problem with our jvm and according to bug # 2141971it is fixed in jdk1.4.2_14 but cant find it can anyone let me know where can I download it.
Just installed Eclipse 3.2.1. I imported a project and built it with no problems.However, When I attempt to run it, I get this error in a dlg box:Can't connect to VMI am not trying to connect to a VM remotely. I don't think I have a firewall running. No message in the console#java -version ...
680 byte By
swara at 2007-11-26 17:19:01
Hi,I have a JNI app that runs perfectly up to JRE 1.5_07, but crashes on JRE 1.6. After some debugging, I found out the reason for the crash was that the Java UI was received truncated strings from the C++ DLL.Again, when I run the app with JRE 1.5_07 or earlier, the strings are passed in full. ...
While trying to load native libraries I'm getting the following error messagejava.lang.UnsatisfiedLinkError: /XXX/XXX/libMySharedObj.so: ld.so.1: <JAVA_HOME>/bin/sparcv9/java: fatal: libskgxp10.so: open failed: No such file or directoryAt which place the 'libskgxp10.so' file should ...
Hi,during the MDB run in the application, we are getting the out of memory exception. when we enabled our GC logs. i have found that during the Full GC only i m getting the out of memory exception.Weblogic 8 sp5JDK 1.4.2_12heap size parameters are like this,-Xms=1024-Xmx=1024-XX:MaxPermSize=384 ...
Hi All,I have a class A in which I have a method m1() and a static method m2(). From m1() I invoke a native method nm1() passing refernce to the JNIEnv and other parameters. When there is a call to nm1(), the control goes to nm2 another native method. From nm2, I need to make a call back method ...
3285 byte By
Jivlaina at 2007-11-26 17:26:19
I'm just starting to learn JNI at the moment. I had this working fine just using javah to create a header file, but I'm trying to get away from that and use the RegisterNatives method from the JNI_OnLoad method.However, I've been banging away at errors for a while, but now I'm stuck. Any ...
38 byte By
SApbama at 2007-11-26 17:26:26
What are different types of JVM
Please read my question in the Java Programming Forum about not being able to create the JVM again after destroying it: http://forum.java.sun.com/thread.jspa?threadID=5133663&tstart=0Thanks!
Hi Guys,I am working in a maintanance project. One of our application is showing out of memory error in every 3-5 days and crashes. It is running on tomcat which is set as a service. The current settings for for maximum heap is -Xmx512m, minimum is -Xms256m which sets at ...
1515 byte By
johnvaja at 2007-11-26 17:39:38
We have an application written some years ago. The hosters, moving to a 2003 server found that the app times out while it's building a lookup table.According to them its the following bit of code that's responsible.Recordset donorIDs = null;try { donorIDs = objConn.execute("SELECT DonorID ...
Hi ,Can anyone help me with the default memory occupied by Jvm in different operating systems ? I have practically seen that jdk1.4,jdk1.5,jdk1.3 has around 64 Mb as thedefault size on 32 bit machines .I am in need of the similar data for jvms on Solaris,Unix and Linux machines . Also much ...
Hi,I'm wondering how the xmx memory is allocated on Windows systems. Does anyone know?I have the problem that using the JNI interface I can access a driver dll only when the xmx value is below ~200M, otherwise the driver produces an error. Now I will make a C++ application to test if I can ...
We moved our environment to linux(Weblogic) from solaris, from then onwards we were not able to get the applet loaded,JRE version 1.5.0._07, Can anyone give a solution to avoid this problemMessage was edited by: qrious_about_java
Hello, I need to avoid this happening. I have tried using-XX:+UseParallelGC and-XX:+UseConcMarkSweepGC .....with slightly differing results but at some point within the first 5 minutes of the application running, a 25 second full GC takes place that virtually halts the application.I am using a ...
568 byte By
mstanika at 2007-11-26 17:54:06
This is yet another 'unload dll' topic.I badly need unload a dll. As adviced by many threads, i created custom classloader - once it is gc-ed it should unload it's native libs.Classloader works fine and is gc-ed fine - as long i do not call a method from dll.Once a dll method is called, the ...
318 byte By
hsv2007a at 2007-11-26 17:57:53
With jdk 1.4.2_12, and maximum heap set to 2048M, I see the following message when the used heap exceeds 1024M :Exception java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?Any ideas as to what causes this ? Our solaris server has over 60GB of swap ...
I've been running into a problem in my program where it would crash if wehappened to call throwNew 2 times in a row (from different invocations ofa native method). I have been able to reproduce this in a very simple test case.basically I have code which does the following in Java:for (int i = ...
921 byte By
torch_2a at 2007-11-26 18:02:18
Hi all,I've a problem with building my native code in the free VC++ Express Edition. The build process ends up with the line:win32dirwatcher.obj : error LNK2001: Nicht aufgel鰏tes externes Symbol ""extern "C" long __stdcall JNI_GetCreatedJavaVMs(struct JavaVM_ * *,long,long *)" ...
Hello,Whenever I try to visit websites that have a java applet I get a dialogue with the following error:java.lang.ClassNotFoundException: loader.class.I have tried uninstalling/reinstalling java, and also adding the -xmx and -xms parameters for java applet runtime setting in control panel with ...
Hi,Our application is basically http proxy which is running in the jboss enviroment, from time to time, the java process cpu usage spikes to 99%, when this happen the application stops accepting any new connections, it is usually not possible to ask for a thread dump, and when it is possible it ...
490 byte By
mdvoxa at 2007-11-26 18:10:15
Hello, I tried to search during hours, without success, to know how the memory is shared(or not) between a current Process and a process created with Runtime.exec().My real question is "Does the memory used in the subprocess is the same as the one used by the father process or does a new memory ...
14427 byte By
Soquinna at 2007-11-26 18:10:33
I need help please! Below is the error message I get when, suddenly, any and all windows on my computer close out by themselves leaving me at my desktop. I did the java test and found that I was running on an older version of java. I downloaded the latest version but to no avail! This happens ...
1102 byte By
neztola at 2007-11-26 18:12:30
Hello,I'm a beginner. I've created an application wich uses a native procedure, myFunc(), wich paints an image over a Canvas.But now I want to create an Image from each frame that is painted over this Canvas. The paint method is like this one:public void paint(Graphics g) {Rectangle r = ...
Hello people.I have a C++ dll file that is made of many different class. Am stuck at how to arrive at an instance of every class. In other words am not able to strip the dll file into classes that it is comprised of.Am using jniwrapper-3.5 and winpack-3.5. So am not really worried about writing ...
I am taking a intro to programming class and the teacher is not very helpful. I have asked him this same question, but it has been about 3 weeks and still no answer! So, maybe someone from here could help.The computers in our classroom have no problem with running the programs that I write. ...
I am using JNI in my Java application , 12 hours after running my test case get a JVM crash -1) These are the parameters with which i invoke my Java programjava -d64 -Xcheck:jni -Xmx2560M -Xms2560M -Xss256k RunQueries2) The Heap output at the time of the core shows "from space" as 100% used , ...
1470 byte By
Crispsa at 2007-11-26 18:21:05
I have the following codeJavaVM*m_pJVM;/* denotes a Java VM */JNIEnv*m_pEnv;/* pointer to native method interface */JavaVMInitArgsm_VMArgs;JavaVMOptionm_VMOptions;m_VMOptions.optionString = "-Djava.class.path=.;D:\\Program Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip;";m_VMArgs.version = ...
JDK 1.4.2_12HW: Sun V240 2X 1GHz cpu + 8GMemMEM_ARGS=" -Xms1500m -Xmx1500m -XX:PermSize=270m -XX:MaxPermSize=300m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC \-XX:+PrintCompilation \-XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=2 -XX:NewSize=64M -XX:MaxNewSize=64M -XX:SurvivorRatio=4 ...
643 byte By
spirusa at 2007-11-26 18:24:20
Hello thereDoes anyone has any idea regarding the rsv_tos option for the jpcap.packet.IPPacket class of the jpcap lib.....Specifically I try to view the TOS field of a Packet (which, by the way, is marked) using the following sc.if(packetr instanceof IPPacket){jpcap.packet.IPPacket ...
607 byte By
sowmyama at 2007-11-26 18:26:36
i have a java program declaring class A..now in the jni, part i have another C++ program declaring object 'a' of class A. Is 'a" considered a C++ or java object?Also, in the C++ program i haveA *a =new A();a=b->somemethod();return a;now, somemethod also allocates memory for 'a'.A* ...
Hello, AllI've troubles with handling C++ exceptions using JNI and shared library. I'm using Java 1.5_06, RedHat 7.3 and JBoss 4.0.5From Java class I call JNI a method in my shared library(libx.so) which calls a method in other shared library(liby.so). Liby.so uses Xerces library. During ...
I know there are topics related to timeout, stop or kill native call but it seems there is no good answer for me.I have a java class as the caller to call a native C function with double arrays as input. The C function perform some kind of computation using 3rd party FORTRAN functions. If we ...
524 byte By
ddanooa at 2007-11-26 18:28:26
Hi,I am new to using the JNI, and am in the process of implementing it for my C++ app... I can't find any information, however, on what to do with the jint, jfloat, etc. variables. For example, if I receive a jint with a value of 56, and I want to save that in a regular c++ int in my program - ...
213 byte By
gosviga at 2007-11-26 18:29:06
Why does the JVM use/specify the invokevirtual bytecode for final methods, and not the invokespecial?Final methods should have the same behavior/semantics as private methods and <init> methods.
hello all,i am developing a multi threaded java application. the application will run as a service. the application sends/receives sms. the application stores the data in the momory as objects and there is a maintainance orhouse-keeping phase in the application which runs at every 6 ...
Okay, I've read all about these errors and I know what they mean and what to do when the error message is something helpful, like "no <whatever> in library path" or some such.I'm trying to load the Odejava native library for Mac on a computer that is part of a lab, and thus uses remote ...
561 byte By
SaTreua at 2007-11-26 18:36:07
Hi,I use two native libraries in my application this are loaded in the class that implement each one: static {System.loadLibrary("TreuJavaPdf"); }in a class and in other: static {System.loadLibrary("TreuJavaExcel"); }My problem is that after accesing a TreuJavaPdf without problems I try access ...
Trying to find out how I can have it installed in my pc.Or buy it, I can't ever get out of microsoft without using the task manager.Thank you
Hello,I'm trying to write a JNI code. The c++ code that has an include:#include <winuser.h>can not be compiled because this file does not exists on my computer, I did a search many times. My computer is Win XP, and .NET frame work as well as Visuall C++ is installed on my computer. This ...
1803 byte By
gmonieya at 2007-11-26 18:43:08
I have a float array, and I am trying to pass it to a java method, but it craps out during the call to pass the array. Anyone have any ideas?Here is the header for the java method:public void addPoints(final float[] scopePoints)and here is the C++ reference to this method:addPoints = ...
I am trying to invoke a java application from VC++ tool. ( Using JDK 1.3.1_18) .It is failing to get the find the java class. FindClass is failing here. but with JDK 1.3.1_02 , I am able to launch it. BOOL PINJavaAppLauncher::Launch(PINJavaAppLauncher* pAppLauncher, LPSTR className, LPSTR* ...
Hi guys I'm stuck on this problem for so long, it would be great if some one can help me out. I use jni to build a interface to access an native library and I have successfully get in running on my development environment, but when at deployment to another box, I get the following ...
I get the folowing error when calling load/loadLibrary:Can't load AMD 64-bit .so on a AMD 64-bit platformI am hoping someone has a clue about this.uname -aLinux GeorgeNSuSe 2.6.8-24.25-default #1 Thu Aug 24 09:57:32 UTC 2006 x86_64 x86_64 x86_64 GNU/Linuxjava -versionjava version ...
OK, Have Tried JNI before then went to several other technologies for doing this, but am back to JNI. Trying to get started on wrapping the Newton Physics Engine(dll and header file only). The native function is: NEWTON_API NewtonWorld* NewtonCreate (NewtonAllocMemory malloc, NewtonFreeMemory ...
385 byte By
Draesa at 2007-11-26 18:53:21
HiI would like to know what are the default JVM arguments when server jvm is started without any additional flags, like this:java -server myappI have been unable to find bullet proof document from those. I'm running Sun 1.5.0_08 on 32bit Win2003.I would espacially be interested on thread stack ...
534 byte By
adamcuza at 2007-11-26 18:57:10
Hello,For a project, I am developing a simple programming language, with a syntax not unlike Pascal, which compiles to Java Byte Code. Currently I execute the compiled byte code using my own interpreter. This works OK, but what I'd like to do now is to execute the compiled byte code using the ...
1941 byte By
mraheela at 2007-11-26 19:00:42
Hi guys..I am using a very simple code, but my jvm is crashing each time i try to run the following code..JNIEXPORT void JNICALL Java_Test_setCameraParameters (JNIEnv * env, jobject obj, jint jId, jstring jKey, jstring jValue) {cout << "Setting Camera Parameters" << endl;jboolean ...
159 byte By
mcayira at 2007-11-26 19:01:15
Hi all,How can i port java virtual machine to a microcontroller that has 32 K RAM and 256K flash ?Any idea would be valuableThanks.
Hello All,I experience the problem of JVM crash often. The error msg is ## An unexpected error has been detected by HotSpot Virtual Machine:## SIGSEGV (0xb) at pc=0xfecade94, pid=14930, tid=29## Java VM: Java HotSpot(TM) Server VM (1.5.0_11-b03 mixed mode)# Problematic frame:# V ...