Following is the error i receive after attempting to drag and drop WinCC Tags from OPC Browser into SQLTags. Actually the drop is successful and the items appear in SQLTags but they have a red cross on them and the Data Quality property says OPC not connected. Right after this happens, the OPCServer.WinCC connection on the status page shows faulted(It showed connected before) and the OPC browser in Designer gives an error:
Error browsing OPC
Here is the error in the OPC Connections Status page:
Error advising subscription callback. DCOM security settings are likely preventing the OPC server from connecting to the client for callbacks.
Details are:
java.lang.Exception: Error advising subscription callback. DCOM security settings are likely preventing the OPC server from connecting to the client for callbacks.
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription.oleloop_updateGroup(COMSubscription.java:634)
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription$Connector.internalRun(COMSubscription.java:680)
com.inductiveautomation.opccom.wrapper.OleJob.run(OleJob.java:47)
com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:566)
com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:508)
com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x8000FFFF; E_UNEXPECTED (Catastrophic failure)
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:744)
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:723)
com.jniwrapper.win32.ole.impl.IConnectionPointImpl.advise(SourceFile:93)
com.inductiveautomation.opccom.wrapper.subscriptions.DataChangeDispatcher.advise(DataChangeDispatcher.java:86)
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription.oleloop_updateGroup(COMSubscription.java:632)
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription$Connector.internalRun(COMSubscription.java:680)
com.inductiveautomation.opccom.wrapper.OleJob.run(OleJob.java:47)
com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:566)
com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:508)
Please note that removing the OPCServer.WinCC connection and restarting the PC clears this error. Creating a new OPCServer.WinCC connection shows connected. So i dont think its a DCOM issue. Moreover i am using it locally so it shouldnt really matter. Its only after dragging and dropping tags from the OPC browser into SQLTags in the designer that this connection gets faulted.
I have disabled the firewall and taken care of all the DCOM settings just in case. The WinCC runtime was open and running on the same system.
System Details:
Windows XP SP3
WinCC 6.2 SP2
Ignition 7.1.2
Any clues about what might be going wrong here?
EDIT:
Console Log info:
7/1/10 5:14:58 PM - Server ‘OPCServer’ state set to [CONNECTING]
7/1/10 5:14:58 PM - Attempting to connect COM server ‘OPCServer’
7/1/10 5:15:01 PM
Unable to advise server shutdown hook. Server may not support this functionality.
com.inductiveautomation.ignition.gateway.web.pages.config.systemconsole.LogViewer$SerializableLoggingEvent$ClonedThrowable: COM object method returns error code: 0x80070005; E_ACCESSDENIED (Access is denied.)
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:744)
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:723)
com.jniwrapper.win32.ole.impl.IConnectionPointImpl.advise(SourceFile:93)
com.inductiveautomation.opccom.wrapper.shutdown.ServerShutdownDispatcher.advise(ServerShutdownDispatcher.java:52)
com.inductiveautomation.opccom.COMServerImpl$ConnectServerJob.internalRun(COMServerImpl.java:744)
com.inductiveautomation.opccom.wrapper.OleJob.run(OleJob.java:47)
com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:566)
com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:508)
7/1/10 5:15:01 PM - Error connecting OPC-COM server.
7/1/10 5:15:01 PM - Disconnecting server ‘OPCServer’
7/1/10 5:15:01 PM - Server ‘OPCServer’ state set to [CLOSED]
7/1/10 5:15:01 PM - Server ‘OPCServer’ state set to [FAULTED]