[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Problem registering Callback applet in weblogic 8.1 RMI

Posted on 2004-11-22
6
Medium Priority
?
454 Views
Last Modified: 2013-12-10
Hi,

I am using a signed applet which is loaded from the web application. This applet is used to communicate to the weblogic RMI Sever. (both the web application and RMI are in same server and removed the applet and tried with normal java client, it fails in both the cases and giving the same exception)

This is my code to export and register the applet.

String serverName = "WLRMISERVER";
mRmiServer = (WLRMIServer) ctx.lookup(serverName);
CTIAppletCallback callback = new CTICommunicationApplet();//Just for Testing
System.out.println("Exporting Object");
RemoteStub stub = UnicastRemoteObject.exportObject(callback); <b> (Fails here, if stubs are not there)</b>
System.out.println("Object Exported ::"+stub);
mRmiServer.registerCallback((CTIAppletCallback)stub); <b>(Fails here, if i generate the stubs using JRMP)</b>
System.out.println("Call back registered");


I can able to call the remote functions of the RMI Server, but while registering the applet for callback, I am getting the following exception.

<b>//If stubs are generated by JRMP otherwise StubNotFoundException
Exporting Object
Object Exported ::com.ehsn.cti.applet.CTICommunicationApplet_Stub[RemoteStub [ref: endpoint:[192.168.69.32:2465](local),objID:[0]]]]
1, Client got exception
java.rmi.NoSuchObjectException: CORBA INV_OBJREF 0 No; nested exception is:
        org.omg.CORBA.INV_OBJREF: com.ehsn.cti.applet.CTICommunicationApplet_Stub not exported or is a JRMP stub  vmcid: 0x0  minor code: 0  completed: No
        at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:94)
        at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
        at com.ehsn.cti.weblogic.rmi.server._WLRMIServer_Stub.registerCallback(Unknown Source)
        at com.ehsn.cti.applet.WLRMITester.run(WLRMITester.java:77)
        at java.lang.Thread.run(Thread.java:534)
Caused by: org.omg.CORBA.INV_OBJREF: com.ehsn.cti.applet.CTICommunicationApplet_Stub not exported or
 is a JRMP stub  vmcid: 0x0  minor code: 0  completed: No
        at com.sun.corba.se.internal.util.Utility.autoConnect(Utility.java:175)
        at com.sun.corba.se.internal.javax.rmi.CORBA.Util.writeRemoteObject(Util.java:122)
        at javax.rmi.CORBA.Util.writeRemoteObject(Util.java:109)
        ... 3 more
</b>

Can anybody provide me a sample code for callback applet using weblogic RMI and steps to install the same.

Please help me, this is very urgent.

Thanks and Regards,
Jamal
0
Comment
Question by:ja_jamal
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
vikraman_b earned 500 total points
ID: 12662686
0
 

Author Comment

by:ja_jamal
ID: 12665200
Hi Vikram,

Do you have the Stock Applet (All Java Files) sample code......

Thanks and Regards,
Jamal
0
 
LVL 3

Expert Comment

by:vikraman_b
ID: 12665573
Hi jamal,
i dont have the source....
just try with the concept
0
 

Author Comment

by:ja_jamal
ID: 12693191
Hi Vikram,

To execute the client application, it needs the weblogic.jar.

Weblogic.jar is 30 MB in size, wlclient.jar is not having all the files for RMI.

Is there any client jar file provided by weblogic for RMI Clients?.

Thanks and Regards,
Jamal
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question