2

Resolved

The batch callback indicated an error ...

description

Hello,
 
first I wanna thank you for the great effort made in this project, it really added a value in this front.
 
I just have a small concern, it's the same comment posted from aggallentes and boblusk (comments on the homepage) which is as follows:
 
  • I created a very simple Orchestration with one receive shape that binds to a TCP receive location and one send shape that is bound to to send port (FILE).
  • the orchestration contains a transform shape that simply transform the "In" Msg to the "Out" Msg.
  • after deploying the application and binding the orchestration properly, I posted a sample message (using the "TCP Client for BizTalk TCP Adapter" application).
  • querying the Active instances resulted in two suspended instances) as attached.
     
     
    I attached the source code of the project in order to track the case. I also like to highlight that I followed the Adapter Installation Manual step by step.
     
    Awaiting feedback.
     
    Kindest Regards,
    Mike

file attachments

comments

jplummer wrote May 16, 2007 at 10:07 AM

Ok first appologies to Mike and also aggallentes and boblusk for delay in getting to this and thanks for providing a repro. I will take a look and get back to this list

Regards

jplummer wrote May 16, 2007 at 1:54 PM

Can you also attach the binding file and also let me know what settings you were using for the "TCP Client for BizTalk TCP Adapter" ?to isolate a config problem with the test harness, what you can also do is:-

File Rcv Location -> TCP Send Port -> TCP Receive Port (This is wired up to your receive shape in the orchestration) -> File Send Port (Which is wired to your Send shape in the Orchestration)

Not saying there isnt a problem but it maybe a config issue (normally related to start/end frame)The other thing to attach to this thread is the log file. Please go into the BTSNTSvc.exe.config file and switch on verbos (set to 4 in the file)

thx

jplummer wrote May 16, 2007 at 2:25 PM

Ok i tried your solution and of course it worked for mehere is the trace16/05/2007 15:19:33.659: 21: The listener for receive location TCP://tvpbts2006:4000 is starting.16/05/2007 15:19:33.659: 21: Creating blocking synchronous listener on port 4000.16/05/2007 15:19:33.809: 39: Starting main blocking listener thread.16/05/2007 15:19:33.809: 39: Waiting for new connection on port 4000 ...16/05/2007 15:19:33.809: 21: The listener for receive location TCP://tvpbts2006:4000 has started.16/05/2007 15:21:25.300: 39: Accepted new socket on port 4000 from client 127.0.0.1:1116.16/05/2007 15:21:25.300: 39: The dispatcher has received a new work item of type BatchWorkItem to dispatch to a worker thread.16/05/2007 15:21:25.300: 39: Waiting for new connection on port 4000 ...16/05/2007 15:21:25.320: 16: A work item of type BatchWorkItem has been dispatched to worker thread .16/05/2007 15:21:25.320: 16: The worker thread TcpRecvBatchWorkerThread22 is starting.16/05/2007 15:21:25.350: 22: The worker thread TcpRecvBatchWorkerThread22 is waiting for work...16/05/2007 15:21:25.350: 16: The worker thread TcpRecvBatchWorkerThread22 has started.16/05/2007 15:21:25.350: 22: There is work to be done on thread TcpRecvBatchWorkerThread22, getting BizTalk TransportProxy batch to submit messages.16/05/2007 15:21:25.350: 22: Dequeued work for receive location TCP://tvpbts2006:4000 on thread TcpRecvBatchWorkerThread22.16/05/2007 15:21:25.350: 16: The dispatcher is waiting for work...16/05/2007 15:21:25.400: 22: About to receive data on socket using the following parameters: frame start = 5B 53 5D, frame end = 5B 45 5D, encoding = System.Text.ASCIIEncoding, data buffer size = 2048, accept multiple messages = False.16/05/2007 15:21:26.431: 22: The receive operation on the socket timed out therefore it is assumed that the client has no more data to send.16/05/2007 15:21:26.431: 22: There are no messages in the batch - nothing to submit.16/05/2007 15:21:26.431: 22: The worker thread TcpRecvBatchWorkerThread22 is waiting for work...16/05/2007 15:23:12.524: 39: Accepted new socket on port 4000 from client 127.0.0.1:1117.16/05/2007 15:23:12.524: 39: The dispatcher has received a new work item of type BatchWorkItem to dispatch to a worker thread.16/05/2007 15:23:12.524: 39: Waiting for new connection on port 4000 ...16/05/2007 15:23:12.524: 16: A work item of type BatchWorkItem has been dispatched to worker thread TcpRecvBatchWorkerThread22.16/05/2007 15:23:12.524: 16: The dispatcher is waiting for work...16/05/2007 15:23:12.524: 22: There is work to be done on thread TcpRecvBatchWorkerThread22, getting BizTalk TransportProxy batch to submit messages.16/05/2007 15:23:12.524: 22: Dequeued work for receive location TCP://tvpbts2006:4000 on thread TcpRecvBatchWorkerThread22.16/05/2007 15:23:12.524: 22: About to receive data on socket using the following parameters: frame start = 5B 53 5D, frame end = 5B 45 5D, encoding = System.Text.ASCIIEncoding, data buffer size = 2048, accept multiple messages = False.16/05/2007 15:23:13.535: 22: The receive operation on the socket timed out therefore it is assumed that the client has no more data to send.16/05/2007 15:23:13.535: 22: There are no messages in the batch - nothing to submit.16/05/2007 15:23:13.535: 22: The worker thread TcpRecvBatchWorkerThread22 is waiting for work...

jplummer wrote May 16, 2007 at 2:27 PM

on the TCP Client i set start frame to [S]end frame to [E]

on the tcp rcv location i chaanged 3 settings:-Port: 4000Start Frame: [S]End Frame: [E]

and i cut & paste this message into the UI, hit connect and hit send

<ns0:Request xmlns:ns0="http://LinkDev.Pilots.TCPAdapter.Testing.IncomingMessage"><MessageID>Hello </MessageID><MessageBody>World</MessageBody></ns0:Request>

wrote Aug 15, 2007 at 10:44 AM

jplummer wrote Aug 17, 2007 at 8:59 AM

The solution attached is working as per my comments

wrote Aug 17, 2007 at 8:59 AM

wrote Feb 13, 2013 at 9:10 PM

wrote May 16, 2013 at 3:39 AM

wrote May 16, 2013 at 3:39 AM

wrote Jun 14, 2013 at 7:08 AM