JISystem.setAutoRegisteration(true);
//System.out.println(JISystem.isAutoRegistrationSet());
JISession session = JISession.createSession("myDomain", "myUserName",
"MyPassword");
ServerList serverList;
try {
serverList = new ServerList(session, "");
Collection<ClassDetails> serverListWithDetails = serverList
.listServersWithDetails(new Category[] {},
new Category[] {});
for (ClassDetails cd : serverListWithDetails) {
System.out.println(cd.getClsId());
}
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JIException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}org.jinterop.dcom.common.JIException: Class not registered. If you are using a DLL/OCX , please make sure it has "DllSurrogate" flag set. Faq A(6) in readme.html. [0x80040154]
at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:1012)
at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:951)
at org.jinterop.dcom.core.JIComObjectImpl.call(JIComObjectImpl.java:295)
at org.jinterop.dcom.core.JIComObjectImpl.call(JIComObjectImpl.java:161)
at org.openscada.opc.dcom.common.impl.Helper.callRespectSFALSE(Helper.java:41)
at org.openscada.opc.dcom.list.impl.OPCServerList.getClassDetails(OPCServerList.java:95)
at org.openscada.opc.lib.list.ServerList.getDetails(ServerList.java:101)
at org.openscada.opc.lib.list.ServerList.listServersWithDetails(ServerList.java:174)
at org.openscada.opc.tutorial.SearchForServers.main(SearchForServers.java:38)
Caused by: org.jinterop.dcom.common.JIRuntimeException: Class not registered. If you are using a DLL/OCX , please make sure it has "DllSurrogate" flag set. Faq A(6) in readme.html. [0x80040154]
at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1289)
at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:1166)
at ndr.NdrObject.decode(NdrObject.java:41)
at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:141)
at rpc.Stub.call(Stub.java:134)
at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:999)
--
You received this message because you are subscribed to the Google Groups "openSCADA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openscada+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.