Org.jinterop.dcom.com mon. JIException: Access is denied. X80070005 [0]
The at org. Jinterop. Dcom. Core. JIRemUnknownServer. Call (177) JIRemUnknownServer. Java:
The at org. Jinterop. Dcom. Core. JIRemUnknownServer. AddRef_ReleaseRef (JIRemUnknownServer. Java: 199)
The at org. Jinterop. Dcom. Core. JIComObjectImpl. AddRef (JIComObjectImpl. Java: 123)
The at org. Jinterop. Dcom. Core. JIComServer. CreateInstance (JIComServer. Java: 876)
At org. Openscada. Opc. Lib. Da. Server connect (121) Server. Java:
The at org. Openscada. Opc. Lib. Da. AutoReconnectController. PerformReconnect (AutoReconnectController. Java: 208)
The at org. Openscada. Opc. Lib. Da. AutoReconnectController. Access the $000 (AutoReconnectController. Java: 19)
The at org. Openscada. Opc. Lib. Da. AutoReconnectController $1. The run (AutoReconnectController. Java: 164)
The at Java. Lang. Thread. The run (Thread. Java: 748)
Under Caused by: org.jinterop.dcom.com mon. JIRuntimeException: Access is denied. X80070005 [0]
The at org. Jinterop. Dcom. Core. JICallBuilder. ReadResult (JICallBuilder. Java: 1289)
The at org. Jinterop. Dcom. Core. JICallBuilder. Read (1166) JICallBuilder. Java:
The at NDR. NdrObject. Decode (NdrObject. Java: 41)
At the RPC. ConnectionOrientedEndpoint. Call (141) ConnectionOrientedEndpoint. Java:
At the RPC. Stub. Call (134) Stub. Java:
The at org. Jinterop. Dcom. Core. JIRemUnknownServer. Call (164) JIRemUnknownServer. Java:
. 8 common frames omitted
Connection code below
ServerList ServerList=new ServerList (host, user, password, "");
ConnectionInformation ci=new ConnectionInformation ();
Ci. SetHost (host);
Ci. SetDomain (" ");
Ci. SetUser (user);
Ci. SetPassword (password);
//ci. SetProgId (progId);
Ci. SetClsid (serverList. GetClsIdFromProgId (progId));
JISystem. SetJavaCoClassAutoCollection (false);
JISystem. SetAutoRegisteration (true);
OpcServer=new Server (ci, Executors newSingleThreadScheduledExecutor ());
Autos dropped=new AutoReconnectController (opcServer);
The connect ().
Tried to modify the source code for the post said, but the following problems
Under Caused by: Java. Lang. NoSuchMethodError: org. Bouncycastle. Crypto. StreamCipher. ProcessBytes ([BII [BI) V
CodePudding user response:
Bouncycastle version conflict, only 1.50 processBytes ([BII [BI) V return is void, other are int version returns, since prompt the, that code calls to version 1.50, but your code should actually be loading is a high version of the JAR package,