Handling the exception in BizTalk WCF-SQL Receive Adapter

As per Application, BizTalk connecting to SQL Server and executing the SP for polling the data. Occasionally  we are getting Timeout SQL exception in event log.
Customer is asking why not BizTalk handling this kind of error messages.
Please let me know how to handle exceptions in WCF Receive location.already i set the properties like Suspend request
message on failur and  Include exception details in faults
But the error message is returning in Eventlog and not reaching to biztalk
one of the error message is
Another one is :
DB locks happening in SQL Server

Yes definitely, you can "Enable routing for failed messages" and subscribed to the failed message.
Later you can create a send port or orchestration with below filter conditions-
"ErrorReport.ErrorType == Failed Message" .
BizTalk demotes all the properties of this message to avoid unwanted subscription and promotes only below mentioned properties under ErrorReport namespace.
Description
ErrorType
FailureCategory
FailureCode
InboundTransportLocation
MessageType
OutboundTransportLocation
ReceivePortName
RoutingFailureReportID
SendPortName
Check the below articles which provide good sample for the same.
error-message-routing-pattern-demo-in-biztalk
http://mscerts.programming4.us/application_server/biztalk%202009%20%20%20handling%20failed%20messages%20and%20errors.aspx
Using Failed Message Routing
You can also setup Backup transport feature, which will only get activated in case of failure.
You can configure it to send emails as well.
How to Configure Backup Transport Options for a Send Port
Which one to choose between the two-
Using the backup transport for SMTP would allow you to send an email, but that’s normally not a good solution because you’ll just get that message, with no context, and not really know what to do with it.  Failed message routing will let you setup filters
based on the failures (types, descriptions, etc) and this way you can organize how you handle failures.  If a pipeline validation fails you can send the message to one place to be repaired where as if a transport fails (or something else) it can be handled
in a different way. 
https://social.msdn.microsoft.com/Forums/en-US/09256232-d92a-448b-9c8d-db6144afee84/enable-routing-for-failed-messages-versus-backup-transport?forum=biztalkgeneral
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful.

Similar Messages

  • How to handle the Exception when RegisterEventProcessorAsync

    In our Cloud Service project, we have 2 instances for work role (deploy to Azure), the work role is consume events from the EventHub using EventProcessorHost).
    When we want to register EventProcessor to consume data (see below):
    await eventProcessorHost.RegisterEventProcessorAsync<eventProcessor>();
    Sometimes we will got the Exception:
    Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (412) There is
    currently a lease on the blob and no lease ID was specified in the request.. ---> System.Net.WebException: The remote server returned an error: (412)
    There is currently a lease on the blob and no lease ID was specified in the request..
      at Microsoft.WindowsAzure.Storage.Shared.Protocol.HttpResponseParsers.ProcessExpectedStatusCodeNoException[T](HttpStatusCode expectedStatusCode, HttpStatusCode actualStatusCode, T retVal, StorageCommandBase`1 cmd, Exception ex)
       at Microsoft.WindowsAzure.Storage.Shared.Protocol.HttpResponseParsers.ProcessExpectedStatusCodeNoException[T](HttpStatusCode expectedStatusCode, HttpWebResponse resp, T retVal, StorageCommandBase`1 cmd, Exception ex)
       at Microsoft.WindowsAzure.Storage.Blob.CloudBlobSharedImpl.<DeleteBlobImpl>b__1b(RESTCommand`1 cmd, HttpWebResponse resp, Exception ex, OperationContext ctx)
       at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.EndGetResponse[T](IAsyncResult getResponseResult)
       --- End of inner exception stack trace ---
       at Microsoft.WindowsAzure.Storage.Core.Util.StorageAsyncResult`1.End()
       at Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.EndDeleteIfExists(IAsyncResult asyncResult)
       at Microsoft.WindowsAzure.Storage.Core.Util.AsyncExtensions.<>c__DisplayClass1`1.<CreateCallback>b__0(IAsyncResult ar)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at Microsoft.ServiceBus.Messaging.BlobLeaseManager.<DeleteAllAsync>d__2a.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.ServiceBus.Messaging.EventProcessorHost.<InitializeAsync>d__4.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.ServiceBus.Messaging.EventProcessorHost.<StartAsync>d__e.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
    at awaiteventProcessorHost.RegisterEventProcessorAsync<eventProcessor>();
    If we got the Exception, we won’t got messages any more.
    From the Call Stack, we found it was cause by delete the Blob. So we wonder that, when we call
    RegisterEventProcessorAsync,
    the hub will delete the blob and renew one in Storage?
    If we delete the blob for the EventHub manually and then run our server again. It worked as usual.
    But we can do it like this way manually, so is there any way to handle the exception in code to make the EventProcessorHost worked?
    Thanks so much!

    If we use different blob container name for different EventProcessorHost, is it a workaround for the issue?
       var
    eventProcessorHost = new
    EventProcessorHost(
                    hostName,
                    hubName,
                    consumerGroupName,
                    serviceBusConnectionString,
                    storageConnectionString,
    leaseContainerName);

  • How to handle the Exception in GP using executable callabel object.

    Hi all,
            I handled an exception in GP using Background callable Object. That is working fine.
    (Ex: Exception_No_User_Found). The Problem is I am not able to handle the exceptions for normal callable object. I have done the same thing as i did in background callable object except implementing IGPBackgroundCallableObject Class.  I have created an WebDynpro DC Project where in getDescription method i declared an Exception and in execute method of component controller I caught the exception if no user found.
    Then i created an callable object for this simple DC project. but that is not working i could not catch the exception. when i execute the process it is asking the User ID if i give the wrong userId it is not refreshing back to the user id input form.
    But if i test that simple callable object separately it is throwing an Exception when I give the wrong input..
    but the same thing is working fine using background callable object.
    I couldn't handle the exception for the simple callable object or executable callable object.
    Please If anyone bring me the solution that would be appreciated.
    Thanks in advance.
    Regards,
    Malar.

    Hi Shikhil
    Thanks for your reply
    Please have a look below for exceptions which i am getting in GP and let me know how to handle these exceptions.
    1) "Activity could not be read"
    2) "Action has been stopped"
    3) error while processing the item can not be displayed
    if you give any idea/clue how to handle these exceptions then it would be great help to me
    Thanks
    Sunil

  • Create wrapper to FM and handle the exceptions

    HI All
    I need to create wrapper FM to fm BDC_RECORD_TRANSACTION like zBDC_RECORD_TRANSACTION.
    the parameter should be the same and my question is how to handle the exceptions
    do i need to keep the exception in the wrapper fm exactly the same i.e.
    exactly the same signature for the exception and noting more or I need to add
    additional coding to handle it .
    CALL FUNCTION 'BDC_RECORD_TRANSACTION'
        EXPORTING
          tcode               = tcode
          authority_check     = 'X'
          OPTIONS             = ' '
          mode                = 'A'
          UPDATE              = 'A'
        TABLES
          dynprotab           = dynprotab
          messtab             = messtab
        EXCEPTIONS
          system_failure      = 1
          invalid_transaction = 2
          invalid_mode        = 3
          invalid_update      = 4
          OTHERS              = 5.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Chris

    HI
    do you mean like this ?
    CALL FUNCTION 'BDC_RECORD_TRANSACTION'
        EXPORTING
          tcode               = tcode
          authority_check     = 'X'
          OPTIONS             = ' '
          mode                = 'A'
          UPDATE              = 'A'
        TABLES
          dynprotab           = dynprotab
          messtab             = messtab
        EXCEPTIONS
          system_failure      = 1
          invalid_transaction = 2
          invalid_mode        = 3
          invalid_update      = 4
          OTHERS              = 5.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
            RAISE system_failure.
          WHEN 2.
            RAISE invalid_transaction.
          WHEN 3.
            RAISE invalid_mode.
          WHEN 4.
            RAISE invalid_update.
          WHEN OTHERS.
        ENDCASE.
    Thanks
    Chris
    Edited by: ChrisGW on Mar 16, 2011 11:40 AM

  • Throwing or handling the exception.

    Hi,
    Which is the good idea.
    *1 .* throwing the exception to the caller method.
    *2 .* handle the exception at the save place.(with the help of try/catch).
    Any pointer will be highly appreciated.
    Regards,
    Alok

    Usually #1, though sometimes you'll wrap it in an exception more appropriate for that layer.
    To handle the exception, you have to truly handle it.You have to provide a correction for whatever went wrong. That might mean retrying or using some default value or calling some other "safe" algorithm. If you can't actually fix it, you have to throw something to let the caller know what went wrong. It's then up to him to determine whether to handle it or throw it to his caller.

  • How to handle the exception in GP(Exception : Activity could not be read)

    Hi all
    we are getting the GP exceptions  as  1) "Activity could not be read"  2) "Action has been stopped"
    3) error while processing the item can not be displayed
    Please let me know how to handle these exceptions in GP .
    currently i got some documents in SDN on GP exceptions but those are related to manual exceptions for example if you enterd wrong data in the inputfield then we can handle those exceptions then it will allow to enter the new value but the exceptions which i mentioned above are new it seems
    can you please let me know how to handle or solve those 3 exceptions
    Thanks
    bindu

    Hi Shikhil
    Thanks for your reply
    Please have a look below for exceptions which i am getting in GP and let me know how to handle these exceptions.
    1) "Activity could not be read"
    2) "Action has been stopped"
    3) error while processing the item can not be displayed
    if you give any idea/clue how to handle these exceptions then it would be great help to me
    Thanks
    Sunil

  • How to handle the exception com.sun.xml.internal.messaging.saaj.SOAPExcepn

    hi,
    I am accessing wsdl to get all the required data and the connection is establishing successfully thru java code but when i am calling the create user api the following exception is coming
    "com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: No NamespaceURI, SOAP requires faultcode content to be a QName"
    please tell me what is faultcode means and how to solve this exception

    Hi,
    Whenever there is any error inside the WebService or while it's processing ...it throws Exceptions ..We can handle these exception by our own to make the Exception details more readable.....For that we can create our own SOAPFault message...
    Please refer to the below Posts...
    1). If you are using JAXWS Style of WebService then : http://middlewaremagic.com/weblogic/?p=713
    2). If you are using JAXRPC Style of WebService then : http://middlewaremagic.com/weblogic/?p=721
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic (Middleware magic Is Here)

  • PGP Encryption Exception in File and SFTP receiver adapter.

    Scenario: We have got the PGP (Private and Public key pair) and stored the same in PI server path.
    We have sample partner Public key which is store at temporary shared location for testing purpose.
    Issue: While doing the encryption we are getting below exception in case of File Adapter and SFTP adapter.
    Case 1: File Receiver Adapter
    Case 1: SFTP Receiver Adapter
    Can anyone please suggest on below exception?
    How to proceed to resolve the above issue or what should be the cause of the issue?
    Thanks,
    Vertika

    Hi everyone,
    Thanks for reply Sarah
    I have downloaded and added the JCE unlimited strengthh juristiction policay files are updated as directed in above blogs.
    Now I am able to encrypt the File using plane File Adapter (NFS). But still it is throwing exception for SFTP adapter. Below is the error detail:
    MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of a null object loaded from local variable 'message'; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method
    What could be the reason of above exception in SFTP adapter? Please suggest.
    Thanks,
    Vertika

  • How to handle the exception in AWT-EventQueue-0?

    This is my code:
    import javax.swing.JFrame;
    public class MainFrame extends JFrame {
         public MainFrame(){
              init();
         public void init(){
              setSize(100,100);
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    public class SubFrame extends MainFrame implements ActionListener{
         private JButton button1 = null;
         public SubFrame(){
              super();
         public void init(){
              super.init();
              button1 = new JButton("button1");
              add(button1);
              button1.addActionListener(this);
         public void actionPerformed(ActionEvent e) {
              // TODO Auto-generated method stub
              button1.setEnabled(false);
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              (new SubFrame()).setVisible(true);
    }When I click the button, this exception will be thrown:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at swing.SubFrame.actionPerformed(SubFrame.java:23)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    Darryl.Burke wrote:
    Hmm. Interesting sequence of execution.
    +-- new SubFrame () calls the sub class constructor
    +----  which calls the super class constructor explicitly
    +------  which calls init () of the sub class
    +--------  which calls init () of the super class
    and only after all these calls return, the declaration-&#99;um-assignment of button1 is executed, which makes button1 null.
    (Discovered by putting a breakpoint on that line and debugging in NetBeans)
    With one change, button1 will not be null and the breakpont is not reached.private JButton button1;// = null;What's not clear is why the declaration-&#99;um-initialization takes place after the constructor code executes, shouldn't it run before the constructor?
    It does run before the SubFrame constructor, but it runs after the super class constructor, which is exactly how the language specification says it should be.
    There was a similar thread a while back:
    http://forum.java.sun.com/thread.jspa?threadID=5190252&messageID=9745092
    Note that there is another "bad" habit involved (other than explicitly initializing member variables to null): that an overridden method is called from the super class constructor. That means that the overridden method will be executed before the object it belongs to has been fully initialized, and that will often lead to confusing behavior like this.

  • Handling the exceptions ...

    Hi guys,
    I am totally new to Java world and have come from VB background. I found the process of exception handling pretty hard. How can some one memorize all the error objects for a particular type of error eg IOexception, MalFormedUrlException, NumberFormatException ... etc. Maybe i am wrong. Is there any common object that handle all these exceptions? or what is the solution how can i anticipate my errors ahead of time? and any better way to remember all these Exception?
    I will appreciate any comment.
    abdul

    There is a parent exception 'Exception' that all detailed exceptions are extended from. You can use it to cast a wide net, and use detailed exeptions when you need more detail.
    e.g.
    try {
      // do something
    catch(Exception e){
      // handle exception
    finally {
      // do something
    B                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Handle DB exception in biztalk map

    How to handle exceptions in mapping

    You can use Error Return functoid.
    Use this functoid in conjunction with the Database Lookup and Value
    Extractor functoids to capture and map error information. Some of the scenarios this might be useful include:
    When your map has a Database Lookup or Value Extractor functoid that is not behaving as expected. To see the error message, temporarily map the functoid to a field in the output schema.
    If your application expects different message content when database operations fail. You can use the Error Return functoid to detect an error and map the error message to an alternate structure so that downstream applications
    can react in a controlled manner.
    http://msdn.microsoft.com/en-us/library/aa559365.aspx

  • How to Handle the exception while perform multiple insert in a procedure?

    CREATE OR REPLACE PROCEDURE MUL_INS_EXCE AS
    CURSOR C IS SELECT EMP_NO,EMP_NAME,EMP_AGE FROM EMP;
    EMP_RECORD EMP %ROWTYPE;
    BEGIN
    OPEN C;
    LOOP
    FETCH C INTO EMP_RECORD;
    EXIT WHEN C%NOTFOUND;
    INSERT INTO (SELECT NO,NAME,AGE FROM E1 WHERE AGE >=23 WITH CHECK OPTION VALUE(EMP_RECORD.EMP_NO,EMP_RECORD.EMP_NAME,EMP_RECORD.EMP_AGE);
    END LOOP;
    CLOSE C;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    END;
    I try to insert the record from emp into e1 table with some condition using the procedure. If run this procedure it insert record with check the age > =23. The conditions is not satisfied, exception is thrown procedure will terminate. Again i run this procedure, it will insert the from first. but i want, insert rest of the records. pls help me.

    >
    CHange your insert code like below....it should work
    If emp_record.age > 23 Then
    Insert into table name (fileld......) values(values)...............
    End If;;
    >
    CREATE OR REPLACE PROCEDURE MUL_INS_EXCE AS
    CURSOR C IS SELECT EMP_NO,EMP_NAME,EMP_AGE FROM EMP;
    EMP_RECORD EMP %ROWTYPE;
    BEGIN
    OPEN C;
    LOOP
    FETCH C INTO EMP_RECORD;
    EXIT WHEN C%NOTFOUND;
    INSERT INTO (SELECT NO,NAME,AGE FROM E1 WHERE AGE >=23 WITH CHECK OPTION VALUE(EMP_RECORD.EMP_NO,EMP_RECORD.EMP_NAME,EMP_RECORD.EMP_AGE);
    END LOOP;
    CLOSE C;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    END;
    I try to insert the record from emp into e1 table with some condition using the procedure. If run this procedure it insert record with check the age > =23. The conditions is not satisfied, exception is thrown procedure will terminate. Again i run this procedure, it will insert the from first. but i want, insert rest of the records. pls help me.

  • Biztalk WCF-SQL polling sample using a FOR XML Path

    I've been searching in the web for a sample that uses FOR XML "PATH" to poll the SQL database . The result returned from my query is a parent child data and FOR XML PATH is the best choice to structure it in that way . I guess I'm missing something while
    generating the schemas from this stored procedure.
    I guess Dan Rosanova has touched on this concept (http://social.technet.microsoft.com/wiki/contents/articles/3480.aspx)
    , but its using XML Auto. Again there is no sample available so makes things a bit difficult.
    Can someone point to a sample walkthrough , generating the schemas and then later using it in the application.
    Thanks
    Anthstone

    I used XMLPolling and it worked for me. you can go for XMLPolling. Steps to be followed:
    1) Create the SP which will have the SELECT query similar to below:
    ;WITH XMLNAMESPACES (default 'http://yourcustomnamespace')
     Select * from Employee FOR XML PATH('YourCustomRootNode') 
    2) Create a schema out of the table using the following query
    Select * from Employee for
    xml
    auto,
    xmlschema 
    3) Re-name the root name and namespace as per you mentioned in point#1 (YourCustomRootNode)
    4) Create an Envelope Schema and refer the schema from point#3. Also make a note of the root node name and namespace that we need to specify
    in the admin console.
    5) Assign the Body XPath to debatch. Refer
    this.  Deploy the solution.
    6) In the Admin console, add the Root Node Name and namespace mentioned in point#4 under "XmlStoredProcedureRoodNodeName" and "XmlStoredProcedureRoodNodeNamespace"
    There you go. I did this for debatching. You can do for nomarl batch message instead of Envelope create a normal document schema.
    Thanks
    SKGuru

  • How to handle the exception

    I have worked out in similar fashion as given in site
    "http://stardeveloper.com/articles/display.html?article=2001101101&page=1"
    But iam not getting output.
    I used tomcat server.
    The result i got is
    Sending failed; nested exception is: javax.mail.MessagingException: Unknown SMTP host: mail.yourisp.com; nested exception is: java.net.UnknownHostException: mail.yourisp.com
    Please reply me at earliest.
    I need it for my project

    Hi,
    This is not the correct forum for questions such as these. This forum is for the email server software, not for java code development.
    A quick look at the error though indicates that you have the value "mail.yourisp.com" used somewhere in your code. This is NOT a valid mail-host address. You should be using something that matches your own ISP's mail-host.
    Regards,
    Shane.

  • About the BSP:How should i handle the exception

    <b>Web is below:</b>
    Error when processing your request
    <b>What has happened?</b>
    The URL http://sapcidev01.autodesk.com:8000/sap/bc/bsp/sap/zixos_test/result.htm was not called due to an error.
       Note
    The following error text was processed in the system D50 : The current application triggered a termination with a short dump.
    The error occurred on the application server sapcidev01_D50_00 and in the work process 1 .
    <b>The termination type was: RABAX_STATE</b> <b>The ABAP call stack was:</b>
    Form: DIALOG_CHECK of program CL_IMC_MODE===================CP
    Form: PREPARE_MODE of program CL_IMC_MODE===================CP
    Form: GET_MODE_BY_NAME of program CL_IMC_MODE===================CP
    Form: SEND_COMMAND of program CL_DV_IMC_CLIENT==============CP
    Form: PROCESS_COMMAND of program CL_DV_SDV=====================CP
    Form: DISP_DOC of program CL_DV_SDV=====================CP
    Form: DISP_AO_DOC of program CL_DV_SDV_AO==================CP
    Form: DISP_AO_DOCS of program CL_DV_SDV_AO==================CP
    Function: ALINK_DISPLAY_IMC of program SAPLALINK_DISPLAY_DOCUMENT
    Function: ARCHIVOBJECT_DISPLAY of program SAPLOPTA
    <b>What can I do?</b>
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system D50 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapcidev01_D50_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 1 in transaction ST11 on the application server sapcidev01_D50_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 151 -u: 117846 -l: E -s: D50 -i: sapcidev01_D50_00 -w: 1 -d: 20070320 -t: 062938 -v: RABAX_STATE -e: MESSAGE_TYPE_X
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    <b>Run ST22 and information is below:</b>
    Source Code Extract
    Line  SourceCde
        1 METHOD DIALOG_CHECK.
        2  DATA: GUI_FLAG TYPE SY-BATCH.
        3
        4 * IMC NUR in Online-Modus ? (kein Batch und dunkle Batch-Input-Betrieb)
        5   IF GUI_IS_ON IS INITIAL.
        6     CALL FUNCTION 'RFC_IS_GUI_ON'
        7        EXPORTING
        8             LOGIN_CHECK = ' '
        9        IMPORTING
       10             ON          = GUI_FLAG.
       11
       12     IF GUI_FLAG <> 'Y'.
       13       IF RABAX IS INITIAL.
       14         CLEAR EXISTS.
       15       ELSE.
    >>>>>         MESSAGE X005(IMC).
       17       ENDIF.
       18     ELSE.
       19       GUI_IS_ON = 'Y'.
       20       EXISTS    = 'X'.
       21     ENDIF.
       22   ELSE.
       23     EXISTS = 'X'.
       24   ENDIF.
       25
       26 ENDMETHOD.
    Who can help solve the problem?
    I appreciate your help.

    DAniel,
    Did you activate ur appln in SICF trnx ?
    Are you able to access the standard BSP Appln -> tutorial_1 ?
    if not,
    BSP call : type of termination: RABAX_STATE
    Rgds,
    Jothi.P
    P.S : Post this in BSP Forum for better and quicker response.

Maybe you are looking for