JVM hang on IOException

I have had to write a new Java Applet that can be operated using the Microsoft JVM (version 5.0.0.3810) under IE6.0
My problem is this...
I have two machines both with Windows 2000 Professional. Both machines have IE6.0 SP1 and the same version of JVM (listed above). My applet works the first time on both systems but then when I relaunch it it works on one and the browser hangs on the other (finally after a while produces an error message). This is the error...
java.io.IOException: 192.168.0.6/test.asp
     at com/ms/net/wininet/http/HttpInputStream.connect
     at com/ms/net/wininet/http/HttpInputStream.<init>
     at com/ms/net/wininet/http/HttpURLConnection.createInputStream
     at com/ms/net/wininet/WininetURLConnection.getInputStream
     at com/ms/net/wininet/http/HttpPostBufferStream.close
     at java/io/OutputStreamWriter.close
     at com/wul/lms/client/APIAdapterApplet.HTTPRequest
     at com/wul/lms/client/APIAdapterApplet.GetParam
     at com/wul/lms/client/APIAdapterApplet.LMSInitialize
java.io.IOException: 192.168.0.6/test.asp
     at com/ms/net/wininet/http/HttpInputStream.connect
     at com/ms/net/wininet/http/HttpInputStream.<init>
     at com/ms/net/wininet/http/HttpURLConnection.createInputStream
     at com/ms/net/wininet/WininetURLConnection.getInputStream
     at com/ms/net/wininet/http/HttpPostBufferStream.close
     at java/io/OutputStreamWriter.close
     at com/wul/lms/client/APIAdapterApplet.HTTPRequest
     at com/wul/lms/client/APIAdapterApplet.GetParam
     at com/wul/lms/client/APIAdapterApplet.LMSInitialize
Note that Sun's version of Java works everytime - however my client I am building the applet for can not use it because of old software they currently use that will not work on the latest build of Sun's Java. Makes you wish people would just use Sun's version which is up to version 1.4.x where the Microsoft version is based on 1.1.x
I am new to Java so I am not up with all the versions and compatability issues.

It is Guranteed NOT to work...since, the IE JVM is light years behind latest Sun JVM...and so many features/releases have come in the 1.1 - 1.4 period that it is impossible to expect such a Backward compatibility

Similar Messages

  • JVM hangs while executing  a sql query

    My JVM hangs while I try to execute an update query. I am using JDBC thin client and Oracle 9i as database. Can someone please suggest what could be wrong.

    I have a serious problem regarding the usage of Prepared Statement.
    I am working on J2EE based application with the application server as Oracle 9ias.We have mostly used Prepared in 0ur queries.But one our application got implemented we are facing some strange problems.The first instance was a web page was getting hanged and does not give any results.But this had worked fine in all our testing environment.We analysed the table which it uses and still no result.Finally we changed prepared statement to statement and the result page came within seconds.
    The second instance is the main issue.Again a query is getting hanged when we try to process it through the web page.We again tested it by converting from prepared statement to statement and its coming within seconds.
    Can someone give me some input.Is there any databse parameter that is controlling this prepared statement or statement.

  • JVM hangs during GC

    We have Oracle R12 EBS environment. Java version is 1.6.0_12. Here are the JVM settings:
    -verbose:gc -Xmx2048M -Xms1024M -XX:MaxPermSize=512M -XX:NewRatio=2 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:+UseParallelGC
    -XX:ParallelGCThreads=2 -XX:+UseParallelOldGC
    Every once in a while, the JVM hangs on GC. Here is what I see in the log files:
    140027.000: [GC [PSYoungGen: 344098K->179959K(377728K)] 1718826K->1554687K(1778560K), 1.4277687 secs] [Times: user=2.74 sys=0.05, real=1.43 secs]
    140174.263: [GC-- [PSYoungGen: 339703K->339703K(377728K)] 1714431K->1740534K(1778560K), 2.6646469 secs] [Times: user=4.04 sys=0.09, real=2.67 secs]
    140176.931: [Full GC[Unloading class sun.reflect.GeneratedMethodAccessor617]
    [Unloading class sun.reflect.GeneratedMethodAccessor723]
    [Unloading class sun.reflect.GeneratedMethodAccessor713]
    [Unloading class sun.reflect.GeneratedMethodAccessor656]
    [Unloading class sun.reflect.GeneratedMethodAccessor726]
    [Unloading class sun.reflect.GeneratedMethodAccessor678]
    [PSYoungGen: 339703K->0K(377728K)] [ParOldGen: 1400831K->1328904K(1400832K)] 1740534K->1328904K(1778560K) [PSPermGen: 110815K->110703K(126976K)], 40.2682554 secs] [Times: user=59.32 sys=4.09, real=40.27 secs]
    140300.466: [Full GC [PSYoungGen: 159704K->0K(377728K)] [ParOldGen: 1328904K->1340187K(1400832K)] 1488608K->1340187K(1778560K) [PSPermGen: 110717K->110704K(122880K)], 29.0605492 secs] [Times: user=55.43 sys=0.02, real=29.06 secs]
    140375.388: [Full GC[Unloading class sun.reflect.GeneratedMethodAccessor657]
    [Unloading class sun.reflect.GeneratedMethodAccessor616]
    [Unloading class sun.reflect.GeneratedMethodAccessor655]
    [Unloading class sun.reflect.GeneratedMethodAccessor646]
    [PSYoungGen: 159744K->0K(377728K)] [ParOldGen: 1340187K->1354943K(1400832K)] 1499931K->1354943K(1778560K) [PSPermGen: 110719K->110702K(122880K)], 42.8744143 secs] [Times: user=58.72 sys=5.64, real=42.88 secs]
    140492.434: [Full GC [PSYoungGen: 159744K->0K(377728K)] [ParOldGen: 1354943K->1366383K(1400832K)] 1514687K->1366383K(1778560K) [PSPermGen: 110717K->110715K(122880K)], 35.7602471 secs] [Times: user=56.60 sys=3.57, real=35.76 secs]
    140673.441: [Full GC [PSYoungGen: 159744K->0K(377728K)] [ParOldGen: 1366383K->1371097K(1400832K)] 1526127K->1371097K(1778560K) [PSPermGen: 110722K->110718K(118784K)], 45.9039823 secs] [Times: user=58.66 sys=7.48, real=45.91 secs]
    140866.259: [Full GC[Unloading class sun.reflect.GeneratedMethodAccessor728]
    [Unloading class sun.reflect.GeneratedMethodAccessor729]
    [PSYoungGen: 159744K->0K(377728K)] [ParOldGen: 1371097K->1374068K(1400832K)] 1530841K->1374068K(1778560K) [PSPermGen: 110726K->110715K(118784K)], 36.2178036 secs] [Times: user=57.60 sys=3.45, real=36.22 secs]
    141028.461: [Full GC[Unloading class sun.reflect.GeneratedMethodAccessor725]
    [PSYoungGen: 159744K->0K(377728K)] [ParOldGen: 1374068K->1375995K(1400832K)] 1533812K->1375995K(1778560K) [PSPermGen: 110778K->110763K(118784K)], 35.8321443 secs] [Times: user=57.13 sys=3.35, real=35.83 secs]
    141179.111: [Full GC [PSYoungGen: 159744K->0K(377728K)] [ParOldGen: 1375995K->1391995K(1400832K)] 1535739K->1391995K(1778560K) [PSPermGen: 110781K->110761K(118784K)], 29.0734943 secs] [Times: user=55.06 sys=0.15, real=29.07 secs]
    141265.050: [Full GC [PSYoungGen: 159744K->26651K(377728K)] [ParOldGen: 1391995K->1384959K(1400832K)] 1551739K->1411610K(1778560K) [PSPermGen: 110800K->110786K(114688K)], 29.6193957 secs] [Times: user=56.49 sys=0.09, real=29.62 secs]
    141353.219: [Full GC [PSYoungGen: 159744K->42196K(377728K)] [ParOldGen: 1384959K->1378453K(1400832K)] 1544703K->1420649K(1778560K) [PSPermGen: 110806K->110787K(114688K)], 34.1896799 secs] [Times: user=56.88 sys=2.60, real=34.19 secs]
    141420.449: [Full GC [PSYoungGen: 159744K->49383K(377728K)] [ParOldGen: 1378453K->1376257K(1400832K)] 1538197K->1425640K(1778560K) [PSPermGen: 110804K->110803K(114688K)], 33.0934696 secs] [Times: user=55.84 sys=2.30, real=33.09 secs]
    141520.778: [Full GC [PSYoungGen: 159744K->55149K(377728K)] [ParOldGen: 1376257K->1373310K(1400832K)] 1536001K->1428459K(1778560K) [PSPermGen: 110845K->110841K(114688K)], 33.4655886 secs] [Times: user=56.11 sys=2.33, real=33.47 secs]
    141622.391: [Full GC[Unloading class sun.reflect.GeneratedMethodAccessor741]
    [Unloading class sun.reflect.GeneratedMethodAccessor732]
    [Unloading class sun.reflect.GeneratedMethodAccessor742]
    [Unloading class sun.reflect.GeneratedMethodAccessor737]
    [Unloading class sun.reflect.GeneratedMethodAccessor739]
    [Unloading class sun.reflect.GeneratedMethodAccessor738]
    [Unloading class sun.reflect.GeneratedMethodAccessor740]
    [PSYoungGen: 159744K->57392K(377728K)] [ParOldGen: 1373310K->1372399K(1400832K)] 1533054K->1429791K(1778560K) [PSPermGen: 110873K->110854K(114688K)], 33.5686513 secs] [Times: user=55.96 sys=2.42, real=33.57 secs]
    141777.791: [Full GC [PSYoungGen: 159744K->56032K(377728K)] [ParOldGen: 1372399K->1372019K(1400832K)] 1532143K->1428051K(1778560K) [PSPermGen: 110861K->110856K(114688K)], 26.3923917 secs] [Times: user=49.38 sys=0.28, real=26.39 secs]
    This continues to happen until we bounce the process.
    This is turning out to be a big issue. Any help or pointers will be appreciated.
    Thanks in Advance.

    We implemented the latest JVM when we upgraded last time. This being a production environment, it is hard to keep upgrading java all the time.
    I do not know exactly how to interpret GC output. I do not understand why it didn't use the full memory allocated to it via Xmx (2048 MB). In the GC output it seems it is only using 1778560K.

  • Classic JVM hangs when running Tomcat as Windows Service

    Hi!
    I am running a Tomcat 3.2.4 application, written with Java 1.3.1_01.
    To run it as a Windows Service (W2000), I am using a slightly altered version of JavaService, which works fine so far: I can use both the "hotspot" and the "server" JVM's (by selecting the jvm.dll from the respective subfolder of the JDK/jre/bin folder).
    However, when I try to run the same application with the "classic" JVM, the service starts, inside of it Tomcat starts, the first output appears (to the stdout logfile) and after some time Tomcat simply hangs - it doesn't respond to anything anymore, 0% CPU, no output to logfiles anymore, doesn't even respond to normal Tomcat shutdown (e.g. when stopping the service, Windows waits the standard timeout then just kills it).
    Using the classic JVM in a console (e.g. not through JavaService and the classic/jvm.dll) works fine! No problems!
    Anyone here who can offer any help on this?
    Any hints why Tomcat may behave correctly in 5 out of six possible configurations (hotspot-server/client as service or console or classic as console) but hanging with 1 configuration (classic as service)?
    Also, on my W2000 box where this happens, the moment Tomcat hangs, I hear a Windows warning sound being played (the standard warning gong), like it happens when an info dialog pops up - only there is no dialog or whatever and the same moment Tomcat's CPU usage drops to 0% (although the app is still in startup and should do some more work for a few seconds).
    This also doesn't always happen at the same moment during startup, but each time at a different moment, e.g. I can not pin it down to something that is done during startup, it just happens a short while (sometimes earlier, sometimes later) after startup...
    Of course, I could simply say "forget classic, it's being phased out anyway", only: The SAME thing happens with IBM's Java 1.3 VM too (except for the gong sound, which seems to be Sun-JVM specific ;-)! And I would very much like my app to be able to run on IBM's VM (usually I'm using Sun's VMs everywhere, but we have a few stray W2000 boxes with SP2 where Sun's 1.3.1_0x VMs crash with our application [not hang like described above, but really crash, even when run as a console]) and on those boxes the IBM JVM in a console works fine - now I only have to get it working as a service too (and while researching why it hangs I saw that Sun's classic JVM hangs too, so I figured, I first find out why that happens, with the hope that the fix is applicable to IBM's JVM too...).
    Thanks already,
    Johannes

    re setting classpath when using JavaService
    for Win2k, Tomcat 3.3.1a, JDK1.2
    below is my script for creating/installing JavaService
    (based on Alexandria web site version). However, if i
    try to add .jar files to classpath (ie, CP environment
    variable), the service does not work. It only works
    when this single .jar file is there. How can .jar or
    .zip files be added to classpath for this service?
    I've not been working with Tomcar as a service, so can't help directly, but can offer some comments that might be of use (apologies if they aren't!).
    There are Tomcat scripts for V3.1, V3.2 and V4 with the JavaService code from Alexandria SC. Looks like you need one for V3.3 as well?
    In these others, there are fairly long lists of jar files in the classpath, so I would expect it to work correctly for the version you are using (unless there is a problem with the way that classloaders are involved, which is something that is known to get in the way for some app server-based programs).
    I would expect the classpath to work if changed from what you have listed to something like the following:
    set CP=%TOMCAT_HOME%\lib\tomcat.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME$\lib\other_library.jar
    Is that what you have tried to do, and found problems?
    Does this version of Tomcat bundle all of its resources into a single jar file (tomcat.jar), or is that a file you have created yourself?
    Is the problem found when loading and starting Tomcat itself, or from within your server-based application?
    Does it fail to load a 'standard' Tomcat library archive, or a jar file containing your own program code?
    set CP=%TOMCAT_HOME%\lib\tomcat.jar
    echo %CP%
    JavaService.exe -install "Jakarta-Tomcat"
    %java_home%\jre\bin\classic\jvm.dll
    -Djava.class.path=%CP% -Dtomcat.home=%TOMCAT_HOME%
    -Djava.security.policy=%TOMCAT_HOME%/conf/tomcat.policy
    -Xms128m -Xmx128m -start
    org.apache.tomcat.startup.Main -params start -stop
    org.apache.tomcat.startup.Main -params stop -out
    %TOMCAT_HOME%\logs\stdout.log -err
    %TOMCAT_HOME%\logs\stderr.log
    Regards,
    John Rutter

  • Forms 9 and JVM hangs when scrolling

    Hello!
    i have a big problem with forms 9.0.4 on windows.
    In my form i use multirecord-blocks or lovs with many records e.g. 500 or 1000.
    If the user scrolls down in any way (mouse or keyboard), forms and the jvm completly hangs.
    Even the Java-Console does not respond anymore.
    The only thing that is moving on the screen is the little slider in the forms status-bar.
    Try to close the browser-window does not function, the browser-task must be dropped in the taskmanager.
    It happens not always but very, very often.
    It seems, the Jinitiator is a little more tough with this than the Sun JVM.
    And it seems, that the slower the netword the most it's happen (but this is a supposition).
    i think it is a synchronization problem of local temporary files.
    i try to disable recordbuffering in formsweb.cfg but it does not help.
    Today i have built a form with one multirecord-block on sys.dba_tab_columns for testing.
    Query executed, scrolled down. About 15600 records. No problem.
    i've built a lov on the same table. List values, scrolldown. No problem.
    i start the form again, query, scroll down. Everything hangs.
    sometimes, but really very rare, the apllication comes back to live after 1 or 2 minutes.
    could somebody help me?

    There was a bug which sounds similar to this problem (3421989) - I'd strongly recommend upgrading to 10gR2 at least anyway - and for this issue, I'd try a test case in 10gR2 to see if its fixed (apply the latest patch as well). Do you have a visual attribute on the current record??
    Regards
    Grant

  • JVM hangs on startup on ubuntu lucid 10.04

    Hi,
    I'm hoping someone is able to assist with this issue.
    I've setup a micro AWS ubuntu machine, which has 630m of RAM and I've configured it to have 2048m of swap space.
    I have the following version of java installed:
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
    I've noticed that when I run java in "-server" mode with "-Xmx" greater than 512m the machine becomes unresponsive and hangs. For example, the following command has just killed the box:
    java -server -Xms512m -Xmx768m -version
    Any help would be appreciated.
    Thanks
    Ryan

    Thanks for the reply. I've played with quite a few of the switches but was more intrigued than anything else.
    I was expecting that I would receive an error from java if it couldn't allocate the memory. Perhaps its just an incompatability issue.
    Cheers

  • JVM 1.6.0_02-b05 hanges in satisfy_failed_allocation

    I am having a java application which usually gets to hanged state after running for quite a long time (5 to 6 months). The process has a large number of threads (approx 143), it does huge number of processings over the time period and all of a sudden goes to hanged state. It doesn't respond at all, it doesn't even respond to jstack, pmap or kill -3 commands. We were fortunate enough that we got the pstack and the core of the JVM.
    The JVM has the following details:
    Java(TM) SE Runtime Environment
    java.vm.version = 1.6.0_02-b05
    java.vm.name = Java HotSpot(TM) Server VM
    sun.java.launcher = SUN_STANDARD
    java.runtime.version = 1.6.0_02-b05
    os.arch = sparc
    After loading the core in dbx I could get the stack trace of the process, out of which one thread shows the following
    t@33 (l@33) stopped in ___lwp_cond_wait at 0xff2c5cd0
    0xff2c5cd0: ___lwp_cond_wait+0x0004: ta %icc,0x00000008
    current thread: t@33
    =>[1] ___lwp_cond_wait(0x36168, 0x36150, 0x0, 0x0, 0xfefd6000, 0x36128), at 0xff2c5cd0
    [2] __lwp_cond_wait(0x36168, 0x36150, 0x0, 0x1406f40, 0x0, 0x3ed5c), at 0xff2b0510
    [3] Monitor::wait(0x360f8, 0x51c800, 0x0, 0x3ec00, 0xfefd6000, 0x36128), at 0xfed951f0
    [4] WorkGang::run_task(0x360f8, 0xd48ff794, 0x1, 0x3, 0xb, 0x360c0), at 0xfeea0bc0
    [5] ParNewGeneration::collect(0x4c2c0, 0x35ff8, 0xff0182e8, 0xfeffa24d, 0xfefd6000, 0x51bc50), at 0xfedb691c
    [6] GenCollectedHeap::do_collection(0x35ff8, 0x36048, 0x0, 0x14, 0xff0182e8, 0x1), at 0xfeb6e394
    [7] GenCollectorPolicy::satisfy_failed_allocation(0x35fb0, 0x14, 0x35ff8, 0x36090, 0xfeafcd6c, 0xfeffa44c), at 0xfeafbfb4
    [8] VM_GenCollectForAllocation::doit(0xce97f234, 0x35ff8, 0x35c08, 0x8, 0xfefd6000, 0x36090), at 0xfee9ba28
    [9] VM_Operation::evaluate(0xce97f234, 0x2dc10, 0xfefd6000, 0xfe5, 0x7f2f7d, 0x2e000), at 0xfe98b148
    [10] VMThread::evaluate_operation(0x2dc10, 0xce97f234, 0x4de280, 0x7f2f7d, 0x4de288, 0xfefd6000), at 0xfee9cffc
    [11] VMThread::loop(0x51c800, 0x0, 0x3b52c, 0x3b400, 0x3b530, 0xff011530), at 0xfee9d57c
    [12] VMThread::run(0x51c800, 0x2d400, 0xff003540, 0xfefd6000, 0x2d540, 0x2d400), at 0xfea1ff2c
    [13] java_start(0x51c800, 0x1f, 0x2022, 0xfefd6000, 0xfef58f16, 0x0), at 0xfeda7be8
    What I suspect is that the JVM hanged because of encountering the problem satisfy_failed_allocation()
    Did any one got this problem by any chance? I would be very thankful if any one can help me out. Is there any JVM fix already available for it?
    Thanks in advance.

    Hello
    I use also jpcap to capture packets. Virtual machine(1.5.0_08) crashes too after few minutes capturing packets till processor use reaches up to 100% and then the crash happends. Did you find out any solution to that?
    I have tried to change windows receivebuffersize too but without help.
    I'm starting to think that there is a problem in the jpcap. Hope not.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7505a9, pid=2480, tid=1784
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode, sharing)
    # Problematic frame:
    # V [jvm.dll+0x905a9]
    #

  • Java memory (RSS) keeps increasing and then hangs JVM

    Hi ,
    I have a java process running on Solaris , I keep noticed that RSS keeps growing over the time and when it reached around 1.6g then JVM gets hang. It is 32 bit vm ..
    And when JVM hangs it dosent throw any OOM and CPU usage is also normal, but after getting hang i am not able to connect Java process with Jconsole/visualvm.. Even thread dump is also not allowed. This scenario re-occurs in 12-13 days,
    I looked into the heap memory, but heap memory dosent grows and is near about 100m for old gen.
    Apart from this when i took the heap dump, file size is just 28 mb, why the dump file size is soo less?
    Please tell me how get this solved.
    Thanks in advance

    If you are eating runtime errors somewhere then you wouldn't get a OOM.
    Native code can consume memory.
    If you use a lot of memory and use GC command line options (or maybe even without them) then the GC can end up blocking everything.

  • CC&B 2.3.1 startup showing "Unable to start remote host JVM" error

    When starting up a newly installed CC&B server (Linux Redhat 5.0, x86_64), using weblogic 10.3.5, and java 1.6.0_35, I am incurring this error. Log file snippet:
    specified via property spl.runtime.cobol.remote.jvmMaxLifetimeSecs, defaulting to 0
    - 2012-09-13 17:49:12,837 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (shared.environ.ApplicationProperties) Child JVM maximum COBOL requests is not spe
    cified via property spl.runtime.cobol.remote.jvmMaxRequests, defaulting to 0
    - 2012-09-13 17:49:12,838 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (cobol.host.CobolHostStartup) Using active JVM count of 2 for remote cobol executi
    on.
    - 2012-09-13 17:49:12,880 [pool-2-thread-1] ERROR (cobol.host.RemoteJVMFactoryImpl) Unable to start remote host JVM.
    java.io.IOException: Cannot run program "/srv/spl/ccb/CCBDEMO/bin/splcobjrun.sh": java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:431)
    at java.lang.Runtime.exec(Runtime.java:369)
    at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.addConnection(RemoteJVMFactoryImpl.java:87)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.addNecessaryConnections(RotatingCommandRunnerProvider.java:403)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.doHousekeeping(RotatingCommandRunnerProvider.java:330)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.run(RotatingCommandRunnerProvider.java:323)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
    Does anyone have any ideas?

    hi
    I face a similar issue as u faced . Please let me know the solution .
    Error in Log file : When trying to switch language.
    ZOHAIB - 169696-23-1 2012-01-09 15:23:22,624 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR (web.dataservlet.PageChange) Unexpected error.
    com.splwg.base.support.cobol.host.InputClosedException:
    The following stacked messages were reported as the LoggedException was rethrown:
    com.splwg.base.api.service.ServiceDispatcher$5.execute(ServiceDispatcher.java:248): Caught exception from SessionExecutable.execute()
    com.splwg.base.support.pagemaintenance.AbstractPageMaintenance.changeItem(AbstractPageMaintenance.java:134): Rollback: Change failed
    com.splwg.base.support.cobol.host.CommandRunnerHolder.invoke(CommandRunnerHolder.java:31): An exception occurred calling cobol program CIPZDATA
    com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.sendRequestGetResponse(OptimizedRemoteExecuterStub.java:83): An exception has occurred calling the remote JVM
    com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.sendRequestGetResponse(OptimizedRemoteExecuterStub.java:83): An exception occurred invoking remote command.

  • AttachCurrentThread hangs after a few calls in a Apache2 PHP5 Extension

    Hello everybody,
    I have created a small C Library/API that calls with JNI a simple Java class with a few methods to work with a underlying Java Framework (Carrot2). That JVM/JNI code functions some kind like a bridge between C and Java. In a single-threaded environment I experienced no problems, the complete runtime flow works well, I get no crashes or other strange behaviour.
    Now I have built an PHP5 extension that makes use of that JNI/C code, the extension is built as a class with constructor/destructor and has a few methods that call functions of my C library. The JNI/C side I have 2 data structs, one is for the JVM and its handle (JavaVM) as well as the Java class name and its path, the jclass object of that class, jvm options, classpath, etc. A second data struct is for the Java environment containing the JNIEnv pointer, the jobject of the Java class and a few more application related variables. The C code consists of JNI functions to work with the Java class to call its methods, a few JNI helper functions and some internal application code and data handling.
    At module initialization (Apache startup) I use the PHP_MINIT and PHP_MSHUTDOWN functions to load and unload (on apache stop) the JVM. The JVM gets created and destroyed at these points.
    I use the PHP constructor (inside the extension) to attach to the JVM, that is AttachCurrentThread with the class constructor, I create and object of the Java class and preload a few Java primitives that I need for my methods later on and after all this I can work with the Java class through JNI. On PHP5 class destruction (also in the extension), I detach from the JVM using 'DetachCurrentThread', free some resources and "delete" the JNIEnv pointer (set it to NULL).
    The JVM data struct (containing the JVM object) is a static global in the PHP5 module since I think there is no need for thread safety. This data is only modified/used in module startup/shutdown. The JNI worker struct (data struct with the JNIEnv pointer and jobject, etc is safely handled by the Zend object store throughout the complete class, so this should be thread-safe. So I do not suspect any problem here.
    Testing the PHP 5 extension with a small PHP5 script using that PHP class and a few methods in Apache debug mode (that is the -X switch for just one worker process) works like a charm, no problems, crashes or misbehaving situations, not up to now with my testing though. But running Apache in regular mode with multiple processes, I run in to problems. One major problem is, after a few reloads of the php script using the extension class (lets say 10-15 reloads; The request is handled by the same apache child process) the `AttachCurrentThread' call hangs and the child process remains in that state. Continuing reloading the script a new child process answers and also here, after 10-15 reloads of the script, I get the same problem. So I am not sure what is really happening here nor I do not know how to solve that issue. Is that a signal problem (I read, that there can be signal mask issues and the JVM hangs when a new thread tries to attach to it, for example, the Jakarta Tomcat JK JNI worker uses a signal hack because of this problem. But that does not help me.
    Or is there some problem with the multi-threading itself (since the JVM is multithreaded too)? Another problem is, besides that hanging thread attach, that the processing sometimes stops in middle of a java call (I have one method that insert data (calling a add method in a for loop) with JNI into a Java list on the Java class side, there it can stop in middle of the insertion process.
    So, for now, I have no idea how to continue. Like said, in a single threaded environment, as a process, the application runs fine without a flaw.
    Some details of my development machines: Ubuntu Lucic 10.04 LTS (also another Ubuntu 8 LTS), Apache2 MPM Worker (multithreaded model) and also on another machine the prefork version, Java JRE 6.0.22, PHP 5.2.16 (compiled from source).
    So any hints that can help me proceeding the development of this module for PHP would be great. Any help is appreciated. If there are questions or some unclear points, please let me know.
    Andreas

    jschell wrote:
    847069 wrote:
    I use the PHP constructor (inside the extension) to attach to the JVM, that is AttachCurrentThread with the class constructor, I create and object of the Java class and preload a few Java primitives that I need for my methods later on and after all this I can work with the Java class through JNI. On PHP5 class destruction (also in the extension), I detach from the JVM using 'DetachCurrentThread', free some resources and "delete" the JNIEnv pointer (set it to NULL).
    That is unclear.
    I presume that you have a PHP class which is making JNI calls.
    Presumably you have a single thread in the caller of the PHP class, specifically a single method, which creates the PHP class, interacts with it, and then destroys it.
    Yes, programming PHP5 extensions in C or C++ let you implement a class or just flat functions that can be used in the PHP scripting language. I implemented a class. So my constructor attaches to the (already at Apache/Module startup created JVM). After that, I can use the methods I have implemented to use the carrot2 framework. To communicate with the Carrot2 library, I have written a simple Java Class containing static functions for adding documents, executing clustering algorithms and receiving the search results, so all pretty straightforward I think. When the PHP script exists (request finished) then the class destructor is called (also implemented in my PHP5 extension) to detach from the JVM and make some cleanup. This is generally how things work.
    Most problems with JNI is caused by pointer problems or misusing the API (like not handling exceptions correctly.)
    Other than that the Sun VM has a command line option that reports useful information when using JNI.I can compile and run my JNI code with some test data from command line and I pass to the JVM some debugging parameters (such as -Xcheck:jni, -verbose:jni and Xint) for testing and debugging. I get no exceptions, errors or warnings. Everything is executed cleanly, I see some JNI/JVM debugging output (such as Dynamic-linking native method messages) along my own debugging output and the program finishes normally. Most JNI calls are wrapped in special macros and I check for exceptions, describe and clear them and act with these situtions (if any), I also added a method to the Java Class where I am able to receive the Java backrace for further investigation and abort execution.
    So for now I am out of ideas. This is why I don't understand these problems within the Apache/PHP process. Like stated above, Apache with one worker "-X" the complete code runs fine, even with consecutive calls all is fine, but then in regular multiprocess mode, I get the above problems like the AttachCurrentThread hangs or the execution of called methods of my Java class (inserting documents to a ArrayList or executing one of the clustering algorithms) hang and I have no other choice but to stop Apache.
    One more thing, I valgrinded my C code as far as possible. It is not possible to valgrind C code that creates and executes a JVM. Valgrind will stop and report "Error occurred during initialization of VM". No wonder though, I do not expect valgrind to execute the JVM beast in its context. The PHP5 version i compiled from source is thread-safe (at least I compiled it with the proper flags for that).
    So any other debugging hints or ideas are welcome.
    Edited by: 847069 on Mar 24, 2011 10:31 PM
    Edited by: 847069 on Mar 24, 2011 10:35 PM

  • Unable to determine reason for blocked JVM

    Hi,
    I have a case which is reproducible quite often, JVM hangs and takes all the CPU resources (>95%) and if I try to take a stack trace with jstack it fails.
    When I try with -F option, I get something like:
    Debugger attached successfully.
    Server compiler detected.
    JVM version is 20.6-b01
    Deadlock Detection:
    No deadlocks found.
    Thread 3736: (state = IN_VM)
    - java.lang.Thread.start0() @bci=0 (Interpreted frame)
    - java.lang.Thread.start() @bci=32, line=640 (Interpreted frame)
    - sun.misc.Signal.dispatch(int) @bci=70, line=199 (Interpreted frame)
    Thread 3735: (state = BLOCKED)
    - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
    - java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=118 (Interpreted frame)
    - java.lang.ref.ReferenceQueue.remove() @bci=2, line=134 (Interpreted frame)
    - java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=159 (Interpreted frame)
    Thread 3734: (state = BLOCKED)
    - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
    - java.lang.Object.wait() @bci=2, line=485 (Interpreted frame)
    - java.lang.ref.Reference$ReferenceHandler.run() @bci=46, line=116 (Interpreted frame)
    Thread 3732: (state = IN_VM)
    Is it possible to have threads which are not available in this report? Could you help with some ideas how to troubleshoot further?
    OS is RHEL 6 running on x86_64 architecture.
    Thanks
    Edited by: 923891 on Mar 28, 2012 12:49 AM

    Apparently something is working, but how to understand what? From this thread dump I really can't say.
    Problematic program finishes for some minutes in most of the cases.

  • 1.6.0_05 JDK hangs periodically on Solaris 9

    Hi,
    We currently got a customer, where application server had to be installed to Solaris 9 system and we've got a problem, that entire JVM hangs permanently sometimes, usually under a heavy load. This happens with 1.6.0 JDK (as our product requires 1.6 as minimum version). The same JDK and application never raised similar problem in version 10 of Solaris.
    So, are there any official or non-official recommendations on JDK 1.6 and Solaris 9 compatibility and/or recommendations on such pair ?
    Our application server is self-contained WAR file, running under Jetty or under external web container, if this does matter. We've played with several GC algorithms and options, but never get a stable result. Usually, hang occurs one-twice per week and typically under a heavy load (large number of users, connecting to the server and initiating server to fire various SQL read/update requets via Hibernate).
    Thanks,
    Dmitri

    Hi Leah,
    Have you tried double clicking?
    If this doesn't solve the issue, you might want to try using a different version of the browser and disable the pop up blocker on your browser.
    Please try this out and let me know.
    Regards
    Mazin

  • Activation framework: unloading activated JVM

    Hi all,
    I start fighting with activation framework, so i'm probably still not very clear about some things... The question is if there is a way to 'unload' the JVM after the work is done? I assumed that it would exit as any RMI server application does - ASA there are no remote and local references to the Remote object. But the client is closed long time ago, DGC should have run and still, the 'service' JVM hangs in memory. I wonder if some specific things have to be done to 'unload' the spawned JVM?
    THANKS!

    Have the activated server call Activatable.inactive() when idle, typically in an Unreferenced.unreferenced() callback.
    EJP

  • Java Virtual Machine hang

    I met a situation, the JVM would be hang.
    I did the thread dump and pstack to investigate the root cause.
    After my investigation, I found this issue cause by the thread hang.
    But I did not understand what the thread wait for.
    The following are the pstack information:
    ----------------- lwp# 102 / thread# 102 --------------------
    ff31fa98 lwp_mutex_lock (169400)
    fee94688 __1cNObjectMonitorGenter26MpnGThread__v_ (5400, 57d8, 5400, 5658, 5000, 5054) + 2d8
    fedbeb1c __1cLOptoRuntimebAcomplete_monitor_locking_C6FpnHoopDesc_pnJBasicLock_pnKJavaThread__v_ (a9c74800, 7247bdc0, 18cbfb0, 4, 2324560, 2) + 84
    ��.
    fed5f454 __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_ (7247c2b8, 7247c110, 7247c1b8, 18cbfb0, 18cbfb0, 0) + 27c
    fedc4604 __1cJJavaCallsMcall_special6FpnJJavaValue_nLKlassHandle_nMsymbolHandle_4pnRJavaCallArguments_pnGThread__v_ (7247c2b8, 7247c1ac, 7247c1a8, 7247c1a4, 7247c1b8, 18cbfb0) + d0
    fee1297c __1cJJavaCallsMcall_special6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_53pnGThread__v_ (7247c2b8, 7247c2b0, 7247c2ac, 7247c2a4, 7247c29c, 7247c298) + 84
    fed9f6e8 __1cQSystemDictionaryTload_instance_class6FnMsymbolHandle_nGHandle_pnGThread__nTinstanceKlassHandle__ (7247c3dc, 7247c39c, 7247c398, 18cbfb0, e1c00f88, 1) + 264
    fed3a2ec __1cQSystemDictionarybEresolve_instance_class_or_null6FnMsymbolHandle_nGHandle_2pnGThread__pnMklassOopDesc__ (7247c480, 7247c47c, 7247c478, 18cbfb0, 3692848, 2860) + 46c
    fed327f8 __1cQSystemDictionaryPresolve_or_null6FnMsymbolHandle_nGHandle_2pnGThread__pnMklassOopDesc__ (7247c50c, 7247c508, 7247c504, 18cbfb0, 4dc8cc, 28) + a4
    fed42f30 __1cQSystemDictionaryPresolve_or_fail6FnMsymbolHandle_nGHandle_2ipnGThread__pnMklassOopDesc__ (7247c57c, 7247c578, 7247c574, 1, 18cbfb0, e1c00f88) + 40
    fedb8238 __1cbCfind_class_from_class_loader6FpnHJNIEnv__nMsymbolHandle_CnGHandle_3CpnGThread__pnH_jclass__ (18cc048, 7247c5f8, 0, 7247c5f4, 7247c5f0, 1) + 44
    fedfe9d0 JVM_FindClassFromClass (95ed12a0, f8648808, f8648810, 18cc708, ffffff, 6c6500) + 390
    I suspect the root cause was by "fed327f8__1cQSystemDictionaryPresolve_or_null6FnMsymbolHandle_nGHandle_2pnGThread__pnMklassOopDesc__ (7247c50c, 7247c508, 7247c504, 18cbfb0, 4dc8cc, 28) + a4".
    Because I found all the thread were wait for this call release.
    And I also found some JVM bug relate this issue that I met.
    http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=659acf290e053a7eeb16ebe3ae4?bug_id=4886930
    http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=934476a1e4555dffffffffbc6adc6953f1a64?bug_id=4515367
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4963998
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4906990
    I could not improve this situation was cause by those above bug issue.
    Does anyone have any suggestion or comment for this issue?
    Thanks.

    Dear Roger:
    Thanks for your response. Our environment are the following:
    OS: Solaris 8
    JDK: 1.4.2_12
    Application Server:BEA WebLogic Server 8.1 Sp4
    And the bugs that I listed have not been fixed at JDK 1.4.2.
    Because the core business application was running on this environment.
    This issue heart the operation of the core business, I just want to verify why the JVM hang.
    And I trace all the pstack list, I found all the thread were wait for the method response:
    fed327f8_1cQSystemDictionaryPresolve_or_null6FnMsymbolHandle_nGHandle_2pnGThread__pnMklassOopDesc__ (7247c50c, 7247c508, 7247c504, 18cbfb0, 4dc8cc, 28) + a4
    But I didn't know what this method was been do?
    The url, http://bureport.sun.com, you posted, I couldn't open it on browser.
    Does it need the permission?
    B/R
    Chinsheng
    Edited by: Chinsheng on May 6, 2008 10:04 PM

  • Socket not used and just hangs program?

    Hi, I'm writing a server class and in it, I try to open a socketserver and a socket. However, I found that when the socket tries to open up, the program will just hang there. I think part of the problem is because eclipse is saying that my socket object is never used. Despite having this line: "socket = serverSocket.accept();" being executed. Can someone shed some light into what is causing this to not be used/hang?
    package Server;
    import java.io.IOException;
    import java.net.*;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    public class Server extends JFrame {
         private JTextArea console;
         private static ServerSocket serverSocket;
         private static Socket socket;
         public Server() {
              super("Server");
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              console = new JTextArea();
              //opens the serverSocket
              try {
                   serverSocket = new ServerSocket(5000);
                   System.out.println("serverSocket opened");
              } catch (IOException e) {
                   e.printStackTrace();
              //opens the socket
              try {
                   socket = serverSocket.accept();
                   System.out.println("socket opened and didn't hang");
              } catch (IOException e) {
                   e.printStackTrace();
              console.setText("Awaiting connection...");
              //finalize
              this.add(console);
              this.setSize(400, 300);
              this.setVisible(true);
         private static void closeAll()
              //closes the socket
    //          try {
    //               socket.close();
    //               System.out.println("socket closed");
    //          } catch (IOException e) {
    //               e.printStackTrace();
              //closes the serverSocket
              try {
                   serverSocket.close();
                   System.out.println("serverSocket closed");
              } catch (IOException e) {
                   e.printStackTrace();
         public static void main( String args[]) {
              Server serverWindow = new Server();
              closeAll();
              System.out.println("end");
    }

    Hi, I'm writing a server class and in it, I try to open a socketserver and a socket.Why the socket?
    However, I found that when the socket tries to open up, the program will just hang there.And it will do that until someone connects to your server.
    I think part of the problem is because eclipse is saying that my socket object is never used.Is it really? I find that rather hard to believe.
    The problem is that your socket is never used, by a client. So accept() blocks forever. What exactly did you expect?
    The norm is to accept sockets in a loop in a separate thread. And process each accepted socket in another thread, per accepted socket. And to never do blocking I/O in the AWT event-dispatching thread. And not to have servers with GUIs as a matter of fact. And certainly never to have a single static socket variable BTW: this is evidence of very unclear thinking> Even the server socket should be an instance variable.

Maybe you are looking for