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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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) ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 = ...
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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.
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 ...
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 ...
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 ...
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 ...
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. ...
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?
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 ...
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.
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 ...
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", ...
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 ...
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 ...