Flex&SAP Exceptions handling.
Hello
We have deployed a Web Service application in our WAS 7.10 SP6.
Our application is a standard java 5 app with annotations (ejbs exposed as web services).
When a web service call operation returns a java exception (any kind of exception), WAS returns http 500 to the client.
http 500 cannot be interpreted by a flex client (2.0, 3.0 no matter which version) because of an interaction between browser and flex runtime issue. Flex code can only obtain an i/o error when http 500 is returned by the server.
The usual way to solve this problem is to create a filter that transforms http 500 to http 200, but we don't know how to implement a filter for web services http responses in WAS 7.1 or 7.0
Other solutions involve using Adobe proxy, but in our case we can't use it.
Is there any other solution to this matter?
If you don't mind coding the SOAP handling yourself you can use the [as3httpclientlib project|http://github.com/gabriel/as3httpclient/tree/master] which is a nearly fully implemented httpclient that uses sockets to work.
The socket config can sometimes be a bit tricky to get setup but if you control the servers in question it's possible. This isn't a perfect solution but in this case Adobe is a bit behind what the browser do ( which is not pass 500s to plugins ) so they are a bit stuck in what they can provide to the player then on to the framework.
-d
Similar Messages
-
Exception handling in client proxy
Hi
Can someone please help me with exception handling in ABAP client proxy.HI
Welcome to SDN
Check this link you wil get information regarding ABAP Proxy http://help.sap.com/saphelp_nw04/helpdata/en/c9/74246d8ad2447799063d39013e9a11/content.htm -
Exception handling in rfcs and bapis
exception handling in rfcs and bapis
Hi Jayakrishna,
In General , there are non execptions in BAPIs, because of the reason, that the exception raised in a SAP envoronment may not mean anything for a non SAP initiator. All the exception situations would only fill the return table(TYpe BAPIRET2 or something like that). If you read that table after the call to the bapi, you can understand what has gone wrong.
Regards,
Ravi -
Exception handling branch not executing in BPM
Hi all,
We have a problem with exception handling in BPMs.
We have created an exception branch in a block and a transformation step in it. However, the branch doesn't get executed in case of exceptions.
Any ideas? Is this a known problem?
Many thanks,
AldoHi VJ,
The exception name can only be selected from a list. There is no chance of mistaking/misspelling in there.
That is fine as it is. I am quite sure about it.
Any other ideas?
I found SAP note 1039330 but we are already on patch 12 and that correction was released on patch 12.
Thanks, regards,
Aldo -
hi,
I have created a custom component that has a service which invokes my custom java methods. I would like to redirect to two error pages depending on the exception thrown by the java method? How exception handling is done in UCM. I see a text box called error messages while creating the service and service actions. But that message is not printed when my java method throws application specific exceptions.
Is there a way to handle the exception at Service configuraration / UI side and redirect to two different meaningful error pages dependinf upon the thye of exception
Thanks,
SivaHi Jayakrishna,
In General , there are non execptions in BAPIs, because of the reason, that the exception raised in a SAP envoronment may not mean anything for a non SAP initiator. All the exception situations would only fill the return table(TYpe BAPIRET2 or something like that). If you read that table after the call to the bapi, you can understand what has gone wrong.
Regards,
Ravi -
Exception Handling (in Mapping) with out using BPM
Hello All,
We are on SP17. I have a simple flow involving XI
JMS -> XI (Message Mapping -> XSL Mapping) -> Mail
I would like to send an email if there is an exception in any of the mapping. But I <b>don't want to use a BPM</b> for this exception handling. How can I do it?
Thanks
AbinashHi Abinash,
yes you can! See these..
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
/people/sap.user72/blog/2005/02/23/raising-exceptions-in-sap-xi-mapping
All the best!
cheers,
Prashanth
P.S Please mark helpful answers -
Exception Handling in Message Mapping and Alert
Hello,
1. Pls let me know the concept of Exception Handling and Alerts.
2. Pls provide some blogs for Exception Handling in Message Mapping.
3.What are Alerts and how it help us in XI. Pls provide some blogs for Alert
4.How are Alerts and Exception Handling can be related say for some scenario
RegardsHi,
Plz check out these blogs of Sravya on Error Handling:
/people/sravya.talanki2/blog/2006/11/22/error-handling-framework-xiout-of-the-box-episode-1
/people/sravya.talanki2/blog/2006/11/23/error-handling-framework-xiout-of-the-box-episode-2
Also check this SAP Presentation:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9418d690-0201-0010-85bb-e9b2c1af895b
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
Error Handling :
http://help.sap.com/saphelp_nw04/helpdata/en/56/b46c3c8bb3d73ee10000000a114084/frameset.htm
Alerts:
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
http://help.sap.com/saphelp_nw04/helpdata/en/56/d5b54020c6792ae10000000a155106/content.htm
BPM:
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Working with acknowledgements
regards -
Failover exception handling in partnerlink
Hi All,
I've been trying to test the failover exception handling feature in partnerlink and were not able to replicate it. Can you please assist me on this? Here is the steps which I've carried out:
1.) Develop a web service and deploy to my localhost's OC4J instance with the following ending point:
http://localhost:8888/plsqlwebService-webservice-context-root/plsqlwebserviceSoapHttpPort
2.) Develop the same web service and deploy it to my testing application server with the following ending point:
http://myappserver:8888/plsqlwebService-webservice-context-root/plsqlwebserviceSoapHttpPort
3.) Create a bpel synchronous project with a partnerlink originally pointing to my testing application server WSDL file. Also, I've created a Location property for that same partnerlink with 2 sets of values - first having the ending point of my testing application server and the second one is the ending point of my local OC4J instance.
4.) Deploy the deploy Bpel project to my testing application server.
5.) To test it, I purposely disabled the web service created in step 2 and initiate the Bpel project on the Bpel console. I was hoping that because the primary web service is not available and it will try to call the second one which I've defined in the Location property but it did not work.
Have I misunderstood the concept or missed out some important tasks? Thank you for your timne and assistance.
Have a nice day,
JohnHi Jayakrishna,
In General , there are non execptions in BAPIs, because of the reason, that the exception raised in a SAP envoronment may not mean anything for a non SAP initiator. All the exception situations would only fill the return table(TYpe BAPIRET2 or something like that). If you read that table after the call to the bapi, you can understand what has gone wrong.
Regards,
Ravi -
Exception handling in IDOC using workflows
exeception handling in idoc using workflows
i. what will be the trigerring event in case of idoc ?
ii.will it be BOR -- IDOC<message_type >?
thanks in advance
naval bhattHi Naval Bhatt,
it depends on what you would like to do, but there is an object IDOCAPPL, more information you find Objekttyp IDOC<MSGTYP>:
http://help.sap.com/saphelp_47x200/helpdata/en/04/92725546f311d189470000e829fbbd/frameset.htm
General how it works:
Objects, Events and Tasks to be Created
http://help.sap.com/saphelp_47x200/helpdata/en/78/2176d251ce11d189570000e829fbbd/frameset.htm
This is an example how the application should implement the exception handling in IDOC by using workflows.
Events for example:
- inputErrorOccurred
- inputFinished
Regards
Tibor -
BPM Process - Exception handling or timeout issues?
Hi Guys,
I have a BPM process as below.
1. Receive step: Receive the file with multiple transactions.
2. Transformation step: Split the file into individual transactions
3 Block step which includes -- par for each mode
1. Send Step (Synchronus): Each individual transaction needs to contact the 3rd party system and get the response. -- Do i need to handle any exceptions here ?
2. Container : Collect all the responses
Block ends
4. Transformation: combine all the responses in to a single file
5. Send Step: synchronus -- send the above single file and get the response back
6. Transformation : Transform the above response into the target structure.
7. Send: send the message asynchronusly to the target system
I need suggestion regarding the exceptional handling or any time out issues, i need to take care of.
any suggestions would be really appreciated
Thanks,
Raj
Edited by: raj reddy on Feb 12, 2009 10:12 PMHi,
I) For the Block holding the Sync Send, create an Exception Block. (right click on Sync Send -> Insert -> Exception Branch)
II) Name the Exception block (ex: exceptionHandler).
III) in the Sync Send step ->Properties -> Exceptions -> in System Error - add exceptionHandler.
IV) Now within the Exception handler block you can create containers to hold values from payload, throw exception as email etc).
This will cover your sync send step incase there is an error while sending the request of a timeout during receiving the response.
You can also do the same for the Step 7) Asycn send - if required.
Another suggestion in your question Step 6) can be done outside the bpm, when you do the interface determination for that Asycn Send you can add the Interface mapping that will map the responses to the target structure.
Doing this will reduce one step in your BPM. For further information in how more you can fine tune your bpm, read this blog - https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5113. [original link is broken] [original link is broken] [original link is broken]
All the best.
Regards,
Balaji.M -
GP Exception handling doesn't work
I had implemented the GP Exception handling scenario described in [Configuring Exception Handling|http://help.sap.com/saphelp_nw2004s/helpdata/en/44/10bd4029450d1be10000000a114a6b/frameset.htm].
But when I start the process and input a wrong user id, the exception handling action doesn't start and the process keep in running status. When I check the Background Action Processor Queue, the queue entry of action "Retrieve User Details" retry executing continously.
And when I check the background callable object, it report that "Obsolete process exception: E_NO_USER_FOUND " in section Process Exceptions Check .
Is it a system bug or Is something wrong in system configuration?
BTW: The environment is NW7.0 SP13 Java StackReposting
-
How to implement Exception Handling error in IDoc to File and RFC to File
Hi,
We are implementing the two below scenarios :
1. IDOC to File
2. RFC to File
We have to implement the Exception Handling for the above two cases. Kindly could you provide the inputs to implement the Exception Handling for the above two cases.
Please provide the precious inputs to implement this.
Thanks,
RameshHi Ramesh,
The exception handling for idocs
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f1543d711d1893e0000e8323c4f/frameset.htm
Exception handling in File to IDoc Scenario
For RFCs
Re: Passing SAP Exceptions to a sync SOAP Call
Error Handling when using RFC
Exception Handling while Calling RFC - BPM
handle exceptions in remote function modules
Regards,
Prateek -
Hello,
i have the following scenario:
RFC receiver adapter (synchronous) <> XI <> JDBC receiver adapter (to MS SQL-database)
Is it possible to catch JDBC-exceptions, e.g. "duplicate primary key" and pass it to the calling rfc adapter?
thanks for your help
ChristianHello,
still my problem is the exception handling of the synchronous JDBC - call.
If an error occurs I get the error "no payload found" in sxmb_moni_bpe
I think this is a problem of where the error occur, in the SOAP header
In sxmb_moni i get the following Error:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Aufruf eines Adapters
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'KUNDEN' (structure 'STATEMENT_NAME'): com.microsoft.sqlserver.jdbc.SQLServerException: Verletzung der PRIMARY KEY-Einschränkung 'PK_Kunden'. Ein doppelter Schlüssel kann in das 'dbo.KUNDEN'-Objekt nicht eingefügt werden.</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Has anybody got any idea where my mistake is?#
I´m at loss.
If you need further information, contact me. I´ll send you the required informations.
Thanks and regards
Christian -
Hello,
I've implemented the Global Exception Handler how is saying at http://www.adobe.com/devnet/flex/articles/global-exception-handling.html
Some errors are being catched by it, and others not.
I looked at another thread here, but for him, the Debug Dialog was not appearing because another place was catching the exception for him.
There are some way to catch all errors in just on place?
I need this, because sometimes in production happen errors that we didn't find in development, but stills there.
The SDK is 4.1 and minimum Flash Player for the applications is 10.1.
Regards,
Fredy.How to reproduce the error not being catched.
Main Application:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955"
minHeight="600"
xmlns:views="views.*"
applicationComplete="onApplicationComplete()">
<s:layout>
<s:VerticalLayout />
</s:layout>
<fx:Script>
<![CDATA[
import com.adobe.ac.logging.GlobalExceptionHandler;
import com.adobe.ac.logging.LogHandlerAction;
private var globalExceptionHandler:GlobalExceptionHandler;
private function onApplicationComplete():void {
globalExceptionHandler = new GlobalExceptionHandler();
globalExceptionHandler.preventDefault = true;
var lha:LogHandlerAction = new LogHandlerAction();
globalExceptionHandler.handlerActions = [];
globalExceptionHandler.handlerActions.push(lha);
]]>
</fx:Script>
<mx:ViewStack id="vs" creationPolicy="none">
<views:FirstView />
<views:SecondView />
</mx:ViewStack>
<s:Button label="Call Second View" click="vs.createDeferredContent()"/>
</s:Application>
First View:
<?xml version="1.0" encoding="utf-8"?>
<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"
creationComplete="onCreationComplete()">
<fx:Script>
<![CDATA[
import mx.rpc.remoting.RemoteObject;
private function onCreationComplete():void {
trace("First Created!");
]]>
</fx:Script>
</s:NavigatorContent>
Second View:
<?xml version="1.0" encoding="utf-8"?>
<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"
creationComplete="onCreationComplete()">
<fx:Script>
<![CDATA[
import mx.rpc.remoting.RemoteObject;
private function onCreationComplete():void {
trace("Second View created!");
var ro:RemoteObject;
ro.destination = "";
]]>
</fx:Script>
</s:NavigatorContent>
Regards,
Fredy. -
ABAP Exception Handling Document Link
Anyone have a link for the document:
"A Programmers Guide to the New Exception Handling Concept in ABAP"
Thanks!Hello Kenneth
Perhaps the following article may also be useful to you.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1be1003-0701-0010-3795-f87160de6483">NetWeaver Developers Guide 2004s: Using ABAP</a>
Regards
Uwe
Maybe you are looking for
-
App Store says update available for iPhone app. Try to install and get the message "the item you are trying to buy is no longer available" for three apps in a row. Even when I go to the specific app and press Update, the update begins to install then
-
Netca is not running (Enterprise Edition Release 10.2.0.1.0)
Hi, How do I resolve this problem without having to reinstall something? I can not run the application netca the Linux server. Give the following stack of error: [oracle@<server machine>] $ netca Oracle Net Services Configuration: java.lang.NullPoint
-
CreateOUIProcess(): -1 : argument list too long
Hi, I tried to install 8i on Mandrake 6.1. When I call "./runInstaller" I get : Initializing Java Virtual Machine from /usr/local/jre/bin/jre. Please wait ... Error in CreateOUIProcess(): -1 : Die Argumentliste ist zu lang (meaning: argument list is
-
Records Management - Email (Attachment & Text) - GroupWise
I have a requirement to store an email (its attachment and text) into UCM as a single instance. The text can't be copied/pasted into an index field upon import. The attachment and text should be merged together and committed as a PDF file (read only)
-
OCI8 - dedicated or shared connection
Does anyone know what type of connection is created through ruby-OCI8 using database.yml? Is it a dedicated or shared connection? Thanks, James