JWS hangs after method remotely called - RMI

Does anyone else have problems with bugs that only appear when running under Java WebStart and doesn't throw any exception, just hangs and you end up with nothing but a grey screen on the application and the console?
I have a swing application and it communicate with another host . The communication appears to be working fine, since some methods are called on the application with no problems. The problem happens when one of those methods starts a thread, and inside the thread, a panel is shown. Running outside of the JWS, it runs ok, in JWS, it hangs before the panel is shown. Acctualy, it hangs after a object instantiation ( a new String("") ). If I remove the object instantiantion, it goes a little further, but eventually hangs.
I'm using version 1.4.2_03 . The application has 5 signed jars and the java.policy file has been changed to :
grant {
permission java.security.AllPermission "", "";
What could be causing this behavior inside the JWS? Why no exception is thrown and instead, I got a grey screen?
Thanks in advance.
Paulo Koldaev

Already did that. The console hangs as well, turning grey too. No exception is thrown. Maybe it hangs before flushing, but doesn't look like it...
I have executed the application in webstart in linux, and it worked fine. The bug only appears in windows.
Didn't test it long enough to be sure, but I think it really only happens in windows. Running outside the webstart, it runs in windows too without problems.
Is there a way to debug that kind of thing?
Is there a tool like webstart to keep the application up to date with a server, but running inside a normal VM ? The sandbox idea of webstart is good, but to some applications, it causes more problems than solutions, and even with the "security - all permissions" some things are still not quite the same as just the VM.
Thanks
Paulo Koldaev

Similar Messages

  • Iphone 4s(ios 7) hangs after i reject calls by pressing the on/off button while it is in the lock screen.I restart the phone every time when i reject calls..what can i do ?

    iphone 4s(ios 7) hangs after i reject calls by pressing the on/off button while it is in the lock screen.I restart the phone every time when i reject calls..what can i do ?

    I've same problem in iPhone 5c. I was using iPhone 4, problem appears after updating to ios7. I changed my phone to iPhone 5c, looks like it's a bug in ios7. But I think you might not turn on or off your internet connection frequently to reduce this problem. My friend has a same iPhone she never gets such problem like this cause she uses iPhone 5c with Tata Docomo (India) 2g with no internet connection. May be this would be the best solve that you should not turn on or of your internet connection so frequently...
    Do any one have any better idea?

  • 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

  • Hang after received a call- N97(very often)

    im really so sososososso frustrated with this piece of junk... wasted so much money and got this phone that cant even perform the primitive fucntion tat a phone should have...
    u received a call, so u take it out from ur pocket, the autorotate screen change form horizon to vertical or vice versa, u pick up the call, screen goes blank, u still can talk to people the other side, u hang up, then u restart  restart  restart  restart  restart  restart  restart  restart  restart  restart  restart  restart  restart  restart just to get this "mobile computer" boot up again...
    Nokia, should wrote in user guide: "users might need to restart N97 after received a call"
    this **bleep** im going to sell it..   one month old... i already updated the firmware.. ... i cant wait to another update anymore...
    evertime when i look at my frens samsung omnia... im so sad for buying this N97....

    You have Zoom on... double tap with three fingers to turn it off.   Go into Settings > General > Accessibility to disable it.
    See p. 243... http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

  • Iphone ios 8 hangs after or before call.

    I have been facing this problem since like 2 months and I bought this phone like 3 months before and this problem increased accuring after updating to IOS 8.
    Anybody please help!!

    I Am too facing the same problem... I am having iPhone 5s.. it was working fine with ios7 but after I upgraded to iOS 8.0.2 I m facing the issue of phone getting hanged when a receive a call ...

  • Xvnc hangs after exiting Remote Desktop session

    After closing a window of Remote Desktop session with XFCE Desktop run on latest ArchLinux, XRDP server exits, but Xvnc server started by that session keeps running, and within 5-10 min starts suddenly putting high load on CPU, while doing nothing useful.
    Why this happen, and how to auto close it when closing Remote Desktop window & session?

    While the hang reason is still unknown, I found that login out of XFCE from within open XRDP session window before closing the session will shutdown relevant processes on the server host, including Xvnc.

  • Xserve G5 hangs after attempting remote reboot

    I've had this problem for a while now, although it didn't exist when I first set up the Xserve. When I try to reboot the server, by logging in using apple remote desktop, and selecting "restart" from the apple menu, it appears to shut down, and then on restart, the Xserve's fans run full speed, stay that way, and the OS never starts up. It's a real problem especially if I'm off-site and I do, for example, a software update, and then reboot - because it means I have to drive in just to power it down and power it up again. This usually solves the problem - but sometimes not the first time. Sometimes I have to power down, power up, wait 5 min to find out it's still not started up, then power down again, then power up again, and then it usually boots fine.
    here is what the system log shows:
    ANY thoughts would be greatly appreciated. I tried calling Apple of course but they wanted $5,000 just to hear my question.
    Nov 9 22:02:16 bubba shutdown: reboot by admin:
    Nov 9 22:02:17 bubba SystemStarter[8119]: authentication service (8136) did not complete successfully
    Nov 9 22:02:17 bubba SystemStarter[8119]: IP Failover (8144) did not complete successfully
    Nov 9 22:02:18 bubba launchd: Server 0 in bootstrap 1103 uid 0: "/usr/sbin/serialnumberd"[211]: exited abnormally: Terminated
    Nov 9 22:02:21 bubba ARDAgent [8325]: ******ARDAgent Launched******
    Nov 9 22:02:23 bubba ARDAgent [8325]: ******ARDAgent Ready******
    Nov 9 22:02:32 bubba SystemStarter[8119]: The following StartupItems failed to properly start:
    Nov 9 22:02:32 bubba SystemStarter[8119]: /System/Library/StartupItems/AuthServer
    Nov 9 22:02:32 bubba SystemStarter[8119]: - execution of Startup script failed

    plg-
    The last line or two are your clues. There is something located in your /System/Library/StartupItems/AuthServer folder that is causing you to crash when it executes a script.
    Luck-
    -DaddyPaycheck

  • RMI Hang after long period of no use

    Occaisonally one of our lightly used RMI servers decides to not accept a new connection. This happens after a long period of no use. The last time it happened I captured a thread dump (THREAD DUMP#1) of the RMI server process.
    Just for comparison I then started another client and tried to connect again. See THREAD DUMP#2.
    Any suggestions where I should start looking in my code? I have checked the Java bugs database without success.
    Thanks.
    Tom
    *** THREAD DUMP #1
    *** THREAD DUMP #1
    *** THREAD DUMP #1
    Full thread dump Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode):
    "RMI TCP Connection(5)-156.34.214.173" daemon prio=1 tid=0x082e39b0 nid=0x4f03 waiting for monitor entry [4d247000..4d248854]
         at sun.rmi.server.LoaderHandler.getDefaultCodebaseURLs(Unknown Source)
         - waiting to lock <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "RMI TCP Connection(4)-156.34.214.173" daemon prio=1 tid=0x082e13e8 nid=0x4f03 waiting on condition [4d2c8000..4d2c9854]
         at sun.net.www.ParseUtil.decode(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown Source)
         at sun.rmi.server.LoaderHandler.addPermissionsForURLs(Unknown Source)
         at sun.rmi.server.LoaderHandler.access$300(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.server.LoaderHandler.lookupLoader(Unknown Source)
         - locked <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "DestroyJavaVM" prio=1 tid=0x0805b220 nid=0x4f03 waiting on condition [0..bfffc374]
    "GC Daemon" daemon prio=1 tid=0x082e74d0 nid=0x4f03 in Object.wait() [4d146000..4d146854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b87598> (a sun.misc.GC$LatencyLock)
         at sun.misc.GC$Daemon.run(Unknown Source)
         - locked <0x44b87598> (a sun.misc.GC$LatencyLock)
    "RMI Reaper" prio=1 tid=0x081f5a08 nid=0x4f03 in Object.wait() [4d0c5000..4d0c5854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.rmi.transport.ObjectTable$Reaper.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Thread-1" daemon prio=1 tid=0x081f2618 nid=0x4f03 in Object.wait() [4d044000..4d044854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86d58> (a java.util.TaskQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.util.TimerThread.mainLoop(Unknown Source)
         - locked <0x44b86d58> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Unknown Source)
    "RMI TCP Accept-10056" daemon prio=1 tid=0x081f6998 nid=0x4f03 runnable [4cfc3000..4cfc3854]
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         - locked <0x44b86ab8> (a java.net.PlainSocketImpl)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Signal Dispatcher" daemon prio=1 tid=0x080a5e90 nid=0x4f03 waiting on condition [0..0]
    "Finalizer" daemon prio=1 tid=0x08091448 nid=0x4f03 in Object.wait() [41fd8000..41fd8854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=1 tid=0x080908a0 nid=0x4f03 in Object.wait() [41f57000..41f57854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a70> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Unknown Source)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x44b77a70> (a java.lang.ref.Reference$Lock)
    "VM Thread" prio=1 tid=0x0808f660 nid=0x4f03 runnable
    "VM Periodic Task Thread" prio=1 tid=0x080a86d0 nid=0x4f03 waiting on condition
    "Suspend Checker Thread" prio=1 tid=0x080a5478 nid=0x4f03 runnable
    *** THREAD DUMP #2
    *** THREAD DUMP #2
    *** THREAD DUMP #2
    Full thread dump Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode):
    "RMI TCP Connection(6)-156.34.214.173" daemon prio=1 tid=0x082e2890 nid=0x4f03 waiting on condition [4d1c6000..4d1c7854]
         at java.io.ObjectStreamClass.matchFields(Unknown Source)
         at java.io.ObjectStreamClass.getReflector(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeObject(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "RMI TCP Connection(5)-156.34.214.173" daemon prio=1 tid=0x082e39b0 nid=0x4f03 waiting for monitor entry [4d247000..4d248854]
         at sun.rmi.server.LoaderHandler.getDefaultCodebaseURLs(Unknown Source)
         - waiting to lock <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "RMI TCP Connection(4)-156.34.214.173" daemon prio=1 tid=0x082e13e8 nid=0x4f03 waiting on condition [4d2c8000..4d2c9854]
         at sun.net.www.ParseUtil.decode(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown Source)
         at sun.rmi.server.LoaderHandler.addPermissionsForURLs(Unknown Source)
         at sun.rmi.server.LoaderHandler.access$300(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.server.LoaderHandler.lookupLoader(Unknown Source)
         - locked <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "DestroyJavaVM" prio=1 tid=0x0805b220 nid=0x4f03 waiting on condition [0..bfffc374]
    "GC Daemon" daemon prio=1 tid=0x082e74d0 nid=0x4f03 in Object.wait() [4d146000..4d146854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b87598> (a sun.misc.GC$LatencyLock)
         at sun.misc.GC$Daemon.run(Unknown Source)
         - locked <0x44b87598> (a sun.misc.GC$LatencyLock)
    "RMI Reaper" prio=1 tid=0x081f5a08 nid=0x4f03 in Object.wait() [4d0c5000..4d0c5854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.rmi.transport.ObjectTable$Reaper.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Thread-1" daemon prio=1 tid=0x081f2618 nid=0x4f03 in Object.wait() [4d044000..4d044854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86d58> (a java.util.TaskQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.util.TimerThread.mainLoop(Unknown Source)
         - locked <0x44b86d58> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Unknown Source)
    "RMI TCP Accept-10056" daemon prio=1 tid=0x081f6998 nid=0x4f03 runnable [4cfc3000..4cfc3854]
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         - locked <0x44b86ab8> (a java.net.PlainSocketImpl)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Signal Dispatcher" daemon prio=1 tid=0x080a5e90 nid=0x4f03 waiting on condition [0..0]
    "Finalizer" daemon prio=1 tid=0x08091448 nid=0x4f03 in Object.wait() [41fd8000..41fd8854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=1 tid=0x080908a0 nid=0x4f03 in Object.wait() [41f57000..41f57854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a70> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Unknown Source)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x44b77a70> (a java.lang.ref.Reference$Lock)
    "VM Thread" prio=1 tid=0x0808f660 nid=0x4f03 runnable
    "VM Periodic Task Thread" prio=1 tid=0x080a86d0 nid=0x4f03 waiting on condition
    "Suspend Checker Thread" prio=1 tid=0x080a5478 nid=0x4f03 runnable

    According to this thread dump the remote object is
    quite prepared to accept a new connection (waiting in
    PlainSocketImpl.accept()) but some other remote method
    implementation is blocked reading the RMI header.
    Perhaps this is the one that is stalling? You may need
    to check for too much synchronization, i.e. possible
    deadlocks, in your remote method implementations.I do have a limited amount of synchronization in my server side code (too much code to post here) but if my code is deadlocking then won't I see my method(s) in the stack trace? None of my remote methods are synchronized, just some of the server side methods they call. Also, if my code is deadlocking won't this tend to happen during busy periods rather than slack periods?
    I have reviewed my code for synchronization deadlock potential but the logon code only ever locks one object.
    Could you tell me the difference between "waiting for condition" and "waiting for monitor"? I assume the "waiting for monitor" means the thread waiting get the lock on an object.
    Thanks for your suggestions.
    By the way, I forgot to mention in my original post that I'm running Java 1.4.2_05.

  • Client (Solaris) remote call hangs 225sec if Server (Window7) is down.

    We are noticing the RMI Client remote call from Solaris machine hang of exactly 225 seconds if RMI Server on Windows7 machine is shutdown. RMI Server is shutdown for valid reasons. The expectation is, Client would throw a RemoteException immediately for futher processing. The Client hang for 225 minutes is causing performance issues. This has been consistently reproduced across multiple machines with Client on Solaris and Server on Windows 7. There are no 225 sec wait issues if server is on Windows XP or Solaris.
    Usecase (java version "1.6.0_14")
    1. Start RMI Server on Windows 7 machine
    2. Start RMI Client on Solaris machine
    3. Wait till client connects to the server and makes some remote call every 1sec.
    4. Shutdown RMI Server.
    5. Client waits 225 seconds before a time out error is thrown.
    Has anyone seen this problem? Any solutions to get around this?
    Code used to test this
    RmiTestServer.java
    public class RmiTestServer
    public static void main(String args[])
    try
    java.rmi.registry.Registry zRegistry = null;
    try
    zRegistry = java.rmi.registry.LocateRegistry.createRegistry ( 1099 );
    catch ( Exception zEx )
    zRegistry = java.rmi.registry.LocateRegistry.getRegistry ( 1099 );
    if ( zRegistry != null )
    System.out.println( "Binding RmiTestService..." );
    RmiTest c = new RmiTestImpl();
    zRegistry.rebind ( "RmiTestService", c );
    System.out.println( "Done Binding RmiTestService..." );
    else
    System.out.println( "Registry is null." );
    catch (Exception e)
    e.printStackTrace();
    RmiTest.java
    public interface RmiTest extends java.rmi.Remote
    public void callHello() throws java.rmi.RemoteException;
    RmiTestImpl.java
    public class RmiTestImpl extends java.rmi.server.UnicastRemoteObject
    implements RmiTest
    public RmiTestImpl() throws java.rmi.RemoteException
    super();
    public void callHello() throws java.rmi.RemoteException
    System.out.println ("Hello World!!!");
    RmiTestClient
    public class RmiTestClient
    public static void main(String[] args)
    System.out.println ("Connecting to: " + args[0] + " Port 1099" );
    long lTime = System.currentTimeMillis();
    try
    RmiTest c = null;
    java.rmi.registry.Registry registry = java.rmi.registry.LocateRegistry.getRegistry ( args[0], 1099 );
    if ( registry!=null )
    System.out.println ("Start lookup... " );
    c = (RmiTest)registry.lookup ( "RmiTestService" );
    System.out.println( "Lookup Done - " + (System.currentTimeMillis() - lTime)/1000 + "sec\n" );
    while( true )
    lTime = System.currentTimeMillis();
    System.out.println( "Calling Server..." );
    c.callHello();
    System.out.println( "Done Calling Server - " + (System.currentTimeMillis() - lTime)/1000 + "sec\n" );
    lTime = System.currentTimeMillis();
    Thread.sleep(1000);
    catch (Exception e)
    System.out.println( "Time for Exception - " + (System.currentTimeMillis() - lTime)/1000 + "sec\n" );
    e.printStackTrace();
    Output
    Calling Server...
    Jun 9, 2011 10:59:19 PM sun.rmi.transport.tcp.TCPChannel newConnection
    FINE: main: reuse connection
    Jun 9, 2011 10:59:19 PM sun.rmi.transport.tcp.TCPChannel free
    FINE: main: reuse connection
    Done Calling Server - 0sec
    Calling Server...
    Jun 9, 2011 10:59:20 PM sun.rmi.transport.tcp.TCPChannel newConnection
    FINE: main: reuse connection
    Jun 9, 2011 10:59:20 PM sun.rmi.transport.tcp.TCPChannel free
    FINE: main: reuse connection
    Done Calling Server - 0sec
    Calling Server...
    Jun 9, 2011 10:59:21 PM sun.rmi.transport.tcp.TCPConnection isDead --------------->RMI Server Shutdown
    FINER: main: exception:
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    at sun.rmi.transport.tcp.TCPConnection.isDead(TCPConnection.java:174)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:173)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
    at RmiTestImpl_Stub.callHello(Unknown Source)
    at RmiTestClient.main(RmiTestClient.java:23)
    Jun 9, 2011 10:59:21 PM sun.rmi.transport.tcp.TCPConnection isDead
    FINE: main: server ping failed
    Jun 9, 2011 10:59:21 PM sun.rmi.transport.tcp.TCPChannel free
    FINE: main: close connection
    Jun 9, 2011 10:59:21 PM sun.rmi.transport.tcp.TCPConnection close
    FINE: main: close connection
    Jun 9, 2011 10:59:21 PM sun.rmi.transport.tcp.TCPChannel createConnection
    FINE: main: create connection
    Jun 9, 2011 10:59:21 PM sun.rmi.transport.tcp.TCPEndpoint newSocket
    FINER: main: opening socket to [<IP Address>:65427]
    Jun 9, 2011 10:59:21 PM sun.rmi.transport.proxy.RMIMasterSocketFactory createSocket
    FINE: main: host: <IP Address>, port: 65427
    Jun 9, 2011 10:59:24 PM sun.rmi.transport.tcp.TCPChannel$1 run
    FINER: RMI Scheduler(0): wake up
    Jun 9, 2011 10:59:24 PM sun.rmi.transport.tcp.TCPChannel$1 run
    FINER: RMI Scheduler(0): wake up
    Jun 9, 2011 10:59:39 PM sun.rmi.transport.tcp.TCPChannel$1 run
    FINER: RMI Scheduler(0): wake up
    Jun 9, 2011 10:59:39 PM sun.rmi.transport.tcp.TCPChannel freeCachedConnections
    FINER: RMI Scheduler(0): connection timeout expired
    Jun 9, 2011 10:59:39 PM sun.rmi.transport.tcp.TCPConnection close
    FINE: RMI Scheduler(0): close connection
    Time for Exception - 224sec
    java.rmi.ConnectException: Connection refused to host: <IP Address>; nested exception is:
    java.net.ConnectException: Connection timed out
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
    at RmiTestImpl_Stub.callHello(Unknown Source)
    at RmiTestClient.main(RmiTestClient.java:23)
    Caused by: java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    ... 5 more

    Could you check to see if the remote database is up and running before calling the remote database procedure?

  • My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    Thanks for your response and good luck wishes, I suspect I will need them!
    In principle, I agree re: the manufacturer's warranty. However, I am pretty upset that this is now my second iPod to develop a critical fault within weeks of the warranty expiring, and frankly, it is not unreasonable to expect a state-of-the-art $500 electronic device to last well beyond one year of life.
    I agree talking to Apple is not likely to do me any good (the clue is in how impossible they make it to talk to them in the first place) - but that is not necessarily OK. I expect I will have to pay money to get the battery replaced - again, not OK (full stop - but especially given the cost of the device and the money I have spent with Apple). Yes, the batteries have a limited lifespan, but it should last longer than this (and surely, I should notice a gradual decline in its functionality, not an instant stop).
    I will try Deggie's suggestion (see my reply post), but probably won't hold my breath (think I have already done this). I probably will have to get the new battery - and probably under my own steam. It is a principle at stake and I feel I should be able to let Apple know how I'm feeling - and am frustrated that they make this virtually impossible. It sends the very clear message that they are not interested in listening to their customers.

  • Errors in calling rmi methods

    iPlanet6.1 is throwing following exceptions during rmi calls. Seems to be it is having problem in establishing t3 connections to the weblogic.
    java.rmi.ConnectException: Connection to: 'wlserver1' over: 't3' g
    ot an error or timed out
    at weblogic.rjvm.ConnectionManager.ensureConnectionEstablished(Connectio
    nManager.java:1272)
    at weblogic.rjvm.ConnectionManager.getOutputStream(ConnectionManager.jav
    a:1316)
    at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:348)
    at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRe
    f.java:97)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:125)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    =======
    java.rmi.ConnectException: Attempt to sendMsg using a closed connection
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundR
    equest.java:85)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:136)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    We have to restart iplanet whenever we get this problem and then it works fine for 40min - 1hr and it repeats the problem again. But we could make t3 connections and call rmi methods on the appserver by a test program running out of webserver without any problem at the same time when iplanet was having problems.
    Did anybody face this problem before?
    Thanks.
    Ashok

    es5f2000 wrote:
    jschell wrote:
    That works?I dunno. The below definitely works, but like I said, I've only
    ever done it with one output parameter (and that has always
    been a ResultSet).
    String callableQuery = "{?= call my_package.my_call(?, ?)}"
    Yes I have done that and at least in terms of my code it wasn't just a result set.
    But not with two.

  • My iphone 5 hangs after calls duration 1:20

    Ingles
    my iphone 5 hangs after calls duration 1:20
    iphone hangs one of my calls and other calls do not get an operator in particuar.
    please help
    Español
    mi iphone 5 cuelga las llamadas despues de 1:20 de duración
    uno de mis iphone cuelga las llamadas y otro no recibe llamadas de de una operadora en particuar.
    ayuda por favor

    does this happen on all calls

  • Iphone 4 hangs after using yahoo messenger's video call.

    my problem is right after using video call in YM my phone hang and it will turn off then turn on by itself. But this time after using YM video call  the screen turned black slowly until u can only see vertical lines on the mid part. so i rebooted the phone. it turned on but still there is vertical lines visible if u look at it closely. those are the same lines appeared when it frozen a while ago. how can i fix this? please help me. is it because of the yahoo messenger application or it is just my phone?.please help... please......thank u guys..

    I think I found a work around to this problem. In Setting > Carrier, don't choose Automatic. Explicitly select the carrier. Once I did that, I haven't encountered this problem (ok, YET).
    If anyone has the same problem, try this and see if it helps. :-)

  • RPC Remote calls fail after loading sibling.

    Hi All,
    Main loads an app compiled in 3.2. Cannot recompile legacy SWF with version of Main.
    Main and Client are on the same domain. Debugging on localhost.
    Sibling has RemoteObject code but never makes RemoteObject calls.
    Main apps remote calls start failing after sibling is loaded.
    TypeError: Error #1034: Type Coercion failed: cannot convert
    mx.messaging.messages::AcknowledgeMessage@c7ab831 to mx.messaging.messages.IMessage.
    <mx:SWFLoader id="swfLoader"
            loadForCompatibility="true"
            trustContent="false"
            width="100%" height="100%"
            source="ClientGuiApp3-2.swf?fredOn=false"
            complete="swfComplete();"
            creationComplete="initNestedAppProps();"/>
    What I have done to try to fix it.
    trustContent = "False" to put it in its own security domain.
    I thought loadForCompatability good enough to make them use their own class definitions?
    Document I found says RPC special case for multiversion Sandbox or Bootstrap.
    http://help.adobe.com/en_US/Flex/4.0/html/WS2db454920e96a9e51e63e3d11c0bf69084-7f0c.html
    loadForCompatibiity means sandboxing or new security domain for the sibling?
    Thanks in advance,
    Kevin

    1. Remove the WinrmIIS Extension from "Programs and Features"
    2. Reboot the server
    3. Execute the cmd "winrm quickconfig". This adds an exception for the remote management in the Windows firewall.
    4. Install "Winrm IIS extension
    5. Try open Exchange Management Console
    Let me know what happens :)
    Thanks for your guide;
     "WinRM IIS Extension" is not installed.and firewall is off.
    When I open up the Exchange Management Console ,after these message : 
    <Initializing ...
    Setting up Remote Powershell session to: ServerName.MyDomain.net ...>
     I'm seeing these errors:
    <The following error occurred when setting up Remote Powershell session to 'ServerName.MyDomain.net':
    Closing remote server shell instance failed with the following error message : The WinRM client cannot complete the operation within the time specified. Check if the machine name is valid and is reachable over the network and firewall exception for Windows Remote Management service is enabled. For more information, see the about Remote Troubleshooting Help topic. >
    also When I open up the Exchange Management Shell,After several hours the below message remain:
    <VERBOSE:Connecting to  ServerName.MyDomain.net >

  • Java method to call LabView on remote computer

    Greetings,
    I am very new to LabView and have a Java programming background.
    I have to put together a way to submit a String to a LabView vi on a remote computer.  The Labview should then return another String to my Java program.  I just need an example of calling this on the remote computer.  I've seen many looping and circular references to doing it via JNI, but not much that shows a concrete example.
    Does anyone have a working example of opening the socket (or datagramsocket or whatever), writing to the socket, receiving the response and then closing the socket?
    Thank you.

    JNI won't really help for remote invocation. With JNI you would normally create a DLL for the local computer that interfaces to whatever you want to call.
    But considering your mentoining of remote calls, I think it would be easier to implement on the LabVIEW side some TCP/IP server and just call that from your Java program using socket calls.
    LabVIEW comes with a few networking examples. Check in the example finder for them. Doing the Java part shouldn't really be to difficult either. The fact that both LabVIEW and Java use Network Byte order by default for their flattened data also comes in handy.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Trying to find the number of rows in a ResultSet

    I am trying to find the number of rows in a ResultSet, using the following code: rs = st.executeQuery(query); rs.last(); // to move the cursor to the last row System.out.println(rs.getRow()); However, I am getting this error: java.sql.SQLException: [

  • With multiple contact lists, list title not correct

    I have an original iPhone w/ 2.0 software, hooked up to my company's Exchange server. I created multiple contact folders on Exchange to categorize my contacts: Clients, Company, Friends, Family, etc. The multiple folders show up just fine as Groups o

  • BT Sport Player simply doesn't work.

    Hi! I have BT Sport on my iPhone as well, which works fine. Problem is it doesn't load on my laptop. It just loads and loads and loads and then nothing, and then when I go to leave the page it tells me that Silverlight is either busy or stopped respo

  • Best way to join 2 columns from table A to same column in Table B?

    Hi, This is a simplified example of the query I'm trying to write. I have two tables - PIPELINE (which includes columns CREDIT_RECEIVER and CREATOR) and EMPLOYEES (which includes columns EMAIL and LOB). I want to write a query which joins PIPELINE.CR

  • Making the icon shape match the image

    So I have an image I want to use as an icon for a folder.  I basically want the icon to appear just as the shape of the image, with the background coming through the surrounding, i.e. the W in the Word icon. Currently when I paste the image to the fo