Handling end dialog message in async trigger scenario
I have ServiceA which send message to Service B. Service A lives in a sql trigger and doesn't wait for a response from Service B. Service B pulls the message off the queue and closes the dialogue. This generates an End Dialog message that
was intended for Service A but Service A has long since moved on. Is it ok for service B to subsequently process the End Dialog message in this scenario?
Service A context = Sql Trigger
Service B context = .NET windows service manually calling TSQL Receive
For 10-20 times a day, it seems an overkill to reuse conversations.
Guess I could have an activation sp look for EndDialog messages and close them and skip all other message types (the rest would be de-queued / processed by the windows service).
Nope. You should only see the EndDialog messages. Keep in mind that this is the queue for the
initiator. The Windows service should not touch this queue. It should read the target queue.
You should really only see EndDialog messages on in that procedure, but there could be error messages as well. It can be a good idea to log these somewhere, to make troubleshooting easier.
Erland Sommarskog, SQL Server MVP, [email protected]
Similar Messages
-
How to handle duplicate messages in J2SE File scenario
Hi,
Is there any way to handle processing of duplicate messages in J2SE File adapter scenario?
Here is the scenario ,
Steps :
1. Engine picks up a message and checks the size of it.
2. Before reaching the checking interval , the adapter(file) was terminated unfortunately.
3. J2SE engine was restarted.
4. Previous file was again picked up and sent as the first time with one msgID.
5. After sometime, same file was picked up with a new msgID
6. System gets only ONE configrmation that file has been successfully transfered.
So we find two messages containing the same file.
I have checked in J2SE doc, there is a parameter called "db.exactlyOnceErrorInPendingState" which is related to DB.
Is there any similar parameter to handle the duplicate messages in FIle Adapter scenarios of J2SE Engine.
Please help me in this regard as it seems to be a new thing in J2SE AE.
Regards,
Soorya.Hi swarup,
But using OS command how can we rename /archive that file?
Module means any Custom Module or wat?
Following are the channel configurations used in File To File scenario.
File Sender :
version=30
mode=XMB2FILE
XI.httpPort=58201
XI.httpService=/test
XI.ReceiverAdapterForService=test_rcv
file.numberOfMessageTypes=1
XI.Interface=MI_test_out
XI.InterfaceNamespace=http://nestle.com/test
file.type=BIN
file.targetDir=/test_inb
file.targetFilename=unusedbutreq
file.writeMode=fromHeader.ext
file.createDir=0
file.nestleName=initial
file.writeMode=fromHeader.ext
file.nestleEXT=test
file.nestleFileOverwrite=False
File Receiver :
version=30
mode=FILE2XMB
XI.TargetURL=http://localhost:58201/test
XI.NestleTargetURL=http://localhost:58201/test
file.type=BIN
file.checkFileModificationInterval=300000
file.pollInterval=300
file.processingMode=archiveWithTimestamp
file.archiveDir=/test_out/arc
XI.QualityOfService=EO
file.numberOfMessageTypes=1
file.messageAttributes=name
XI.SenderService=test_snd
XI.Interface=MI_test_out
XI.InterfaceNamespace=http://nestle.com/test
XI.ReceiverService=test_rcv
file.nestleBadMsgDir=/test_out/bad
file.sourceDir=/test_out
file.sourceFilename=.
Do the needful help asap.
Regards,
Prakash. -
Handling SOAP Fault messages in BPM
Hi,
My scenario is Sync-Async Bridge involving File to SOAP transformation. I have used BPM as 1 file has many records and each record is required to call the web service synchronously.
In the BPM I have
Receive ---> Transform (1:n multimapping ) -
> Block (Par for Each)
In Block I have Send Sync step to call Web service . I have an exception branch for the send step for catching Fault message that is sent back from webservice for Application Fault.
Problem:
Though the Fault message is sent from web service ,in the BPM the block goes in error saying : "No exception defined for fault message ". The Exception brach is not executed.
Please suggest if anyone has come across such a scenario and solution to this.hi satesh
using "exception handler" in BPM we can handle the error messages
regards
kummari -
Error Handling and Error Messages
I already posted this in the java programming forum, but I dont think the people responded understand patterns, or what I was asking. Here is my original post, for reference I am not asking how to catch and exception, or how to display an error, I am asking about the pattern implementation.
I am currently in the process of creating my Exception model for my program, and I have a question about error messages. I was reading the book "Effective Java Programming" which deals with patterns and it states that an exception should state the error and report information on all relavent states. For instance If you have a class the modeled some sort of memory array, and an access was requested to a block of memory outside the array you should throw an ArrayIndexOutOfBoundsException("Index:" + index + ", start:" + 0 + ",end:" + Array.length) or if you made your own MemoryAddressOutOfBoundsException(same as above) which when printed should read
ArrayIndexOutOfBoundsException: Index:-1, start:0, end:0
stack trace
The pertinate information is the index, start index, and end index.
The book CLEARLY states as an industry design pattern that exceptions weather checked or unchecked should not contain user error messages. For instance with the above example one might be tempted to use this as the exception message: "The memory addres index is not a valid memory address." This is clearly a user error message.
So heres my situation. In a gui environment (command line console not visible) how do you generated a user error message, letting the user know that an internal exception has occured.
In my previous implementation of my project, I used the exception message the user error message and just reported the message on a dialog. I have heard of people using error catalogs, which centrallizes all the error messages into a single class or file.
I was wondering if and Error catalog was a good approach, how I might go about implementing one, and if not how do you the community handle user error messages.class MyAppErrors {
public static final int FILE_NOT_FOUND = 0;
public static final int DIR_NOT_FOUND = 1;
public stat final String[] errMsgs = {
"The file was not found.",
"The directory was not found.",
public String getErrMsg( int n ) { return errMsgs[n]; }
[\code]
And a nicer version would allow the calling code to pass in a substring so you could say "The file 'somename.ext' was not found." -
Handling Multiple Error Messages through EXIT_SAPMM06E_012 for ME28
Dear Team,
After Executing ME28, system will give List of PO's that are to be Released . User will select Multiple PO's and
Press Release button in Application toolbar. once it is relased, User will press save Icon for all released PO's.
Once Save icon is presed, I need to do Validation for Multiple PO's in the user Exit EXIT_SAPMM06E_012 and capture my
ErrorMessages for all Released PO's for which Validation fails.
Here in the given user Exit, one PO will be processed at a time as PO is defined as Import Parameter but it will handle all PO's
and give the output in status bar saying 'Relased Saved' for all PO's which succesfully gonethrough.
once we execute ME28, system is showing list output with PO's to be Released(As system is handling with Write statments). In this case, we dont have scenario of PBO and PAI Modules( where user can correct error if any validation fails) like we have for ME22,etc.
I have Written simpel Error Message in the User Exit.
once i tried to trigger my user exit by Releasing and Saving with One PO, Error Message is displayed ( as information Message
appears) and if i Press Exit button in Error Message, it is coming out of Transaction.
Is there any Possibilty to Handle Multiple Error Messages ( in my case for Valdiation Failed Po's) in ME28 ,after Releasing and Saving , and also user should not come out of Transaction once Error Messages are Displayed.
Thanks and Regards
SureshHi Suresh,
there is a tekpo table to handle all po items. you can put it in loop and do validations.
if any errors through, there may be a ex_messages table of type bapiret2.
or
try like this: MESSAGE E368(00) WITH TEXT-001 TEXT-002.
thanks
srinu
Edited by: srinu rao on Sep 22, 2009 3:43 AM -
Missing response message in Idoc - WS scenario
Hello
I 'm missing a response message in the follwing scenario:
Idoc-> XI -> Web service (SOAP)
A Matmas idoc is sent from R/3 to XI. In XI the Idoc is
mapped to a SOAP message and sent to a web service.
The Message Interface for the SOAP call is synchronous
and has a PushMaterialSoapOut and a PushMaterialSoapIn
messsage, which is defined in the WSDL from the
web service and imported into XI Repository.
Everything is working fine but I do not get the response
message. The web service has sent the response message. I
have traced the firewall logs and i have seen the
response.
What is wrong? Is it basically possible to have a
scenario like this?
The message must have arrived somewhere, since the web
server does not throw an exception. But where is it?
Thank you in advance
ThomasHello Stefan
>Scenarios with IDOCs are always async. Therefore you
>cannot have a response.
Ok, so I have to use BPM.
>How do you want to process the response? What should
>happen in the sender system?
I was thinking about an ALEAUD idoc which is sent back
to R/3. Therefor I have created an synchronous message
interface with the MATMAS idoc as outgoing message and an
ALEAUD as incoming message. Accordingly I have a message
mapping for the response message.
An other reaction to the response message could be to set
the message to status failed. But this is the next issue.
>In some scenarios you might use a BAPI instead of an
>IDOC for synchronous message processing, but this
>depends of many circumstance depending ofyour business
>requirement.
The process in SAP R/3 is fixed. To move to BAPI is not
an option.
Regards
Thomas -
Handling SOAP Fault Message in BPM
Hello XI SDN'ers,
I am getting SOAP Fault Message in my SOAP Scenario and I am not aware of Handling that error in my BPM. Could any one tell me, How to handle such error's in BPM?
Thanks & Regards,
Satish.hi satesh
using "exception handler" in BPM we can handle the error messages
regards
kummari -
Sync/Async BPM scenario : Problem at Integration Process..!!
Hi All,
I am doing Sync/Async BPM scenario.
start ->Receive(Request)> Transformation(Responsemap)>Send(SendtoR/3)->Send(Send Response) ---> stop.
When Iam trying to Activate, Integration process giving errors as
Source parameter AA_Payment_Req | http://XXXXXXXXX.com/SAP_PI/DirectSales/Payment not set Target parameter AA_Payment_Response | http://XXXXXXX.com/SAP_PI/DirectSales/Payment not set
Warning: Container element Response is defined but is neither initialized nor used.
But I am using them in the BPM. The same kind of scenario is working for another interface which is already running in production. When I tried to check that interface it is showing only Warning message as Container element Response is defined but is neither initialized nor used.
I tried deleting and creating again and still it is showing the same error.
Can anyone please suggest what might be the problem.
Regards
DeepthiHi,
could you pls let me know how its solved, while i am trying the same i am also getting the same problem..
could you pls explain bit more on this.
Thanks,
Venkat. -
switch (msg) {
case WM_NOTIFY:
NMHDR* nmhdr = (LPNMHDR)lparam;
switch(nmhdr->code) {
case TTN_LINKCLICK:
<code>
return TRUE;
I'm able to trap the TTN_LINKCLICK notification. However I would like to retrieve the URL text link that was clicked.
How to know what link is clicked on a Balloon tooltip after handle the TTN_LINKCLICK message ?
MCunhaBasically you don't know what link was clicked. If you need more than one link, you may need to use a different UI element to display it, like a dialog or some sort of other popup window that you have control over.
-
Exercise for sync/async bridge scenario
Hi,
Can anybody send me exercise scenario or link for sync/async bridge scenario?
Thanks
NarayanaHi Balaji,
pls check this weblogs
/people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19
/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
/people/dmitry.govberg/blog/2006/12/20/mainframe-and-sap-integration--the-synchronous-case
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
conversations
Sync - Async Bridge
BPM Sync/Async Problem
BPM Design using sync-async bridge
Regards,
Ram -
How to Handle the error message?
Hi,
Can any one help me in handling the error messages in application,
In my application, I am having 2 buttons, one is display button, and the other is reset button. When we enter wrong inputs, it prompts an error message and again we I click on reset button the application goes back to its normal stage i.e. the error message will be disappears. These things will happen in the same page. I have tryed to know the any Id/Name of error message.
So please help to handle error and skip that error then continue execute raming code.
Thanks
BunttyA few problems with this question that need clarification:
You're using a GUI, but we have no way of knowing which one -- Swing? AWT? SWT? other?
You ask how to fix your program flow and logic but don't show us the current state. Most of us can't read minds so a bit of code would be nice here.
You mention "Page". What context is this in?
A great resource that has helped me and will probably help you is an article entitled [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html] . It will tell you how to formulate your questions so that the folks here will be better able to answer them. Good luck. -
BufferReader using reaLine() is not terminating when end of message.
Hi folks,
Newby Java here. I have a situation where I am writing a Server Socket Java program where I am accepting connection from a client and the client is sending messages me. I am able to connected to the client and the client successfully send messages to me, but the problem I am running into is that it's not terminating the while loop when I read to the end of the message using a reaLine(). It's like it's hung up or something...
Here is a copy of the code.....
ss = new ServerSocket(6500, 5);
System.out.println("Listenning........waiting for connection from client");
try {
response = ss.accept();
System.out.println("Accepted connection from client");
InputStream in = response.getInputStream();
System.out.println("Input Stream Opened");
BufferedReader br = new BufferedReader(new InputStreamReader(in));
System.out.println("Buffered Stream Opened");
System.out.println("Server received: " + "\n" );
BufferedWriter bw = new BufferedWriter(new FileWriter("testing001.txt"));
String input = br.readLine();
while (input != null) {
bw.write(input);
bw.newLine();
input = br.readLine();
br.close();
bw.close();
System.out.println("Done receiving message" + "\n" );
OutputStream out = response.getOutputStream();
BufferedWriter buf = new BufferedWriter(new OutputStreamWriter(out));
buf.write(result);
System.out.println("Server sent: "+result);
buf.flush();
buf.close();
response.close();
ss.close();
catch (IOException e) {
System.out.println("Failure accepting connection: " + e);
What am I doing wrong that the while loop does not terminate when it reads to end of the message using this "readLine()"?
It does not execute the next statement after the while-loop unless you disconnect the connection from the client.
Help!readLine() will wait for more lines forever, or until the other end closes the connection. (For completeness: there are other termination situations too, mostly error conditions.)
You have a multi-line message? Send some kind of an end-of-message line and check for it in your read loop. E.g. "." on a line all by itself. Caveat: if the message itself can contain a line like that you'll need to quote that line somehow. Another approach: send the number of lines in the message first. Requires that you know the number beforehand. -
How to retain the dialog messages defined in processRequest after rendering
In my page one piece of code is there as "oapagecontext.forwardImmediatelyToCurrentPage(null,true,null);"
which is used to render back to the current page,but after rendering the dialog messages which i have defined in processRequest are not coming.
My issue is how can i retain that dialog message.Hi
You can try and use guard conditions or check the table for data, if there is no data in the table the application will return an error message.
Jarrod Williams -
WLC 5508 - LAP1242: Failed to handle capwap control message from controller
Hello everyone,
after finally successfully upgrading my WLCs from 6.0.199.4 to 7.6.100.0 there is another problem showing up...
If I want to change any configuration regarding the APs on the WLCs (which doesn't work) I get the following error-messages from the APs:
*spamApTask7: Feb 27 14:34:00.558: 00:3a:9a:d6:5d:30 Test-AP-09-03: *Feb 27 13:34:00.169: %CAPWAP-3-ERRORLOG: Validate Msg: msg type 12 does not supported payload 215
*spamApTask7: Feb 27 14:34:00.558: 00:3a:9a:d6:5d:30 Test-AP-09-03: *Feb 27 13:34:00.169: %CAPWAP-3-ERRORLOG: Validate Msg: error in Unknown Payload(215) payload (received length = 9, payload type = 215)
*spamApTask7: Feb 27 14:34:00.558: 00:3a:9a:d6:5d:30 Test-AP-09-03: *Feb 27 13:34:00.170: %CAPWAP-3-ERRORLOG: Failed to validate vendor specific message element type 215 len 9.
*spamApTask7: Feb 27 14:34:00.558: 00:3a:9a:d6:5d:30 Test-AP-09-03: *Feb 27 13:34:00.170: %CAPWAP-3-ERRORLOG: Failed to decode Configuration update request.
*spamApTask7: Feb 27 14:34:00.558: 00:3a:9a:d6:5d:30 Test-AP-09-03: *Feb 27 13:34:00.170: %CAPWAP-3-ERRORLOG: CAPWAP SM handler: Failed to process message type 7 state 11.
*spamApTask7: Feb 27 14:34:00.558: 00:3a:9a:d6:5d:30 Test-AP-09-03: *Feb 27 13:34:00.171: %CAPWAP-3-ERRORLOG: Failed to handle capwap control message from controller
Find attached some informations regarding the AP and the 5508.
Any suggestions are, as always, highly appriciated.
Regards
ManuelGood morning,
if I need free space at the flash: How much is "enough" to handle config changes?
Here you can see the filesystem of one of my accesspoints (all are affected):
AP#dir all-filesystems
Directory of arch:/
2 -rwx 91288 Feb 22 2014 18:16:42 +00:00 event.log
8 drwx 448 Feb 22 2014 18:16:38 +00:00 c1240-k9w8-mx.124-25e.JAO3
4 drwx 0 Nov 2 2011 23:32:18 +00:00 configs
5 -rwx 397 Feb 22 2014 18:19:03 +00:00 env_vars
6 -rwx 6168 Feb 27 2014 18:14:24 +00:00 private-multiple-fs
No space information available
Directory of flash:/
2 -rwx 91288 Feb 22 2014 18:16:42 +00:00 event.log
8 drwx 448 Feb 22 2014 18:16:38 +00:00 c1240-k9w8-mx.124-25e.JAO3
4 drwx 0 Nov 2 2011 23:32:18 +00:00 configs
5 -rwx 397 Feb 22 2014 18:19:03 +00:00 env_vars
6 -rwx 6168 Feb 27 2014 18:14:24 +00:00 private-multiple-fs
15740928 bytes total (10614784 bytes free)
Directory of zflash:/
2 -rwx 91288 Feb 22 2014 18:16:42 +00:00 event.log
8 drwx 448 Feb 22 2014 18:16:38 +00:00 c1240-k9w8-mx.124-25e.JAO3
4 drwx 0 Nov 2 2011 23:32:18 +00:00 configs
5 -rwx 397 Feb 22 2014 18:19:03 +00:00 env_vars
6 -rwx 6168 Feb 27 2014 18:14:24 +00:00 private-multiple-fs
15740928 bytes total (10614784 bytes free)
Directory of archive:/
No files in directory
No space information available
Directory of system:/
2 dr-x 0 memory
1 -rw- 17631 running-config
No space information available
Directory of nvram:/
30 -rw- 0 startup-config
31 ---- 0 private-config
1 ---- 4100 lwapp_ap.cfg
6 ---- 528 lwapp_ap_tlv.cfg
32768 bytes total (26572 bytes free)
Regards, Manuel -
I check "Always insert attachments at end of message" but it doesn't stay checked over time. Any suggestions?
Thanks.Are you checking it while composing a new message? If so, that only sets it for that message. If you set it without a new message, it should stay set.
If it is still not staying set, it could be a problem with the Mail prefs.
Maybe you are looking for
-
Trying to software update to 7.1.1 and I get a -3001 network error
Anybody have any idea on how to resolve this problem? I am on my macbook, my quicksilver updated with no problems. I have tried deleted iphoto, reinstalling from cd and updating via software update again and still get the network error. Obviously I a
-
Credit management in CRM4.0
Hi, Can I customize the credit management in CRM4.0? How can I display the field "rating" in the BP role Payer? Any thoughts would be appreciated. Thanks, Aharon.
-
My MacBook Pro DVD drive keeps spinning and looking for a disc when there isn't one.
My MacBook Pro disc drive keeps spinning and looking for a disc when there isn't one in there. The DVD application is closed and as far as I can tell, the eject button is not stuck. I've restarted, but the problem persists. Please help!
-
LUN has gone AWOL - Solaris 10 x86, Emulex HBAs, IBM DS8300
We're setting up a test environment for our backup software, currently running on Windows, but targeted for Solaris. This is also a test of our first Solaris x86 deployment. * HP DL580 G5 server. * Solaris 10 x86 10/08 w/patch cluster from ~March 18t
-
CUOM with Third-party SIP Device
Hi everyone, I have installed CUOM in environment with CUCM, Cisco IPPhones (SCCP), and IPPhones (Third-party SIP Device), I can monitor CUCM and SCCP IPPhones but the Third-party SIP Device can't be monitored with CUOM, Please someone have a solutio