Luciano Bertini.
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
Good luck,
Hai Vu
v...@aecl.ca
I have another problem in running this demo. I use Orbixweb3.0 trial
version, JDK1.1.4 and run in a NT4 machine. If I run Java application
version client using javaclient1.bat, everything looks fine. But when I run
its java applet version through OW demomanager using command: appletviewer
index.html, it seems after server has successfully created an account and
return its object ref to the client, the client cannot invoke its methods
due to NO_PERMISSION exception:e.g. when client try to execute
"currAccount.makeLodgement ((float)56.90)", it got NO_PERMISSION error.
This is strange, does that means in an applet I cannot use an object which
is returned by a method of another proxy object(here is "mybank") instead
of obtained through bind method like "mybank" object?
Any clue to solve this problem? Thanks in advance!
Patrick
-------------------------------------------------
codes in Javaclient1.java:
try {
currAccount = mybank.newAccount ("chris");
display.print("Account of Chris created ");
currAccount.makeLodgement ((float)56.90);
display.print("makeLodgement finished ");
System.out.print("Balance of first account is ");
display.print(""+currAccount.balance());
mybank.deleteAccount (currAccount);
}
----------------------------------------------------------------------------
----
I got following message in the applet message box:
Attempting to bind to :bank on localhost
Account of Chris created
Unexpected system exception 1
org.omg.CORBA.NO_PERMISSION: zeng-p-c1
----------------------------------------------------------------------------
--------------------
In the meantime, I got following message from DOS promt:
E:\Iona\ORBIXW~1.0\demos\idl_demo>appletviewer index.html
[OrbixWeb: to suppress that exception, use the applet ORB.init() method]
[OrbixWeb warning: failed to load the configuration file
"OrbixWeb.properties",
using defaults]
[OrbixWeb warning: not allowed to resolve IP address of zeng-p-c1]
[New IIOP Connection (localhost,IT_daemon, null,null,pid=0) ]
[New IIOP Connection (localhost,bank, null,null,pid=0) ]
Exception occurred during event dispatching:
sun.applet.AppletSecurityException: checkexit
at sun.applet.AppletSecurity.checkExit(AppletSecurity.java:230)
at java.lang.Runtime.exit(Runtime.java:83)
at java.lang.System.exit(System.java:488)
at idl_demo.javaclient1.runDemo(javaclient1.java:100)
at OrbixWebDemoManager.DemoManager.runDemo(DemoManager.java)
at
OrbixWebDemoManager.DemoManager.clickedStartbutton(DemoManager.java)
at OrbixWebDemoManager.DemoManager.handleEvent(DemoManager.java)
at java.awt.Component.postEvent(Component.java:1884)
at java.awt.Component.postEvent(Component.java:1894)
at java.awt.Component.dispatchEventImpl(Component.java:1776)
at java.awt.Component.dispatchEvent(Component.java:1704)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)