JVM - an interpreter or compiler

Could someone please give a concise answer for whether 'JVM is an interpreter or compiler'.. Possibly at an interview point of view.
Thanks

javac is a compiler to compile source code to bytecode i'e .Class file
java is a interpreter on behalf of part of JVM takes bytecode to be executed as machine level code
JVM has both JIT compiler and interpreter to speed up the execution process,
Internally it maintains HOTSPOT algorithm to execute code
if loops are there it takes process by compiler otherwise it takes interpreter,
It also maintains 'Code Verifier' to purify code whether it comes bytecode or not ,
so that it maintains a securety to mescellaneious files ,So JAVA is more secure Language
"finally Jvm uses both 'just in time compiler(JIT)' and interpreter.

Similar Messages

  • JVM CompilerThread Crash on compiler thread, jdk 1.4.2_15

    Hi,
    One of our customer's is seeing intermittent JVM crashes running weblogic 8.1SP6 app server on JDK 1.4.2_15, i.e. every three weeks or so.
    It crashes during executing of the compilerthread on some code in a jsp page. I've included a sample "hs_pid.log" file.
    We have not seen this in any of our testing or other production instances. I've researched and found similar bugs, but on jdk 1.5, not on jdk 1.4
    We must use jdk 1.4.2 as weblogic 8.1 does not support jdk 1.5 or later.
    Would an earlier jdk offer more stability? Also, we could switch to jrockit jvm, but would prefer to stay with sun jdk. Any other suggestions?
    thanks in advance,
    bill
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x080ae88d, pid=3704, tid=3700
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_15-b02 mixed mode)
    # Problematic frame:
    # V  [jvm.dll+0xae88d]
    ---------------  T H R E A D  ---------------
    Current thread (0x005c6628):  JavaThread "CompilerThread0" daemon [_thread_in_native, id=3700]
    siginfo: ExceptionCode=0xc00000fd, ExceptionInformation=0x00000001 0x03e20ffc
    Registers:
    EAX=0x089c0bf0, EBX=0x089c0bf0, ECX=0x00005622, EDX=0x0822403c
    ESP=0x03e21000, EBP=0x03e5f53c, ESI=0x00000000, EDI=0x03e5f49c
    EIP=0x080ae88d, EFLAGS=0x00010206
    Top of Stack: (sp=0x03e21000)
    0x03e21000:   00000000 00000033 08bff3f8 03e5f53c
    0x03e21010:   080ae9aa 03e5f49c 089c0bf0 03e5f49c
    0x03e21020:   00000000 00000001 08bff3b8 03e5f53c
    0x03e21030:   080ae9aa 03e5f49c 08bff3f8 03e5f49c
    0x03e21040:   00000000 00000002 08bff388 03e5f53c
    0x03e21050:   080ae9aa 03e5f49c 08bff3b8 03e5f49c
    0x03e21060:   00000000 00000001 08bff35c 03e5f53c
    0x03e21070:   080ae9aa 03e5f49c 08bff388 03e5f49c
    Instructions: (pc=0x080ae88d)
    0x080ae87d:   90 90 90 51 53 8b 5c 24 10 55 8b e9 8b 4b 1c 56
    0x080ae88d:   57 8b 7c 24 18 8b d1 89 6c 24 10 8b 47 08 c1 ea
    Stack: [0x03e20000,0x03e60000),  sp=0x03e21000,  free space=4k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [jvm.dll+0xae88d]
    Current CompileTask:
    opto:234% !   jsp_servlet._qa._include.__guidedsearchincl._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V @ 2612 (14208 bytes)
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x044c3dd0 JavaThread "Background Batch Spiller 2" daemon [_thread_blocked, id=2436]
      0x05b8cc20 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=6100]
      0x04730628 JavaThread "Background Batch Spiller 1" daemon [_thread_blocked, id=5316]
      0x05d01de8 JavaThread "Background Batch Spiller 0" daemon [_thread_blocked, id=4336]
      0x05a2f008 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4372]
      0x05a2f170 JavaThread "JRC Timeout Thread" daemon [_thread_blocked, id=2300]
      0x05a2f5a8 JavaThread "Thread-57" daemon [_thread_blocked, id=4456]
      0x05b5a938 JavaThread "Thread-19" daemon [_thread_blocked, id=5960]
      0x0524c118 JavaThread "ExecuteThread: '5' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=1380]
      0x05081140 JavaThread "ExecuteThread: '4' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=2796]
      0x05592170 JavaThread "ExecuteThread: '3' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=3524]
      0x05592008 JavaThread "ExecuteThread: '2' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=4824]
      0x05979d90 JavaThread "ExecuteThread: '1' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=2812]
      0x0471bb90 JavaThread "ExecuteThread: '0' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=2532]
      0x043ad458 JavaThread "SSLListenThread.Default" [_thread_in_native, id=2704]
      0x05332f60 JavaThread "ListenThread.Default" [_thread_in_native, id=5560]
      0x051e5840 JavaThread "Thread-18" daemon [_thread_blocked, id=5596]
      0x046a2848 JavaThread "Thread-17" daemon [_thread_blocked, id=6072]
      0x058ebe68 JavaThread "Thread-16" [_thread_blocked, id=3612]
      0x04806460 JavaThread "Thread-14" daemon [_thread_blocked, id=5836]
      0x04806008 JavaThread "Thread-13" daemon [_thread_blocked, id=5944]
      0x043497d8 JavaThread "Thread-12" [_thread_blocked, id=3736]
      0x047ccad0 JavaThread "Thread-11" daemon [_thread_blocked, id=4656]
      0x044b9d70 JavaThread "Thread-10" [_thread_blocked, id=4836]
      0x0540a260 JavaThread "Thread-9" daemon [_thread_blocked, id=5616]
      0x04975500 JavaThread "Thread-8" daemon [_thread_blocked, id=3480]
      0x04519008 JavaThread "ExecuteThread: '0' for queue: 'JMS.TimerTreePool'" daemon [_thread_blocked, id=3956]
      0x04795138 JavaThread "Thread-7" [_thread_blocked, id=5824]
      0x0460feb0 JavaThread "Thread-6" [_thread_blocked, id=3356]
      0x05054518 JavaThread "weblogic.health.CoreHealthMonitor" daemon [_thread_blocked, id=5100]
      0x0443ec20 JavaThread "Thread-5" [_thread_blocked, id=2448]
      0x040dfa88 JavaThread "DoSManager" [_thread_blocked, id=5876]
      0x04b02d50 JavaThread "VDE Transaction Processor Thread" [_thread_blocked, id=716]
      0x0496e818 JavaThread "ExecuteThread: '2' for queue: 'weblogic.admin.RMI'" daemon [_thread_blocked, id=5160]
      0x0496e600 JavaThread "ExecuteThread: '1' for queue: 'weblogic.admin.RMI'" daemon [_thread_blocked, id=4304]
      0x0496e098 JavaThread "ExecuteThread: '0' for queue: 'weblogic.admin.RMI'" daemon [_thread_blocked, id=2420]
      0x0496df30 JavaThread "ExecuteThread: '1' for queue: 'weblogic.admin.HTTP'" daemon [_thread_blocked, id=5460]
      0x04975668 JavaThread "ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'" daemon [_thread_blocked, id=2548]
      0x04c99b80 JavaThread "weblogic.security.SpinnerRandomSource" daemon [_thread_blocked, id=2416]
      0x04c998e0 JavaThread "weblogic.time.TimeEventGenerator" daemon [_thread_blocked, id=6080]
      0x049b22a0 JavaThread "ExecuteThread: '4' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=1716]
      0x04a80cf8 JavaThread "ExecuteThread: '3' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=2392]
      0x048f98d0 JavaThread "ExecuteThread: '2' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=4240]
      0x048f9228 JavaThread "ExecuteThread: '1' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=4640]
      0x047a4920 JavaThread "ExecuteThread: '0' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=5108]
      0x04371668 JavaThread "ExecuteThread: '24' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5000]
      0x0523d9e0 JavaThread "ExecuteThread: '23' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5376]
      0x04b9d618 JavaThread "ExecuteThread: '22' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=1728]
      0x04b9ca18 JavaThread "ExecuteThread: '21' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=868]
      0x047974a8 JavaThread "ExecuteThread: '20' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5744]
      0x04da5800 JavaThread "ExecuteThread: '19' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4768]
      0x04ddab48 JavaThread "ExecuteThread: '18' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5840]
      0x04dda008 JavaThread "ExecuteThread: '17' for queue: 'weblogic.kernel.Default'" daemon [_thread_in_native, id=2688]
      0x04ee9d48 JavaThread "ExecuteThread: '16' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=3968]
      0x04ee95e0 JavaThread "ExecuteThread: '15' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=3936]
      0x04b1a948 JavaThread "ExecuteThread: '14' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4620]
      0x04ed1c88 JavaThread "ExecuteThread: '13' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=2196]
      0x04ed1148 JavaThread "ExecuteThread: '12' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5128]
      0x0494d408 JavaThread "ExecuteThread: '11' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5532]
      0x0434bb48 JavaThread "ExecuteThread: '10' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=3808]
      0x0434b808 JavaThread "ExecuteThread: '9' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=1972]
      0x04e119f0 JavaThread "ExecuteThread: '8' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5332]
      0x04e11888 JavaThread "ExecuteThread: '7' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4840]
      0x04f6ac28 JavaThread "ExecuteThread: '6' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4196]
      0x04f6a9f8 JavaThread "ExecuteThread: '5' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4180]
      0x04f6a7c8 JavaThread "ExecuteThread: '4' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4912]
      0x04e111d0 JavaThread "ExecuteThread: '3' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=3536]
      0x04e11038 JavaThread "ExecuteThread: '2' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=2104]
      0x04e5fe10 JavaThread "ExecuteThread: '1' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4688]
      0x04e5fca8 JavaThread "ExecuteThread: '0' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5984]
      0x040085d8 JavaThread "Thread-1" daemon [_thread_blocked, id=2556]
      0x005c75d0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=3424]
    =>0x005c6628 JavaThread "CompilerThread0" daemon [_thread_in_native, id=3700]
      0x005c5838 JavaThread "AdapterThread" daemon [_thread_blocked, id=4316]
      0x005c4cb8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4624]
      0x005c2300 JavaThread "Finalizer" daemon [_thread_blocked, id=4696]
      0x005c1770 JavaThread "Reference Handler" daemon [_thread_blocked, id=5456]
      0x005a0e78 JavaThread "main" [_thread_blocked, id=4988]
    Other Threads:
      0x005b8388 VMThread [id=636]
      0x00676398 WatcherThread [id=1032]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 104832K, used 52088K [0x10010000, 0x171d0000, 0x171d0000)
      eden space 93184K,  53% used [0x10010000, 0x130b8b58, 0x15b10000)
      from space 11648K,  19% used [0x16670000, 0x168a54c0, 0x171d0000)
      to   space 11648K,   0% used [0x15b10000, 0x15b10000, 0x16670000)
    tenured generation   total 932096K, used 663755K [0x171d0000, 0x50010000, 0x50010000)
       the space 932096K,  71% used [0x171d0000, 0x3fa02d18, 0x3fa02e00, 0x50010000)
    compacting perm gen  total 88576K, used 88420K [0x50010000, 0x55690000, 0x58010000)
       the space 88576K,  99% used [0x50010000, 0x556690f8, 0x55669200, 0x55690000)
    Dynamic libraries:
    0x00400000 - 0x0040e000      D:\SERVER~1\bea\WEBLOG~1\server\bin\beasvc.exe
    0x7c800000 - 0x7c8c0000      C:\WINDOWS\system32\ntdll.dll
    0x77e40000 - 0x77f42000      C:\WINDOWS\system32\kernel32.dll
    0x77f50000 - 0x77feb000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000 - 0x77cef000      C:\WINDOWS\system32\RPCRT4.dll
    0x76f50000 - 0x76f63000      C:\WINDOWS\system32\Secur32.dll
    0x71bd0000 - 0x71be1000      C:\WINDOWS\system32\MPR.dll
    0x77380000 - 0x77411000      C:\WINDOWS\system32\USER32.dll
    0x77c00000 - 0x77c48000      C:\WINDOWS\system32\GDI32.dll
    0x77ba0000 - 0x77bfa000      C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x082bd000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\server\jvm.dll
    0x76aa0000 - 0x76acd000      C:\WINDOWS\system32\WINMM.dll
    0x71bc0000 - 0x71bc8000      C:\WINDOWS\system32\rdpsnd.dll
    0x771f0000 - 0x77201000      C:\WINDOWS\system32\WINSTA.dll
    0x71c40000 - 0x71c97000      C:\WINDOWS\system32\NETAPI32.dll
    0x76b70000 - 0x76b7b000      C:\WINDOWS\system32\PSAPI.DLL
    0x10000000 - 0x10007000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\hpi.dll
    0x00730000 - 0x0073e000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\verify.dll
    0x00740000 - 0x00759000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\java.dll
    0x00760000 - 0x0076e000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\zip.dll
    0x04100000 - 0x0410f000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\net.dll
    0x71c00000 - 0x71c17000      C:\WINDOWS\system32\WS2_32.dll
    0x71bf0000 - 0x71bf8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71b20000 - 0x71b61000      C:\WINDOWS\System32\mswsock.dll
    0x76ed0000 - 0x76efa000      C:\WINDOWS\system32\DNSAPI.dll
    0x76f70000 - 0x76f77000      C:\WINDOWS\System32\winrnr.dll
    0x76f10000 - 0x76f3e000      C:\WINDOWS\system32\WLDAP32.dll
    0x76f80000 - 0x76f85000      C:\WINDOWS\system32\rasadhlp.dll
    0x067c0000 - 0x067c8000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\nio.dll
    0x06850000 - 0x06856000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\ioser12.dll
    0x5f270000 - 0x5f2ca000      C:\WINDOWS\system32\hnetcfg.dll
    0x71ae0000 - 0x71ae8000      C:\WINDOWS\System32\wshtcpip.dll
    0x06a20000 - 0x06a25000      D:\serverapps\bea\weblogic81\server\bin\stackdump.dll
    0x06f30000 - 0x07044000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\awt.dll
    0x73070000 - 0x73097000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x76290000 - 0x762ad000      C:\WINDOWS\system32\IMM32.dll
    0x77670000 - 0x777a9000      C:\WINDOWS\system32\ole32.dll
    0x072a0000 - 0x072f2000      C:\Program Files\Java\j2sdk1.4.2_15\jre\bin\fontmanager.dll
    0x73860000 - 0x738ab000      C:\WINDOWS\system32\ddraw.dll
    0x73b30000 - 0x73b36000      C:\WINDOWS\system32\DCIMAN32.dll
    0x738b0000 - 0x73980000      C:\WINDOWS\system32\D3DIM700.DLL
    0x68000000 - 0x68035000      C:\WINDOWS\system32\rsaenh.dll
    0x7c8d0000 - 0x7d0cf000      C:\WINDOWS\system32\SHELL32.dll
    0x77da0000 - 0x77df2000      C:\WINDOWS\system32\SHLWAPI.dll
    0x77420000 - 0x77523000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55\comctl32.dll
    0x767a0000 - 0x767d6000      C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRVUI.DLL
    0x767e0000 - 0x76825000      C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRV.DLL
    0x762b0000 - 0x762f9000      C:\WINDOWS\system32\COMDLG32.DLL
    0x77530000 - 0x775c7000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.3959_x-ww_78FCF8D0\COMCTL32.dll
    VM Arguments:
    jvm_args: -Xms1024m -Xmx1024m -XX:MaxNewSize=128m -XX:MaxPermSize=128m -Xbootclasspath/p:./lib/ext/xalan.jar -Dweblogic.Stdout=D:/serverapps/bea\user_projects\domains\pedomain\stdout.txt -Dweblogic.Stderr=D:/serverapps/bea\user_projects\domains\pedomain\stderr.txt -Dweblogic.Name=peserver -Dweblogic.management.username= -Dweblogic.ProductionModeEnabled=true -Djava.security.policy=D:\SERVER~1\bea\WEBLOG~1\server\lib\weblogic.policy -Dweblogic.management.password=x= -Dweblogic.management.startmode=WinSvc exit
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    PATH=D:\SERVER~1\bea\WEBLOG~1\server\bin;C:/Program Files/Java/j2sdk1.4.2_15\bin;D:\serverapps\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;d:\serverapps\pstools;D:\Serverapps\Dell\SysMgt\RAC5;D:\Serverapps\Dell\SysMgt\oma\bin;D:\Serverapps\Dell\SysMgt\oma\oldiags\bin;D:\serverapps\Diskeeper Corporation\Diskeeper\
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel
    ---------------  S Y S T E M  ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 2
    CPU:total 8 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 2097151k(2097151k free), swap 4194303k(4194303k free)
    vm_info: Java HotSpot(TM) Server VM (1.4.2_15-b02) for windows-x86, built on May 22 2007 16:52:42 by "java_re" with MS VC++ 6.0

    Your crash could be solved by the fix for [6579892|http://bugs.sun.com/view_bug.do?bug_id=6579892], which is reported as being in progress.
    Also of interest is [6372116|http://bugs.sun.com/view_bug.do?bug_id=6372116], which would certainly make your problem go away. Unfortunately, this was fixed in 5.0 and brought forward, but not backported to 1.4.2, so it doesn't help you. You could add a comment and vote for this one to raise the awareness of the issue.

  • Starting partitions (interpreted, or compiled) from econsolenot possi

    Hello forte-users group
    We discover a strange problem:
    We can start from unix prompt partitions in an environment
    BUT we can not startup these partitions directly from the econsole :
    then we got from %stdout the
    following error message: "sh:syntax error at line 1: `(&acute; unexpected"
    We are still using Forte 2.0.F in a OSF/1 unix environment with NT
    workstations.
    Who can help us and give some hints ? For instance what is the shell
    script being executed ?
    Thank you in advance.
    Evert.

    Ok, I'll answer myself. It turned out that there is not support for nfs server v2 in kernel 3.15.6. Nfs-root requires by default nfs v2 and that is why it couldn't connect.
    I'v just add "vers=3" option to "nfsroot" and now it works

  • Compile to Assembly?

    I was under the impression that the UNIX system allowed for an option that allowed you to compile a Program source code such as Java, C, or C++ into a .s assembly file that was viewable under a text editor.
    My cloudy memory subjects an example such as: javac JavaProgram.java -S
    The "-S" option is not an acceptable option for the javac command and the javac man information does not list another method for compiling into the assembly version source code.
    Is this possible under the Terminal command line?

    That makes sense. The JVM intereprets the compiled byte code into direct instructions for the system. I was under the false assumption that the JVM actually interpreted the compiled byte code into executable machine code, since they build JVM's for different systems. I guess either way it's portability would be greater than the other conventional languages, but one a little slower than the other.
    Thanks, that cleans out the old brain on the issue. I must be recalling a C++ compile command instead of a Java command. Since the C++ command is not really relevant to me at this time, I don't think I really need to know it.

  • JVM Hotspot compiler crashed

    Hello,
    The JVM crashed in one of our Solaris production environments. The cause of the crash appears to be the HotSpot compiler. It seems that the JVM was trying to compile frequently used code and then it crashed. I have checked the forums and I found one other message with the same Internal Error ID. However, in that message, it is suggested that the JVM itself is running out of C malloc space (http://forum.java.sun.com/thread.jspa?forumID=37&threadID=5127551).
    I have verified that the JVM was not running out of memory when it crashed. There was over 9 GB of swap and physical memory available to the JVM when the crash happened.
    Below are the contents of the hs_err_pid file.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (434F44452255464645520E4350500060 01), pid=2355, tid=13
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode)
    --------------- T H R E A D ---------------
    Current thread (0x0017fcb8): JavaThread "CompilerThread0" daemon [_thread_in_native, id=13]
    Stack: [0xa2300000,0xa2380000), sp=0xa237e370, free space=504k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x6f5644]
    V [libjvm.so+0x4369b0]
    V [libjvm.so+0x1b5140]
    V [libjvm.so+0x21b8b0]
    V [libjvm.so+0x227b70]
    V [libjvm.so+0x224ce4]
    V [libjvm.so+0x21ab78]
    V [libjvm.so+0x282d78]
    V [libjvm.so+0x278d04]
    V [libjvm.so+0x2799c0]
    V [libjvm.so+0x336548]
    V [libjvm.so+0x2deae8]
    V [libjvm.so+0x6691b0]
    Current CompileTask:
    opto:4113 gov.nist.javax.sip.stack.SIPDialog.setLastResponse(Lgov/nist/javax/sip/stack/SIPTransaction;Lgov/nist/javax/sip/message/SIPResponse;)V (954 bytes)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x01a70548 JavaThread "RMI ConnectionExpiration-[90.0.64.65:49888]" daemon [_thread_blocked, id=121153]
    0x01d8a5e0 JavaThread "RMI RenewClean-[90.0.64.65:49888]" daemon [_thread_blocked, id=5835]
    0x005433e0 JavaThread "Thread-29" [_thread_in_native, id=1227]
    0x0110a820 JavaThread "Thread-30" [_thread_blocked, id=1226]
    0x016d2ae8 JavaThread "RMI RenewClean-[90.0.64.64:32827]" daemon [_thread_blocked, id=167]
    0x00d31a28 JavaThread "UDPMessageChannelThread" daemon [_thread_blocked, id=120]
    0x0151a1a8 JavaThread "UDPMessageProcessorThread" daemon [_thread_in_native, id=119]
    0x01519f38 JavaThread "MitelTCPServer" [_thread_in_native, id=118]
    0x00f1ced8 JavaThread "MitelTCPHandler" [_thread_in_native, id=117]
    0x00f1d478 JavaThread "MinetEncryptedServer" [_thread_blocked, id=116]
    0x00f1afb8 JavaThread "JainMgcpStackImpl" [_thread_in_native, id=115]
    0x0079baf0 JavaThread "Thread-24" daemon [_thread_blocked, id=113]
    0x00d22018 JavaThread "Thread-20" daemon [_thread_blocked, id=111]
    0x00d21e50 JavaThread "Thread-18" daemon [_thread_blocked, id=110]
    0x008e4090 JavaThread "Thread-15" [_thread_in_native, id=73]
    0x01069af8 JavaThread "Thread-16" [_thread_blocked, id=72]
    0x010e5720 JavaThread "Thread-14" [_thread_blocked, id=69]
    0x000388d8 JavaThread "DestroyJavaVM" [_thread_blocked, id=1]
    0x01e6b3b0 JavaThread "RTSEngine Watchdog" [_thread_blocked, id=68]
    0x007826e0 JavaThread "RTSEngine" [_thread_in_Java, id=67]
    0x00be1cd8 JavaThread "DBEngine Watchdog" [_thread_blocked, id=66]
    0x00bdde38 JavaThread "DBEngine" [_thread_blocked, id=65]
    0x00fc8a08 JavaThread "DefaultDomain:class=SnmpV3AdaptorServer,protocol=snmp,port=8163" [_thread_in_native, id=63]
    0x00605e60 JavaThread "DefaultDomain:class=HtmlAdaptorServer,protocol=html,port=9001" [_thread_in_native, id=62]
    0x001f98a0 JavaThread "CDR Processor" [_thread_blocked, id=61]
    0x00fcb680 JavaThread "Python Server" [_thread_in_native, id=60]
    0x00a15bc0 JavaThread "CDR File Manager" [_thread_blocked, id=59]
    0x00542bb0 JavaThread "MemoryLogger" [_thread_blocked, id=58]
    0x00541d20 JavaThread "Globals Executioner" [_thread_blocked, id=57]
    0x00a16068 JavaThread "Remote Command Executioner" [_thread_blocked, id=56]
    0x0157ab78 JavaThread "CallpAuditor" [_thread_blocked, id=55]
    0x00664068 JavaThread "VACommClient" [_thread_blocked, id=54]
    0x003f34e0 JavaThread "Thread-11" [_thread_blocked, id=50]
    0x005844a8 JavaThread "Thread-10" daemon [_thread_blocked, id=34]
    0x00f95e60 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=32]
    0x010821f0 JavaThread "GC Daemon" daemon [_thread_blocked, id=30]
    0x00587928 JavaThread "RMI Reaper" [_thread_blocked, id=29]
    0x015fd208 JavaThread "Timer-3" [_thread_blocked, id=28]
    0x009b4200 JavaThread "EventScannerThread" [_thread_blocked, id=27]
    0x006df418 JavaThread "Timer-2" [_thread_blocked, id=26]
    0x0051d958 JavaThread "MemoryHandlerEx" [_thread_blocked, id=20]
    0x0035cef8 JavaThread "RMI TCP Accept-4003" daemon [_thread_in_native, id=18]
    0x00357d70 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=17]
    0x003555c8 JavaThread "Timer-0" daemon [_thread_blocked, id=16]
    0x00181d90 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=15]
    0x00180c10 JavaThread "CompilerThread1" daemon [_thread_blocked, id=14]
    =>0x0017fcb8 JavaThread "CompilerThread0" daemon [_thread_in_native, id=13]
    0x0017e370 JavaThread "AdapterThread" daemon [_thread_blocked, id=12]
    0x0017d1e8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=11]
    0x0017c118 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=10]
    0x00174030 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_native, id=9]
    0x00171420 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=8]
    0x00164aa8 JavaThread "Finalizer" daemon [_thread_blocked, id=7]
    0x00164568 JavaThread "Reference Handler" daemon [_thread_blocked, id=6]
    Other Threads:
    0x00162488 VMThread [id=5]
    0x003b28f0 WatcherThread [id=19]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation total 7424K, used 3798K [0xa5800000, 0xa6000000, 0xa6000000)
    eden space 6656K, 45% used [0xa5800000, 0xa5af5b48, 0xa5e80000)
    from space 768K, 100% used [0xa5e80000, 0xa5f40000, 0xa5f40000)
    to space 768K, 0% used [0xa5f40000, 0xa5f40000, 0xa6000000)
    concurrent mark-sweep generation total 1220608K, used 354273K [0xa6000000, 0xf0800000, 0xf0800000)
    concurrent-mark-sweep perm gen total 46400K, used 27804K [0xf0800000, 0xf3550000, 0xf8800000)
    Dynamic libraries:
    0x00010000      /usr/jdk1.5.0_07/bin/java
    0xff370000      /usr/lib/libthread.so.1
    0xff3fa000      /usr/lib/libdl.so.1
    0xff280000      /usr/lib/libc.so.1
    0xff3a0000      /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
    0xfe800000      /usr/jdk1.5.0_07/jre/lib/sparc/server/libjvm.so
    0xff240000      /usr/lib/libsocket.so.1
    0xff220000      /usr/lib/libsched.so.1
    0xff1f0000      /usr/lib/libCrun.so.1
    0xff1a0000      /usr/lib/libm.so.1
    0xff080000      /usr/lib/libnsl.so.1
    0xff170000      /usr/lib/libmp.so.2
    0xff050000      /usr/jdk1.5.0_07/jre/lib/sparc/native_threads/libhpi.so
    0xfe7b0000      /usr/jdk1.5.0_07/jre/lib/sparc/libjdwp.so
    0xfe770000      /usr/jdk1.5.0_07/jre/lib/sparc/libverify.so
    0xfe720000      /usr/jdk1.5.0_07/jre/lib/sparc/libjava.so
    0xfe700000      /usr/jdk1.5.0_07/jre/lib/sparc/libzip.so
    0xfbfb0000      /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
    0xfbf90000      /usr/jdk1.5.0_07/jre/lib/sparc/libdt_socket.so
    0xfbee0000      /usr/lib/nss_files.so.1
    0xfbec0000      /usr/jdk1.5.0_07/jre/lib/sparc/libmanagement.so
    0xfbdd0000      /usr/jdk1.5.0_07/jre/lib/sparc/libnet.so
    0xf8ab0000      /usr/jdk1.5.0_07/jre/lib/sparc/libnio.so
    0xf8a90000      /usr/lib/librt.so.1
    0xf8860000      /usr/lib/libaio.so.1
    0xf8840000      /usr/lib/libmd5.so.1
    0xf8820000      /usr/lib/libsendfile.so.1
    0xa57e0000      /usr/jdk1.5.0_07/jre/lib/sparc/librmi.so
    0x9dc00000      /nci/vks.2.0.9.0.1/callp/libmgcpca.so.3.0.0.0.0
    0xa5690000      /usr/local/lib/libstdc++.so.2.10.0
    VM Arguments:
    jvm_args: -XX:+UseISM -Xms1200m -Xmx1200m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxPermSize=128m -XX:SurvivorRatio=8 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:-TraceClassUnloading -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4001 -Dcom.sun.management.jmxremote.port=4003 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=/nci/vks/callp/jmxremote.password -Dnci.callp.state=2
    java_command: com.nci.callp.MainApplication
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=/usr/java
    CLASSPATH=:/usr/java/lib/tools.jar:/usr/java/jre/lib/rt.jar:.:/nci/vks/lib/bitlib.jar:/nci/vks/lib/nist.jar:/nci/vks/lib/antlrall.jar:/nci/vks/lib/common.jar:/nci/vks/lib/jconn2.jar:/nci/vks/callp/callp.jar:/nci/vks/callp/lib/3comlib.jar:/nci/vks/callp/lib/jcert.jar:/nci/vks/callp/lib/jnet.jar:/nci/vks/callp/lib/jsse.jar:/nci/vks/callp/lib/mitellib.jar:/nci/vks/mediaserver/mediaserver.jar:/nci/vks/snmp/snmp.jar:/nci/vks/snmp/lib/solaris/jdmkrt.jar:/nci/vks/snmp/lib/solaris/jdmktk.jar:/nci/vks/snmp/lib/solaris/jsnmpapi.jar:/nci/vks/auditor/auditor.jar:.:/nci/vks/lib/bitlib.jar:/nci/vks/lib/nist.jar:/nci/vks/lib/antlrall.jar:/nci/vks/lib/common.jar:/nci/vks/lib/jconn2.jar:/vks_shared/callp/resources:/nci/vks/callp/callp.jar:/nci/vks/callp/lib/3comlib.jar:/nci/vks/callp/lib/jcert.jar:/nci/vks/callp/lib/jnet.jar:/nci/vks/callp/lib/jsse.jar:/nci/vks/callp/lib/mitellib.jar:/nci/vks/callp/lib/cpl.jar:/nci/vks/callp/lib/asbsdk.jar:/nci/vks/mediaserver/mediaserver.jar:/nci/vks/snmp/snmp.jar:/nci/vks/snmp/lib/solaris/jdmkrt.jar:/nci/vks/snmp/lib/solaris/jdmktk.jar:/nci/vks/snmp/lib/solaris/jsnmpapi.jar:/nci/vks/lib/commons-collections-3.0.jar:/nci/vks/lib/commons-lang-2.0.jar:/nci/vks/lib/jython.jar:/nci/vks/lib/castor-0.9.7.jar:/usr/java/lib/tools.jar:/nci/vks/lib/commons-logging-1.0.3.jar://nci/vks/lib/common.nist.jar://nci/vks/lib/concurrent.jar://nci/vks/lib/log4j-1.2.8.jar
    PATH=/nci/sybase/SYBSsa9/bin32:/nci/sybase/shared9/sybcentral43:/usr/sbin:/usr/bin:/nci/sybase/SYBSsa9/bin:/usr/sbin:/opt/SUNWcgha/sbin:/nci/vks/bin:/usr/local/bin:/usr/ccs/bin:/opt/SUNWcgha/sbin:/nci/mysql/bin
    LD_LIBRARY_PATH=/usr/jdk1.5.0_07/jre/lib/sparc/server:/usr/jdk1.5.0_07/jre/lib/sparc:/usr/jdk1.5.0_07/jre/../lib/sparc:/nci/sybase/SYBSsa9/lib32:/nci/sybase/SYBSsa9/lib64:/nci/sybase/SYBSsa9/jre142/lib/sparc/client:/nci/sybase/SYBSsa9/jre142/lib/sparc:/nci/sybase/SYBSsa9/jre142/lib/sparc/native_threads:/nci/sybase/SYBSsa9/drivers/lib::/usr/lib:/nci/sybase/SYBSsa9/lib:/usr/local/lib
    SHELL=/usr/bin/bash
    HOSTTYPE=sparc
    OSTYPE=solaris2.9
    MACHTYPE=sparc-sun-solaris2.9
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x6f60b8], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGBUS: [libjvm.so+0x6f60b8], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGFPE: [libjvm.so+0x276398], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGPIPE: [libjvm.so+0x276398], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGILL: [libjvm.so+0x276398], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGUSR1: [libjvm.so+0x66b714], sa_mask[0]=0x00000000, sa_flags=0x00000008
    SIGUSR2: [libjvm.so+0x276398], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGHUP: [libjvm.so+0x66a38c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGQUIT: [libjvm.so+0x66a38c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGTERM: [libjvm.so+0x66a38c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    --------------- S Y S T E M ---------------
    OS: Solaris 9 9/04 s9s_u7wos_09 SPARC
    Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 29 June 2004
    uname:SunOS 5.9 Generic_118558-28 sun4u (T2 libthread)
    rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
    load average:0.49 0.59 0.61
    CPU:total 2 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
    Memory: 8k page, physical 4194304k(839536k free)
    vm_info: Java HotSpot(TM) Server VM (1.5.0_07-b03) for solaris-sparc, built on May 3 2006 01:22:35 by unknown with unknown Workshop:0x550

    0x00181d90 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=15]
    0x00180c10 JavaThread "CompilerThread1" daemon [_thread_blocked, id=14]
    =>0x0017fcb8 JavaThread "CompilerThread0" daemon [_thread_in_native, id=13]
    0x0017e370 JavaThread "AdapterThread" daemon [_thread_blocked, id=12]
    0x0017d1e8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=11]upgrade ur java to 1.5u11, this may solve the problem
    the application is crashing in compiler thread.
    the easiest workaround is to use -server or -client (vice versa) and check with which option your application doesn't crash.

  • Is java interpreted or a compiled language.

    Im confused all languages aare compiled arent they?
    C++ is compiled into binary, then its ready to execute.
    Java compiled into bytecode and then interpreted bt the JVM, then passed into binary and run?
    Is this right anyone got a definitive answer?
    Cheers

    Im confused all languages aare compiled arent they?Languages are not classified into compiled and interpreted. Implementations of languages are either compilers or interpreters.
    Most implementations of languages are compilers these days. As far as I know there are no Java interpreters. Java is always compiled into bytecode or native code in all implementations I've seen.
    The bytecode can be interpreted as it usually was in the early days of Java, or compiled at run time, or pre-compiled, or can be both interpreted and compiled at run time as HotSpot does.

  • JVM or compiler bug?

    Hi, I'm extracting an XML file via JDBC, and it works OK in JDeveloper compiled with java version "JDK1.2.2_JDeveloper" as the target JDK version in the project properties. The file comes out as it should and I can invoke IE to view it. But when I compile with java version "1.3.0" as the target JDK version, I get hexcode or something instead of characters. This is the output when the files are compiled for JDK version "JDK1.2.2_JDeveloper":<P>"D:\Java\JDeveloper\java1.2\jre\bin\javaw.exe" -classpath "D:\wd\classes;D:\Java\JDeveloper\lib\jdev-rt.zip;D:\Java\JDeveloper\jdbc\lib\oracle8.1.7\classes12.zip;D:\Java\JDeveloper\lib\connectionmanager.zip;D:\Java\JDeveloper\java1.2\jre\ lib\rt.jar" MCP <BR>filename: D:\wd\Jenny<BR>name: Jenny<BR>Connected<BR>Returnfile = '<stanfordDocument name="Jenny" type="Produktion" lastSavedDate="1997-08-10T05:51:10+01:00"><numberOfTreeSpecies>1</numberOfTreeSpecies><treeSpecies name="GRAN" numberOfAssortments="1"/><treeSpecies name="TALL" numberOfAssortments="1"/></stanfordDocument>'<BR>Jenny extracted.<BR>Connection closed. <BR>-----------------<P>Compiled for java version "1.3.0":<P>"D:\Java\sdk1.3\jre\bin\javaw.exe" -classpath "D:\wd\classes;D:\Java\JDeveloper\lib\jdev-rt.zip;D:\Java\JDeveloper\jdbc\lib\oracle8.1.7\classes12.zip;D:\Java\JDeveloper\lib\connectionmanager.zip;D:\Java\sdk1.3\lib\dt.jar;D:\Ja va\sdk1.3\jre\lib\rt.jar;D:\Java\sdk1.3\jre\lib\i18n.jar" MCP <BR>filename: D:\wd\Jenny<BR>name: Jenny<BR>Connected<BR>Returnfile = '3C007300740061006E0066006F007200640044006F00630075006D0065006E00740020006E0061006D0065003D0022004A0065006E006E0079002200200074007900700065003D002200500072006F00640075006B007400690 06F006E00220020006C006100730074005300610076006500640044006100740065003D00220031003900390037002D00300038002D00310030005400300035003A00350031003A00310030002B00300031003A0030003000220 03E003C006E0075006D006200650072004F006600540072006500650053007000650063006900650073003E0031003C002F006E0075006D006200650072004F006600540072006500650053007000650063006900650073003E0 03C007400720065006500530070006500630069006500730020006E0061006D0065003D0022004700520041004E00220020006E0075006D006200650072004F0066004100730073006F00720074006D0065006E00740073003D0 02200310022002F003E003C007400720065006500530070006500630069006500730020006E0061006D0065003D002200540041004C004C00220020006E0075006D006200650072004F0066004100730073006F00720074006D0 065006E00740073003D002200310022002F003E003C002F007300740061006E0066006F007200640044006F00630075006D0065006E0074003E00'<BR>Jenny extracted.<BR>Connection closed. <BR>-----------------<P><BR>It seems there is a difference in how the characters are interpreted by the JVM. When I try <BR>to extract the file using a JavaBean and JSP, I also get just numbers. The browser is using the <BR>standard JVM, not the JDev one. Is this a bug in the JVM that comes with Jdev? Or in the compiler? How can I get <BR>the XML file out of the database so that the standard JVM can interpret it as characters? <BR>(In both cases the character encoding is set to "ISO8859_1".)<P>/Fredrik
    null

    Any ideas?Put a debugging println in the constructor.
    Seriously.
    Put a debugging println in the constructor.
    You may be absolutely certain you are calling the initialization method (which makes me wonder whether you should be calling it from the constructor in the first place). But you may have an issue like multiple class loaders that results in the code doing something you are absolutely certain it does not do.
    Put a debugging println in the constructor.

  • Java is a Compiler or Interpreter?

    Java is a Compiler or Interpreter?

    If you mean the executable called "java" that comes with the jre, it is actually both... it's an interpreter that compiles parts of the code it's interpreting to machine code to make it run faster.

  • JVM for various OS

    I new to Java,I have one basic doubt regarding JVM,
    Is JVM designed by the OS developers or SUN itself design the different JVMs for the different Operating Systems?

    Hi harish...
    Because of Java portability feature .. the java program's transformation process, from source code to machine executable, into 2 steps....
    * 1 .Step..
    i.e example.java to example.class ( using "javac" compiler it is converted to "bytecode" i.e "class" file)
    there is nothing big deal about this "class" file (bytecode).Its just a simple flat file having JVM(java virtual machine) instructions and symbol table of java's flavour( also called runtime constant pool table, having references to runtime variables and methods etc.. that is need at linking process, to execute the program)...
    * 2.Step..
    tranforms the class file ie..
    from example.class to machine executable(using JVM )
    JVM is interpreter that reads JVM instructions from the class file and transfroms them into appropriate machine equivalent code of the host machine...
    purly speaking interpreter is more robust than compiler .. for extremely runtime error prone programs...and more over JVM instructions are siblings to assembly code and thus requires interpreter rathar than compiler...because at the end of the any CPU executes only one instruction at a time....
    Hope I answered your question.....

  • What happens in jvm

    Hi,
    I want to know what happens in jvm.I have heard that java compiler compiles java source code to a java instruction set called bytecode. What happens when this bytecode is executed. Does it get converted to assembly. Please tell me where i can get more help on this matter.
    Thanks.
    chamal.

    Bytecodes may be either interpreted or compiled into machine code as it is executed. Very old JVMs only interpreted the bytecodes, all newer JVMs use one for of just-in-time-compilation to native machine code at runtime.
    Chuck

  • Error on running JVM from a C program

    Hello there!!
    I'm using Open Watcom as a C compiler on Windows XP. I'm trying to run a JVM from a C program.
    I have specified the following as a library file :
    C:\Java\jdk1.5.0_04\lib\jvm.lib
    The code compiles very well, but I'm getting an error when running it.
    Windows tells me the following :
    "The entry point of the function ??_7VM_GetCurrentLocation@@6B@ can't be found in jvm.dll dynamic linking library"
    The code I've been trying to run is the following one :
    #include <jni.h>
    #include <stdio.h>
    #include <stdlib.h>
    void main()
    JavaVMOption options[3];
    JavaVMInitArgs vm_args;
    JavaVM *jvm;
    JNIEnv *jenv;
    long result;
    jmethodID mid;
    jfieldID fid;
    jobject jobj;
    jclass cls;
    int asize;
    printf("coucou\n");
    getchar();
    options[0].optionString = ".";
    options[1].optionString = "-Djava.compiler=NONE";
    options[2].optionString = "-verbose:jni";
    vm_args.version = JNI_VERSION_1_2;
    vm_args.options = options;
    vm_args.nOptions = 3;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    result = JNI_CreateJavaVM(&jvm,(void **)&jenv, &vm_args);
    /* if(result == JNI_ERR )
    printf("Error invoking the JVM");
    exit (-1);
    cls = (*jenv)->FindClass(jenv,"C:\Formation\Joly\FromCtoJava\WATCOM\samples\ide\win32\FromCtoJava");
    /* if( cls == NULL )
    printf("can't find class FromCtoJava\n");
    exit (-1);
    (*jenv)->ExceptionClear(jenv);
    mid=(*jenv)->GetMethodID(jenv, cls, "<init>", "()V");
    jobj=(*jenv)->NewObject(jenv, cls, mid);
    fid=(*jenv)->GetFieldID(jenv, cls, "arraySize", "I");
    asize=(*jenv)->GetIntField(jenv, jobj, fid);
    printf("size of array is %d",asize);
    (*jvm)->DestroyJavaVM(jvm);*/
    Cheers
    Joly

    I already did PATH.
    Open a console window.
    Explicitly set PATH to point ONLY to the appropriate java directory (where the dll is and executable) using something like the following
    set PATH=C:\xxx\yyy
    Then run your app again in the console window - no where else.

  • Version of jvm.dll compatible with 64-bit development on Visual Studio 2013?

    Hi.  I am building a 64-bit C++ application under Visual Studio 2013. I am using jvm.dll to call Java methods from within the application.  The issue is that the version of jvm.dll that is distributed with Java 7 and Java 8 are compiled with Visual Studio 2010 (and thus rely on the msvcr100.dll runtime library).  This makes it very dangerous to use with a Visual Studio 2013 application which uses msvcr120.dll (mixing runtime libraries is a very big no-no).  I am seeing random memory errors as a result, at the JNI interface level.
    Is there any way to get a version of jvm.dll that is compiled with Visual Studio 2013 and is thus dependent on msvcr120.dll?
    Thanks,
    Dan

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Error while creating JVM -Urgent

    This is my Java program - Prog.java
    public class Prog {
    public static void main(String[] args) {
    System.out.println("Hello World" + args[0]);
    This is my c program --invoke.c
    include <jni.h>
    #ifdef _WIN32
    #define PATH_SEPARATOR ';'
    #else /* UNIX */
    #define PATH_SEPARATOR ':'
    #endif
    #define USER_CLASSPATH "." /* where Prog.class is */
    main() {
    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,&env,&vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    cls = (*env)->FindClass(env, "Prog");
    if (cls == 0) {
    fprintf(stderr, "Can't find Prog class\n");
    exit(1);
    mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
    if (mid == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(1);
    jstr = (*env)->NewStringUTF(env, " from C!");
    if (jstr == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    args = (*env)->NewObjectArray(env, 1,
    (*env)->FindClass(env, "java/lang/String"), jstr);
    if (args == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    (*env)->CallStaticVoidMethod(env, cls, mid, args);
    (*jvm)->DestroyJavaVM(jvm);
    I am compiling my program using this
    gcc -I/usr/java/jdk1.3.1_06/include -I/usr/java/jdk1.3.1_06/include/linux -L/usr/java/jdk1.3.1_06/jre/lib/i386 -ljava invoke.c
    All the paths and classpath is correct.
    But I am getting an error
    invoke.c: In function `main':
    invoke.c:34: warning: passing arg 2 of `JNI_CreateJavaVM' from incompatible pointer type
    Please tell me what could be the problem.
    Thanks and Regarsd,
    Anand

    Hi Anandabrata,
    I think you had referred to the following link
    http://java.sun.com/docs/books/jni/html/invoke.html
    But you had forgotten to note in which version you are going to invoke the JVM.
    Since your compiling command refers to include paths as
    ======
    gcc -I/usr/java/jdk1.3.1_06/include -I/usr/java/jdk1.3.1_06/include/linux -L/usr/java/jdk1.3.1_06/jre/lib/i386 -ljava invoke.c
    ======
    I think you should be using jdk1.3XXXX some thing.
    So, the JNI version that you should have tried should be Version2.
    As I have commented the release that is specific to the version check and that of version1, better use the uncommented code and try creating the JavaVM.
    You should be getting it right.
    To be more specific
    Do use this
    // #ifdef JNI_VERSION_1_2
    JavaVMInitArgs vm_args;
    JavaVMOption options[1];
    options[0].optionString =
    "-Djava.class.path=" USER_CLASSPATH;
    vm_args.version = 0x00010002;
    vm_args.options = options;
    vm_args.nOptions = 1;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    // #else
    // JDK1_1InitArgs vm_args;
    // char classpath[1024];
    // vm_args.version = 0x00010001;
    // JNI_GetDefaultJavaVMInitArgs(&vm_args);
    // /* Append USER_CLASSPATH to the 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, &env, &vm_args);
    // #endif /* JNI_VERSION_1_2 */
    Good Luck
    Dhamo

  • XSLTC not working in -server mode of JVM

    I am translating one of my request xml to response xml using SinglePropertyAvailabilityRQ.xsl. I am using XSLTC technique of transformation. This works perfectly when I am running it normal JVM mode. But when I run this in �-server� mode of JVM it gives �Stylesheet compilation error�. Attaching my program and request xml and xsl used for transformation. The transform(Node node, String xslFile) method does the actual transformation and TemplateObjectFactory class maintains compiled Templates.
    public class TemplateObjectFactory
    private static final NB4Logger logger =
    NB4Logger.getLogger(XMLUtility.class.getName());
    private static Hashtable htTemplates = new Hashtable();
    private static Templates translet = null;
    private static TransformerFactory tFactory = null;
    private static void init() throws Exception
    String key = "javax.xml.transform.TransformerFactory";
    String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
    Properties props = System.getProperties();
    props.put(key, value);
    System.setProperties(props);
    try
    tFactory = TransformerFactory.newInstance();
    catch (TransformerFactoryConfigurationError e)
    throw new Exception(e);
    // The hashtable object should be available through out the life cycle of
    // web services application. Hence the Hashtable has been made a class
    // variable
    // Hashtable object is synchonized by default and hence no need to
    // check thread safe issues.
    // check if template object already exists in the hashtable
    // if exists return it or else create a new template object
    // store it in the hashtable and return it to the caller.
    * Method which returns Template objects
    * @param strRoot - XML Root tag
    * @return Templates - reference to a translet
    * @throws Exception
    public static Templates getTemplateObject(String strRoot) throws Exception
    try
    if (tFactory == null)
    if (logger.isDebugEnabled())
    logger.debug(
    "Transformer Factory object is null. Need to initialize it");
    init();
    else
    if (logger.isDebugEnabled())
    logger.debug("Transformer Factory object is not null.");
    if (htTemplates.containsKey(strRoot))
    // Template object already exists in hashtable
    translet = (Templates) htTemplates.get(strRoot);
    else
    // Template object does not exists in hashtable
    // Need to create new template object.
    // XSL stylesheet to create a translet as a Templates object.
    // translet = tFactory.newTemplates(new StreamSource(xslFile));
    translet = tFactory.newTemplates(new StreamSource(strRoot));
    // add the template object into hashtable
    htTemplates.put(strRoot, translet);
    catch (Exception e)
    logger.error("Exception Occured " + e.getMessage());
    throw new Exception(e);
    return translet;
    public static Node transform(Node node, String xslFile)
    throws WSApplicationException
    Node resultNode = null;
    //apply transform on this node
    try
    if (logger.isDebugEnabled())
    logger.debug("Inside XMLUtility.transform ");
    TransformerFactory tFactory = TransformerFactory.newInstance();
    if (tFactory.getFeature(DOMSource.FEATURE)
    && tFactory.getFeature(DOMResult.FEATURE))
    Templates translet =
    (Templates) TemplateObjectFactory.getTemplateObject(xslFile);
    if (translet == null)
    logger.error("Translet is null");
    throw new Exception("Translet is null");
    Transformer transformer = translet.newTransformer();
    DOMSource xmlDomSource = new DOMSource(node);
    if (logger.isDebugEnabled())
    logger.debug("Testing the input of transformer - node (see console)");
    if (transLogger.isDebugEnabled())
    transLogger.debug("before trasformation for : " + xslFile);
    writeToConsole(node);
    DOMResult domResult = new DOMResult();
    // Perform the transformation, placing the output in the DOMResult.
    transformer.transform(xmlDomSource, domResult);
    if (logger.isDebugEnabled())
    logger.debug(
    "Testing the Output of transformer - node (see console)");
    if (transLogger.isDebugEnabled())
    transLogger.debug("after trasformation for : " + xslFile);
    writeToConsole(node);
    resultNode = domResult.getNode();
    else
    throw new org.xml.sax.SAXNotSupportedException(
    "SAX processing not supported!");
    catch (TransformerException te)
    logger.error("Transformer Exception occured",te);
    throw new WSApplicationException(FrameworkErrorCodeConstants.eqstrTRANSFORMATION_EXCP,te.getMessage());
    catch (Exception e)
    logger.error("Exception occured",e);
    throw new WSApplicationException(FrameworkErrorCodeConstants.eqstrWS_APP_EXCP,e.getMessage());
    return resultNode;
    XSL IS:
    ======
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hotelml="http://www.xpegs.com/v2001Q3/HotelML">
         <xsl:output method="xml" encoding="UTF-8"/>
         <xsl:template match="/SinglePropertyAvailabilityRQ">
         <xsl:param name="corpinfo">CorpInfo</xsl:param>
         <xsl:param name="freqguest">FreqGuest</xsl:param>
         <xsl:param name="udsource"></xsl:param>
    <xsl:param name="uddestintion"></xsl:param>
              <hotelml:HotelML>
                   <xsl:variable name="V1" select="."/>
                   <hotelml:Head>
                        <hotelml:Process>
                             <xsl:variable name="V43834416_27497032" select="'/HotelML/Form/PropertyInformation'"/>
                             <xsl:attribute name="DataPath"><xsl:value-of select="$V43834416_27497032"/></xsl:attribute>
                             <xsl:variable name="V43834608_27497784" select="'TI_PropertyInformationV1_1'"/>
                             <xsl:attribute name="Function"><xsl:value-of select="$V43834608_27497784"/></xsl:attribute>
                             <xsl:for-each select="ProcessingDirectives">
                                  <xsl:for-each select="@Token">
                                       <xsl:attribute name="Token"><xsl:value-of select="."/></xsl:attribute>
                                  </xsl:for-each>
                             </xsl:for-each>
                        </hotelml:Process>
                        <hotelml:Route>
                        <xsl:attribute name="Source"><xsl:value-of select="$udsource"/></xsl:attribute>
                        <xsl:attribute name="Destination"><xsl:value-of select="$uddestintion"/></xsl:attribute>
                        </hotelml:Route>
                   </hotelml:Head>
                   <hotelml:Form>
                        <hotelml:PropertyInformation>
                             <xsl:for-each select="Property">
                                  <xsl:for-each select="@DataSet">
                                       <xsl:attribute name="DataSet"><xsl:value-of select="."/></xsl:attribute>
                                  </xsl:for-each>
                             </xsl:for-each>
                             <xsl:for-each select="Property">
                                  <xsl:variable name="V6" select="."/>
                                  <xsl:for-each select="@ChainCode">
                                       <xsl:variable name="V43835568_43898712" select="."/>
                                       <xsl:for-each select="$V6/@PropertyCode">
                                            <xsl:variable name="V43835568_43898568" select="."/>
                                            <xsl:variable name="V43835568_26210968" select="';'"/>
                                            <xsl:variable name="V43835568_23714840" select="concat($V43835568_43898712,$V43835568_26210968)"/>
                                            <xsl:variable name="V43835568_27496472" select="concat($V43835568_23714840,$V43835568_43898568)"/>
                                            <xsl:attribute name="PropertyCode"><xsl:value-of select="$V43835568_27496472"/></xsl:attribute>
                                       </xsl:for-each>
                                  </xsl:for-each>
                             </xsl:for-each>
                             <hotelml:PropertyRate>
                                  <xsl:for-each select="AvailabilitySearchCriteria">
                                       <xsl:for-each select="@MatchingQualifier">
                                            <xsl:variable name="V43835760_43899784" select="."/>
                                            <xsl:variable name="V43835760_27498472" select="'ExactAndPublic'"/>
                                            <xsl:variable name="V43835760_27499064" select="$V43835760_43899784 = $V43835760_27498472"/>
                                            <xsl:variable name="V43835760_27497856" select="'ExactAndPublic'"/>
                                            <xsl:variable name="V43835760_27563088">
                                                 <xsl:choose>
                                                      <xsl:when test="$V43835760_27499064">
                                                           <xsl:value-of select="$V43835760_43899784"/>
                                                      </xsl:when>
                                                      <xsl:otherwise>
                                                           <xsl:value-of select="$V43835760_27497856"/>
                                                      </xsl:otherwise>
                                                 </xsl:choose>
                                            </xsl:variable>
                                            <xsl:attribute name="MatchingQualifier"><xsl:value-of select="$V43835760_27563088"/></xsl:attribute>
                                       </xsl:for-each>
                                  </xsl:for-each>
                                  <xsl:for-each select="AvailabilitySearchCriteria">
                                       <xsl:for-each select="@NumberOfAdults">
                                            <xsl:attribute name="NumberOfAdults"><xsl:value-of select="."/></xsl:attribute>
                                       </xsl:for-each>
                                  </xsl:for-each>
                                  <xsl:for-each select="AvailabilitySearchCriteria">
                                       <xsl:for-each select="@NumberOfBeds">
                                            <xsl:attribute name="NumberOfBeds"><xsl:value-of select="."/></xsl:attribute>
                                       </xsl:for-each>
                                  </xsl:for-each>
                                  <xsl:for-each select="AvailabilitySearchCriteria">
                                       <xsl:for-each select="@NumberOfChildren">
                                            <xsl:attribute name="NumberOfChildren"><xsl:value-of select="."/></xsl:attribute>
                                       </xsl:for-each>
                                  </xsl:for-each>
                                  <xsl:for-each select="AvailabilitySearchCriteria">
                                       <xsl:for-each select="@NumberOfRooms">
                                            <xsl:attribute name="NumberOfRooms"><xsl:value-of select="."/></xsl:attribute>
                                       </xsl:for-each>
                                  </xsl:for-each>
                                  <hotelml:DateRange>
                                       <xsl:for-each select="DateRange">
                                            <xsl:for-each select="@ArrivalDate">
                                                 <xsl:variable name="V39113288_39096080" select="."/>
                                                 <xsl:variable name="V39113288_39659576" select="'-'"/>
                                                 <xsl:variable name="V39113288_39389216" select="'4'"/>
                                                 <xsl:variable name="V39113288_39219288" select="'1'"/>
                                                 <xsl:variable name="V39113288_39206792" select="'2'"/>
                                                 <xsl:variable name="V39113288_39206432" select="'4'"/>
                                                 <xsl:variable name="V39113288_39206288" select="'7'"/>
                                                 <xsl:variable name="V39113288_39223248" select="substring($V39113288_39096080,$V39113288_39206432,$V39113288_39206792)"/>
                                                 <xsl:variable name="V39113288_39213664" select="substring($V39113288_39096080,$V39113288_39206288,$V39113288_39389216)"/>
                                                 <xsl:variable name="V39113288_40407544" select="concat($V39113288_39213664,$V39113288_39659576)"/>
                                                 <xsl:variable name="V39113288_39227648" select="substring($V39113288_39096080,$V39113288_39219288,$V39113288_39206792)"/>
                                                 <xsl:variable name="V39113288_39754960" select="concat($V39113288_40407544,$V39113288_39227648)"/>
                                                 <xsl:variable name="V39113288_40050096" select="concat($V39113288_39754960,$V39113288_39659576)"/>
                                                 <xsl:variable name="VX1" select="concat($V39113288_40050096,$V39113288_39223248)"/>
                                                 <xsl:attribute name="InDate">
                                                      <xsl:value-of select="$VX1"/>
                                                 </xsl:attribute>
                                            </xsl:for-each>
                                       </xsl:for-each>
                                       <xsl:for-each select="DateRange">
                                            <xsl:for-each select="@DepartureDate">
                                                 <xsl:variable name="V39113480_39096272" select="."/>
                                                 <xsl:variable name="V39113480_40854384" select="'7'"/>
                                                 <xsl:variable name="V39113480_40819072" select="'1'"/>
                                                 <xsl:variable name="V39113480_40355560" select="'4'"/>
                                                 <xsl:variable name="V39113480_39729264" select="'-'"/>
                                                 <xsl:variable name="V39113480_39604688" select="'2'"/>
                                                 <xsl:variable name="V39113480_40211880" select="substring($V39113480_39096272,$V39113480_40854384,$V39113480_40355560)"/>
                                                 <xsl:variable name="V39113480_40972544" select="concat($V39113480_40211880,$V39113480_39729264)"/>
                                                 <xsl:variable name="V39113480_39498544" select="substring($V39113480_39096272,$V39113480_40355560,$V39113480_39604688)"/>
                                                 <xsl:variable name="V39113480_40211952" select="substring($V39113480_39096272,$V39113480_40819072,$V39113480_39604688)"/>
                                                 <xsl:variable name="V39113480_40924360" select="concat($V39113480_40972544,$V39113480_40211952)"/>
                                                 <xsl:variable name="V39113480_40057704" select="concat($V39113480_40924360,$V39113480_39729264)"/>
                                                 <xsl:variable name="V39113480_39469104" select="concat($V39113480_40057704,$V39113480_39498544)"/>
                                                 <xsl:attribute name="OutDate">
                                                      <xsl:value-of select="$V39113480_39469104"/>
                                                 </xsl:attribute>
                                            </xsl:for-each>
                                       </xsl:for-each>
                                  </hotelml:DateRange>
                             <xsl:for-each select="RatePlan">
                             <hotelml:RateSearch>
                                       <xsl:for-each select="@RatePlanCode">
                                                 <xsl:attribute name="RatePlanCode">
                                                      <xsl:value-of select="."/>
                                                 </xsl:attribute>
                                  </xsl:for-each>
                                            <xsl:for-each select="@RatePlanType">
                                                 <xsl:attribute name="RatePlanType">
                                                      <xsl:value-of select="."/>
                                                 </xsl:attribute>
                                            </xsl:for-each>      
                                       <xsl:if test="$V1/ClientFileIdentification/@ClientFileType[.!='']">
                                            <xsl:variable name="testcp" select="$V1/ClientFileIdentification/@ClientFileType"/>
                                            <xsl:if test="$corpinfo=$testcp">
                                            <hotelml:CorpInfo>
                                                 <xsl:for-each select="$V1/ClientFileIdentification">
                                                      <xsl:variable name="V26" select="."/>
                                                      <xsl:for-each select="@ClientFileType">
                                                      <xsl:variable name="V43837680_43899976" select="."/>
                                                      <xsl:if test="$corpinfo=$V43837680_43899976">
                                                           <xsl:for-each select="$V26/@ClientFileNumber">
                                                                <xsl:variable name="V43837680_43899000" select="."/>
                                                                <xsl:variable name="V43837680_42661680" select="'CorpInfo'"/>
                                                                <xsl:variable name="V43837680_42657544" select="$V43837680_43899976 = $V43837680_42661680"/>
                                                                <xsl:variable name="V43837680_43918784" select="''"/>
                                                                <xsl:variable name="V43837680_42658496">
                                                                     <xsl:choose>
                                                                          <xsl:when test="$V43837680_42657544">
                                                                               <xsl:value-of select="$V43837680_43899000"/>
                                                                          </xsl:when>
                                                                          <xsl:otherwise>
                                                                               <xsl:value-of select="$V43837680_43918784"/>
                                                                          </xsl:otherwise>
                                                                     </xsl:choose>
                                                                </xsl:variable>
                                                                <xsl:attribute name="Code"><xsl:value-of select="$V43837680_42658496"/></xsl:attribute>
                                                           </xsl:for-each>
                                                      </xsl:if>
                                                      </xsl:for-each>
                                                 </xsl:for-each>
                                            </hotelml:CorpInfo>
                                            </xsl:if>
                                            </xsl:if>
                                            <xsl:if test="$V1/ClientFileIdentification/@ClientFileType[.!='']">
                                            <xsl:variable name="testfr" select="$V1/ClientFileIdentification/@ClientFileType"/>
                                            <xsl:if test="$freqguest=$testfr">
                                            <hotelml:FreqGuest>
                                                 <xsl:for-each select="$V1/ClientFileIdentification">
                                                      <xsl:variable name="V29" select="."/>
                                                      <xsl:for-each select="@ClientFileType">
                                                      <xsl:variable name="V43837872_43899976" select="."/>
                                                      <xsl:if test="$freqguest=$V43837872_43899976">
                                                           <xsl:for-each select="$V29/@ClientFileNumber">
                                                                <xsl:variable name="V43837872_43899000" select="."/>
                                                                <xsl:variable name="V43837872_42659040" select="'FreqGuest'"/>
                                                                <xsl:variable name="V43837872_42660064" select="$V43837872_43899976 = $V43837872_42659040"/>
                                                                <xsl:variable name="V43837872_43918856" select="''"/>
                                                                <xsl:variable name="V43837872_42661136">
                                                                     <xsl:choose>
                                                                          <xsl:when test="$V43837872_42660064">
                                                                               <xsl:value-of select="$V43837872_43899000"/>
                                                                          </xsl:when>
                                                                          <xsl:otherwise>
                                                                               <xsl:value-of select="$V43837872_43918856"/>
                                                                          </xsl:otherwise>
                                                                     </xsl:choose>
                                                                </xsl:variable>
                                                                <xsl:attribute name="Code"><xsl:value-of select="$V43837872_42661136"/></xsl:attribute>
                                                           </xsl:for-each>
                                                           </xsl:if>
                                                      </xsl:for-each>
                                                 </xsl:for-each>
                                            </hotelml:FreqGuest>
                                            </xsl:if>
                                       </xsl:if>
                                  </hotelml:RateSearch>
                                  </xsl:for-each>
                             </hotelml:PropertyRate>
                        </hotelml:PropertyInformation>
                   </hotelml:Form>
              </hotelml:HotelML>
         </xsl:template>
    </xsl:stylesheet>
    Request XML is:
    =============
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <SinglePropertyAvailabilityRQ Language="-1">
    <AvailabilitySearchCriteria AlternatePropertyFlag="False" NumberOfAdults="1" NumberOfChildren="1" NumberOfRooms="1"/>
    <Promotion PromotionCode=""/>
    <RatePlan/>
    <RatePlan RatePlanCode="Eco" RatePlanType="Standard"/>
    <RatePlan RatePlanCode="EQUR" RatePlanType="Standard"/>
    <ProcessingDirectives InstanceId="1" Token="1088400136957"/>
    <Property ChainCode="XX" PropertyCode="61309" PropertyCodeType="RV"/>
    <DateRange ArrivalDate="07/03/2004" DepartureDate="07/04/2004" NumberOfNights="1"/>
    <SuppressZeroRates Code="NO"/>
    </SinglePropertyAvailabilityRQ>

    JVM gives an Exception. I don't have the complete stack trace. But just have the message of the Exception.
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    Soon I will paste the complete StackTrace.

  • Very strange compile error...

    Hi,
    All my java programs compile fine, except for when I try to set the background color of a component. It's driving me nuts. I've uninstalled and reinstalled the Java JDK, but to no avail. Here's the text of the error message when I attempt to compile.
    Unexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xE6D2
    12
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    Dynamic libraries:
    0x00400000 - 0x0040B000 C:\j2sdk1.4.2_05\bin\javac.exe
    0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x7807E000 C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08139000 C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll
    0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
    0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.DLL
    0x629C0000 - 0x629C8000 C:\WINDOWS\System32\LPK.DLL
    0x72FA0000 - 0x72FFA000 C:\WINDOWS\System32\USP10.dll
    0x6BC00000 - 0x6BC14000 C:\WINDOWS\System32\DrvTrNTm.dll
    0x6BC20000 - 0x6BC3D000 C:\WINDOWS\System32\DrvTrNTl.dll
    0x00A20000 - 0x00A94000 C:\WINDOWS\TEMP\qka3.tmp
    0x77340000 - 0x773CB000 C:\WINDOWS\system32\COMCTL32.DLL
    0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.DLL
    0x771B0000 - 0x772C7000 C:\WINDOWS\system32\OLE32.DLL
    0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.DLL
    0x71AD0000 - 0x71AD8000 C:\WINDOWS\System32\WSOCK32.DLL
    0x71AB0000 - 0x71AC5000 C:\WINDOWS\System32\WS2_32.dll
    0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll
    0x00BC0000 - 0x00BEB000 C:\WINDOWS\System32\msctfime.ime
    0x10000000 - 0x10007000 C:\j2sdk1.4.2_05\jre\bin\hpi.dll
    0x00C00000 - 0x00C0E000 C:\j2sdk1.4.2_05\jre\bin\verify.dll
    0x00C10000 - 0x00C29000 C:\j2sdk1.4.2_05\jre\bin\java.dll
    0x00C30000 - 0x00C3D000 C:\j2sdk1.4.2_05\jre\bin\zip.dll
    0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
    0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
    0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
    0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 362K [0x10010000, 0x100b0000, 0x104f0000)
    eden
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x00e6d212
    SIGNAL = -1073741678
    FUNCTION NAME = (N/A)
    OFFSET = 0xFFFFFFFF
    LIBRARY NAME = (N/A)
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    And here' s the block of code that causes the error... if I comment out the line
    panel.setBackground(Color.white)it compiles without error.
    JPanel panel = new JPanel();
    panel.setBorder(BorderFactory.createLoweredBevelBorder());
    panel.setPreferredSize(new Dimension(400,300));
    panel.setBackground(Color.white);I am running Windows XP Home Edition. Any ideas? Help is greatly appreciated.
    Nick

    Your JVM crashed when you compile your file. This is unusual.
    If your can reproduce this with a small test-case, I suggest you
    filke a bug here: http://bugs.sun.com/services/bugreport/index.jsp
    --Alexis                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for