Trouble converting to standard c++ types

1855 byte By Hodnea at 2007-11-27 9:38:41
HiI have a method in c++ which gets a jobjectArray from java. The array is a String[][] with unicode strings. I parse the array and picks out the objects as jobject. I then cast the objects to jstring. If I now use GetStringChars on those jstrings, I get a jchar* which I can print.My problem is ...

Java GC compared to .Net

3786 byte By LordGommosa at 2007-11-27 9:46:39
A question related to Java GC compared to .Net and cleaning up local references. In .Net if you run in release mode then local variables are GC'd if not in use. Can Java be compiled in a way to function the same way?e.g C# Codeclass Program{public Program() {B b = new ...

Frequent Garbage Collection Issues

680 byte By johnsep2a at 2007-11-27 9:46:54
Hi,I am using Weblogic 8.1 SP6. Recently we have increase in the traffic and as a result I have seen this pattern w.r.t GC.While using the monitoring tab of the weblogic console I have seen that at a regular interval of about 20 secs there is a forced GC from JVM and causing the app to not ...

everything there is to know about the jvm...

1454 byte By sun-certifieda at 2007-11-27 9:48:28
i've coded quite a few successful production server-side java apps over the past 10 years.i have (in my opinion) adequate knowledge of the jvm for what i am most often hired to do as a humble application developer. i know the difference between the stack and the heap; i know when to tweak the ...

concurrent mode failure - CMS & RMI

1045 byte By Robert_Golda at 2007-11-27 9:52:42
Hi,I've been struggling with this concurrent mode failures for quite some time and I would be very nice if somebody could answer some more or less basic questions:1.) If I scedule a full gc when using CMS do I get an concurrent mode failure? In my log I get one like every 60 seconds even as ...

JNI and 3rd party DLL's

469 byte By JWeinberga at 2007-11-27 9:54:06
Hello everbodyI just recently started working with JNI and third party DLL's and therefore had to go through some painful education. I understand that in order to use 3rd party DLL's it is necessary to write a wrapper in C. However, I am curious and would like to know why it is not possible ...

Allocating large amounts of Memory

1824 byte By mlevisona at 2007-11-27 9:55:59
I'm trying do some memory intensive work in Java and am running into limits far sooner than I would expect. First of I would like to access as much of the 2GB process limit I can. It would appear that 1.4 GB is the largest amount that can be allocated with the -Xmx switch. So be it.However we ...

IncompatibleClassChangeError in jvm->DetachCurrentThread

633 byte By sleena at 2007-11-27 9:56:13
Hi,After recently changing from 1.5.09 to .11 (with the handle leak fixed), I now get reports from users that run my dll on JRE 1.4. about an IncompatibleClassChangeError being printed to std.err. I have tracked it down to calls to DetachCurrentThread. The code seems to work, despite that ...

or c# bytecode spec?

173 byte By well.Heada at 2007-11-27 10:10:01
since c# use bytecode,where can i found c#'s vm spec,seems named il asm language.who know please tell me.Message was edited by: well.Head

JVM heap reaches 1.3 GB

476 byte By warko01a at 2007-11-27 10:15:05
Hello friends, I have a Tomcat which on startup pushes the java.exe to about 1.3 GB and never comes down. I have the min heap set to 512 and the max heap to 1.5 GB (max on windows). On another similar machine, the java.exe on Tomcat startup is seen to be around 230 MB. Not sure what is causing the ...

Java 6 regularly crashes

28043 byte By OGGYa at 2007-11-27 10:17:29
Hi !I use JDK6 (with JRE) and when i try to run netbeans (and not only with netbeans !) it results in following error: ## An unexpected error has been detected by Java Runtime Environment:## SIGSEGV (0xb) at pc=0x00002ba542d1dcf4, pid=2307, tid=1092860240## Java VM: Java HotSpot(TM) 64-Bit Server ...

jstat returning PID not found

393 byte By sailing-petraa at 2007-11-27 10:17:36
We have 7 SUN servers running SunOS 5.10. Only one of the 7 servers gives us the "PID not found" message when executing: /usr/jdk1.5.0_12/bin/jstat -gcutil PIDWe are using the correct PID. There seems to be something specifically wrong with this sever but we have not been able to determine what the ...

Returning List<String> or String[][] in JNI

425 byte By arjundga at 2007-11-27 10:20:38
Hi,I am calling a native function in C++ from Java which has to return List<String> or String[][]. Is this possible?The java declaration is - private native List<String> GetListNative();In C++ the declaration is:JNIEXPORT jobject JNICALL Java_com_GetListNative(JNIEnv *env, jobject obj);Please ...

How to communicate in Two JVM

191 byte By weimenrena at 2007-11-27 10:29:46
<p>In one client, from the main windows, open two sub-windows.</p><p>When open the two sub-windows, I want use different JVM. But I does not know how to communicate in two JVM each other.</p>

Can't isolate JNI memory leak

2559 byte By lycono0a at 2007-11-27 10:33:09
I've been beating my head against this for a week. We have a server that was developed in house written entirely in java. Recently, we added a JNI hook to use an in house driver written in C++. This driver is used in other places outside the server and works fine (no memory leaks). When used ...

Softwares req?

161 byte By renga_muralia at 2007-11-27 10:37:17
<p>Dear Sir,</p><p>What are the supporting softwares needed for executing JNI. Where i can find the simple JNI Program</p><p>Advance Thanks,</p><p>Rengaraj.R</p>

GC Logs - Need help discerning what's up

1343 byte By lukasbradleya at 2007-11-27 10:37:54
Need some help with this one. Why would a concurrent mark last for over 4000 seconds?43415.531: [GC 43415.531: [ParNew: 130944K->0K(131008K), 0.0068140 secs] 216204K->86072K(1535936K) icms_dc=0 , 0.0070140 secs]43446.687: [GC 43446.687: [ParNew: 130944K->0K(131008K), 0.0067580 secs] ...

JDK1.5.0_12 crash when I try to startup a tomcat app server with it.

9820 byte By honpenga at 2007-11-27 10:52:46
Hi,I am support a Blackboard application running on a PrimePower box.Recently I installed JDK1.5.0_12 on the box. When I re-configured Blackboard to use the new JDK and tried to restart the server, the tomcat portion will keep getting the JVM Hotspot crash error as illustrated below.The startup is ...

How to deal with subfunctions?

502 byte By madownsa at 2007-11-27 10:54:49
Hi all,I have a C-Program which I now want to include in Java with the JNI. I just want to transform the main-method of this program to a JNI-Method (which after that can be called in the Java-application). But it seems that is not possible. There are a lot of subfunctions in the same C-File I just ...

Weird entry in the exception table for monitorenter/monitorexit

1718 byte By DikkeDouwea at 2007-11-27 10:56:04
I've created a simple test class with one method:public class TestClass {int a = 0;public void test() {synchronized(TestClass.class) {a = 1;}}}After opening the generated class file with Eclipse I got the nextresult (I've removed the parts that are irrelevant) public void test();0 ldc <Class ...

Loading a native library that loads the libraries itself

3533 byte By @miryaa at 2007-11-27 10:56:34
I'm trying to wrap libpurple ( http://developer.pidgin.im/wiki/WhatIsLibpurple) for use in Java code. Everything is done in the linux and freebsd boxes (with the same problems). The problem is libpurple itself has an initialization procedure (just a function to call) where it loads some "plugin" ...

Very poor performance with an externally lauched JVM

4225 byte By pablerasa at 2007-11-27 10:58:14
Hi everybody.I have a complex commercial application that is getting me fool. When loading the application, a lot of file/decryption/array tasks are performed in order to get all the resources into memory.The app has two possible flavours:* A single 'jar' we can run directly (java -jar .. etc.) ...

An unexpected error has been detected by HotSpot Virtual Machine

12063 byte By novice639a at 2007-11-27 11:00:45
I am getting : An unexpected error has been detected by HotSpot Virtual Machine:The file hs_err_pid9360.log has the following content:Plz give me a clue as to where are the things going wrong.I feel that the chances of a bug in the code are somewhat low. Can I get such error, when the memory needed ...

PrintTenuringDistribution not showing detail

1583 byte By kgottrya at 2007-11-27 11:05:01
I'm running WebSphere v6.1 on Solaris 10 with HotSpot JVM 1.5.0_12 in 64bit mode. I experiencing some performance issues and want to observe more details about GC. I turned on -XX:+PrintTenuringDistribution but I don't see the output. I turned on -XX:+PrintCommandLineFlags to be sure all the args ...

JNI Access Violation Excetpion

4792 byte By smithdale87a at 2007-11-27 11:08:22
Hello all, First of all, I am very new to JNI. I was putting together a little application to test JNI, but I keep getting an AccessViolationException when trying to access a jstring in my VC++ code.// File: TestDll.dllusing namespace System;using namespace ...

JNI in Mandriva Linux 2007

1212 byte By MAYAa at 2007-11-27 11:16:38
Hi, I tried the simple HelloWorld program in for JNI. I created the header file. And my list of files are* HelloWorld.java* HelloWorld.class * Main.java* Main.class* HelloWorld.h* HelloWorldImp.cTo create the header file i used the following command:javah -jni HelloWorldIn my java i have a ...

crash and hang application server

13812 byte By AHMAD_TWFa at 2007-11-27 11:16:56
hi every body im using sun java system application server platform edition update 9 on windows 2003 service pak 2 with 4 processor and 6 gb phisycal ram my running application alot of time hanging and some time crashwhen application hangs then i stop server and start again getting ...

java.lang.OutOfMemoryError

764 byte By Metallana at 2007-11-27 11:17:52
HelloI'm posting here becouse I'm now desperate and may be someone here could helpI'm experiencing a problem with my app, it's running un Tomcat 4.1 with java 1.4.2_12 and I'm getting java.lang.OutOfMemoryError when it tries to process something in the range of 5000+ registers.I've tries ...

How to do JNI in Linux

218 byte By Subbu_javaa at 2007-11-27 11:32:02
<p>hi guys,</p><p>i am new to Linux plotform</p><p>i have some .so files writen in C++</p><p>and i have the Java code. But how to call the methods in .SO file from Java thru JNI.</p><p>thanx in advance.</p><p>Subbu</p>

java heap space problem...

358 byte By TJayseea at 2007-11-27 11:32:10
Hi all,I am running a program in which i need to fill in an ArrayList with a list of around 1 million strings through 11 for-loops. While the list is being populated, the program throws a java.lang.outofmemoryerror:java heap space.Any clues on how to correct this error, or on a more efficient ...

JNI, Visual C/C++ and malloc...How to release/free memory...

2845 byte By adym-lincolna at 2007-11-27 11:33:51
Hi folks,Not sure whether this is a Windows forum question or not. I'm writing some simple JNI methods that call into Windows OS routines such as GetComputerName and GetSystemDirectory. The following is a sample method I've written that currently works:JNIEXPORT jstring JNICALL ...

native library problem

640 byte By mike2148ba at 2007-11-27 11:37:25
I am trying to get a berkeley xml database working in java and i get an error when i try to run their sample programs. I am trying this in linux right now with problems. I got it to work in windows.I used this command to set the native library path:export ...

Coverting java .class files to .bin files

345 byte By silviyaa at 2007-11-27 11:38:47
Dear all :I am in a need to convert a java .class files to binary format file (i.e.) bin i mean an executable files in Linux.Is there any possibility using JNI or anyother method to achieve it.Please post me your suggestions...Thanks in advancehope my problem will be ...

[GC-- in GC output

353 byte By noxtecha at 2007-11-27 11:42:31
I have an app that rans on Solaris 10 with java 1.5.0_11 and it has some wierd gc types in gc log.Can anyone explain what are those GC-- rows? 3087.910: [GC 907916K->716116K(962624K), 0.9520986 secs]3096.156: [GC-- 927444K->962596K(962624K), 1.3476942 secs]3097.504: [Full GC ...

java.lang.OutOfMemoryError

1150 byte By deepak@stara at 2007-11-27 11:45:08
Hi experts,I have a problem with java memroy with the application I run.This application freezes after 2 or 3 days giving java.lang.outofmemoryerror.I tried this command:java -Xms512m -Xmx512mbut nothing happenedthis is what a gotC:\jdk1.3.1_09\jre\bin>java -Xms512m -Xmx512mUsage: java [-options] ...

6.0 - Default min and max heap sizes

518 byte By TimSparqa at 2007-11-27 11:45:36
According to this: http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.htmlas of version 6, the initial heap is set to be 1/64th of the machines physical memory and the max is set to be 1/4th of the machines physical memory.I was wondering, is the dependent on the available memory, ...

JDK and iReport

899 byte By greenockboya at 2007-11-27 11:46:53
HiI have a bit of a catch22 situation that I hope someone can help resolve.I currently have JDK 1.5 running on my PC along with netbeans 5.5, everything with netbeans is OK.I also have iReport 1.2.7 running and it is also fine......up to a point. The problem is that if you have JDK 5 installed then ...

Unhandled Floating Point Excepiton

643 byte By nagodtumua at 2007-11-27 11:50:02
I work for an ERP project, and use a DLL in my project. When i call the DLL from applet code, it automatically closes the internet explorer window and a popup appears with message : "Unhandled Floating Point Excepiton".And then it puts a file which includes stack overflow and memory areas, register ...

UnsatisfiedLinkError for unix system

859 byte By zinza at 2007-11-27 11:55:17
Hello,I am developping a Java software that use the cdf library (cdf is a special file format )I have compiled it in an executable jar file.But I want it to be also runable under Unix.Under Unix, when I try to open a cdf file the following exception is caught.java.lang.UnsatisfiedLinkError: no ...

JVM source code

187 byte By kc_kazana at 2007-11-27 11:59:57
<p>where can i find the JVM source code</p><p>i need JVM 1.4.2 as well as JRE 14.2_12 source code if they're available.</p><p>can they be compiled on a RedHat AS linux 4 64-bit box ?</p>