qq_34696943 2018-03-27 11:18 采纳率: 20%
浏览 3020
已结题

java语言用utgrade开发opc客户端提示有类未注册?

INFO main - Failed to connect to server
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.init(JIComServer.java:664)
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:561)
at org.jinterop.dcom.core.JIComServer.(JIComServer.java:524)
at org.openscada.opc.lib.da.Server.connect(Server.java:108)
at cn.jasgroup.opc.openscada.OpcOperator.init(OpcOperator.java:281)
at cn.jasgroup.opc.openscada.OpcOperator.getConnection(OpcOperator.java:298)
at cn.jasgroup.opc.openscada.OpcOperator.(OpcOperator.java:45)
at cn.jasgroup.opc.openscada.Test.main(Test.java:10)
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.JIRemActivation.read(JIRemActivation.java:225)
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.init(JIComServer.java:649)
... 7 more

  • 写回答

2条回答 默认 最新

  • oliver223 2018-05-25 01:20
    关注

    ServerList serverList = new ServerList(CONFIG_HOST,CONFIG_USERNAME, .CONFIG_PASSWORD,CONFIG_DOMAIN);
    这样就会报错。
    如果参数中加入 calssID 就不会报错

    我也在寻找原因

    评论

报告相同问题?

悬赏问题

  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境
  • ¥188 寻找能做王者评分提取的
  • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
  • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件