S Stephenz43 Member Licensed User Longtime User Dec 18, 2015 #1 I just upgraded to 5.50 and started getting the following error during building. Anyone have a reason as to why I'm getting this? Error description: Cannot cast type: {Type=String,Rank=0, RemoteObject=True} to: {Type=Byte,Rank=1, RemoteObject=True}
I just upgraded to 5.50 and started getting the following error during building. Anyone have a reason as to why I'm getting this? Error description: Cannot cast type: {Type=String,Rank=0, RemoteObject=True} to: {Type=Byte,Rank=1, RemoteObject=True}
KMatle Expert Licensed User Longtime User Dec 18, 2015 #2 The message is quite clear: You try to put a string into a Byte (Array). PS: Code tags are better to read. Even for error Messages Upvote 0
The message is quite clear: You try to put a string into a Byte (Array). PS: Code tags are better to read. Even for error Messages
S Stephenz43 Member Licensed User Longtime User Dec 18, 2015 #3 The error appears to be thrown from DBRequestManager. I am at a lost as to why the error after using DBRequestmanager successfully for a year Upvote 0
The error appears to be thrown from DBRequestManager. I am at a lost as to why the error after using DBRequestmanager successfully for a year
Erel B4X founder Staff member Licensed User Longtime User Dec 20, 2015 #4 Can you post the line that causes this error? Upvote 0
S Stephenz43 Member Licensed User Longtime User Dec 20, 2015 #5 Erel said: Can you post the line that causes this error? Click to expand... Public Sub ExecuteBatch(ListOfCommands As List, Tag As Object) Dim j As HttpJob Dim ms As OutputStream Dim out2 As OutputStream = StartJob(j,ms, Tag) WriteInt(ListOfCommands.Size, out2) For Each Command As DBCommand In ListOfCommands WriteObject(Command.Name, out2) WriteList(Command.Parameters, out2) Next out2.Close j.PostBytes(link & "?method=batch", ms.ToBytesArray) <----------------------------- compiling stops and crashes End Sub Upvote 0
Erel said: Can you post the line that causes this error? Click to expand... Public Sub ExecuteBatch(ListOfCommands As List, Tag As Object) Dim j As HttpJob Dim ms As OutputStream Dim out2 As OutputStream = StartJob(j,ms, Tag) WriteInt(ListOfCommands.Size, out2) For Each Command As DBCommand In ListOfCommands WriteObject(Command.Name, out2) WriteList(Command.Parameters, out2) Next out2.Close j.PostBytes(link & "?method=batch", ms.ToBytesArray) <----------------------------- compiling stops and crashes End Sub
Erel B4X founder Staff member Licensed User Longtime User Dec 21, 2015 #6 Can you upload the project (File - Export as zip)? Upvote 0
S Stephenz43 Member Licensed User Longtime User Dec 21, 2015 #7 I uploaded the file . Any help would be appreciated Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 22, 2015 #8 I recommend you to remove HttpUtils and HttpUtilsService modules. You should only use HttpUtils2. You should also remove HttpJob as you are referencing HttpUtils2 which already implements this class internally. Upvote 0
I recommend you to remove HttpUtils and HttpUtilsService modules. You should only use HttpUtils2. You should also remove HttpJob as you are referencing HttpUtils2 which already implements this class internally.