Hi everybody. I made a DLL with Borland C++.I must pass a string from this dll to Java via JNI.Namely i define a string variable in C++ DLL and i send this variable's value to Java via JNI. I can pass integers but i couldnt Strings. . How can i do this? is there any sample?
Hii JavatiesI got EXCEPTION_PRIV_INSTRUCTION exception while running a jsp on Weblogic Server 8.1.Unexpected Signal : EXCEPTION_PRIV_INSTRUCTION (0xc0000096) occurred at PC=0xA724A0Function=[Unknown.]Library=(N/A)NOTE: We are unable to locate the function name symbol for the errorjust ...
hello,I'm trying to make an interface between java and a c++ program.I get everything wroking except for one method. And I have no clue how to solve it.I have a function in c++ :SchedulerOsa::SchedulerOsa (JNIEnv *env, jobject obj){printf("osa sched created\n");env_ = env;obj_ = obj;}Event ...
3953 byte By
csgan97a at 2007-10-3 11:07:52
Application server registered intermittent slowness in getting database connection from javax.sql.DataSource. Based on the following JMX value, the application servers still haven抰 reached the threshold. Its identified the slowness was due to application server performing validation (select ...
3953 byte By
csgan97a at 2007-10-3 11:07:53
Application server registered intermittent slowness in getting database connection from javax.sql.DataSource. Based on the following JMX value, the application servers still haven抰 reached the threshold. Its identified the slowness was due to application server performing validation (select ...
1548 byte By
csgan97a at 2007-10-3 11:08:00
Application server jvm intermittently crashed but due to the feature in SUN JES 8.1 ur2 the application server will auto restarts the service. Most of the JVM crashes were due to memory corruption.The following are SUN findings:1)Multithreading issue that causes 2 threads writing on the same ...
Hi,Can any one answer my question.As part of my application performance testing one of the container in my application using more memory.(Java Based Application).This application is on solaris platform. When the application started this container normally uses 400 MB. When the load increases on ...
Hi everyone!I launched my application using for GARBAGE COLLECTION these options: -Xmx512m -Xms512m -XX:MaxNewSize=24m -XX:NewSize=24m -XX:SurvivorRatio=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGCSurvivorRatio is 2, so I expect two survivors spaces of 6 MB each one and an eden space of 12 MB. ...
This question has probably been asked many times, but I couldn't find anything in my searches.How can I get Java Web Start on a Solaris client (Solaris 10 in this case, with JRE 1.5) to run a java application that includes a 64-bit native code library? The application downloads fine, including ...
Hi,I have created a really simple jni application. When I run it i get the following exception"Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.5.0_08\bin\win32lib.dll: Can't find dependent libraries"and a message box pop ups saying "This application has ...
I'm just learning how to use the JNI and have been following the tutorial provided by Sun. My knowledge of C and its compilation system is very limited (I'm a Java generation programmer) I try to create a dll using the method proposed by the tutorial like this:cl -Ic:program ...
369 byte By
Freakkka at 2007-10-3 11:13:36
I get the following error when using the JNI_CreateJavaVM function to embed a JVM in my c++ code...Linking...sample2.obj : error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12Debug/sample2.exe : fatal error LNK1120: 1 unresolved externalsError executing link.exe.Help requested ...
Hi,I have a piece of code which I have to run in tomcat 5.5.7. This code is using Oracle JDBC OCI driver for database access. For use of OCI driver, the native library libocijdbc10.so has to be included.When I run this code snippet as a standalone Java programme (standalone JVM), I do the ...
19294 byte By
jmkdeva at 2007-10-3 11:15:13
I have an app that runs fine for several minutes and between two GC cycles, the young generation heap cannot be cleaned. When this happens a Full GC is invoked causing the JVM to unload sun.reflect classes that appear to be obfuscated and only used once. I am thinking the sun reflect classes ...
Howdy,I'm using SWIG to create a java wrapping of a library (DCMTK) which has methods that take a std::ostream parameter. I can certainly write C++ code that returns a std::cout or that opens a file and returns me the ostream.However, java already has nice stream classes that can go to a file, ...
2325 byte By
DaDaDeva at 2007-10-3 11:16:34
Hi,We're using a heavyweight Java application with a 1.4.1 JRE who happens to stop running correctly under unclear circumstances.Our analysis lead us to produce "full thread dump" traces. These traces seems quite identical but a closer look shows us some differences we don't understand:When ...
Hi all,In my C JNI Library, I want to be able to construct objects of Java classes i have made that are not the class containing the native method. However, for speed I don't want to FindClass() every time I want to construct. I know that I could make a global reference and cache that, but is ...
Hello All,I have tryed to implement my own ClassLoader to do some extra work when each class is loaded. My ClassLoader try to find the class in a classpath first, and if the class is not found, it should find the class in some directory specified by me and instantiate it.I have created a custom ...
Hi All,java.lang.UnsatisfiedLinkError: /root/workspace/skype_api/release/libJSA.so: Can't load IA 32-bit .so on a IA 32-bit platformHas anyone any idea what this message is supposed to mean? This occurs when trying to load a JNI Library. Do I need to compile it with some special flags or ...
Hello everybody , I encountered an issue in regard to allocation of heap memory for the JVM. I have an t argets for starting and stopping mysql data base and tomcat 5.5 server. I am using java 1.5.09. The tomcat start and stop targets are <target name="start_tomcat_server" > <exec ...
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 ...
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 ...
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 ...