JRockit - Sun RMI Issue?

Hi All,
I am getting the following error when running a Junit test where I call a method in an EJB in WLS 8.1 SP2 running on Linux using JRockit 1.4.1-05. JUnit is using Sun jvm 1.4.2_05.
Perhaps I should use an older version of the Sun jvm?
Thanks,
-Tony
[junit] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Environ
ment not found on thread ]
[junit] at weblogic.jndi.internal.NamingNodeReplicaHandler.<init>(Naming
NodeReplicaHandler.java:150)
[junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:27)
[junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:27
4)
[junit] at java.lang.Class.newInstance0(Class.java:308)
[junit] at java.lang.Class.newInstance(Class.java:261)
[junit] at weblogic.common.internal.ChunkedObjectInputStream.readObject(
ChunkedObjectInputStream.java:98)
[junit] at weblogic.common.internal.ChunkedObjectInputStream.readObjectW
L(ChunkedObjectInputStream.java:167)
[junit] at weblogic.common.internal.ChunkedObjectInputStream$NestedObjec
tInputStream.readObjectWL(ChunkedObjectInputStream.java:341)
[junit] at weblogic.rmi.cluster.ReplicaAwareRemoteRef.readExternal(Repli
caAwareRemoteRef.java:384)
[junit] at java.io.ObjectInputStream.readExternalData(ObjectInputStream.
java:1686)
[junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
m.java:1644)

What happens if you run with -Xstrictfp ?
Regards,
/Staffan

Similar Messages

  • Error in trying dynamic class loading in sun rmi tutorila

    Hi,
    I am trying the sun rmi tutorial http://java.sun.com/docs/books/tutorial/rmi/. I am not able to download the stub class from the codebase to client. The server is running in a linux box while the client in a w2k box.
    Linux box (server)
    ==================
    web server setting
    Alias /rmi_codebase /home/wing/try/java/rmi
    rmiregistry setting
    unset CLASSPATH
    rmiregistry
    rmi server
    classses
    /home/wing/try/java/rmi/client/ComputePi.class
    /home/wing/try/java/rmi/client/Pi.class
    /home/wing/try/java/rmi/compute/Compute.class
    /home/wing/try/java/rmi/compute/Task.class
    /home/wing/try/java/rmi/compute/ComputeEngine.class
    /home/wing/try/java/rmi/compute/ComputeEngine_Skel.class
    /home/wing/try/java/rmi/compute/ComputeEngine_Stub.class
    java.policy
    grant {
    permission java.security.AllPermission;
    startup with script as follows
    java -cp /home/wing/try/java/rmi -Djava.rmi.server.codebase=http://localhost/rmi_codebase/ -Djava.rmi.server.hostname=man82.air.com.hk -Djava.security.policy=/home/wing/try/java/rmi/java.policy
    engine.ComputeEngine
    (the server is started happyily)
    W2k box (client)
    ================
    class the same as server except removing the stub (ComputeEngine_Stub).
    java.policy
    grant {
    permission java.security.AllPermission;
    startup script
    java -Djava.rmi.server.codebase=http://man82/rmi_codebase/ -Djava.security.policy=java.policy clientComputePi man82 20
    The error encounter is
    ComputePi exception: error unmarshalling return; nested exception is:
    java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:83)
    at client.ComputePi.main(ComputePi.java:14)
    Caused by: java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    Is this problem related to codebase setting or security?
    BTW, I have tried to put the stub to the client as well, it works.
    Thanks in advance of any ideas or input.
    Wing

    Based on my previous post, I have performed some more testings of the tutorial code and find that the java.rmi.server.codebase could not be specified in the client side.
    Instead, the client follows the codebase set in the server, and thus, the localhost could not used in the server when the client is in separate machine.
    This is a bit different from the tutorial, please enlighten me if you have any comments.
    To make the dynamic download works,
    server side
    change the codebase property from http://localhost/rmi-codebase/ to http://man82/rmi_codebase/
    client side
    remove the codebase property http://man82/rmi_codebase/
    It is funny that if I add the codebase property when start up the client, it won't work.
    Thanks in advance for any ideas and input.
    Wing

  • JRuby 1.1.1 JRockit R27.5 Issues

    I'm trying to use JRockit with JRuby and running into several issues.
    1- When running "jruby -S gem" I get a crash every time.
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 0 days, 00:00:54 on Wed May 28 15:10:38 2008
    * If you see this dump, please go to *
    * http://edocs.bea.com/jrockit/go2troubleshooting.html *
    * for troubleshooting information. *
    Additional information is available in:
    G:\data\cfaapps\railsdemo\1.0\RailsDemo\jrockit.4412.dump
    G:\data\cfaapps\railsdemo\1.0\RailsDemo\jrockit.4412.mdmp
    Error Message: Illegal memory access. [54]
    Exception Rec: EXCEPTION_ACCESS_VIOLATION (c0000005) at 0x00000000 - memory at 0x00000000 could not be read.
    Minidump : Wrote mdmp. Size is 111MB
    SafeDllMode : -1
    Version : BEA JRockit(R) R27.5.0-110-94909-1.5.0_14-20080204-1558-windows-ia32
    GC Strategy : Mode: throughput. Currently using strategy: genparpar
    GC Status : OC is not running. Last finished OC was OC#0.
    : YC is not running. Last finished YC was YC#0.
    YC History : Ran 0 YCs since last OC.
    Heap : 0x10200000 - 0x14200000 (Size: 64 MB)
    Compaction : (no compaction area)
    NurseryList : 0x10200000 - 0x12200000
    KeepArea : (no keeparea in use)
    NurseryMarker: [ 0x111FFFF0,  0x119FFFE8 ]
    CompRefs : References are 32-bit.
    CPU : Intel Pentium M model D SSE SSE2
    Number CPUs : 1
    Tot Phys Mem : 2146353152 (2046 MB)
    OS version : Microsoft Windows XP version 5.1 Service Pack 2 (Build 2600) (32-bit)
    Thread System: Windows Threads
    Java locking : Normal
    State : JVM is running
    Command Line : -Xmx378m -Xss1024k -Djruby.home=c:\dev\jruby-1.1.1\bin\.. -Djruby.lib=c:\dev\jruby-1.1.1\bin\..\lib -Djruby.shell=cmd.exe -Djruby.script=jruby.bat -Dsun.java.launcher=SUN_STANDARD org.jruby.Main -S gem --trace
    java.home : c:\apps\java\jrockit1.5.0\jre
    j.class.path : c:\dev\jruby-1.1.1\bin\..\lib\bsf.jar;c:\dev\jruby-1.1.1\bin\..\lib\jruby.jar;c:\dev\jruby-1.1.1\bin\..\lib\profile.jar
    j.lib.path : c:\apps\java\jrockit1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\apps\java\jrockit1.5.0\bin;c:\apps\java\jdk1.5.0\bin;C:\apps\java\apache-maven-2.0.9\bin;c:\dev\jruby-1.1.1\bin;C:\apps\oracle\product\9.2.0\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\apps\oracle\product\8.1.6\bin;;C:\apps\Subversion\bin;c:\apps\java\cfa;C:\Program Files\Perforce;C:\Python25;C:\Python25\Scripts;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Softricity\SoftGrid for Windows Desktops;C:\Program Files\Bitvise Tunnelier;c:\Program Files\MySQL\MySQL Server 5.0\bin
    JAVA_HOME : c:\apps\java\jrockit1.5.0
    JAVAOPTIONS: <not set>
    PATH : c:\apps\java\jrockit1.5.0\jre\bin;c:\apps\java\jrockit1.5.0\bin;c:\apps\java\jdk1.5.0\bin;C:\apps\java\apache-maven-2.0.9\bin;c:\dev\jruby-1.1.1\bin;C:\apps\oracle\product\9.2.0\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\apps\oracle\product\8.1.6\bin;;C:\apps\Subversion\bin;c:\apps\java\cfa;C:\Program Files\Perforce;C:\Python25;C:\Python25\Scripts;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Softricity\SoftGrid for Windows Desktops;C:\Program Files\Bitvise Tunnelier;c:\Program Files\MySQL\MySQL Server 5.0\bin
    C Heap : Good; no memory allocations have failed
    StackOverFlow: 0 StackOverFlowErrors have occured
    OutOfMemory : 0 OutOfMemoryErrors have occured
    Registers (from ThreadContext: 0x0007F000 / OS context: 0x0007F838):
    eax = 10212f01 ecx = 031cb360 edx = 00000022 ebx = 119055b0
    esp = 0007fb04 ebp = 10212f00 esi = 119055b0 edi = 10212f00
    es = 00000023 cs = 0000001b ss = 00000023 ds = 00000023
    fs = 0000003b gs = 00000000
    eip = 00000000 eflags = 00010202
    Stack:
    (* marks the word pointed to by the stack pointer)
    0007fb04: 00f50315* 11909528 10202fe8 10202780 10202fe8 119055b0
    0007fb1c: 00f50335 119055b0 00000000 10202818 10202fe8 119055b0
    0007fb34: 00f50244 00386af0 00386af0 fffffffc 00ce5969 fffffffc
    0007fb4c: 00c78210 0007fbf4 00f50220 0007fb78 00386c54 00386af0
    Code:
    (* marks the word pointed to by the instruction pointer)
    ffffffd0: Unreadable
    ffffffe8: Unreadable
    00000000: Unreadable
    00000018: Unreadable
    Loaded modules:
    (* denotes the module causing the exception)
    00400000-0040ffff c:\apps\java\jrockit1.5.0\bin\java.exe
    7c900000-7c9affff C:\WINDOWS\system32\ntdll.dll
    7c800000-7c8f4fff C:\WINDOWS\system32\kernel32.dll
    77dd0000-77e6afff C:\WINDOWS\system32\ADVAPI32.dll
    77e70000-77f00fff C:\WINDOWS\system32\RPCRT4.dll
    77c10000-77c67fff C:\WINDOWS\system32\MSVCRT.dll
    00410000-006b3fff c:\apps\java\jrockit1.5.0\jre\bin\jrockit\jvm.dll
    76b40000-76b6cfff C:\WINDOWS\system32\WINMM.dll
    7e410000-7e49ffff C:\WINDOWS\system32\USER32.dll
    77f10000-77f56fff C:\WINDOWS\system32\GDI32.dll
    71ab0000-71ac6fff C:\WINDOWS\system32\WS2_32.dll
    71aa0000-71aa7fff C:\WINDOWS\system32\WS2HELP.dll
    7c340000-7c395fff c:\apps\java\jrockit1.5.0\bin\MSVCR71.dll
    10100000-10113fff C:\WINDOWS\system32\csauser.dll
    77fe0000-77ff0fff C:\WINDOWS\system32\Secur32.dll
    6d710000-6d71bfff c:\apps\java\jrockit1.5.0\jre\bin\verify.dll
    6d380000-6d39cfff c:\apps\java\jrockit1.5.0\jre\bin\java.dll
    6d300000-6d307fff c:\apps\java\jrockit1.5.0\jre\bin\hpi.dll
    6d730000-6d73efff C:\apps\java\jrockit1.5.0\jre\bin\zip.dll
    10000000-10018fff C:\Documents and Settings\eric.stephens\Local Settings\Temp\jna29304.tmp
    6d540000-6d552fff C:\apps\java\jrockit1.5.0\jre\bin\net.dll
    71a50000-71a8efff C:\WINDOWS\system32\mswsock.dll
    662b0000-66307fff C:\WINDOWS\system32\hnetcfg.dll
    71a90000-71a97fff C:\WINDOWS\System32\wshtcpip.dll
    6d560000-6d568fff C:\apps\java\jrockit1.5.0\jre\bin\nio.dll
    03800000-03912fff c:\apps\java\jrockit1.5.0\jre\bin\dbghelp.dll
    76bf0000-76bfafff C:\WINDOWS\system32\psapi.dll
    "Main Thread" id=1 idx=0x4 tid=852 lastJavaFrame=0x00000000
    Stack 0: start=0x00040000, end=0x00080000, guards=0x00043000 (ok), forbidden=0x00041000
    Thread Stack Trace:
    -- Java stack --
    at java/lang/ThreadGroup.uncaughtException(ThreadGroup.java:987)
    at java/lang/ThreadGroup.uncaughtException(ThreadGroup.java:978)
    at java/lang/Thread.dispatchUncaughtException(Thread.java:1778)
    at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
    -- end of trace
    * If you see this dump, please go to *
    * http://edocs.bea.com/jrockit/go2troubleshooting.html *
    * for troubleshooting information. *
    ===== END DUMP ===============================================================
    2 - When running jruby script/server in a rails application I get:
    Exception in thread "Main Thread" Exception in thread "Main Thread" java.lang.IndexOutOfBoundsException
    at java.lang.String.offsetByCodePoints(String.java:672)
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:987)
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:978)
    at java.lang.Thread.dispatchUncaughtException(Thread.java:1778)
    This was after installing several plugins (rails, rubysspi ...) using the sun 1.5 jvm.
    3 - When running jruby (with an ant script to get more detailed messages) on a clean install of jruby (no plugins), I get the following crash:
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 0 days, 00:00:53 on Wed May 28 15:45:46 2008
    * If you see this dump, please go to *
    * http://edocs.bea.com/jrockit/go2troubleshooting.html *
    * for troubleshooting information. *
    Additional information is available in:
    G:\data\cfaapps\railsdemo\1.0\RailsDemo\jrockit.3160.dump
    G:\data\cfaapps\railsdemo\1.0\RailsDemo\jrockit.3160.mdmp
    Error Message: Illegal memory access. [54]
    Exception Rec: EXCEPTION_ACCESS_VIOLATION (c0000005) at 0x00466E69 - memory at 0x8B64C189 could not be read.
    Minidump : Wrote mdmp. Size is 113MB
    SafeDllMode : -1
    Version : BEA JRockit(R) R27.5.0-110-94909-1.5.0_14-20080204-1558-windows-ia32
    GC Strategy : Mode: throughput. Currently using strategy: genparpar
    GC Status : OC is not running. Last finished OC was OC#0.
    : YC is not running. Last finished YC was YC#0.
    YC History : Ran 0 YCs since last OC.
    Heap : 0x10200000 - 0x14200000 (Size: 64 MB)
    Compaction : (no compaction area)
    NurseryList : 0x10200000 - 0x12200000
    KeepArea : (no keeparea in use)
    NurseryMarker: [ 0x111FFFF0,  0x119FFFE8 ]
    CompRefs : References are 32-bit.
    CPU : Intel Pentium M model D SSE SSE2
    Number CPUs : 1
    Tot Phys Mem : 2146353152 (2046 MB)
    OS version : Microsoft Windows XP version 5.1 Service Pack 2 (Build 2600) (32-bit)
    Thread System: Windows Threads
    Java locking : Normal
    State : JVM is running
    Command Line : -Djruby.base=c:/dev/jruby-1.1.1 -Djruby.home=c:/dev/jruby-1.1.1 -Djruby.script=jruby -Djruby.shell=/bin/sh -Dsun.java.launcher=SUN_STANDARD org.jruby.Main -I ./ script/server
    java.home : c:\apps\java\jrockit1.5.0\jre
    j.class.path : G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\activation.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\cfa.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\cfaenv.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\crimson.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\dictionary-vt.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\log4j.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\mail.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\ojdbc14.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\password-vt.jar;G:\data\cfaapps\railsdemo\1.0\RailsDemo\lib\java\strutstest-2.1.4.jar;c:\dev\jruby-1.1.1\lib\bsf.jar;c:\dev\jruby-1.1.1\lib\jruby.jar;c:\dev\jruby-1.1.1\lib\profile.jar
    j.lib.path : c:\apps\java\jrockit1.5.0\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\apps\java\jrockit1.5.0\jre\bin;c:\apps\java\jdk1.5.0\bin;C:\apps\java\apache-maven-2.0.9\bin;c:\dev\jruby-1.1.1\bin;C:\apps\oracle\product\9.2.0\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\apps\oracle\product\8.1.6\bin;;C:\apps\Subversion\bin;c:\apps\java\cfa;C:\Program Files\Perforce;C:\Python25;C:\Python25\Scripts;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Softricity\SoftGrid for Windows Desktops;C:\Program Files\Bitvise Tunnelier
    JAVA_HOME : c:\apps\java\jrockit1.5.0
    JAVAOPTIONS: <not set>
    PATH : c:\apps\java\jrockit1.5.0\jre\bin;c:\apps\java\jrockit1.5.0\jre\bin;c:\apps\java\jdk1.5.0\bin;C:\apps\java\apache-maven-2.0.9\bin;c:\dev\jruby-1.1.1\bin;C:\apps\oracle\product\9.2.0\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\apps\oracle\product\8.1.6\bin;;C:\apps\Subversion\bin;c:\apps\java\cfa;C:\Program Files\Perforce;C:\Python25;C:\Python25\Scripts;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Softricity\SoftGrid for Windows Desktops;C:\Program Files\Bitvise Tunnelier
    C Heap : Good; no memory allocations have failed
    StackOverFlow: 0 StackOverFlowErrors have occured
    OutOfMemory : 0 OutOfMemoryErrors have occured
    Registers (from ThreadContext: 0x0007DFA0 / OS context: 0x0007E7D8):
    eax = 00000000 ecx = 0007eae4 edx = 00000000 ebx = 00386f8c
    esp = 0007eaa4 ebp = 8b64c189 esi = 00386e18 edi = 00386f7c
    es = 00000023 cs = 0000001b ss = 00000023 ds = 00000023
    fs = 0000003b gs = 00000000
    eip = 00466e69 eflags = 00010282
    Stack:
    (* marks the word pointed to by the stack pointer)
    0007eaa4: 00386f7c* 00386e18 00386e18 0007eae4 00468a9e 00386f7c
    0007eabc: 00386e18 0007ead8 00ce0014 00386e18 10b2dac8 00386e18
    0007ead4: 00d105f1 00386f7c 0007eaf4 11d9da40 020ef360 00d105cd
    0007eaec: 00c342e4 0007ead8 00ce03e5 00386e18 10b2dac8 00ce03e5
    Code:
    (* marks the word pointed to by the instruction pointer)
    00466e38: c4968b03 8b000000 96894a28 000000c4 00c4868b c0850000
    00466e50: 868b1375 000000ac 097ec085 167ee856 c4830000 74ed8504
    00466e68: 006d8b07* 1475ed85 5f9cfc68 d5e85700 8b000568 69bef82d
    00466e80: 08c48300 00d886f6 74010000 bf00a117 e83b0069 e88b0e74
    Loaded modules:
    (* denotes the module causing the exception)
    00400000-0040ffff c:\apps\java\jrockit1.5.0\jre\bin\java.exe
    7c900000-7c9affff C:\WINDOWS\system32\ntdll.dll
    7c800000-7c8f4fff C:\WINDOWS\system32\kernel32.dll
    77dd0000-77e6afff C:\WINDOWS\system32\ADVAPI32.dll
    77e70000-77f00fff C:\WINDOWS\system32\RPCRT4.dll
    77c10000-77c67fff C:\WINDOWS\system32\MSVCRT.dll
    00410000-006b3fff *c:\apps\java\jrockit1.5.0\jre\bin\jrockit\jvm.dll
    76b40000-76b6cfff C:\WINDOWS\system32\WINMM.dll
    7e410000-7e49ffff C:\WINDOWS\system32\USER32.dll
    77f10000-77f56fff C:\WINDOWS\system32\GDI32.dll
    71ab0000-71ac6fff C:\WINDOWS\system32\WS2_32.dll
    71aa0000-71aa7fff C:\WINDOWS\system32\WS2HELP.dll
    7c340000-7c395fff c:\apps\java\jrockit1.5.0\jre\bin\MSVCR71.dll
    10100000-10113fff C:\WINDOWS\system32\csauser.dll
    77fe0000-77ff0fff C:\WINDOWS\system32\Secur32.dll
    6d710000-6d71bfff c:\apps\java\jrockit1.5.0\jre\bin\verify.dll
    6d380000-6d39cfff c:\apps\java\jrockit1.5.0\jre\bin\java.dll
    6d300000-6d307fff c:\apps\java\jrockit1.5.0\jre\bin\hpi.dll
    6d730000-6d73efff C:\apps\java\jrockit1.5.0\jre\bin\zip.dll
    10000000-10018fff C:\Documents and Settings\eric.stephens\Local Settings\Temp\jna59692.tmp
    6d540000-6d552fff C:\apps\java\jrockit1.5.0\jre\bin\net.dll
    71a50000-71a8efff C:\WINDOWS\system32\mswsock.dll
    662b0000-66307fff C:\WINDOWS\system32\hnetcfg.dll
    71a90000-71a97fff C:\WINDOWS\System32\wshtcpip.dll
    6d560000-6d568fff C:\apps\java\jrockit1.5.0\jre\bin\nio.dll
    03650000-03762fff c:\apps\java\jrockit1.5.0\jre\bin\dbghelp.dll
    76bf0000-76bfafff C:\WINDOWS\system32\psapi.dll
    "Main Thread" id=1 idx=0x4 tid=5896 lastJavaFrame=0x0007EAE4
    Stack 0: start=0x00040000, end=0x00080000, guards=0x00043000 (ok), forbidden=0x00041000
    Thread Stack Trace:
    at _excCheckUnprocessedException+201()@0x00466E69
    at _tsCheckTransitToJava+30()@0x00468A9E
    -- Java stack --
    at jrockit/vm/ExceptionHandler.throwException(Ljava/lang/Throwable;)V(Native Method)
    at org/jruby/RubyKernelInvoker$raise_s_method_0_3.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;(Unknown Source)
        at org/jruby/internal/runtime/methods/DynamicMethod.call(DynamicMethod.java:78)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:146)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:302)
        at org/jruby/evaluator/ASTInterpreter.fCallNode(ASTInterpreter.java:1132)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:355)
        at org/jruby/evaluator/ASTInterpreter.blockNode(ASTInterpreter.java:632)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:303)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/internal/runtime/methods/DefaultMethod.interpretedCall(DefaultMethod.java:172)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:148)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:265)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:146)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:302)
        at org/jruby/evaluator/ASTInterpreter.fCallNode(ASTInterpreter.java:1132)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:355)
        at org/jruby/evaluator/ASTInterpreter.blockNode(ASTInterpreter.java:632)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:303)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/internal/runtime/methods/DefaultMethod.interpretedCall(DefaultMethod.java:172)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:148)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:202)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:238)
        at org/jruby/evaluator/ASTInterpreter.callNode(ASTInterpreter.java:682)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:309)
        at org/jruby/evaluator/ASTInterpreter.blockNode(ASTInterpreter.java:632)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:303)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/internal/runtime/methods/DefaultMethod.interpretedCall(DefaultMethod.java:172)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:148)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:307)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:176)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:334)
        at org/jruby/evaluator/ASTInterpreter.fCallNode(ASTInterpreter.java:1136)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:355)
        at org/jruby/evaluator/ASTInterpreter.rescueNode(ASTInterpreter.java:1567)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:453)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/internal/runtime/methods/DefaultMethod.interpretedCall(DefaultMethod.java:172)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:148)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:223)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:116)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:270)
        at org/jruby/evaluator/ASTInterpreter.vcallNode(ASTInterpreter.java:1792)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:485)
        at org/jruby/evaluator/ASTInterpreter.blockNode(ASTInterpreter.java:632)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:303)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/internal/runtime/methods/DefaultMethod.interpretedCall(DefaultMethod.java:172)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:148)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:223)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:116)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:270)
        at org/jruby/evaluator/ASTInterpreter.vcallNode(ASTInterpreter.java:1792)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:485)
        at org/jruby/evaluator/ASTInterpreter.blockNode(ASTInterpreter.java:632)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:303)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/internal/runtime/methods/DefaultMethod.interpretedCall(DefaultMethod.java:172)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:148)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:202)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:238)
        at org/jruby/evaluator/ASTInterpreter.callNode(ASTInterpreter.java:682)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:309)
        at org/jruby/evaluator/ASTInterpreter.blockNode(ASTInterpreter.java:632)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:303)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/internal/runtime/methods/DefaultMethod.interpretedCall(DefaultMethod.java:172)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:148)
        at org/jruby/internal/runtime/methods/DefaultMethod.call(DefaultMethod.java:202)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:238)
        at org/jruby/evaluator/ASTInterpreter.callNode(ASTInterpreter.java:682)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:309)
        at org/jruby/evaluator/ASTInterpreter.blockNode(ASTInterpreter.java:632)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:303)
        at org/jruby/evaluator/ASTInterpreter.rootNode(ASTInterpreter.java:1665)
        at org/jruby/evaluator/ASTInterpreter.evalInternal(ASTInterpreter.java:459)
        at org/jruby/evaluator/ASTInterpreter.eval(ASTInterpreter.java:169)
        at org/jruby/Ruby.loadFile(Ruby.java:1867)
        at org/jruby/runtime/load/ExternalScript.load(ExternalScript.java:58)
        at org/jruby/runtime/load/LoadService.smartLoad(LoadService.java:320)
        at org/jruby/runtime/load/LoadService.require(LoadService.java:346)
        at org/jruby/RubyKernel.require(RubyKernel.java:819)
        at org/jruby/RubyKernelInvoker$require_s_method_1_0.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;(Unknown Source)
        at org/jruby/internal/runtime/methods/JavaMethod$JavaMethodOneBlock.call(JavaMethod.java:259)
        at org/jruby/internal/runtime/methods/DynamicMethod.call(DynamicMethod.java:78)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:146)
        at org/jruby/runtime/CallSite$InlineCachingCallSite.call(CallSite.java:302)
        at ruby/G_3a_/data/cfaapps/railsdemo/$1_dot_0/RailsDemo/script/server.__file__(script/server:2)
        at ruby/G_3a_/data/cfaapps/railsdemo/$1_dot_0/RailsDemo/script/server.load(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;(script/server)
        at org/jruby/Ruby.runScript(Ruby.java:511)
        at org/jruby/Ruby.runNormally(Ruby.java:431)
        at org/jruby/Ruby.runFromMain(Ruby.java:311)
        at org/jruby/Main.run(Main.java:144)
        at org/jruby/Main.run(Main.java:89)
        at org/jruby/Main.main(Main.java:80)
        at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
        -- end of trace
    Pending Exception:
    Both crashes are repeatable.  Has anyone run JRuby on JRockit 1.5 any release?
    Thanks for the help.
    Eric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Eric,
    Thanks for reporting these problems. We are aware of them and will work on a fix as well as include JRuby in our testing for future releases.
    Sorry for this,
    /Staffan

  • WLS 6.1 SP2 NSAPI and iPlanet (Sun One) issues

    Hi. I am going nuts with this NSAPI issue. I am working in a Solaris 8 environment,
    WLS 6.1 SP2 and iPlanet (Sun One)and NSAPI. I can get everything to work fine
    and dandy in aniPlanet 4.1 environment. I can not get it to work in an Iplanet
    (Sun One) 6.x environment. It appears that some things work differently between
    the versions of iPlanet (ie. things contained in magnus.conf and/or obj.conf).
    I have tried moving things, removing things, adding things and nothing seems
    to work....it's almost as though the NSAPI, etc. are being ignored.
    I've attached my magnus.conf and obj.conf files (I cut and pasted them into a
    single file so I could upload it). Can anyone help me out here...I've been working
    for weeks on this and can't seem to get any answers.
    Thanks!
    Doug
    P.S. For security purpses I changed the first part of the IP add. in the files
    to 1234567, etc.
    Thanks
    [conf_files.txt]

    Hi Doug
    U have to put the following section
    Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="./libproxy.so"
    Init fn="wl_init"
    into magus.conf
    and put the rest into obj.conf
    Best Regards
    Alex
    "Doug E" <[email protected]> wrote:
    >
    Does anybody know of a good reference document on how to properly install
    the NSAPI
    plug-in for WLS6.1 & iPlanet6(SunOne) on Unix (Solaris). Many of the references
    that
    I have been finding are either incomplete, have typo's and are mostly Windows
    oriented
    (ie. with the .dll's, paths, examples, etc.)
    My problem is that our old iPlanet 4.x works fine...everything proxies,
    etc. iPlanet
    6 just doesn't want to seem to communicate with WLS 6.1 SP2 We tried many
    of the
    saem things from the 4.x magnus & obj.confs...but things look somewhat different
    in iPlanet 6.x (did they move tings..such as the fn's from one to the other,
    etc.)
    If so..and there are big differences in installing iPlanet 4.x vs. 6.x
    then many
    of the docs out there are inaccurate. Does anyone know if there is a newer
    version
    of the NSAPI plug-in for Unix.
    I would love to see a basic, working set of magnus.conf obj.conf, MIME,etc
    from someone
    who has actually gotten NSAPI to work between WLS 6.1 and iPlanet 6 on Unix
    (Solaris)
    It blows my mind that 4.x works and 6.x doesn't. An updated NSAPI plug-in
    , if it exists and perhaps fixes the problem, would make my day. Any ideas?
    Thanks!
    -Doug

  • Jrockit JVM GC issue - weblogic performance and crashes at times

    On enabling the verbose gc for memory debug, we have observer the following and we frequently face a JVM issue i.e JVM will be unresponsive due to GC pause and on checking we found the following in GC log.
    [memdbg ][Tue Jul 13 01:02:12 2010][26381] GC reason: TLA allocation failed, cause: Get TLA From Nursery
    [memdbg ][Tue Jul 13 01:02:12 2010][26381] Stopping of javathreads took 2.234 ms
    As of now the following is the TLA size:-
    [memdbg ][Tue Jul 13 01:00:10 2010][26381] Minimum TLA size is 2048 bytes
    [memdbg ][Tue Jul 13 01:00:10 2010][26381] Preferred TLA size is 65536 bytes
    [memdbg ][Tue Jul 13 01:00:10 2010][26381] Large object limit is 2048 bytes
    After consultaion with oracle support team, they have asked to us increase the TLA size and we did as follows but we still see the same message.
    tried setting
    -XXlargeObjectLimit:16k -XXminBlockSize:16k -XXtlaSize:min=16k,preferred=32k
    it was still a problem, tried
    -XXlargeObjectLimit:32k -XXminBlockSize:32k -XXtlaSize:min=32k,preferred=64k
    and we sill the following message.
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] f0 3.75Gb
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Minimum TLA size is 16384 bytes
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Preferred TLA size is 32768 bytes
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Large object limit is 16384 bytes
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Minimal blocksize on the freelist is 16384 bytes
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Initial and maximum number of gc threads: 8, of which 8 parallel threads, 4 concurrent threads, and 8 yc threads.
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Preferred free list cache percentage 10%.
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Maximum nursery percentage of free heap is: 95.
    [nursery][Wed Jul 21 03:14:06 2010][11864] Optimal nursery size: 536870912, free heap: 1073741824
    [nursery][Wed Jul 21 03:14:06 2010][11864] Setting mmNurseryMarker[0] to 0x12affff8
    [nursery][Wed Jul 21 03:14:06 2010][11864] Setting mmNurseryMarker[1] to 0x1aaffff0
    [nursery][Wed Jul 21 03:14:06 2010][11864] Nursery size increased from 0kb to 524288kb. Parts: 1
    [memdbg ][Wed Jul 21 03:14:06 2010][11864] Prefetch distance in balanced tree: 4
    [compact][Wed Jul 21 03:14:06 2010][11864] Compactset limit: 7600010, Using matrixes: 0, Static: 0
    [memory ][Wed Jul 21 03:14:06 2010][11864] GC mode: Garbage collection optimized for throughput, initial strategy: Generational Parallel Mark & Sweep
    [memory ][Wed Jul 21 03:14:06 2010][11864] heap size: 1048576K, maximal heap size: 1048576K, nursery size: 524288K
    [memory ][Wed Jul 21 03:14:06 2010][11864] <s>-<end>: GC <before>K-><after>K (<heap>K), <pause> ms
    [memory ][Wed Jul 21 03:14:06 2010][11864] <s/start> - start time of collection (seconds since jvm start)
    [memory ][Wed Jul 21 03:14:06 2010][11864] <end> - end time of collection (seconds since jvm start)
    [memory ][Wed Jul 21 03:14:06 2010][11864] <before> - memory used by objects before collection (KB)
    [memory ][Wed Jul 21 03:14:06 2010][11864] <after> - memory used by objects after collection (KB)
    [memory ][Wed Jul 21 03:14:06 2010][11864] <heap> - size of heap after collection (KB)
    [memory ][Wed Jul 21 03:14:06 2010][11864] <pause> - total sum of pauses during collection (milliseconds)
    [memory ][Wed Jul 21 03:14:06 2010][11864] run with -Xverbose:gcpause to see individual pauses
    [memdbg ][Wed Jul 21 03:14:39 2010][11864] GC reason: TLA allocation failed, cause: Get TLA From Nursery
    [memdbg ][Wed Jul 21 03:14:39 2010][11864] Stopping of javathreads took 1.627 ms
    [nursery][Wed Jul 21 03:14:39 2010][11864] KeepAreaStart: 0x1aaffff0 KeepAreaEnd: 0x22b00000
    [nursery][Wed Jul 21 03:14:39 2010][11864] Young collection 1 started. This YC is running while the OC is in phase: not running.
    [memdbg ][Wed Jul 21 03:14:39 2010][11864] A pinned object was found: 0x11a4d4a0
    [memdbg ][Wed Jul 21 03:14:39 2010][11864] A pinned object was found: 0x11a30010
    [nursery][Wed Jul 21 03:14:39 2010][11864] Found pinned object: 0x11a4d4a0 - 0x11a4f4b0
    Are there any standard tuning recommendations for Jrockit JVM to come over this GC issue? At present, we are using following JAVA options.
    -XXlargeObjectLimit:32k -XXminBlockSize:32k -XXtlaSize:min=32k,preferred=64k -verbose:gc -Xverboselog:/tmp/gc.log -Xverbose:memory,gcpause,memdbg,compaction,gc -Xverbosetimestamp -Xgcreport
    -RR
    Regards
    Ranga

    If you want to optimize for pausetime, you can use for example
    -Xms512m -Xmx512m -Xns256m -XXkeepAreaRatio:25 -Xgcprio:pausetime -XpauseTarget:200msThe parameters xms and xmx can be adjusted to your wishes.

  • How tom invoke an EJB from another EJB using the sun rmi protocl in Weblogi

    Hi,
    I am particularly new to EJB.
    My scenario is
    client invoking-->EJB-----invoking ----(Either a webService or an EJB)
    in WEBLOGIC
    Is it possible that a call from EJB to another EJB or WebService use Sun's RMI as underlying protocol instead of t3 or IIOP which are used in Weblogic ?
    Would be really a great help if you could provide me some sample on it on weblogic.

    Hi Stefan,
    You don't need to provide the InitialContextFactory for running a standalone client. The following should work just fine:
    Context initial = new InitialContext();
    System.out.println("Looking up ...");
    Object objref = initial.lookup(EJB);  //the lookup name should be a global JNDI name      //and not from the java:comp namespace
    System.out.println("Looked up EJB");The JNDI implementation looks for the jndi.properties file in your classpath. So make sure that you have the appserv-rt.jar from your <server_installation>/lib directory in your classpath.
    HTH,
    Sheetal

  • RMI issue with Tomcat

    Hi All,
    I have an RMI system, that in command line works perfectly, as expected. However, I have transferred my Client to Servlet and am running it though Tomcat. Now when ever I try and invoke a remote method I receive an error message.
    The error is generated as a result of catch statement for the following:
    server = (Server)Naming.lookup(fullname);I know the Client code is being evaluated as it generates the HTML error message from the catch. Using a System.out.println and the Tomcat log files I caught the error and wrote it to a log file. It was as follows:
    Caught an exception doing name lookup on rmi://localhost/Bank-Server: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.lang.ClassNotFoundException: ServerImpl_Stub (no security manager: RMI class loader disabled)
    Caught an exception doing name lookup on rmi://localhost/Bank-Server: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect
    Caught an exception doing name lookup on rmi://localhost/Bank-Server: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect
    Caught an exception doing name lookup on rmi://localhost/Bank-Server: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.lang.ClassNotFoundException: ServerImpl_Stub (no security manager: RMI class loader disabled)
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.lang.ClassNotFoundException: ServerImpl_Stub (no security manager: RMI class loader disabled)
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.lang.ClassNotFoundException: ServerImpl_Stub (no security manager: RMI class loader disabled)I can see from the error that it might have something to do with a security manager? I have read a little about it and when running the security manager a special command needs to be entered at runtime to invoke the policy? How on earth is this done in a Web application situation?

    Connection refused: connectIt could be some configuration problem.

  • Ciscoworks/Sun Solaris issues command

    Our Ciscoworks on Solaris always issues commands rusersd to other servers, here is an example to server02, which should not happend. the server itself has nothing to do with ciscoworks.
    Can you please tell me why it is issuing this? and how to stop it?
    10.Y.Y.101 is the Ciscoworks server,
    thanks, Han
    Here is one of them:   X.X.100.117  Server02
    Here are a couple log entries from :
    May  6 12:08:29 Server02 portmap[8173]: connect from 10.Y.Y.101 to getport(rusersd): request from unauthorized host
    May  6 16:36:20 Server02 portmap[8479]: connect from 10.Y.Y.101 to getport(rusersd): request from unauthorized host

    Not sure about solaris. Various strings of netstat on sof appliance (Linux) work for me. Here showing first connections to my remote workstation IP (192.168.150.137) and then identifying the responsible process (CSCO.Apache server) as what is listening on that port:
    [SecLab-LMS/root-ade ~]# netstat -anp | grep 150.137tcp        0      0 192.168.100.121:443         192.168.150.137:22015       TIME_WAIT   -                  [SecLab-LMS/root-ade ~]# netstat -lntp | grep CSCO | grep 443tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      1160/CSCO.Apache   tcp        0      0 :::44300                    :::*                        LISTEN      30305/CSCO.UPMProcetcp        0      0 :::44301                    :::*                        LISTEN      30305/CSCO.UPMProce[SecLab-LMS/root-ade ~]#

  • Remote Connection Issue in Oracle JRockit

    Hi,
    I Tried configuring Jrockit and integrating weblogic server with it.
    I was successfull in monitoring the locally deployed app through integrated weblogic in JRMC 4.0.
    Please suggest if the following steps mentioned are proper or not.
    1) Installed JRMC 4.0 .
    2. Configured in default domain/bin folder of Weblogic server setDomainEnv.cmd as follows:-(Configuring oracle Jrockit in Weblogic since i have to use Jrockit JVM instead of Sun JDK Hot Spot)
    set BEA_JAVA_HOME=C:\Program Files\Java\jrmc-4.0.0-1.6.0
    set SUN_JAVA_HOME=D:\Oracle\Middleware\jdk160_18
    if "%JAVA_VENDOR%"=="Oracle" (
    set JAVA_HOME=%BEA_JAVA_HOME%
    ) else (
    if "%JAVA_VENDOR%"=="Sun" (
    set JAVA_HOME=%SUN_JAVA_HOME%
    ) else (
    set JAVA_VENDOR=Oracle
    set JAVA_HOME=C:\Program Files\Java\jrmc-4.0.0-1.6.0
    3.Inturn i modified Java_Options in my local weblogic server startWebLogic.cmd and Remote weblogic server startWebLogic.cmd as follows:-
    Local weblogic server startWebLogic.cmd :-
    set SAVE_JAVA_OPTIONS="-Djava.rmi.server.hostname=ZSLW521 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
    export JAVA_OPTIONS
    Remote weblogic server startWebLogic.cmd :-
    set SAVE_JAVA_OPTIONS="-Djava.rmi.server.hostname=ZSLW577 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
    export JAVA_OPTIONS
    4. My Oracle Jrockit Start parameters are as follows:-
    C:\Program Files\Java\jrmc-4.0.0-1.6.0\bin>java -Xmanagement:port=7091,ssl=false,authenticate=false,autodiscovery=true
    and even i am getting the status as follows in command prompt:
    [INFO ][mgmnt ] Remote JMX connector started at address zslw577:7091
    [INFO ][mgmnt ] Local JMX connector started
    [INFO ][mgmnt ] JDP autodiscovery started at address 232.192.1.212:7095
    Iin jrmc4.0 UI i am getting JDP (JRockit Discovered protocal)as follows:-
    1. Discovered --> JDP --> zslw577:zsl.local and
    zslw51
    2.But the Problem is that in the tabbed menu
    Discovered-->LOACL-->Getting Local JRockit Weblogic server Instance and Not Remote Server Weblogic Server Instance
    is when i am trying to establish a connection :-
    HOST:zslw521
    PORT:7091
    1.And testing the connection giving me : Unable to Connect
    Even If I want To test The JDP of Remote and Local JVM Instances by right clicking and selecting the option of START CONSOLE
    Could not open Management Console for zslw577.zsl.local.
    com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
    java.net.ConnectException: Connection refused: connect]
    com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
    java.net.ConnectException: Connection refused: connect]
    at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:63)
    at com.jrockit.mc.console.ui.actions.StartConsole$1.preConnect(StartConsole.java:39)
    at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:74)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
    java.net.ConnectException: Connection refused: connect]
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:227)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:593)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:145)
    at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
    at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:157)
    at com.jrockit.mc.rjmx.ConnectionManager.innerConnect(ConnectionManager.java:95)
    at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:61)
    ... 3 more
    Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
    java.net.ConnectException: Connection refused: connect]
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
    at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
    at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    ... 12 more
    Caused by: java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
    java.net.ConnectException: Connection refused: connect
    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.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
    at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:228)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:594)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:146)
    at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
    at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:158)
    ... 5 more
    Caused by: java.net.ConnectException: Connection refused: connect
    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:525)
    at java.net.Socket.connect(Socket.java:475)
    at java.net.Socket.<init>(Socket.java:372)
    at java.net.Socket.<init>(Socket.java:186)
    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)
    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.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
    at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:227)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:593)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
    at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:145)
    at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
    at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:157)
    ... 5 more
    Thanks in advance
    Regards
    RK

    I had the same problem, but adding:
    -Djava.rmi.server.hostname=my_hostname
    to the remote WebLogic Server start script that I want to monitor solves the problem.
    In my case, my WLS runs on OEL 5, and I monitor it via JRMC (R28.0.0-679) on Windows XP):
    # Start JRockit MngSrv to enable JRMC monitoring:
    JR_XMNG="-Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
    export JR_XMNG
    JAVA_OPTIONS="-Djava.rmi.server.hostname=your_hostname ${JAVA_OPTIONS}"
    export JAVA_OPTIONS
    JAVA_OPTIONS="${JAVA_OPTIONS} ${JR_XMNG}"
    export JAVA_OPTIONS
    Edited by: George Moykin on 2010-7-14 12:15

  • RMI "UnmarshalException" issue

    Hi,
    I am doing a sample RMI application in the following step by step process but in the *8th* step I am getting exception so please kindly resolve my issue.
    Step-1: creating “Service interface”
              AddServiceInterface.java
              ====================
    import java.rmi.*;
    public interface AddServiceInterface extends Remote
         public int add(int a, int b) throws RemoteException;
    Step-2: Compiling “Service interface”
    D:\BAJI\Programs\JAVA\rmi\rmi_server>javac AddServiceInterface.java
    D:\BAJI\Programs\JAVA\rmi\rmi_server>
    Step-3: creating the Service interface implementation class
                   AddService.java
                   ============
    import java.rmi.*;
    import java.rmi.server.*;
    public class AddService extends UnicastRemoteObject implements AddServiceInterface
         public AddService() throws Exception
         public int add(int a, int b) throws RemoteException
              return (a+b);
    Step-4: Compiling the “Service interface” implementation class
    D:\BAJI\Programs\JAVA\rmi\rmi_server>javac AddService.java
    D:\BAJI\Programs\JAVA\rmi\rmi_server>
    Step-5: Start the RMI service
    1)openned a new command prompt and typed the following command
    2)d:\> rmiregistry
    Step-6: Create stub and skeleton classes
    D:\BAJI\Programs\JAVA\rmi\rmi_server>rmic AddService
    D:\BAJI\Programs\JAVA\rmi\rmi_server>
    Step-7: Create RMI Server Application which export the Server object into Naming service
    RMIServerApp.java
    ===============
    import java.rmi.*;
    public class RMIServerApp
         public static void main(String[] args) throws Exception
              AddServiceInterface asi = new AddService();
              Naming.bind("rmi://localhost/as",asi);
              System.out.println("\n\n***************** Registored into Naming Service ****************\n\n");
    Step-8: Compiling & execute
    D:\BAJI\Programs\JAVA\rmi\rmi_server>javac RMIServerApp.java
    D:\BAJI\Programs\JAVA\rmi\rmi_server>java RMIServerApp
    Exception in thread "main" java.rmi.ServerException: RemoteException occurred in
    server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: AddServiceInterface
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
    66)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
    .java:707)
    at java.lang.Thread.run(Thread.java:595)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
    RemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
    223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
    at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
    at java.rmi.Naming.bind(Naming.java:111)
    at RMIServerApp.main(RMIServerApp.java:8)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested ex
    ception is:
    java.lang.ClassNotFoundException: AddServiceInterface
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
    66)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
    .java:707)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassNotFoundException: AddServiceInterface
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:7
    07)
    at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
    at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
    at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:6
    28)
    at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294
    at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStrea
    m.java:238)
    at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1500)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
    699)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    ... 9 more
    Step-9: Create the “client object” file
                   RMIClient.java
                   ===========
    import java.rmi.*;
    public class RMIClient
         public static void main(String[] args) throws Exception
              AddServiceInterface asi = (AddServiceInterface)Naming.lookup("rmi://localhost/as");
              System.out.println(asi.add(10,20));
    Thanks & Regards,
    BSK

    The registry cannot find the class named in the exception.

  • RMI Client Code Issue

    Hello,
    Here is my client side RMI program:
    import java.rmi.*;
    public class MyRemoteClient {
    public static void main(String args[]) {
    MyRemoteClient mm = new MyRemoteClient();
    mm.go();
    public void go(){
    try{
    MyRemote service2 = (MyRemote) Naming.lookup("rmi://xxx.xxx.xx.xx/Hello");
    String s = service2.sayHello();
    System.out.println(s);
    } catch(Exception ex){ex.printStackTrace();}
    }Having started RMI Registry and Service Implementor code on the server, if I try to run the above code on the client it fire the following error:
    java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
    java.net.ConnectException: Connection refused: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at MyRemoteImpl_Stub.sayHello(Unknown Source)
    at MyRemoteClient.go(MyRemoteClient.java:11)
    at MyRemoteClient.main(MyRemoteClient.java:6)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
    ... 7 more
    I am wondering as to why is it trying to connect to a local host 127.0.1.1 instead of the IP Address specified at by"xxx.xx.xx.xx" in the program?
    I have the stub class and the service interface classes on my client-side.
    Thanks.

    I am wondering as to why is it trying to connect to a
    local host 127.0.1.1 instead of the IP Address
    specified at by"xxx.xx.xx.xx" in the program?Because that only specifies where the lookup should be done, i.e. where the Registry is. This lookup() returns a stub to your remote object which has its own IP address and port embedded into it, and that's where 127.0.0.1 is coming from - you're not doing Registry.lookup at this point, you're calling your remote method.
    This indicates a DNS or /etc/hosts misconfiguration - your primary IP address is coming up as 127.0.0.1 instead of whatever your public IP address is. Famous Linux issue. You should really fix it in your DNS or /etc/hosts, but you can work around it by setting -Djava.rmi.server.hostname=<public IP address> at the server JVM.

  • RMI Codebase Issue

    Every thing works just fine as both the Client and server runs on the same system,, but as i run one of them on a remote m/c,well i am using vmware for that, Client is not able to locate server's stub and server is not able to locate clients classes for dynamic loading..
    I am sure its an issue with the way i set the codebase url's but how should i change them.
    presently, i set them as
    file:/E:/surshikradmin/workspace/rmi-server/bin/ for server..
    and kind of same way for client.. should i add the host name too,,but how??? Any help would be highly helpful since its been years i am dealing with issue and solving it will make ma project go rock..
    Client side stack trace if it coul help!
    Computeappengine exceptionerror unmarshalling return; nested exception is: java.lang.ClassNotFoundException: Engine.ComputeappEngine_Stub java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: Engine.ComputeappEngine_Stub at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at Client.computeappprog.main(computeappprog.java:23) Caused by: java.lang.ClassNotFoundException: Engine.ComputeappEngine_Stub at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:432) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) ... 2 more

    Crossposted and answered here

  • RMI Client Issue

    Hello,
    Here is my client side RMI program:
    import java.rmi.*;
    public class MyRemoteClient {
    public static void main(String args[]) {
         MyRemoteClient mm = new MyRemoteClient();
         mm.go();
    public void go(){
         try{
              MyRemote service2 = (MyRemote) Naming.lookup("rmi://xxx.xxx.xx.xx/Hello");
              String s = service2.sayHello();
              System.out.println(s);
         } catch(Exception ex){ex.printStackTrace();}
    Having started RMI Registry and Service Implementor code on the server, if I try to run the above code on the client it fire the following error:
    java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at MyRemoteImpl_Stub.sayHello(Unknown Source)
         at MyRemoteClient.go(MyRemoteClient.java:11)
         at MyRemoteClient.main(MyRemoteClient.java:6)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
         ... 7 more
    I am wondering as to why is it trying to connect to a local host 127.0.1.1 instead of the IP Address specified at by"xxx.xx.xx.xx" in the program?
    I have the stub class and the service interface classes on my client-side.
    Thanks.

    Crossposted and answered in the RMI forum.

  • RMI-IIOP JNDI lookup returns com.sun.corba.se.internal.iiop.CDRInputStream

    I have two different RMI-IIOP java clients, one is working fine and the other is not. Both are using weblogic.jndi.WLInitialContextFactory from wlclient.jar in WLS 8.1sp5 and JDK 1.4.2_6.
    One java client is a straight-forward java main. JNDI lookup is returning EJBHome_Stub correctly loaded by sun.rmi.server.LoaderHandler$Loader
    The other java client is a complex java program with multiple threads and many jars. A thread does the same JNDI lookup as the simple java client, but the object returned is of type com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1 which has NULL classloader (bootstrap classloader).
    What condition triggered the WebLogic InitialContext to default to com.sun.corba.se.internal.iiop.CDRInputStream?

    Kevin Fung <> writes:
    This is usally symptomatic of an IOR without the corresponding stub
    being loaded, usually because the correct security manager is not
    set. However the client jar bypasses the security manager to try and
    avoid this problem, so I am confused as to why you are seeing this. Do
    you know which object it is accessing? Can you try putting IIOP stubs
    for it in the client?
    andy
    I have two different RMI-IIOP java clients, one is working fine and the other is not. Both are using weblogic.jndi.WLInitialContextFactory from wlclient.jar in WLS 8.1sp5 and JDK 1.4.2_6.
    One java client is a straight-forward java main. JNDI lookup is returning EJBHome_Stub correctly loaded by sun.rmi.server.LoaderHandler$Loader
    The other java client is a complex java program with multiple threads and many jars. A thread does the same JNDI lookup as the simple java client, but the object returned is of type com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1 which has NULL classloader (bootstrap classloader).
    What condition triggered the WebLogic InitialContext to default to com.sun.corba.se.internal.iiop.CDRInputStream?

  • RMI Connection Issue

    I am trying to implement an RMI connection and am consistently getting the message:
    -java.rmi.UnmarshalException: Return value not found; nested exception is:
    -java.lang.ClassNotFoundException
    -at sun/rmi/registry/RegistryImpl_Stub.lookup (RegistryImpl_Stub.java:109)
    -at java/rmi/Naming.lookup (Naming.java:60)
    -at client.main (client.java:9)
    client.java:9 is:
    -ServerCommands SC = (ServerCommands) Naming.lookup("rmi://localhost:1099/Thing");
    also, the server side binding is:
    -CommandsImpl acct = new CommandsImpl();
    -Naming.rebind("rmi://localhost:1099/Thing", acct);
    i dunno if i am braindead or if there is something wrong here... i had read elsewhere about delclaring the registry location, if that makes sense... if that is the case, how do i do this?
    Thanks in advance!

    well, here we are again, talking to myself ;)
    anyways, i did take your advice and a updated my code... its a little slopyy, as i didn't really go back over it, but it runs and i get that same error... KoQ (the client) cannot run without the ServerCommands.class file being along side it... even if i copy it to the directory, java doesn't like it... the only way it works is if i run KoQ(client) and the server out of the same directory and they share the ServerCommands.class file... its pointless to have to have them both share that same file, because then the server must be the client as well, both running out of that same directory.... ahhhhhhh!
    here we are:
    import com.ms.wfc.app.Application;
    import java.io.*;
    import java.net.*;
    import java.rmi.Naming;
    import java.util.Properties;
    public class KoQ {
         public static void main(String args[])
              try {
                   ServerCommands server = (ServerCommands) Naming.lookup("rmi://localhost:1089/KoQ");
                   Application.run(new KoQLogin());
              }//end try
              catch (Exception e) {
                   e.printStackTrace();
                   Application.run(new KoQDisconnect());
              }//end catch
         }//end main
    }//end KoQ
    import java.rmi.Naming;
    import java.rmi.server.UnicastRemoteObject;
    import java.rmi.RemoteException;
    import java.rmi.registry.Registry;
    import java.io.*;
    public class Server extends UnicastRemoteObject implements ServerCommands {
         public Server() throws RemoteException {super();}
      public Character Login (String Username, String Password) throws RemoteException {
           try {
                File f = new File("c:\\KoQ\\Characters\\"+Username);
                if (f.exists()) {
                     FileInputStream fis = new FileInputStream(f);
                     ObjectInputStream ois = new ObjectInputStream(fis);
                     Character CHARACTER = (Character) ois.readObject();
                     if (CHARACTER.vfyLogin(Password)) {
                          return CHARACTER;
                     }//end if
                     else {
                          return null;
                     }//end else
                } //end if
                else {
                     return null;
                } //end else
           } //end try
           catch (Exception e){
                return null;
           } //end catch
      }//end login
      public boolean CreateCharacter(String Username, String Password) throws RemoteException {
           Character CHARACTER = new Character(Username, Password);
           //Check if character exists
           return saveObject(CHARACTER, "c:\\KoQ\\Characters\\"+Username);
      public boolean saveObject(Object obj, String dir)
              try {
                   File objSaver = new File(dir);
                   FileOutputStream fos = new FileOutputStream(objSaver);
                   ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(obj);
                   System.out.println("OK, file was made...");
                   return true;
              }//end try
              catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("AHHHHHHH! obj Could not be saved!");
                   return false;
              }//end catch
         }//end caveCharacterInfo
      public  static void main(String args[]) {
        try {
          Registry r = java.rmi.registry.LocateRegistry.createRegistry(1089);
         ServerCommands obj = new Server();
    System.out.print("RMI rebinding...");
          Naming.rebind("//localhost:1089/KoQ", obj);
    System.out.println("complete");
          System.out.println("Server ready");
        }//end try
         catch (Exception e) {
              System.out.println("Server: exception:");
              e.printStackTrace();
              System.out.println("AHHHHHHHHHHHHHHHH!");
        }//end catch
      }//end main
    }//end Server
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface ServerCommands extends Remote {
         Character Login (String Username, String Password) throws java.rmi.RemoteException;
         boolean CreateCharacter (String Username, String Password) throws java.rmi.RemoteException;
    }//end ServerCommands
    **************************************again i threw out the useless classes from here (Character.class, etc); does ANYONE have an idea? this has been a problem for days and i really would like to know what it wrong... i am sure it is a problem on my part, and maybe you can see my mistakes?
    Thanks...

Maybe you are looking for

  • Watch TV thru firewire?

    Is there a program I can use to watch TV through my mac? I have a tuner/vcr here already with a firewire that goes into my mac, which I use to capture footage into Final Cut Pro. I can lauch FCP and open the capture window, and then I can see what's

  • New activation code for Elements

    Hi, My pc's hard drive recently failed , and I have replaced the pc with a Mac mini. Unfortunately, I cannot access the pc to deactivate the licence to allow me to activate it on the mac. Could you please help with this by providing a new licence cod

  • Can't open iPhoto, wants latest version., Can't open iPhoto, wants latest version.

    I was sent a CD of photos which included the iPhoto library file.  I tried to open the file but got the message that it wasn't compatible with the older version of iPhoto on my Mac.  I didn't think this would be a problem and just browsed to the fold

  • Airport (not extreme) and WPA encryption with G4 Titanium.

    I just purchased the Linksys WRT150N router and basically it works great-with 3/4 of my Macs. However, my 'old' G4 TI 550 with an airport card refuses to work with the WPA Personal security. It either says this network does not support this encryptio

  • Regarding deploying Portal Application

    Hi, We got a sample project based on KM API done in NWDS. I want to deploy this application into the portal. How can i deploy this application into the portal and see the report? Regards, Kamini