JVM help

hello,
I am trying to get the hang of this JNI and JVM stuff...killing me.
I am trying to get a C++ application to interrupt a java program that is in idle or just have it interrupt a certain thread then I can have the java application do something.
I've tried JNI but with that it is really tough (i think, not sure), if at all possible, to get the interruption I want...
So, I was thinking that JVM could do something of that nature. By putting JVM in the C++ I could call the java methods i want to when I want to. I found this bit of code online and when I go to compile it it throws these errors>>
testingJVM.obj : error LNK2001: unresolved external symbol [email protected] : error LNK2001: unresolved external symbol __imp__JNI_GetDefaultJavaVMInitArgs@4
Debug/testingJVM.exe : fatal error LNK1120: 2 unresolved externals
I amguessing that it can not find where the JNI_CreateJavaVM method is located or they are not linked.
If anyone could help me I would be grateful..thanks
//////////////Java Code/////////////////
package jvmtester;
public class testing {
public testing() {
public static void main(String[] args) {
System.out.println("Hello World from Java!!");
testing testing1 = new testing();
}//end java
////////////////C++ CODE/////////////////
void CTestingJVMApp::mainTest() {
JNIEnv *env;
JavaVM *jvm;
JDK1_1InitArgs vm_args;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jobjectArray args;
char classpath[1024];
/* IMPORTANT: specify vm_args version # if you use JDK1.1.2 and beyond */
vm_args.version = 0x00010001;
JNI_GetDefaultJavaVMInitArgs(&vm_args);
/* Append USER_CLASSPATH to the end of default system class path */
sprintf(classpath, "%s%c%s",
vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
vm_args.classpath = classpath;
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
exit(1);
cls = env->FindClass("Prog");
if (cls == 0) {
fprintf(stderr, "Can't find Prog class\n");
exit(1);
mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
if (mid == 0) {
fprintf(stderr, "Can't find Prog.main\n");
exit(1);
jstr = env->NewStringUTF(" from C!");
if (jstr == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
args = env->NewObjectArray(1,
env->FindClass("java/lang/String"), jstr);
if (args == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
env->CallStaticVoidMethod(cls, mid, args);
jvm->DestroyJavaVM();

http://java.zu5.net explains it very well

Similar Messages

  • OHJ and Forms 9i - unitialized JVM - HELP!!

    Hi,
    I have generated a compressed HelpSet file (jar) using RoboHelp. My intention is to integrate it into a test form. I have imported all the classes I need using Java importer. I have the following code in a when-button-pressed trigger:
    DECLARE
    hlp ora_java.jObject;
    BEGIN
    hlp := help_.new();
    END;
    The 105101 exception is always being raised. I think its not even getting thru to the JVM.
    My OC4J shows no problem.
    I have made sure the applicable jar files are in the CLASSPATH variable.
    I am using Jinitiator 1.3.9.
    Can someone please help get me past this frustrating exception?

    Bring up the help, and go to the Contents tab. Expand Reference, and there is a node there called "All Forms Error Messages (frm-xxxxx)".
    You can also go to the Search tab and do a search on "FRM" to list them all.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Cannot install java studio standard, showing "can not find JVM"   HELP

    I install jdk 5.0 on XP and have set the Path & Classpath. When I installed the java studio standard 5.0, it showed "no matching JVM".
    Help

    I install jdk 5.0 on XP and have set the Path &
    Classpath. When I installed the java studio standard
    5.0, it showed "no matching JVM".
    Helpdownload freezes

  • HELP ME PLEASE!!!! I am new & don't know what to do....

    Hello ,
    I hope that someone or anyone can help me..I have a windows 98plus computer that was built for me ..I have now problems with it..I have gone back to the one who built it but I don't get help from them..Anyway I always use to play on yahoo (games) and now I can't play then because it won't download the game..I found out that I can't play any games on the internet now.. I wrote to Yahoo and they helped me of some things what to do and I did them but still it didn't help ..They then told me to download SunJava which I did.. But now what do I do with this so that I can play my games again..Yahoo said that I need a JVM ..Please help me and tell me what I am to do now since I have this downloaded ...All I want is to play my games for I am in leagues there...Of what I have seen on this is very interesting and would love to learn more in time..But 1st I need to get back in Yahoo games..
    Please tell me in detail how to work this JVM .. I guess the only way I get to learn is by others like you and by my own mistakes...I am very greatful in anyone who would help me for their time and understanding..
    If you need more info please feel free to e-mail me but please do put in the subject " JVM help sunjava" then I will know...
    Again thank you for your help..

    Thank you for your response so quickly.. I download it and checked the tools to advance and checked marked the sunjava..but I still can not play my game on yahoo or msn or any internet game..
    I see that some of you think that sunjava will not help me ..
    Please tell me then what will if you can..I would be great to anyone who can help me ...
    I am not a young one at that and have learned to use the computer by my self so anything in detail will help me..I have learned from other and from my mistakes..as time goes by..
    Again I thank you

  • Linux remote debug - can't load jdwp helper lib

    Running RedHat 7.1 and jetty web server with jdk 1.3.1_09(?) (and ultimately trying to do a remote
    debug from a Windows Eclipse machine).
    Running jetty with cmd line args:
    -Xmx256m -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Djava.compiler=NONE
    linux says:
    unable to configure JVMDI events
    unable to initialize JVM helper library jdwp
    loadJVMHelperLib failed
    could not create the Java virtual machine
    The linux jdk has /bin/libjdwp.so and /bin/libjdwp_g.so

    silly me: I forgot the -Xdebug option. Now it works. Never mind.

  • Some questions about JVM shutdown

    the scenario is like this:
    i use Runtime.getRuntime().exec() to execute another sub-process.
    When i press ctrl+c to terminate the program, the subprocess exit also
    however if i use "kill -2" unix command to terminate the program, its subprocess do no exit with the program, i suppose the JVM reacts the same to a "kill -2" and a ctrl+c ??
    anyone could explain to me, thanks

    More to the point, you could try not killing anything
    and providing proper means to shut your application
    down.yes, but seriously i need to do some cleanup if the program halts all of a sudden, so i need a sigterm, sigint, sigkill to test my program. I have added a shutdownhook to the main class, it can detect a sigint and sigkill, but the JVM helps me to automatically close all the subprocesses if i press ctrl+c but not when i use "kill -2" command, that is why i am asking.
    I also want to know what the JVM have done behind the screen when i press a ctrl+c
    many thanks

  • Allowing access to select few public objects (moved from Native forum)

    I am moving my posting from Java Forums > Fundamentals > Key Classes > Native forum to this one. Sorry for posting it on the wrong forum earlier. Before each reply I have added a lien for clarity.
    Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 21, 2005 9:59 AM
    I am developing a java application. I need to provide some scripting support (using Jython or Rhino) to my application so that the user can better use my application. Now the problem is I just want a select few public objects to be accesible via scripts and not all public objects I have written internally. I read somewhere that class name and code obfuscation could be a option but not a full proof solution. Can anyone suggest how a full proof solution can be achieved? Would running the script interpreter in seperate JVM help (and propogate the calls to the original JVM) ? Would a custom class loader help? Please suggest.
    Thanks,
    COOLNM
    Re: Allowing access to select few public objects
    Author: IanSchneider Posts: 1,381 Registered: 10/26/00
    Dec 21, 2005 10:14 AM (reply 1 of 10)
    I read somewhere that class name and code obfuscation could be a option but not a full proof solution.Correct, someone could still can call obfuscated methods.
    Would running the script interpreter in seperate JVM help (and propogate the calls to the original JVM) ?No.
    Would a custom class loader help? Possibly depending upon how the interpreter dispatches calls.
    Can anyone suggest how a full proof solution can be achieved?With jython, you could write custom PyObject subclasses (or general java facade classes) to expose only the methods you want to. The former technique allows more cool scripting functionality, the latter would presumably work in other interpreters. This would have to be done for every object you want to expose.
    Alternatively, you could enable a SecurityManager and allow only trusted code to invoke yours.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 21, 2005 9:36 PM (reply 2 of 10)
    I read somewhere that class name and codeobfuscation could be a option but not a full proof
    solution.
    Correct, someone could still can call obfuscated
    methods.
    Would running the script interpreter in seperate JVMhelp (and propogate the calls to the original JVM) ?
    No.Could you please explain why this wouldn't work?
    The plan is:
    Let say I have 2 public objects A & B and I want the user to only use A via their scripts.
    In JVM1: I use both A & B
    In JVM2: I write a psuedo A and not B. For all the methods of A, I propogate the calls to JVM1 (I think this is achievable but not sure how)
    The script interpreter runs on JVM2.
    Now if the user tries to access A then the call would go to JVM1 but if he tries to access B then there is no B available in JVM2 so the user cant access B.
    I know this method could be heavy as each call would have to go from JVM1 to JVM2.
    By sepeate JVMs I mean seperate instance of java.
    >
    Would a custom class loader help? Possibly depending upon how the interpreter
    dispatches calls.
    Can anyone suggest how a full proof solution can beachieved?
    With jython, you could write custom PyObject
    subclasses (or general java facade classes) to expose
    only the methods you want to. The former technique
    allows more cool scripting functionality, the latter
    would presumably work in other interpreters. This
    would have to be done for every object you want to
    expose.
    Alternatively, you could enable a SecurityManager and
    allow only trusted code to invoke yours.-----------------------------------------------------------------------------------------------------
    Re: Allowing access to select few public objects
    Author: allquixotic Posts: 12 Registered: 12/19/05
    Dec 22, 2005 5:09 AM (reply 3 of 10)
    RMI has a way for multiple JVMs to communicate programmatically; you could also use sockets on the loopback network device (localhost). These techniques are how mature Java products constrain their number of running instances to a finite number (usually 1), they terminate any starting JVM early in the initialization procedures of the main method if the "already-running test" indicates one is running.
    If you use the networking method, you could basically read from a ServerSocket on the "executing" JVM, while the "scripting" JVM writes to a Socket. Then use reflection in the executing (server) side to determine if the method or object being referenced is one you want to expose. If not, do something -- like write back to the client that the method invocation was invalid. Reflection will slow down your code a lot though, so I don't recommend it for apps that already take up 50 megs or more of RAM ;)
    Regards,
    Sean
    Re: Allowing access to select few public objects
    Author: IanSchneider Posts: 1,381 Registered: 10/26/00
    Dec 22, 2005 9:05 AM (reply 4 of 10)
    Would running the script interpreter in seperate JVMhelp (and propogate the calls to the original JVM) ?
    No.
    Could you please explain why this wouldn't work?It could work. I said no because the other methods are better - easier to implement and vastly more performant without wasting resources.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 23, 2005 12:48 AM (reply 5 of 10)
    Ya, the seperate JVM approach seems complex and might not be fully achievable.
    Can someone give small code snippets on how the method level control be achieved using Java SecurityManager. Just a recap on what I am trying to achieve -
    A & B are two public objects defined internally by my app.
    I have to give the user of my app the ability to write some code. But only B
    is to be exposed to client and not A.
    Let say I have this code -
    Object A = Interpreter.InitializeEngine(..);
    A.executeFromUser(stdin);
    The user mostly uses some scripting language, say Python and the Interpreter
    is Jython. Now my Interpreter is capable of understanding calls to Java
    objects from Python. If the user tries to access B via the scripts then it
    should be allowed to do so but access to A should not be allowed via the
    scripting language.
    Thanks,
    Neeraj
    Re: Allowing access to select few public objects
    Author: bschauwejava Posts: 721 Registered: 1/13/04
    Dec 26, 2005 2:13 PM (reply 6 of 10)
    What you probably want is to give the user access to an interface - not a class - that only exposes the methods that you want to expose.
    This is the way all RMI APIs are exposed to client programs.
    Re: Allowing access to select few public objects
    Author: bschauwejava Posts: 721 Registered: 1/13/04
    Dec 26, 2005 2:16 PM (reply 7 of 10)
    Just one more comment. You haven't said very much about the runtime model of the scripting environment vs your java environment. How many processes do you expect to have running to make the system work? Are you expecting your java code to wind up in a jar file and get loaded by the Python process? Or are you planning on the java code executing in a separate process? If the latter, then RMI is probably your best bet.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 27, 2005 4:20 AM (reply 8 of 10)
    I haven't finalized on the runtime model yet as the scripting security issue is still not resolved. But I am sure that the java app code would init and run the scripting code and not the other way round. The app is pretty huge with heavy UI. Ya, the java code would be wrapped in jars (but mostly not in a single jar as I dont want the jar to be too hefty).
    Can someone comment on the use of SecurityManager in this case. My initial investigation shows that the objective on implementing method level security can't be implemented by this.
    Re: Allowing access to select few public objects
    Author: IanSchneider Posts: 1,381 Registered: 10/26/00
    Dec 27, 2005 9:14 AM (reply 9 of 10)
    My initial reply suggested writing a facade in java or by subclass PyObject. I highly recommend this path for ease of development, use, and runtime performance.
    Given that you don't understand the basics of java security, I will recommend this again.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 27, 2005 11:33 PM (reply 10 of 10)
    I have started investigating on facade in java and subclassing PyObject. But I am not sure how these would resolve the primary issue. Even if I use these and if the script writer knows that there is a public class, say XYZ in my app then he can always access that class directly skipping my subclassed PyObject or the Java facade. Or am I missing something here?

    I have started investigating on facade in java and subclassing PyObject. But I am not sure
    how these would resolve the primary issue. Even if I use these and if the script writer knows
    that there is a public class, say XYZ in my app then he can always access that class directly
    skipping my subclassed PyObject or the Java facade. Or am I missing something here?Presumably your objects are somehow connected to the application. Your user could do something like:
    from com.foo import Player
    p = Player()
    p.setGold(Integer.MAX_VALUE)But of course the new Player object would not be part of the game. Now if you have some kind of static/singleton game state, then the malicious user could insert the Player into the game model...
    The real trick lies in understanding how to setup the jython interpreter. If your interpreter classloader can only load facade classes (and system classes) then the client script could not load other classes. There is also a hook for the import keyword so you could disallow importing java classes. Each interpretor instance has the ability to setup the locals and globals for the session so you can insert live game objects.
    I am only familiar with jythons internals, so this may or may not be applicable to rhino.

  • ClassFormatError

    Hello,
    Our application has UI in Java. All the .class files are bundled in a .cab file. And this .cab file we are calling from the HTML page. This thing is working fine on Win 9x and Win NT machines. But when installing the same on Win 2k machines giving the error. Below is the stack which appears in the Java Console. The problem comes with all the Win 2k machines (professional, server, advanced server). The IE version which we are using is IE6.0. and the microsoft JVM version is 5.0.0.3802.
    java.lang.ClassFormatError
         at FETLClasses/FETLKernelImpl.<init>
         at ConsultMainApplet.init
         at com/ms/applet/AppletPanel.securedCall0
         at com/ms/applet/AppletPanel.securedCall
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    Can anyone please help me solve this problem. I searched lot, but couldn't find anything worth solving it.
    Thanks in anticipation.
    Sheshu-

    Does using a Sun JVM help?

  • Whatz the difference between jdk and jre

    i would like to know the difference between jdk and jre.

    Yes JRE is Java Run Time Environment. The java programming language adds the portability by converting the source code to byte code version which can be interpreted by the JRE and gets converted to the platform specific executable ones. Thus for different platforms one has corresponding implementation of JRE. But JRE has to meet the specification JVM (Java Virtual Machine) Concept that serves as a link between the Java libraries and the platform specific implementation of JRE. Thus JVM helps in the abstraction of inner implementation from the programmers who make use of libraries for their programmes.
    The JDK(Java Developmental Tool kit) comes along with java libraries and JVM embedded in it. Apart from these it comes along with the utility tools for byte code compilation "javac", Executing the byte codes through java programmes through "java" and many more utilities found in the binary directory of java. Speaking practically JDK is essential for developers, which comes along with library packages to develop Software programmes. While JRE is minimal set of programmes which executes the java class files developed by the software developers.

  • Difference between Integration server andSun Java system applivation server

    Hi,
    What is the difference between Sun Java system application server and Sun Seebeyond integration server???
    When I see the documentation it says that Sun Seebeyond integration server is a specialized thing of Sun Java system application server.
    What needs to be configured in Sun Java system application server to make it work like a integration server??
    Thanks in advance
    KKS

    Hi KKS,
    The SSIS is based on SJSAS 8.0 PE UR1. Some core features have been modified so that it's optimized for integration scenario's with fast throughput.
    You can deploy your JCAPS code on SJSAS 8.1 EE as it's fully J2EE1.4 compliant, and this version has been tested and verified.
    Configuring the AS's JVM helps.. especially taking note of the space division inside the JVM.
    Good luck
    Paul

  • CF10 Update 14 and possible memory issues

    One of my associates is complaining that since I applied the Coldfusion 10 Update 14 we are experiencing memory issues.  Has anyone else had issues with Update 14?
    Just a System Admin fighting the good fight!

    I’ll throw in that even if changing the JVM helped, it would still leave the question open as to whether/why Chad experienced a change in heap usage on solely updating CF.
    Chad, really? Nothing else changed? I just find that so odd. I’ve not yet heard about it (or seen it) being an issue. Of course, update 14 did do quite a bit: beyond bug fixes it also updated Tomcat. I would be surprised that that could lead to memory leaks (assuming that’s what this is, if really NOTHING else changed).
    What about the database you’re using?  Update 14 did change the JDBC drivers for Postgres. Are you using that DBMS?
    Just trying to think what else could contribute to this, if indeed nothing else changed for you.
    It is possible that something else changed, either in the config or coding (and you didn’t know it), or perhaps in the load against the server (I see that all the time: someone adds a new site, perhaps brought over from another server, and they assume “it doesn’t get much traffic”, but they don’t realize how heavily spiders and bots may hit that newly added  site, which could definitely put pressure on the heap whether from increased sessions, caching, and so on.)
    Of course, you can always uninstall the update easily, in the same CF Admin page where you install it. That would help you prove if that alone was it. (Just be sure to rebuild the connectors back to the version as per the CF update you would revert to. I don’t think it’s appropriate to run the update 14 connector with an earlier update.)
    Finally, FWIW, if you really wanted to go nuts, you could change CF to using Java 8. That’s another thing added in 14: support of 8. But to clear, it does not “change it” for you, so that’s not what happened here. But just as the two Carl’s proposed changing the  JVM to see if it “would help”, you could consider moving to Java 8. That’s all the more worth considering if indeed the issue is that something changed in your environment (config/code/load) and you simply do need more heap (in Java 7).
    Of course CF will use the same GC you have specified even if you update it to use 8, so you may need to make some changes to see a real impact. But for instance one thing Java 8 does by default is no longer use the permanent generation. That should have no effect on your your observed use of heap. Just saying that 8 is indeed different, and you never know if updating to it could help (or hurt. It’s so new that CF supports it in 10, and only to come in update 3 of 11, that there’s relatively little known experience about the combination.)
    Anyway, do let us know if you find more.
    /charlie

  • Need Help - JVM error in Forms 10g in Debug mode

    Hello,
    This issue has bothered me since I started coding in Forms. If I use an Associative Array with a VARCHAR2 index type, whenever I try to look at the contents of the array, a small JVM aborting messagebox appears with OK as the only option. Once I click OK, I get a Forms error saying it has lost connection with the server. This ONLY happens if I'm trying to look at the contents of the array when it has data. I can see the variable in the debug console just fine when it doesn't have data, but once one value is populated, the JVM aborting message pops up. Another weird caveat is the JVM error will only occur IF you have a debug window open which would display the contents of this array. I can still use arrays of this type IF I don't try and look at the contents in the debugger.
    Here is a quick test case. I just have a simple form with one push button. The following code is in the WHEN-BUTTON-PRESSED trigger:
    DECLARE
         TYPE COLUMN_ARRAY IS TABLE OF VARCHAR2(4000) INDEX BY VARCHAR2(50);
         testArray COLUMN_ARRAY;
    BEGIN
         testArray('col1') := 'value1'; -- break point here
         testArray('col2') := 'value2';
         testArray('col3') := 'value3';
    END;
    Put a breakpoint on the first statement and debug it. If you have the local variables debug window up, the JVM aborting error will appear when you step over the first line. We have submitted a metalink bug report about 3 months ago but never heard anything back. I wanted to post something here incase anyone else has encountered this error and might know how to fix it.
    Here are some details of the environment we are using.
    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.5.0     Production
    There was also a log file that was created on the error. Here are the contents:
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x603c0f7b, pid=4184, tid=5384
    # Java VM: Java HotSpot(TM) Client VM (11.3-b02 interpreted mode, sharing windows-x86)
    # Problematic frame:
    # C [orageneric10.dll+0xc0f7b]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    --------------- T H R E A D ---------------
    Current thread (0x010b7400): JavaThread "main" [_thread_in_native, id=5384, stack(0x00030000,0x00130000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x0000000c
    Registers:
    EAX=0x00000000, EBX=0x00000000, ECX=0x77c421e7, EDX=0x00000001
    ESP=0x0012ba60, EBP=0x0012bb60, ESI=0x00c8a47c, EDI=0x00000000
    EIP=0x603c0f7b, EFLAGS=0x00210212
    Top of Stack: (sp=0x0012ba60)
    0x0012ba60: 00000000 0369d8ac 037f6c00 037f6c00
    0x0012ba70: 037f6c00 003b65a8 6d9335ec 00000000
    0x0012ba80: 00000018 0369d8ac 6d8b83bc 2b193da8
    0x0012ba90: 0369d8ac 00000018 6d96abbe 0369d8ac
    0x0012baa0: 6d91ad4e 6d97c34f 037f6c00 0369d8a8
    0x0012bab0: 0369d8b0 6d97d636 270aba00 00000000
    0x0012bac0: 037f6c00 0369d8a8 6d96e711 0369d8b0
    0x0012bad0: 037f6c00 0000000a 0369d898 00000010
    Instructions: (pc=0x603c0f7b)
    0x603c0f6b: 90 55 8b ec 81 ec fc 00 00 00 ff 75 0c 8b 45 08
    0x603c0f7b: 8b 50 0c 8b 48 10 89 95 04 ff ff ff 8b 50 14 89
    Stack: [0x00030000,0x00130000], sp=0x0012ba60, free space=1006k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [orageneric10.dll+0xc0f7b]
    C [oraclient10.dll+0x45fa9]
    C [orageneric10.dll+0x2b21d]
    C [DEB.dll+0xea2b]
    C [DEB.dll+0xcd54]
    j oracle.opb.debugger.impl.DbgServer.nGetPackageValues(JJ)[B+0
    j oracle.opb.debugger.impl.DbgServer.getPackageValues(IJ)V+5
    j oracle.opb.debugger.impl.DbgPacketProcessor.processCommand(Loracle/opb/net/CommandPacket;)Z+624
    j oracle.opb.debugger.impl.DbgPacketProcessor.processPacket(Z)Z+30
    j oracle.opb.debugger.impl.DbgPacketProcessor.processPacketsUntilRun()V+2
    j oracle.opb.debugger.impl.DbgServer.suspended()V+22
    v ~StubRoutines::call_stub
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j oracle.opb.debugger.impl.DbgServer.nGetPackageValues(JJ)[B+0
    j oracle.opb.debugger.impl.DbgServer.getPackageValues(IJ)V+5
    j oracle.opb.debugger.impl.DbgPacketProcessor.processCommand(Loracle/opb/net/CommandPacket;)Z+624
    j oracle.opb.debugger.impl.DbgPacketProcessor.processPacket(Z)Z+30
    j oracle.opb.debugger.impl.DbgPacketProcessor.processPacketsUntilRun()V+2
    j oracle.opb.debugger.impl.DbgServer.suspended()V+22
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x03c28400 JavaThread "Packet Receiver[oracle.opb.net.PacketTransceiver@61de33]" [_thread_in_native, id=5424, stack(0x03da0000,0x03ea0000)]
    0x03c27000 JavaThread "Packet Sender[oracle.opb.net.PacketTransceiver@61de33]" [_thread_blocked, id=1660, stack(0x03ca0000,0x03da0000)]
    0x0325ec00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3432, stack(0x03880000,0x03980000)]
    0x03258800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6132, stack(0x03760000,0x03860000)]
    0x03257400 JavaThread "Attach Listener" daemon [_thread_blocked, id=4244, stack(0x03660000,0x03760000)]
    0x03253400 JavaThread "Finalizer" daemon [_thread_blocked, id=4212, stack(0x03550000,0x03650000)]
    0x0324ec00 JavaThread "Reference Handler" daemon [_thread_blocked, id=6056, stack(0x03440000,0x03540000)]
    =>0x010b7400 JavaThread "main" [_thread_in_native, id=5384, stack(0x00030000,0x00130000)]
    Other Threads:
    0x0324d000 VMThread [stack: 0x03330000,0x03430000] [id=3540]
    0x03260400 WatcherThread [stack: 0x03980000,0x03a80000] [id=5840]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 960K, used 538K [0x22990000, 0x22a90000, 0x22e70000)
    eden space 896K, 52% used [0x22990000, 0x22a06b08, 0x22a70000)
    from space 64K, 100% used [0x22a80000, 0x22a90000, 0x22a90000)
    to space 64K, 0% used [0x22a70000, 0x22a70000, 0x22a80000)
    tenured generation total 4096K, used 109K [0x22e70000, 0x23270000, 0x26990000)
    the space 4096K, 2% used [0x22e70000, 0x22e8b660, 0x22e8b800, 0x23270000)
    compacting perm gen total 12288K, used 82K [0x26990000, 0x27590000, 0x2a990000)
    the space 12288K, 0% used [0x26990000, 0x269a48c0, 0x269a4a00, 0x27590000)
    ro space 8192K, 67% used [0x2a990000, 0x2aef7ea8, 0x2aef8000, 0x2b190000)
    rw space 12288K, 53% used [0x2b190000, 0x2b805530, 0x2b805600, 0x2bd90000)
    Dynamic libraries:
    0x00400000 - 0x00410000      C:\Oracle\Ora10gRep\bin\frmweb.exe
    0x7c900000 - 0x7c9b2000      C:\WINNT\system32\ntdll.dll
    0x7c800000 - 0x7c8f6000      C:\WINNT\system32\kernel32.dll
    0x608d0000 - 0x60963000      C:\Oracle\Ora10gRep\bin\oranls10.dll
    0x60730000 - 0x607dc000      C:\Oracle\Ora10gRep\bin\oracore10.dll
    0x60c40000 - 0x60c47000      C:\Oracle\Ora10gRep\bin\orauts.dll
    0x71ab0000 - 0x71ac7000      C:\WINNT\system32\WS2_32.dll
    0x77dd0000 - 0x77e6b000      C:\WINNT\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINNT\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINNT\system32\Secur32.dll
    0x77c10000 - 0x77c68000      C:\WINNT\system32\msvcrt.dll
    0x71aa0000 - 0x71aa8000      C:\WINNT\system32\WS2HELP.dll
    0x76b40000 - 0x76b6d000      C:\WINNT\system32\WINMM.dll
    0x77f10000 - 0x77f59000      C:\WINNT\system32\GDI32.dll
    0x7e410000 - 0x7e4a1000      C:\WINNT\system32\USER32.dll
    0x62b40000 - 0x62b53000      C:\Oracle\Ora10gRep\bin\oraunls10.dll
    0x774e0000 - 0x7761d000      C:\WINNT\system32\ole32.dll
    0x66220000 - 0x6623c000      C:\Oracle\Ora10gRep\bin\nn.dll
    0x64ce0000 - 0x64dbd000      C:\Oracle\Ora10gRep\bin\UIW.dll
    0x64ca0000 - 0x64cb1000      C:\Oracle\Ora10gRep\bin\UTL.dll
    0x64cd0000 - 0x64cd7000      C:\Oracle\Ora10gRep\bin\UTC.dll
    0x64cc0000 - 0x64cc9000      C:\Oracle\Ora10gRep\bin\UTJ.dll
    0x64f10000 - 0x64f21000      C:\Oracle\Ora10gRep\bin\UIIM.dll
    0x73000000 - 0x73026000      C:\WINNT\system32\WINSPOOL.DRV
    0x5d090000 - 0x5d12a000      C:\WINNT\system32\COMCTL32.dll
    0x64ed0000 - 0x64ef6000      C:\Oracle\Ora10gRep\bin\UIOLE.dll
    0x763b0000 - 0x763f9000      C:\WINNT\system32\comdlg32.dll
    0x7c9c0000 - 0x7d1d7000      C:\WINNT\system32\SHELL32.dll
    0x77f60000 - 0x77fd6000      C:\WINNT\system32\SHLWAPI.dll
    0x663d0000 - 0x66414000      C:\Oracle\Ora10gRep\bin\CA.dll
    0x66340000 - 0x6636a000      C:\Oracle\Ora10gRep\bin\mmc.dll
    0x616b0000 - 0x61893000      C:\Oracle\Ora10gRep\bin\oraclient10.dll
    0x62b60000 - 0x62b66000      C:\Oracle\Ora10gRep\bin\oravsn10.dll
    0x60d30000 - 0x60de8000      C:\Oracle\Ora10gRep\bin\oracommon10.dll
    0x60300000 - 0x6071c000      C:\Oracle\Ora10gRep\bin\orageneric10.dll
    0x629c0000 - 0x629d2000      C:\Oracle\Ora10gRep\bin\orasnls10.dll
    0x62b80000 - 0x62c86000      C:\Oracle\Ora10gRep\bin\oraxml10.dll
    0x00330000 - 0x00341000      C:\WINNT\system32\MSVCIRT.dll
    0x607e0000 - 0x608cc000      C:\Oracle\Ora10gRep\bin\oran10.dll
    0x62000000 - 0x6202c000      C:\Oracle\Ora10gRep\bin\oranl10.dll
    0x62030000 - 0x62042000      C:\Oracle\Ora10gRep\bin\oranldap10.dll
    0x62090000 - 0x62184000      C:\Oracle\Ora10gRep\bin\orannzsbb10.dll
    0x61e10000 - 0x61e52000      C:\Oracle\Ora10gRep\bin\oraldapclnt10.dll
    0x61f30000 - 0x61f47000      C:\Oracle\Ora10gRep\bin\orancrypt10.dll
    0x71ad0000 - 0x71ad9000      C:\WINNT\system32\WSOCK32.dll
    0x76d60000 - 0x76d79000      C:\WINNT\system32\iphlpapi.dll
    0x77120000 - 0x771ab000      C:\WINNT\system32\OLEAUT32.dll
    0x621a0000 - 0x621d7000      C:\Oracle\Ora10gRep\bin\oranro10.dll
    0x621f0000 - 0x621fc000      C:\Oracle\Ora10gRep\bin\orantcp10.dll
    0x61f70000 - 0x61f76000      C:\Oracle\Ora10gRep\bin\oranhost10.dll
    0x61f20000 - 0x61f26000      C:\Oracle\Ora10gRep\bin\orancds10.dll
    0x62210000 - 0x62216000      C:\Oracle\Ora10gRep\bin\orantns10.dll
    0x60970000 - 0x60c31000      C:\Oracle\Ora10gRep\bin\orapls10.dll
    0x62500000 - 0x62507000      C:\Oracle\Ora10gRep\bin\oraslax10.dll
    0x627b0000 - 0x628b3000      C:\Oracle\Ora10gRep\bin\oraplp10.dll
    0x618b0000 - 0x61906000      C:\Oracle\Ora10gRep\bin\orahasgen10.dll
    0x622b0000 - 0x622e6000      C:\Oracle\Ora10gRep\bin\oraocr10.dll
    0x622f0000 - 0x62315000      C:\Oracle\Ora10gRep\bin\oraocrb10.dll
    0x5b860000 - 0x5b8b5000      C:\WINNT\system32\NETAPI32.dll
    0x76bf0000 - 0x76bfb000      C:\WINNT\system32\PSAPI.DLL
    0x62a80000 - 0x62af6000      C:\Oracle\Ora10gRep\bin\orasql10.dll
    0x66450000 - 0x66538000      C:\Oracle\Ora10gRep\bin\frmw.dll
    0x00410000 - 0x004d4000      C:\Oracle\Ora10gRep\bin\frmwcm.dll
    0x662f0000 - 0x66320000      C:\Oracle\Ora10gRep\bin\mmi.dll
    0x64e30000 - 0x64e93000      C:\Oracle\Ora10gRep\bin\UIREM.dll
    0x659a0000 - 0x659ee000      C:\Oracle\Ora10gRep\bin\ROS.dll
    0x64ad0000 - 0x64c05000      C:\Oracle\Ora10gRep\bin\VGS.dll
    0x66250000 - 0x6627e000      C:\Oracle\Ora10gRep\bin\mmw.dll
    0x662a0000 - 0x662b0000      C:\Oracle\Ora10gRep\bin\mmv.dll
    0x73b50000 - 0x73b67000      C:\WINNT\system32\AVIFIL32.dll
    0x77be0000 - 0x77bf5000      C:\WINNT\system32\MSACM32.dll
    0x75a70000 - 0x75a91000      C:\WINNT\system32\MSVFW32.dll
    0x662c0000 - 0x662df000      C:\Oracle\Ora10gRep\bin\mms.dll
    0x66690000 - 0x6680f000      C:\Oracle\Ora10gRep\bin\DEB.dll
    0x627a0000 - 0x627af000      C:\Oracle\Ora10gRep\bin\oraplc10.dll
    0x66380000 - 0x66389000      C:\Oracle\Ora10gRep\bin\mma.dll
    0x64ff0000 - 0x65003000      C:\Oracle\Ora10gRep\bin\UAT.dll
    0x64f70000 - 0x64f94000      C:\Oracle\Ora10gRep\bin\UIA.dll
    0x64f30000 - 0x64f45000      C:\Oracle\Ora10gRep\bin\UIDC.dll
    0x76390000 - 0x763ad000      C:\WINNT\system32\IMM32.DLL
    0x773d0000 - 0x774d3000      C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
    0x74720000 - 0x7476c000      C:\WINNT\system32\MSCTF.dll
    0x755c0000 - 0x755ee000      C:\WINNT\system32\msctfime.ime
    0x71a50000 - 0x71a8f000      C:\WINNT\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINNT\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINNT\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINNT\system32\WLDAP32.dll
    0x00d30000 - 0x00d88000      C:\WINNT\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINNT\System32\wshtcpip.dll
    0x76fc0000 - 0x76fc6000      C:\WINNT\system32\rasadhlp.dll
    0x6d8b0000 - 0x6db06000      C:\Oracle\Ora10gRep\jdk\jre\bin\client\jvm.dll
    0x7c340000 - 0x7c396000      C:\WINNT\system32\MSVCR71.dll
    0x6d340000 - 0x6d348000      C:\Oracle\Ora10gRep\jdk\jre\bin\hpi.dll
    0x6d860000 - 0x6d86c000      C:\Oracle\Ora10gRep\jdk\jre\bin\verify.dll
    0x6d3e0000 - 0x6d3ff000      C:\Oracle\Ora10gRep\jdk\jre\bin\java.dll
    0x6d8a0000 - 0x6d8af000      C:\Oracle\Ora10gRep\jdk\jre\bin\zip.dll
    0x6d6c0000 - 0x6d6d3000      C:\oracle\Ora10gRep\jdk\jre\bin\net.dll
    VM Arguments:
    jvm_args: -Djava.compiler=NONE abort exit -Xrs -Xbootclasspath/p:C:\Oracle\Ora10gRep\vbroker4\lib\vbjboot.jar
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    CLASSPATH=C:\Oracle\Ora10gRep\j2ee\OC4J_BI_Forms\applications\formsapp\formsweb\WEB-INF\lib\frmsrv.jar;C:\Oracle\Ora10gRep\jlib\repository.jar;C:\Oracle\Ora10gRep\jlib\ldapjclnt10.jar;C:\Oracle\Ora10gRep\jlib\debugger.jar;C:\Oracle\Ora10gRep\jlib\ewt3.jar;C:\Oracle\Ora10gRep\jlib\share.jar;C:\Oracle\Ora10gRep\jlib\utj.jar;C:\Oracle\Ora10gRep\jlib\zrclient.jar;C:\Oracle\Ora10gRep\reports\jlib\rwrun.jar;C:\Oracle\Ora10gRep\forms\java\frmwebutil.jar
    PATH=C:\Oracle\Ora10gRep\bin;C:\Oracle\Ora10gRep\jdk\jre\bin\client
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 3
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1046512k(39192k free), swap 4094688k(2722564k free)
    vm_info: Java HotSpot(TM) Client VM (11.3-b02) for windows-x86 JRE (1.6.0_13-b03), built on Mar 9 2009 01:15:24 by "java_re" with MS VC++ 7.1
    time: Thu Jul 02 14:35:18 2009
    elapsed time: 131 seconds
    Any help is appreciated.
    Thanks!!!

    Nobody has any suggestions or comments???
    Can anyone confirm they have the same issue when running the sample code I provided below?
    Can anyone see the contents of a VARCHAR2 index based array when debugging??
    Thanks

  • Urgent! Please help. JVM Perm size OutOfMemory with wls9.1

    Sorry for posting this here since I could not find a general weblogic JVM trouble shooting newsgroup. Basically we have an issue in production where OutOfMemory Error occurred in the Perm space after server has been up for half an hour. We recently upgraded from wls8.1+sun hotspot 1.4.2 to wls9.1 + Sun hotspot 1.5.0_06. Originally under wls8.1, the perm space usages was pretty stable at about 80MB (Perm space was set to 128MB). But now 128MB seemed being filled up very quickly. I found the increase size in weblogic.jar and rt.jar both from weblogic upgrade and sun jre upgrade. So last night the production server's perm space size was increased to 192MB. This morning everything looked fine, perm space usage was stable at about 120MB. However, at noon, suddendly 2 servers the perm space started being filled up quickly. Half an hour later, so was the other app server.
    Have anybody seen this issue before? Could it be an issue in some weblogic subsystem with jre 1.5.0_06 since there is no code change made to the application? Is 192MB too aggressive which could cause some issue?
    Thanks in advance. Any help will be greatly appreciated.
    Bing

    Bing Zou wrote:
    Sorry for posting this here since I could not find a general weblogic JVM trouble shooting newsgroup. Basically we have an issue in production where OutOfMemory Error occurred in the Perm space after server has been up for half an hour. We recently upgraded from wls8.1+sun hotspot 1.4.2 to wls9.1 + Sun hotspot 1.5.0_06. Originally under wls8.1, the perm space usages was pretty stable at about 80MB (Perm space was set to 128MB). But now 128MB seemed being filled up very quickly. I found the increase size i
    n weblogic.jar and rt.jar both from weblogic upgrade and sun jre upgrade. So last night the production server's perm space size was increased to 192MB. This morning everything looked fine, perm space usage was stable at about 120MB. However, at noon, suddendly 2 servers the perm space started being filled up quickly. Half an hour later, so was the other app server.
    Have anybody seen this issue before? Could it be an issue in some weblogic subsystem with jre 1.5.0_06 since there is no code change made to the application? Is 192MB too aggressive which could cause some issue?
    Thanks in advance. Any help will be greatly appreciated.
    BingHi Bing, I wich I could help you more directly but I suggest you contact BEA
    official support. They are the best for knowing or sifting through all
    possibly relevant changes and/or fixes for a given set of symptoms.
    Joe

  • Help with JDPA failure on JVM Startup from C++ using JNI_CreateJavaVM

    The short version:
    When I try to start a jvm with the -Xrunjdwp from C++ using JNI_CreateJavaVM and the following settings, it simply crashes. I can run my program just fine when this option is not present.
    JavaVMOption aoOptions[5];     
    aoOptions[0].optionString = m_ustrClassPath.GetStringA();
    aoOptions[1].optionString = "-Xdebug";
    aoOptions[2].optionString = "-Xnoagent";
    aoOptions[3].optionString = "-Djava.compiler=NONE";
    aoOptions[4].optionString = "-Xrunjdwp:transport=dt_socket,address=localhost:8000,server=y,suspend=n";
    I have all the appropriate jar files on the classpath and the DLL's are on the path. I am running 1.4.2. I have also tried dt_shmem and a combination of most of the adjustable paramaters being on/off or not present. Any help would be greatly appreciated!!!
    Thanks,
    Chris
    The long version (or why I want to do this crazy thing):
    I am migrating a product line from Visual Basic/C++/COM to Java. I recently purchased JBuilder 9 with the hope that I could use the attach to running JVM process to debug fully. When I attempted to add the neccessary options, my jvm create dies. I can't get to a point to attach from JBuilder.

    I have finally found a solution...
    Please see this bug: http://developer.java.sun.com/developer/bugParade/bugs/4335526.html
    The bug has not been fixed but a workaround exists. Please see the bug for full information, the short answer is this.
    When using the below settings, the -Xrun option is causing an Access Exception crash within jvm.dll. This seems to be because the -Xrun string is modified within jvm.dll.
    JavaVMOption aoOptions[5];
    aoOptions[0].optionString = m_ustrClassPath.GetStringA();
    aoOptions[1].optionString = "-Xdebug";
    aoOptions[2].optionString = "-Xnoagent";
    aoOptions[3].optionString = "-Djava.compiler=NONE";
    aoOptions[4].optionString = "-Xrunjdwp:transport=dt_socket,address=localhost:8000,server=y,suspend=n";
    The solution that worked for me was to use strdup as indicated in the workaround for the bug.
    JavaVMOption aoOptions[5];     
    pTempStrOption = m_ustrClassPath.GetStringA();
    aoOptions[0].optionString = strdup(pTempStrOption);
    aoOptions[1].optionString = strdup("-Xdebug");
    aoOptions[2].optionString = strdup("-Xnoagent");
    aoOptions[3].optionString = strdup("-Djava.compiler=NONE");
    aoOptions[4].optionString = strdup("-Xrunjdwp:transport=dt_socket,address=3333,server=y");
    This has caused me grief for months. It was not easy to locate in the bug database. It existed in 1.3 and still exists as of 1.4.2. I am not sure about the 1.5 beta.

  • Help please on Jvm

    I had downloaded two books called java virtual machine specification 1st edition and second edition for the following purposes:
    i want to create my own virtual machine to run on AVR microcontrollers or minicomputers according to their instruction set.
    so is there any programmable environment to help me create my own jvm for those controllers or even a tool for that .
    Please help me with any start guide to begin with it even with one tool or environment .
    Thanks.
    Yours;
    Snouto.

    The only Tunes Transfer I can find is a Windows app, but assuming you've found a Mac version somewhere...
    The error means it can't find your installation of Java. My first guess would be that TT is looking for an older version of Java than the one that's installed on MacOS X these days.
    Since moving music from iPods back to computers is not supported by Apple, I won't recommend any alternative applications by name. But you might try googling for iTunes spelled backwards

Maybe you are looking for

  • Work centre capacity utilization

    Dear guru , i have a work centre that always work in the same moment for 3 different production order. If my total daily available capacity is 11 hours for my 1 individual capacity is right that I assign to the work centre a capacity utilization of 3

  • How can I migrate my group lists with my address book?

    I have moved from Windows XP to Ubuntu (YEAH!). I was using TB in XP and I was able to successfully move my address book with all of my contacts' information by copying and pasting the abook.mab file. But I seem to have lost (or at least I am current

  • How do download my video without a fire-wire port??

    How disappointing! Just discovered the lack of a FireWire port on my new MBP when I started to download video from my Sony Camcorder. What now?? Been looking for an adapter with a USB 3.0 or a hub, but to no avail. There is a cord with USB on one end

  • How to get Zen Touch to work on Windows Vista without PFS (worked!)

    CHow to get Zen Touch to work on Windows Vista without PFS (worked!)? ***THIS WORKED*** For all of you that want to get their music out of the Zen touch, and are stuck with Vista and .0.03 firmware (non vista recognisable), and don't want to erase ev

  • Problems connecting via ethernet...in China.

    So I have a new MacBook (13 inch laptop) here in (rural) China where I am living. My manager helped set up my internet connection and it worked fine for a day and is now saying that it can't connect through the PPoE. I can only use an ethernet cable