Sun Directory Server crashed

4467 byte By just_a_kid83a at 2007-11-26 13:00:23
Hi ,i dont know where to post this question because i really dont understand myself the errori downloaded Sun Directory Server 5.2 and installed in both my Solarisone of them is Solaris 8 ( Production Server)the other one is Solaris 10 ( Another Prod Server )i did master-master ldap replication ...

Environment not remembered?

6693 byte By pholthaua at 2007-11-26 13:03:23
Hello!This is my first post here, so please tell me if i am posting something at the wrong place with too few information etc.If have some problem with calling a Java function from a C program. What i basically want to do is the following:1. Call a function in Java that initializes some ...

JVM_Bind

1283 byte By wasim-parachaa at 2007-11-26 13:07:22
my application is in productin since last six months, it is working fine deployed on Tomcat 5.5.12 connected with Apache 2.1 through connecting module. A few days back Tomcat stops silently with following exception.please let me know reason. it is deployed on Windows XP. moreover DB used is SQL ...

The bug with JNI function RegisterNatives in Java 1.6

901 byte By vitallisa at 2007-11-26 13:10:49
JDK 1.6 has problems with implementation of native methods in the class that loaded at runtime. I found it after making debug version of JVM.DLL.I have JNI code that- loads at runtime a new class with native methods;- implements these methods with RegisterNatives();- gets Field and Constructor ...

Synchronizing threads of different JVM

169 byte By Arvind@Suna at 2007-11-26 13:22:35
I have two threads running in two different JVMs. Now I want to synchronize these two threads calling a method.Can any one give me a solution for the same.

JVM crash randomly at VMThread

19486 byte By henglinwanga at 2007-11-26 13:23:36
Pleas help. JVM randomly crash when doing full generation collection## An unexpected error has been detected by HotSpot Virtual Machine:## Internal Error (415353454D424C45523F491418160E43505001A5), pid=168, tid=2748## Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode) T H R E A D ...

Increase JVM memory using Java Code

569 byte By DeepanNa at 2007-11-26 13:24:12
Hi FriendsI am in a critical situtation and not able get the solution. My application is huge and need of increase in JVM memory. I am able to increase JVM memory in command promptjava -Xmx500m classnameSimarly I am able to run jar file alsojava -Xmx500m -jar sample.jarI need to know how to set ...

javaagent and class data sharing with Java 6.0

456 byte By genadya at 2007-11-26 13:27:07
Hi,I'm trying to use instrumentation (using the -javaagent) butI noticed that when I run the my application with JDK 1.6 it loads all systemclasses from the "shared objects file" and the transformer has no chance to run.With JDK 1.5 it works fine, as well as in debug mode of JDK 1.6.Is this ...

How to Push Java Performance to Its Limit

578 byte By complex2004a at 2007-11-26 13:30:44
Hi there,I use java version 1.4.2.09 in HP-UX with 8 CPUs and 4GB Memories.I add -Xmx3072m & -Xms3072m parameters in a startup of certain java application.the java and the application run well. But, it use only 120%CPU. It means that it only use 2 CPUs. The question is: How can I make the ...

Hot Spot Virtual Machine error-Help!

14899 byte By Cpu_Executea at 2007-11-26 13:33:04
ok, whenever Im running java after about 30 mins, the window closes, without warning, and it leaves a notepad on my desktop named hs_err_pid(and some numbers).logIm running js2e runtime environemtn update 10Plz tell me why java is crashing, i love playing java games and cant live without them. ...

Getting a class name from a class reference

175 byte By caffeinea at 2007-11-26 13:37:16
If I have a class reference, e.g.jclass classRef = env->FindClass( className );is there any way of getting the className back from the class reference?

Finding class files / classpath issues

716 byte By caffeinea at 2007-11-26 13:37:18
Suppose I have a JNI project that's run from:C:\foo\apiDemos\C++and a class file that I'd like to load in:C:\foo\build\com\bar\oneloan\util\myClass.classHow do I load a reference to myClass? Java can't seem to find this class file. When I create the JVM, I use:#define PATH_SEPARATOR ...

Applet execution in a native window

147 byte By rajuvishnua at 2007-11-26 13:39:10
Hi,How can i send a native window handle (win32 HWND) to a java class using JNI. I am trying to embed my applet in the native window.

JVM SIGFPE crash

35883 byte By jurnaa at 2007-11-26 13:39:56
Occasionaly during high loads server jvm crashes whith the following dump. Has anyone experienced that?## An unexpected error has been detected by HotSpot Virtual Machine:## SIGFPE (0x8) at pc=0x0000002a95a6b7bc, pid=8962, tid=1086708064## Java VM: Java HotSpot(TM) 64-Bit Server VM ...

Memory leak in JNI Interface

30009 byte By BillGehtsa at 2007-11-26 13:40:13
I have developed two simple Java and corresponding C++ classes. Here is my example code which has memory leaks: CJFieldCollection *fieldCollection;fieldCollection = new CJFieldCollection();for(int i=1; i<100000; i++) {CJField *field = new CJField(L"hhhhhhhhhhhhhhh", ...

Managing Local References in C++

818 byte By caffeinea at 2007-11-26 13:42:38
From my reading of the JNI Programmer's Guide:* Local refs that are class members prolly should be freed when not needed anymore since they live for the duration of the class instance whether they're actually used again or not..* Local refs that are local variables (non class members) are OK ...

EJB and JNI

568 byte By GeoZHa at 2007-11-26 13:43:02
I have a product write by JNI to call some java object on server side. Like VB -> JNI bridge -> client jar -> (RMI) -> server. Now the server was changed to J2EE & EJB2.1. The procedure become VB -> JNI bridge -> client jar -> (EJB) ServerI tried to call the EJB from ...

How to call a dll written in VB in java

182 byte By raviva at 2007-11-26 13:43:43
hi, this is ravi kirani am involved in a project which requires calling a dll written in vb from java.can any one help me how to do this.thanx in advance.

Calling System.getProperty()

2238 byte By caffeinea at 2007-11-26 13:46:24
I want to run:System.getProperty( property );where property is some key, like "java.class.path", using C++.Here's my attempt:void Jni::listProperty( char *property ){jclass clsSystem= FindClass("java/lang/System");jclass clsPrintStream = FindClass("java/io/PrintStream");jmethodID midPrintLn= ...

Several Java Virtual Machines running in the same process caused an error.

98 byte By M.L.Pa at 2007-11-26 13:50:49
Can anyone tell me why I'm getting this message when trying to load certain onlines games?

Getting a Class Loader

1466 byte By caffeinea at 2007-11-26 13:56:58
New to Java. I'd like to implement this line of code using the Invocation API:ClassLoader clBFU = BinaryFileUtil.class.getClassLoader();where BinaryFileUtil is a class that someone here wrote. Here's what I think is going on:1. We have a static reference to BinaryFileUtil.2. BinaryFileUtil ...

Hardware features

299 byte By Sharam_la at 2007-11-26 13:57:09
Hello, i need to know the hardware features of any machine trough a java class. I think there is a package or class that allows me to do this.The hardware features i will need are : hard disk, processing velocity and ram memory.any help will be appreciated.Thanks.....

Java access to Shared Memory

357 byte By chandrakanth.tsa at 2007-11-26 13:58:38
Hai All,How to access a C++ application's data in shared memory from a Java application?This should be possible i suppose. Preferably ... I am looking for solution using core java apis ( not using external apis or libraries ). If someone could help me out in finding the right way to get this ...

Debug version of jvm

209 byte By mpenningroth@cincom.coma at 2007-11-26 14:00:51
Does anyone know where I can get a debug build version of the jvm without me actually building it? I am chasing a memory issue that appears to be in code outside of my jni dlls.Thanks!Mark

Java-C-Cobol getting Application error

720 byte By ysudhakara at 2007-11-26 14:03:13
Hi,We have existing cobol dll, and need to call cobol dll funtion from Java. I have developed C dll which talks to cobol dll and fetch the information from cobol. I'm calling C dll from Java using JNI. I able to fetch the information from Cobol to C but could not able to get that information ...

Memory growth issues

2008 byte By wayne872a at 2007-11-26 14:03:22
Hi,I have been running one java application on different platforms. The systems are:A. Dell Inspiron 600M, MS XP Service Pack 2, jre1.5.0_09, 1GB RAMB. Dell Dimension 9100, Fedora Core 4, Linux version 2.6.17-1.2142_FC4smp (bhcompile@hs20-bc1-4.build.redhat.com) (gcc version 4.0.2 20051125 (Red ...

"Fatal exception occurred. Program will exit"

101 byte By sunlordclavea at 2007-11-26 14:03:33
I get this JVM error whenever I open a .jar file created with Blue-j. Anyone know whats wrong?

Javac in jre

185 byte By RamadossNa at 2007-11-26 14:04:56
HI,As I am new to java, it would be helpful if i get anwser for this question. What is the use of javac in jre though we have this in jdk.? Thanks,Ram

GC locker: Trying a full collection because scavenge failed

679 byte By david327a at 2007-11-26 14:07:18
Hi,We've got the following message using PrintGCDetails option in a java 1.4.2 virtual machine (We are not using any GC jvm modifiers beside PrintGCDetails):"GC locker: Trying a full collection because scavenge failed"We've got this message just once and after that, we've got lots of minor ...

Dying on NewObject() call?!?!?!?!?

2321 byte By vin109a at 2007-11-26 14:09:28
Hi I'm have a java app that calls a native C function. That native C function returns an array of structures back to the java side. My Code is below://this function is to return a array of structuresJNIEXPORT jobjectArray JNICALL Java_CBroker_querySystemConfigurationCSide (JNIEnv *env, jclass ...

ClassLoader questions

2594 byte By Poncho1975a at 2007-11-26 14:09:49
Hi, I am trying to understand the mechanisms that stand behind the concept of ClassLoader andhow this i working in different scenarios. I have collected some questions where I am unsure.So maybe someone with the neccessary knowledge can give me some enlightenment. ;-)- Basic ClassLoaders work ...

Sequencing of DetachCurrentThread in multithreaded C++ program

622 byte By Ilovua at 2007-11-26 14:10:20
Hi,in my C++ program, (MVC++ on XP, using Java 1.5.0_06) the JVM throws a great big hissy fit if threads do not attach and detach in a strict queue like order. For example, the program crashes at *** in the following sequence:Thread 1: attach to JVMThread 2: attach to JVMThread 2: detach from ...

How to determine the operand types in stack by pc

484 byte By china_beijing_wangruia at 2007-11-26 14:10:52
Dear everyone, I'm very curious about the garbage collection, how can it know all the operand types which is on the stack just by the pc register. Is there any article talking about this? Could any jvm expert answer this question? At a specified code position(a specified location of the jvm ...

young generation gc some times takes longer time

4248 byte By anujlal1a at 2007-11-26 14:11:23
jdk: 1.4.2_06jvm parameters: -Xms2560m -Xmx2560m -XX:NewSize=32M -XX:MaxPermSize=256M -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -nature of our application is that most of the new objects which are cretaed most likely is going to end up in tenured space so we have kept ...

Assistance Request - GUI - Amoritization Table

12207 byte By WiverWombata at 2007-11-26 14:12:15
I am taking an on-line programming class. One of our assignments is to develop an amortization table using a GUI. I have developed most of the program but I am stuck on a section of the code. I am able to calculate the first set of payments which are: Monthly Payment, Loan Balance and Interest ...

To post messages / click Buttons of a Java Jar App using code

562 byte By Jun0Xa at 2007-11-26 14:19:04
Hi,I have this application - Calculator.jar Java Application running on my Windows OS. I need to write another application that can input data / click buttons of this Java calculator application. The idea is to have an application that is coded to control the Calculator java application ...

How to catch Exception inside the native code

868 byte By nava_123a at 2007-11-26 14:20:29
Hello,I have an error of unexpected exception during running native code,it occurrs randomly, not every time.the error text is:An unexpected exception has been detected in native code outside the VM.Unexpected Signal : 11 occurred at ...

JNI launching a java application

434 byte By bavardagea at 2007-11-26 14:20:43
Being a java newb, a lot of the JNI code confuses me.I have a java application that I wish to run through a JNI wrapper.What is the most simple C++ code that will enable me to do so.Also most of the code posted for doing this uses various header files. Where can one find these header files, and ...

instantaneous application instances on Solaris

581 byte By ifmisa at 2007-11-26 14:26:23
Hi, I have a java application running on a Solaris 9 machinewith Java 1.5.0_07. I can see the instance of the application in the process list by ps command however once in a while it displays both the original and another instance but a child one this time with the same jvm arguments I assigned ...

JVM Thread Control

419 byte By Neo2001a at 2007-11-26 14:27:13
I have a web application using Tomacat 5.0.28. In catalina.bat for java i've given -Xxms256m -Xxmx512m. When im running the application.. my java.exe is going upto 202mb.. thread count (in windows manager) is upto 700-800 (in 10 minutes). and then my server goes slow and no request is ...

Calling a running Java application

317 byte By ScreenNameHarisha at 2007-11-26 14:31:46
I am writing a Windows DLL which is loaded by a Java application. Usually the Java application calls DLL functions. But at some point, I need to call some method in the Java application (a callback notification). Please let me know how can I do this. I appreciate sample code. Thanks in advance. ...

Check JVM is installed during deployement

174 byte By Asmaaa at 2007-11-26 14:32:28
Please, i want to prepare the installation for my project by using inno setup and i want to check whether JVM is installed or not on PC during the program installation

JVM Launch error

782 byte By sabya at 2007-11-26 14:36:32
I have already looked into all the threads regarding this error but I am not able to solve my problem.Now the problem is that I am trying to run a java application but it gives me the error [message box] as given below :Java Virtual Machine Launcher - [heading of the message box]Fatal Error. ...

Detecting JVM version, and prompting an install

473 byte By coldeagle82a at 2007-11-26 14:37:57
Hello folks:I'm a CRM administrator, and I know enough Java to be Dangerous. Our CRM currently uses a Java based client to initiate chats. The problem is there is a queue before hand, and if the customer has MS VM or an older version of JVM, then they get kicked out and prompted to install. I ...

Capture the output of ExceptionDescribe

469 byte By caffeinea at 2007-11-26 14:43:54
I have some C++ code which calls Java code through the Invocation API:jType type = env->SomeJNICall();if ( type == NULL || env->ExceptionOccurred() )env->ExceptionDescribe();Instead of spitting out the exception description to stdout (or stderr?) is there a way of capturing the text ...

Multithreading / JNIEnv in the wrong thread / JDK 1.6

884 byte By fr_java_3a at 2007-11-26 14:46:00
I've written a multihreaded application using JNI as interface for communicating with a kind of data storage ( C-app). I've learned from the doc that the JNIEnv-Pointer stores thread specific data and therefore only the thread which instantiated the JNI-interface is allowed to use native ...

Internal error

7168 byte By steve_rainbirda at 2007-11-26 14:49:21
We are gettijg the following error.Any ideas what is happening or even where to start to look?## An unexpected error has been detected by HotSpot Virtual Machine:## Internal Error (41443F53504152430E43505001C8 01), pid=18362, tid=7## Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_08-b03 ...

General question on Java/COM bridging

474 byte By calzakka at 2007-11-26 14:51:07
A general question that I hope Windows Java developers can answer for me...A company develops and sells a commercial ActiveX component for Windows. In the Java world, is it the Java developer that takes care of integrating the component into their app, using a JNI wrapper creation tool of their ...

How is a direct ByteBuffer released?

270 byte By linuxhippya at 2007-11-26 14:52:20
Just to be curious, how does the JVM know wether a direct byteBuffer can be released of no reference points to it?Is there some reference-counting magic in the background or does a full DirectMemory-Area trigger a GC?Thank you in advance, lg Clemens

JVM Crash

11734 byte By lux.slna at 2007-11-26 14:53:42
When i run my program for some time (well, the time varies, sometimes 5 mins, sometimes 1 min..) my app crashes... i am attaching the contents of the log file. could any one please tell me what is happening here ? and why this is happening ?Thanks in advance..## An unexpected error has been ...