Hi all,
[excuse me for my poor English]
I develop a code that comes following:
- public class ConfigureDevice extends JApplet {
- // Some Code
- SAServer sas = new SAServer();
sas.start();
SASProtocolOptions opt = new SASProtocolOptions();
opt.setProtocol(SASClient.TCP_PROTOCOL);
opt.setApplet(this);
api = new SnmpAPI(false);
ses = new SnmpSession(api);
ses.setProtocolOptions(opt);
try{
ses.open();
}
catch (SnmpException e)
{
label.setText(e.getMessage()); // Type of label is JLabel, which shows an exception.
- label.validate();
} - // Some Code
- }
As you see, my class extends JApplet. So, I run code by JAppletViewer and seems that everything is OK, but when I run code by IE, I discovered that SnmpSession(here is "ses") unable to create a SASClient. If I want to negotiate carefully, I catch this Error:
- Error in open: Unable to create SASClient
Thanks to all :)