Out of swap space

3188 byte By Ramkumar.Subbaraja at 2007-11-26 19:11:16
Hi All,I am getting the following exception in my application serverException java.lang.OutOfMemoryError: requested 1024000 bytes for GrET* in D:/BUILD_AREA/jdk142-update/ws/fcs/hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?The jvm settings which I use are-Xms768m -Xmx768m ...

Experience w/ Zip files? VM settings?

647 byte By heyblueza at 2007-11-26 19:14:33
I am not too familiar with VM options but I noticed that reading from Zip files is pretty process intensive. I am basically searching through zip files to find a file and then taking that inputstream for processing. I am basically looping through the zip file until i match the ...

EXCEPTION_ACCESS_VIOLATION error. HotSpot Virtual Machine

858 byte By my_java_screena at 2007-11-26 19:22:45
Hi AllI have got this error in my JBoss server, but I am posting it here since it seems to me a JVM error. When I try to access my application deployed on JBoss server, I get this error on my JBOss server console and it shuts down.An unexpected error has been detected by HotSpot Virtual ...

Splash screen parameter not working from JNI

560 byte By trejkaza at 2007-11-26 19:23:24
I've been trying to get the splash screen to come up from our native launcher which uses JNI invocation to start Java.Problem is it doesn't seem to work... wondering if this is a bug or a feature, or whether I'm doing something wrong.I can't post the code because our launcher is huge and ...

Java Interaction with Keypad

157 byte By PATILa at 2007-11-26 19:23:41
How can you make sure that the keyboard work only with your Java application and not with the other windows?Message was edited by: PATIL

picking the right API

177 byte By wheeliecakea at 2007-11-26 19:29:00
HiIf you have an app running on your local machine, how do you find out the correct API for that app so that you can hook into it with java?Many thanks, Ron

Platform Invoke in SUN's Java

2480 byte By vitallisa at 2007-11-26 19:33:24
The most of Java developer does not use (maybe cannot use) JNI. Because this API is very low and complex in use. But in some type applications developers need to call Native functions from system or other libraries. And the only decision is to write JNI code or to use some tools like ...

Passing Parameters with variable values

2543 byte By jjones3566a at 2007-11-26 19:33:49
OK, I'll try this again.The function in the header file (no source)is:NEWTON_API NewtonWorld* NewtonCreate (NewtonAllocMemory malloc, NewtonFreeMemory mfree);In the documentation are the following statements:ParametersNewtonAllocMemory mallocFnt - is a pointer to the memory allocator callback ...

Calling static java methods from JNI

4437 byte By orita at 2007-11-26 19:34:55
Hi I'm trying to call a java method from a c++ code (using JNI)This is called as a callback (java calls native code, and then the native code should call a java callback again)when the callback is declared as non-static, this works fine:Callback.java:class Callbacks { private native void ...

About CallByteMethodA Function

1365 byte By shiannjia at 2007-11-26 19:38:52
Hi you all:I have some problem about CallByteMethodA function.This is what my java code looks like: public void setDS_INFO_mac(byte[] mac) {for( int i = 0; i < mac.length; ++i ) {this.ds_info.mac = mac;} }This is what my c code looks like: jobject objref; jclass cls = NULL; jfieldID fid = ...

Full GC runs even when enough space is remaining

5965 byte By tsriram07a at 2007-11-26 19:40:48
I am running a server application with these specs:OS: Solaris 9 32-bitJVM: 1.4.2_11Xms=Xmx=2048MGC ...

java.lang.UnsatisfiedLinkError

3757 byte By mraheela at 2007-11-26 19:47:38
Guys, I have done everything but cannot fix this error.. its been past three days i am stuck with this problem and writing here as my last resort...Can anyone plz help..This is my entire stack tracejava.lang.UnsatisfiedLinkError: ...

how to call a routine that returns a pointer using jni

251 byte By raviva at 2007-11-26 19:48:09
hi this is ravi kiran,i have a situation where i need to call a c-routine from my java program that returns a pointer.how can i get the content of the pointer that the routine is returning.plz help methanx in advance

How to lock keyboard through java program

196 byte By CuteGal_Pavana at 2007-11-26 19:48:58
I am developing a Swings application in which I have a requirement to lock the Keyboard on clicking on a particular Button. Plz. help me in this regard.Thnx in advance.Meghana

5.0_u6 = 1.5.0_06 ?

287 byte By jashaffnera at 2007-11-26 19:52:36
http://java.sun.com/javase/tzupdater_README.htmlWe were looking at what version supports the latest DST changes. The link above shows that at least 5.0_u6 already incorporates the latest DST changes. We have 1.5.0_06 and 1.5.0_07 showing on computers. Is 5.0_u6 = 1.5.0_06?

Building 64-bit C++ app on AMD & Windows 64-bit using vs2005

891 byte By codewarrior22a at 2007-11-26 19:54:48
I've looked around the Developer Forums (et al) and I think this is the appropriate place for this question/subject. If not please let me know another place.I'm porting a c++ app from 32-bit to 64-bit that relies on some java code for doing db access. The c++ app uses jni and for various ...

Error Invalid magic number at calling native library at AIX

1280 byte By FlimmFlamma at 2007-11-26 19:58:08
Hi,I have a Java app calling functions from a C/C++ shared library. At Sun and HP all works fine, but the same stuff returns the following error when calling under AIX:>java JIAK3smssJIAK3sms.001I-Release 1.1.0 StartException in thread "main" java.lang.UnsatisfiedLinkError: IAKJAVA (0509-026 ...

HotSpot Virtual Machine Error, Internal Error

1024 byte By localhost_log.2006-10-19a at 2007-11-26 20:05:42
# HotSpot Virtual Machine Error, Internal Error# Please report this error at# http://java.sun.com/cgi-bin/bugreport.cgi## Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)## Error ID: 4E4D4554484F440E435050019E## Problematic Thread: prio=1 tid=0x556f8b18 nid=0x7f2f runnable#Heap at ...

strange malloc/new behavior

462 byte By gregman_pla at 2007-11-26 20:08:37
I have a strange problem : I'm trying to allocate simple char buffer in JNI dll with C++. But no matter what i try to write to this buffer, and how, the first 4 bytes are always = 0. I tried to allocate it with both malloc() function and new operator. Result is always the same.Because i'm ...

hs_err:pid...

1538 byte By cruziesta at 2007-11-26 20:09:11
Hello,The Boss just got us Vista pre-installed laptops and we can't seem to use SSL-explorer / java properly any more. Every try brings us to 'an unexpected error has been detected by Java Runtime Environment:' . An hs_err_pid### log file is then posted to my desktop.Examples below:1.)An ...

CMS collector ignoring -XX:CMSInitiatingOccupancyFraction completely

1143 byte By MMMMMMMa at 2007-11-26 20:09:38
I have a Java service that appears to ignore theXX:CMSInitiatingOccupancyFraction flag completely. Here're the GCrelated ...

bypass the classloader's parent delegate model

310 byte By well.Heada at 2007-11-26 20:13:22
is there a method to bypass the classloader's parent delegate model?say,if i define a new classloader,and i wish get a java.lang.String class defined by me other then java.lang.String via my classloader other than via its parent,how can i do?Message was edited by: ...

JNI and non-modal JWindow created from C++

1202 byte By J-Braina at 2007-11-26 20:16:36
I have the following situation in my application:My main application is a Visual C++ GUI application. In this application the user has the option to open a non-modal Java Swing window. To do the communication between C++ and Java I use JNI. Since I only have to perform some basic communication ...

An unexpected error has been detected by HotSpot Virtual Machine:

16166 byte By oilqueena at 2007-11-26 20:18:21
For some unknown reason i get booted from certain sites,especially game sites,leaving an error code + details on my desktop .I have removed java and re downloaded it several times but i am still getting this error .I have the latest java as far as i know ,can anyone help me out here please :) ...

EXCEPTION_ACCESS_VIOLATION

6211 byte By Kumbia at 2007-11-26 20:18:25
I am getting the Access violation error message when I use JNI to pass data to a COM client developed with C++. Through using message boxes as break points in the C++ source code, I can see that the native code works fine. It uses the data sent from the Java end, calls and manipulates the COM ...

linking error ->JNI code

2568 byte By login1a at 2007-11-26 20:19:26
HiI am new to JNI.I am getting linking error as below:--Configuration: InvokeJava - Win32 Debug--Compiling...invoke.cinvoke.obj : error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12invoke.exe : fatal error LNK1120: 1 unresolved externalsError executing cl.exe.InvokeJava.exe - 2 ...

MinGW comple error

2076 byte By jjones3566a at 2007-11-26 20:21:23
What does this compile error mean?[exec] Executing 'gcc' with arguments:[exec] '-mno-cygwin'[exec] '-IC:\Program Files\Java\jdk1.5.0_11\include'[exec] '-IC:\Program Files\Java\jdk1.5.0_11\include\win32'[exec] '-Iinclude'[exec] '-c'[exec] 'source/jnewton_JNewtonWorld.c'[exec] ...

Handling of undeclared checked exceptions

407 byte By stefan.schulza at 2007-11-26 20:23:34
When thinking about conversion issues in a planned Java extension, the following question came up, where I could not find information about. Maybe you can tell me: If bytecode is created for a method (by a compiler extension) not declaring any exceptions, and within this bytecode a method is ...

Passing WINNT file name as a argument from java to C code

1722 byte By chatrapathia at 2007-11-26 20:37:31
Hi ,Plz help me on the following issue for which we are struggling from last 2 weeks. I am working on the encrption/decryption of some native files involving C based DES algorithm functions.I have got some native files whose names has to be passed from my jni code to Native c code as parameters ...

Getting Total Faults Of a Process Using java

279 byte By Akash5495a at 2007-11-26 20:52:10
Hi All, I want to get all Page Faults of a particular process at any given instance of time(When i run the application).i am able to get Page Faults/sec but not total since the beginning of process.do anybody have an idea how to do this.?Regards:Akash

Open CD Rom from Java ?

892 byte By speed_of_lighta at 2007-11-26 20:54:23
Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpCommandString As String, ByVal lpReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As LongPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ...

creating a 'listener' on a native C device

1979 byte By dwigdora at 2007-11-26 20:58:41
Greetings,I have posted something related to this in the thread "accessing a method through its mapping address". I thought I should generalise the problem a bit, so that others might benefit. The general problem:I have a device with an SDK written in C++. To access incoming data from the ...

Static verification of interface references

896 byte By Hotlicksa at 2007-11-26 20:59:22
The JVM spec (prior to JDK 6, to keep it simple) implies that static data-flow-based verification is done on methods at class load time, including the parameters to method calls. For object references (pointers) this, as I understand it, assures than the class flowing to a use of a reference ...

long GC pauses; full gc eventually takes 30 secs. (from Developer Forums)

1906 byte By aksel.schmidta at 2007-11-26 21:01:27
from http://forum.java.sun.com/thread.jspa?threadID=5145522jre 1.5.0_06,-Dcom.sun.management.jmxremote -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:NewRatio=3 -XX:MaxTenuringThreshold=3 -XX:NewSize=90M -XX:MaxNewSize=90M -Xmx800Mwindows 2003 ...

Command to be executed in solaris machine to know the existing heap size

170 byte By Nandakumar_sa at 2007-11-26 21:01:47
Hi,I want to know the command to get the existing heap size of JVM. Java version is 1.5 and runs in solaris machine.ThanksRegards,Nanda

passing C structure to java

599 byte By rkannaa at 2007-11-26 21:02:00
Hi all,Iam new to JNI. I need a small help.I have structure typedef struct channel_info{ int channelno, char channelname;char units; struct channel_info * nextchannel;}channel_t;i will fill the structure in c code and i want to pass this structure to java.and i want to access the data stored in ...

How to exit out of the Java code when going back to the C++ code?

737 byte By BrigitAnanyaa at 2007-11-26 21:05:41
I wrote a program in Java and made it a plugin for Adobe Photoshop, which is written in C++ and calls my Java program using JNI.In my C++ program I call JNI_CreateJavaVM, and I open a Java window with the same picture as in Photoshop and I minimize Photoshop.Unfortunately when I go back and ...

Crashing the Java Virtual Machine

208 byte By zhiyanga at 2007-11-26 21:07:14
When people talking about crashing the Java Virtual Machine (JVM), are they only refering to getting the JVM to run out of virtual memory?How else can one cause the JVM to crash?Thank you

GC minor collection takes much too long

2798 byte By sunteam@sieerla at 2007-11-26 21:18:09
Hello,wie have an web-application which runs within a JRUN-Container. Sometimes it happens that the application is quite slow or does not respond any longer. I assume that this is caused by excessive Minor Garbage Collection. Usually Minor GC takes less than 50ms for our application, but when ...

Full GC question

291 byte By jevans123a at 2007-11-26 21:18:11
referencing document,https://java.sun.com/j2se/reference/whitepapers/memorymanagement_whitepaper.pdfwith the flags:XX:+UseParallelGCXX:+UseParallelOldGCWhen a full GC occurs, does the mark-sweep-compact algorithm get applied to the young generation?

JNI Image Rendering

805 byte By thomas.ga at 2007-11-26 21:20:29
I have a problem regarding Java and C++. I want to write a Java application that can display the livestream of PTZ cameras and network cameras. It currently works but the algorithm is not very efficient. I have written a C++ library (compiled with Visual Studio 2005) that writes the image data ...

gc control

45 byte By chandu.acba at 2007-11-26 21:34:26
Is there any way to control GC of jvm?

Out of memory (Out of swap space?)

7978 byte By coolysja at 2007-11-26 21:35:48
OS: Windows Server 2003 standard editionJVM: jdk1.5.0_11Xms=128MXmx=1024MGC Settings:-XX:PermSize=64M -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+DisableExplicitGCOne of the java solutions is running on Windows Server 2003.The physical memory size about is 2 GB.Only this ...

FATAL ERROR in native method: JNI call made with exception pending

767 byte By smzubera at 2007-11-26 21:37:19
Hi everyone,I am trying to resolve this error exhaustively for the last 3 days.I have a 3rd Party DLL library which i am supposed to use from my Java Application. I compiled my own DLL that links(calls methods) the Java code and the the 3rd party DLLs. It works fine in my machine and 2 of my ...

Arithmetic Implementation in Hotspot JVM

571 byte By hendrik_ja at 2007-11-26 21:38:39
Hello anybody,i'm actually researching the implementation of arithmetics in several programming languages.i checked the source and found the definitions of instructions like iadd or fadd incInterpreter_i486.inline.hpp(sparc version is the same)these definitions look like:inline jint ...

Solaris driver on javax.comm

504 byte By judith0201a at 2007-11-26 21:39:59
Hi there!!I'm trying to do a chat application based on serial connection. I've already installed the javax.comm api but when I run the application it throws this exceptions:Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.pathCaught ...

How to know library methods

272 byte By vinodpatel2006a at 2007-11-26 21:41:19
Hi,I am loading .DLL file from the Runtime.loadLibrary method. I want to know list of methods/function call available in that library file.Is any class available in java for that ? Any help will be appriciated for me...Thanks In Advance.

URGENT : Out of Memory : New Generation Filled up but space in old gen.

1630 byte By Aabbhhiia at 2007-11-26 21:41:35
Hello,Would appreciate any inputs.Setup :64 G HPUX machine - 16 processors-XX:ParallelGC specifiedNewRatio = 2-ms -mx 3.5 Gig -mn 1.5 G [ The New generation size ]Parallel GC Threads = 16The application reads a file and inserts data into a database.With 10 threads and 100 as the database commit ...

PLEASE HELP ME

310 byte By T_Libbya at 2007-11-26 21:42:38
I get this error when trying to install Cisco Network Assistant Error in instructions. Invalid jvm file name specified in LAUNCH.Invalid variable specification. Line number (4)I have tried everything I can and need some expert help, it's driving me CRAZY haaaaaa.Cheers ...

UnsatisfiedLinkError when try to load c++ lib file

961 byte By shock_ua at 2007-11-26 21:49:47
public class HelloWorld{public native void sayHello();static{System.out.println(System.getProperty("java.library.path"));System.loadLibrary("HelloWorld");}public static void main(String [] args){HelloWorld helloWorld = new HelloWorld();helloWorld.sayHello();}}Here comes the error:Exception in ...