[Solved in 7.6.7] 7.6.6 Nullref checking webservice URL - VisualCron - Forum

Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline ErikC  
#1 Posted : Monday, June 8, 2015 11:19:09 AM(UTC)
ErikC

Rank: Paid support

Joined: 2/26/2008(UTC)
Posts: 1,520
Netherlands
Location: Amsterdam

Thanks: 114 times
Was thanked: 221 time(s) in 188 post(s)
Hi,

I cloned a webserice task and refreshed the URL. I received an NullrefereceException.
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at UCTaskWebService.GIIMHDIBOBJFLAGNKGDIIPEHGMJJONDKBPIJ() in C:\sourcefiles\code\VisualCron\Tasks\Reflection\UCTaskWebService.vb:line 690
   at UCTaskWebService.BFLFKBEJMOFNJNKDIFCACLNKPGFOMMPMHABH(Object  , EventArgs  ) in C:\sourcefiles\code\VisualCron\Tasks\Reflection\UCTaskWebService.vb:line 664
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e)
   at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

and
Code:
6/8/2015 11:14:19 AM	Debug	RemoveConnection->Enter
6/8/2015 11:14:19 AM	Debug	RemoveConnection->ConnClass->Before disconnect (WCF)
6/8/2015 11:14:19 AM	Debug	RemoveConnection->ConnClass->After disconnect (WCF)
6/8/2015 11:14:19 AM	Debug	RemoveConnection->Connection removed from dictionary.
6/8/2015 11:14:19 AM	Debug	Before sending ClientConnection (Delete)
6/8/2015 11:14:19 AM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange
6/8/2015 11:14:19 AM	Debug	RemoveConnection->Connection: uuid:26bef4a3-30d6-4b0b-b38c-cd6bb61a73fc;id=4 was removed
6/8/2015 11:14:19 AM	Debug	clsCommClientThread->Disconnected->Connection removed: uuid:26bef4a3-30d6-4b0b-b38c-cd6bb61a73fc;id=4
6/8/2015 11:14:19 AM	Debug	ConnectionManager_ConnectionRemoved->Connection removed (Server Event): uuid:26bef4a3-30d6-4b0b-b38c-cd6bb61a73fc;id=4
6/8/2015 11:14:19 AM	Err	ClientError: System.ServiceModel.CommunicationException: There was an error while trying to serialize parameter http://tempuri.org/:message. The InnerException message was 'Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.31600, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.'.  Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.31600, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.OnHandleReference(XmlWriterDelegator xmlWriter, Object obj, Boolean canContainCyclicReference)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteArrayOfMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
   at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runti
6/8/2015 11:14:19 AM	Err	ClientError: System.ServiceModel.CommunicationObjectAbortedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.

Server stack trace: 
   at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at CommServer.Classes.WCF.IWCFServiceCallback.OnMessageReceived(Message message)
   at CommServer.Classes.WCF.WCFServiceContract.Send(Message message)

Regards,
Erik

Edited by moderator Monday, June 8, 2015 2:50:09 PM(UTC)  | Reason: Not specified

Uses Visualcron since 2006.
Offline Support  
#2 Posted : Monday, June 8, 2015 12:52:42 PM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,263

Thanks: 878 times
Was thanked: 450 time(s) in 427 post(s)
Can you update to 7.6.7? We have added some debugging. It should not crash but there should be a popup that is interesting for us.
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Offline ErikC  
#3 Posted : Monday, June 8, 2015 1:13:09 PM(UTC)
ErikC

Rank: Paid support

Joined: 2/26/2008(UTC)
Posts: 1,520
Netherlands
Location: Amsterdam

Thanks: 114 times
Was thanked: 221 time(s) in 188 post(s)
Hi,

i installed 7.6.7 and did the same. Clone a Webservice task an refresh the URL.
I don't get a popup anymore wit hthe null reference, but a popup with a connection loss': 'failed to connect to server'.
After reconnecting I receive another popup with 'Error loading assembly'

Error reloading assembly: System.NullreferenceException: Object reference not set to an instande of an object.
UCTaskWebService.vb:line 703

In the logs:
Code:
6/8/2015 1:12:10 PM	Debug	2015-06-08 11:12:10.238: MessageRecived From (in) uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3: AssemblyInfoGet
6/8/2015 1:12:10 PM	Debug	2015-06-08 11:12:10.597: MessageSend To (Private) uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3: AssemblyInfo
6/8/2015 1:12:10 PM	Debug	RemoveConnection->Enter
6/8/2015 1:12:10 PM	Debug	RemoveConnection->ConnClass->Before disconnect (WCF)
6/8/2015 1:12:10 PM	Debug	RemoveConnection->ConnClass->After disconnect (WCF)
6/8/2015 1:12:10 PM	Debug	RemoveConnection->Connection removed from dictionary.
6/8/2015 1:12:10 PM	Debug	Before sending ClientConnection (Delete)
6/8/2015 1:12:10 PM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange
6/8/2015 1:12:10 PM	Debug	RemoveConnection->Connection: uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3 was removed
6/8/2015 1:12:10 PM	Debug	clsCommClientThread->Disconnected->Connection removed: uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3
6/8/2015 1:12:10 PM	Debug	ConnectionManager_ConnectionRemoved->Connection removed (Server Event): uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3
6/8/2015 1:12:10 PM	Err	ClientError: System.ServiceModel.CommunicationException: There was an error while trying to serialize parameter http://tempuri.org/:message. The InnerException message was 'Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.17715, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.'.  Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.17715, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.OnHandleReference(XmlWriterDelegator xmlWriter, Object obj, Boolean canContainCyclicReference)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteArrayOfMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
   at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runti
6/8/2015 1:12:10 PM	Err	ClientError: System.ServiceModel.CommunicationObjectAbortedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.

Server stack trace: 
   at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at CommServer.Classes.WCF.IWCFServiceCallback.OnMessageReceived(Message message)
   at CommServer.Classes.WCF.WCFServiceContract.Send(Message message)
6/8/2015 1:12:12 PM	Debug	ConnectionManager_ConnectionAdded->ClientConnected: uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=4
6/8/2015 1:12:12 PM	Debug	Before sending ClientConnection (Insert)
6/8/2015 1:12:12 PM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange
6/8/2015 1:12:12 PM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange


Regards
Erik
Uses Visualcron since 2006.
Offline Support  
#4 Posted : Monday, June 8, 2015 1:15:25 PM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,263

Thanks: 878 times
Was thanked: 450 time(s) in 427 post(s)
When did you do this? We updated the exe about 3 hours ago.
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Offline ErikC  
#5 Posted : Monday, June 8, 2015 1:17:41 PM(UTC)
ErikC

Rank: Paid support

Joined: 2/26/2008(UTC)
Posts: 1,520
Netherlands
Location: Amsterdam

Thanks: 114 times
Was thanked: 221 time(s) in 188 post(s)
Just now.
Uses Visualcron since 2006.
Offline Support  
#6 Posted : Monday, June 8, 2015 2:07:45 PM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,263

Thanks: 878 times
Was thanked: 450 time(s) in 427 post(s)
Please re-download and test again:

http://www.visualcron.co....aspx?g=posts&t=4994
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Offline ErikC  
#7 Posted : Monday, June 8, 2015 2:23:57 PM(UTC)
ErikC

Rank: Paid support

Joined: 2/26/2008(UTC)
Posts: 1,520
Netherlands
Location: Amsterdam

Thanks: 114 times
Was thanked: 221 time(s) in 188 post(s)
Hi Henrik,

Issue is fixed. No popup anymore, no client crash. The methods are refreshed again like it should be.

Thanks,
Erik
Uses Visualcron since 2006.
thanks 1 user thanked ErikC for this useful post.
Support on 6/8/2015(UTC)
Offline Support  
#8 Posted : Monday, June 8, 2015 2:49:44 PM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,263

Thanks: 878 times
Was thanked: 450 time(s) in 427 post(s)
Thanks for the report and feedback!
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top