Couldn't locate POA
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, October 26, 2001 07:32 AM

Hi, I started a gatekeeper and server.I am running a simple client which is corba applet(My requirement is , Applet display one text field and button, whenever I click the button,it calls a method on server object and displays some string in text field.) Applet is initialized, but whenevr i click the button, it's telling couldn't locate poa. Here is my Applet code and Html file content and error Applet code public void init() { add(new Label("Account Name")); add(_nameField = new TextField("Jack B. Quick")); add(_checkBalance = new Button("Check Balance")); add(_balanceField = new TextField());    More>>

Hi,
I started a gatekeeper and server.I am running a simple client which is corba applet(My requirement is , Applet display one text field and button, whenever I click the button,it calls a method on server object and displays some string in text field.)
Applet is initialized, but whenevr i click the button, it's telling couldn't locate poa.

Here is my Applet code and Html file content and error



Applet code



public void init() {

add(new Label("Account Name"));

add(_nameField = new TextField("Jack B. Quick"));

add(_checkBalance = new Button("Check Balance"));

add(_balanceField = new TextField());

_checkBalance.addActionListener(this);

_balanceField.setEditable(false);

orb = org.omg.CORBA.ORB.init(this, null);

System.out.println("orb..."+orb);


}


public void actionPerformed(ActionEvent e){

if(e.getSource()==_checkBalance){

byte[] managerId = "BankManager".getBytes();

_manager = Bank.AccountManagerHelper.bind(orb,"/bank_agent_poa", managerId);

Bank.Account account = _manager.open(_nameField.getText());

_balanceField.setText(Float.toString(account.balance()));


}

}




Html file code












Error




Exception occurred during event dispatching:
org.omg.CORBA.OBJECT_NOT_EXIST:
Could not locate the following POA:
poa name : /bank_agent_poa
minor code: 0 completed: No
at com/inprise/vbroker/orb/LocatorBidder.getBid (LocatorBidder.java:32)
at com/inprise/vbroker/ProtocolEngine/ManagerImpl.startBidding (ManagerImpl.java:156)
at com/inprise/vbroker/ProtocolEngine/ManagerImpl.getConnector (ManagerImpl.java:147)
at com/inprise/vbroker/orb/DelegateImpl._bind (DelegateImpl.java:196)
at com/inprise/vbroker/orb/DelegateImpl.bind (DelegateImpl.java:151)
at com/inprise/vbroker/CORBA/portable/ObjectImpl._bind (ObjectImpl.java:58)
at com/inprise/vbroker/orb/ORB.bind (ORB.java:1242)
at Bank/AccountManagerHelper.bind (AccountManagerHelper.java:72)
at Bank/AccountManagerHelper.bind (AccountManagerHelper.java:62)
at ClientApplet.actionPerformed (ClientApplet.java:47)
at java/awt/Button.processActionEvent (Button.java)
at java/awt/Button.processEvent (Button.java)
at java/awt/Component.dispatchEventImpl (Component.java)
at java/awt/Component.dispatchEvent (Component.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)    <<Less
About | Sitemap | Contact