Menu

#24 Problem connecting to MX4J 2.0.1

v1.2b3
open
5
2004-04-13
2004-04-13
David
No

I am getting following exception while trying to a Server
running on MX4J server.

java.lang.ClassCastException
at
mx4j.connector.rmi.jrmp.JRMPConnector.narrow
(JRMPConnector.java:28)
at mx4j.connector.rmi.RMIConnector.connect
(RMIConnector.java:112)
at
org.mc4j.console.connection.Mx4jConnectionNode.connec
t(Mx4jConnectionNode.java:70)
at
org.mc4j.console.connection.ReconnectAction.performAct
ion(ReconnectAction.java:37)
at org.openide.util.actions.NodeAction$3.run
(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction
(ModuleActions.java:71)
at
sun.reflect.GeneratedMethodAccessor44.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at
org.openide.util.actions.CallableSystemAction.invokeActio
n(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000
(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run
(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)

Please let me know whats wrong here...

Discussion

  • Greg Hinkle

    Greg Hinkle - 2004-04-13
    • assigned_to: nobody --> ghinkl
    • status: open --> pending
     
  • Greg Hinkle

    Greg Hinkle - 2004-04-13

    Logged In: YES
    user_id=773314

    MX4J 2.x doesn't ship by default with the JRMP connector so
    I haven't tested with it. Most people using MX4J 2.x are using
    the JSR-160 style remoting implementation as per their
    documentation. If you are using this type of adaptor, you
    should use the "JSR-160" connection type, rather than
    the "MX4J" connection type.

    If you are trying to use the uncompiled JRMP adaptor in 2.x
    let me know and I'll look at it.

     
  • David

    David - 2004-04-13

    Logged In: YES
    user_id=1019428

    Thanks

    Problem is resolved after using JSR160 connector. Are we not
    using RMI connector while using MX4J type connection?

     
  • David

    David - 2004-04-13
    • status: pending --> open
     
  • Archie Cobbs

    Archie Cobbs - 2004-09-02

    Logged In: YES
    user_id=99943

    Please update this page:

    http://mc4j.sourceforge.net/usageMX4J.html

    with the information described below, or at least a pointer
    to this bug for MX4J 2.x users. This would have saved me
    some head scratching.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.