Can we create an Plugin manager written by C++ to call a Plugin by java?

375 byte By dochoangvu@yahoo.coma at 2007-10-3 11:44:12
Hello Experts,My problem is:My application is written by C++ with Qt frameword. However, we want to call a plugin written by Java to run. In Qt to have the QPluginLoader for call an plugin written by C++ to run, but can not call the java plugin. How can we solve this proplems? If you have a ...

CMS very long pauses

512 byte By haimya at 2007-10-3 11:45:16
We are using JRE1.4._10 on Windows with large heaps min=max=1400MWe are also using CMS in order to reduce pauses.Two problems are experienced:On startup we see a GC pause which takes more than an hour (it happens in one every four restarts)On heavy load from time to time there are 2-3 minutes ...

CMS very long pauses

737 byte By haimya at 2007-10-3 11:46:15
I have posted this thread in the JVM forum please ignore it here We are using JRE1.4._10 on Windows with large heaps min=max=1400MI posted this problem on the Hotspot forum by mistake so I am posting it again here(looks more relevant)We are also using CMS in order to reduce pauses.Two problems ...

crud operations

400 byte By hamidagaa at 2007-10-3 11:46:56
Hi, shouldn't it be easy?A table displays a Collection of objects. I want be able to click on an 'edit' link or button and be brought to the detail screen for editing the record.I have to retrieve the ID of my objects, but I don't know how to get it after clicking on the edit-link.There ...

Could not find -Xrun library: libjmeter.sl

1201 byte By cengaveroa at 2007-10-3 11:47:22
Hi ..My environment is: [oracle@yavuz] /oracle # uname -aHP-UX yavuz B.11.11 U 9000/800 4205714048 unlimited-user license[oracle@yavuz] /oracle # java -versionjava version "1.4.2.10"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.10-060112-14:28)Java HotSpot(TM) Server VM (build ...

Memory leak in JDK5

1242 byte By rituraj_tiwaria at 2007-10-3 11:48:25
Folks,I develop a Java application (non-J2EE) which is highly multithreaded and runs on server class machines. One of the recent changes we made to the application was to replace a bunch of JNI code with pure Java code.Load tests of our application show a very prett Java-side picture (as seen ...

Applet does not load

505 byte By sam_ashu_714a at 2007-10-3 11:49:01
I am stumped by this problemI have a applet served by a servlet running under tomcat which works fine from several different locations.Our end-user has been trying to access it from a secure site, and cannot... :(There is no output in tomcat logs or on the java console to indicate an ...

AttachCurrentThread

2065 byte By MikePrettia at 2007-10-3 11:50:10
I'm using the code below.I successfully create a JVM the first time this is called. And the second time ( and every subsequent time ) this method is invoked, it displays that there is 1 JVM found, but the line:jint attached = jvm->AttachCurrentThread( (void**)&env, &thr_args ...

concurrent mode failure

3384 byte By Traxx77a at 2007-10-3 11:53:08
Hello,I turned on gc logging, now I go the following error (I am not well known in java, hope to get help here). We are using a xeon dual core processor with 8 gb of ram. Maximum Heap size is 1280MB, here the other ...

System.load(PATH_TO_LIB) issue inside java package

680 byte By sudia at 2007-10-3 11:56:25
Hi all,sorry if this has been asked somewhere, but I just could not find any answer of it. I simply want to load a library by using System.load(ABSOLUTE_PATH_TO_LIB) and call its native function. I could get this to work if I call this function in a class without having any package to ...

Tenured messgaes in GC logs after upgrading to jdk1.4.2_13

1624 byte By Sawan_ATMa at 2007-10-3 11:57:30
our application is BEA weblogic 8.1 sp4 on solaris box,initially we were getting OOM errors but after upgrading our JVM and resizing Heap settings we are done away with OOM errors. But in GC logs we are getting Tenured messages. My Heap settings :="-XX:NewSize=512m -XX:MaxNewSize=512m ...

NoClassDefFoundError with java 6

1114 byte By dandua at 2007-10-3 11:59:24
Hi,I am working on a standalone swing application which is running fine with java 5.0. I am having problems running the same application with mustang.I have downloaded the java 6 release candidate and pointed the jre option of the eclipse to the jdk1.6.0. and changed the compiler option of ...

Simplest code, strangest error !!!

3172 byte By Don_Fabrizioa at 2007-10-3 12:02:39
Hello!I'm trying to use JNI because i want to pass a byte array from Java code to native code. But, for a simple task like this, i have a very strange problem: after a certain number of cicles, the VM crashes with an Access Violation... and if i modify a bit the code (java-side or native-side) ...

How to take regular heap dumps using HPROF

2264 byte By Makama at 2007-11-26 12:25:44
Hi Folks,I am using Oracle App server as my application server. I found that the memory is growing gradualy and gets maxed out with in 1 hour. I am using 1 GB of heap. I defently feel this is a memory leak issue. Once the Heap usage reaches 100%, I will start getting the FULL GCs and my whole ...

JAVA HOTSPOT Error with SAPGUI 7.0 and JDK 1.5.0_03 Problematic frame

23565 byte By chotadona at 2007-11-26 12:32:33
It Clearly says GetLocalName What is the this its is lokking for ?Regards## An unexpected error has been detected by HotSpot Virtual Machine:## SIGILL (0x4) at pc=0xb0985fa7, pid=3297, tid=2978110384## Java VM: Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode, sharing)# Problematic frame:# C ...

jni.h: No such file or directory error message

1345 byte By rosenthaa at 2007-11-26 12:35:47
I'm having trouble completing the walkthrough named "Beginning JNI with NetBeans?C/C++ Pack 5.5, Part I" at http://www.netbeans.org/kb/55/beginning-jni-part1.html (I'm stuck on step 3 of the "Implementing Method" subsection of the "Setting Up New C/C++ Dynamic Library Project" section).I ...

1.5.0_08 EXCEPTION_ACCESS_VIOLATION in deploy.dll

18472 byte By mark.dalya at 2007-11-26 12:36:19
Hello,We develop a java application that is deployed over the web via Apacha Tomcat servlet container using IE 6. Sometimes, sporadically throughout the life of this product, we have seen JVM crashes that close all IE browsers open and place the hs_err_pid logs on the desktop. We used to use ...

Has anyone verified jdk1.3.1_19 does not actually have the new DST rule?

435 byte By goodfornothinga at 2007-11-26 12:37:40
Hi Everyone,Has anyone verified that jdk1.3.1_19 does not actually have the new Daylight saving time rule mandated by Congress starting 2007 although Sun claims that it does? I tried jdk1.3.1_18 and jdk1.3.1_19. They do not have the new DST rule. I tried jdk1.4.1_11 and it has the new DST rule. ...

Setting the Java Heap Size (I have to set the cmd everytime I run the app)

865 byte By RodneyDMa at 2007-11-26 12:37:59
Hello,Is there a way to set the Java Heap Size permanently for my machine, instead of specifying the -Xmx command everytime I run the app?For Example,...Currently when running my application I run it by typing the following in the command line: java -Xmx1024m -XX:MaxPermSize=512m ...

Full GCs with long pauses

9076 byte By shaneorourkea at 2007-11-26 12:38:28
Long delays are being encountered when Full GCs kick in. Here are the statistics relating to the a sample Full GC, with heap readings from before and after. [Wed Dec 06 12:06:49 MET 2006] stdout:{Heap before GC invocations=1923:[Wed Dec 06 12:06:49 MET 2006] stdout: Heap[Wed Dec 06 12:06:49 MET ...

UnsatisfiedLinkError for native function of inner class

3037 byte By irbafa at 2007-11-26 12:39:42
Hello,I have a problem with native functions of inner classes. Here is the code:class Outer {public static class Inner {native public void innerFct();} public static void main(String[] args) {Inner i = new Inner();i.innerFct(); } static {System.loadLibrary("OuterInner"); }}javah generates ...

Develping JVM

208 byte By javasmia at 2007-11-26 12:41:46
Hi, Is it possible to develop JVM or some features of JVM. Has anyone done it before. I want to do this as you can understand the concepts better if you do it.Thanks in advanceSham

Modifying Windows XP look title bar

409 byte By latheefa at 2007-11-26 12:43:35
Hi,I need to put an animated gif file on the titlebar of a JFrame near to minimize icon with WindowsLookandFeel.I read that the Java directly render the titlepane from the OS decoration for windowsLookIn Java 6, it uses UxTheme.dll for rendering from Micrisoft and Java 5 some .msstyle.Please ...

java constant changing during runtime

984 byte By nsaidanea at 2007-11-26 12:44:51
Hi,I have a very weird problem occurring, here's the description.First i have the following interfacepublic interface IdConstants{ public static final long INVALID_ID = -1;public static final String INVALID_ID_STRING = Long.toString(-1);public static final long INVISIBLEID_ID = -1;public ...

JNI Unsatisified Link error with overloaded static native funtions

1405 byte By mjdalpeea at 2007-11-26 12:46:46
Hey,This problem exists in both JDK 5 and 6 under Solaris. If you overload a static native function, the VM is not generating the correct signature for the overloaded function when it tries to resolve it. I built a debug version of JDK 6 to verify this, stopping in the routine that is called to ...

Java JNI javah: cannot access utils.myUtils.Find

887 byte By crazyBeara at 2007-11-26 12:48:25
Hi all,I've got the same problem as in this topic: http://forum.java.sun.com/thread.jspa?threadID=709403but the given fix doesn't work for me :'(Here is my class:~/workspace $ ll /home/tom/workspace/utils/myUtils/Find.class-rw-r--r-- 1 tom tom 2,2K d閏 01 18:38 ...

Sun VM VS Microsoft VM... HELP ME PLEASE!

591 byte By vannyna at 2007-11-26 12:51:17
Iv'e developed an applet with Java JDK 1.5. This applet works fine when i select "Sun 1.5 VM" as my favourite VM.Now, i've to use in the same computers another applet, not written by me, that work well on Microsoft Virtual Machine, but not with the Sun VM.-_-Obviously my applet doesn't work ...

accessing a method through its mapping address

1318 byte By _mca63a at 2007-11-26 12:54:57
Hi,I'm wrapping a native C dll which has a function asking for function pointer as a parameter. In fact, it's a way to register a callback that will be called on event.My need is to wrapp this function so that i can register a Java method instead of a C function.I could, in my wrapper ...

Help Reqd to place the Java Heap & Max Size in the program itself.

819 byte By sachin.sa at 2007-11-26 12:57:32
Hi,I have a standalone application(jar file), which can be executed when double-clicked from windows. Now the problem I'm facing is when I need to process large txt files using this application. The program throws up a memory exception. I have overcome this problem by using the command line = ...

using a library (jcurses) that uses jni

1231 byte By rosenthaa at 2007-11-26 12:59:06
I'm having trouble uses the JCurses library. Here's what's happening:>ls -Ajcurses.jar .keepme libjcurses.so Test.java>javac Test.java -classpath jcurses.jar>ls -Ajcurses.jar .keepme libjcurses.so Test.class Test.java>java Test -classpath jcurses.jarException in thread "main" ...

JVM 1.5.0_07 crash

8663 byte By vijay25a at 2007-11-26 12:59:20
Hi,We are using vertex O series in Sun OS.We have configured JCO to connect to other system and the connector is crashing and it is creating a file hs_err_pid<pid>.log with the following contents.Earlier it creates the same files frequently but without contents.After upgrading the jdk ...

problem of setting up TCK server

834 byte By VcitorKea at 2007-11-26 13:00:06
I'm a 3G programmer in China. Now I'm given a task to set up TCK server to test the KVM we build by connection with the ME. When I load configuration file, there comes an error "Error while loading file(c:\TCK\TCK_MIDP\midp_interactive.jti) data does not apply to this interview". I find that ...

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 ...

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION

7511 byte By ravindraraa at 2007-11-26 13:15:12
Hi AllI am getting this error log in hs_err_pid3284 log fileUnexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x8077C52Function=[Unknown.]Library=C:\j2sdk1.4.2_05\jre\bin\client\jvm.dllNOTE: We are unable to locate the function name symbol for the errorjust occurred. ...

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 ...