Handling error exception in timesten

how do we handle timesten specific exception in a pl/sql block.
Like TT5039...which is a exception thrown when trying to refresh a cache group using ttCacheAutoRefresh for which refresh process has already been initiated by the timesten
I require to handle it and loop till the refresh has been completed successfully so that further calculation on this refreshed data are correct.

I don't know your exact requirement.
Is this what you are looking for
set serveroutput on
declare
l_string varchar2(50);
begin
loop
l_string := 'call ttCacheAutorefresh(' || '''CACHEUSER''' || ',' ||'''EMP_100'''||',1)';
execute immediate l_string;
commit;
end loop;
Exception
WHEN OTHERS THEN
dbms_output.put_line(SQLERRM || ' ' || SQLCODE);
end;
TT5039: An error occurred while refreshing EMP_100: Autorefresh of specified cache group is already in progress. -57000
PL/SQL procedure successfully completed.
In this program ttCacheAutorefresh will run in a loop till it returns the error TT5039 due to autorefresh has already started bu timesten.

Similar Messages

  • Handle errors/exceptions in WS_DELIVERY_UPDATE_2

    hi all,
    I am tryng to do batch split using 'WS_DELIVERY_UPDATE_2'. it did split in few cases.
    but my problem is when executing in foreground it there is error in input data the function module just throws a 'E' error and program stops.
    how to handle errors/exceptions. it just stops there and i am not able to continue with the program further.
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
      EXPORTING
        vbkok_wa                           = it_vbkok_wa
       synchron                           = 'X'
            NO_MESSAGES_UPDATE_1               = ' '
       commit                             =  v_commit
        delivery                           = v_delvry
            UPDATE_PICKING                     = ' '
            NICHT_SPERREN_1                    = ' '
            IF_CONFIRM_CENTRAL                 = ' '
            IF_WMPP                            = ' '
            IF_GET_DELIVERY_BUFFERED           = ' '
            IF_NO_GENERIC_SYSTEM_SERVICE       = ' '
       if_database_update_1               = '1'
            IF_NO_INIT_1                       = ' '
            IF_NO_READ_1                       = ' '
       if_error_messages_send             = 'X'
            IF_NO_BUFFER_REFRESH               = ' '
            IT_PARTNER_UPDATE                  =
            IT_SERNR_UPDATE                    =
            IF_NO_REMOTE_CHG_1                 = ' '
            IF_NO_MES_UPD_PACK                 = ' '
            IF_LATE_DELIVERY_UPD               = ' '
           IMPORTING
             EF_ERROR_ANY                       = EF_ERROR_ANY
             EF_ERROR_IN_ITEM_DELETION          = EF_ERROR_IN_ITEM_DELETION
             EF_ERROR_IN_POD_UPDATE             = EF_ERROR_IN_POD_UPDATE
             EF_ERROR_IN_INTERFACE              = EF_ERROR_IN_INTERFACE
             EF_ERROR_IN_GOODS_ISSUE            = EF_ERROR_IN_GOODS_ISSUE
             EF_ERROR_IN_FINAL_CHECK            = EF_ERROR_IN_FINAL_CHECK
             EF_ERROR_PARTNER_UPDATE            = EF_ERROR_PARTNER_UPDATE
             EF_ERROR_SERNR_UPDATE              = EF_ERROR_SERNR_UPDATE
    TABLES
       vbpok_tab                          = it_vbpok_tab[]
            PROT                               =
            VERKO_TAB                          =
            VERPO_TAB                          =
            VBSUPCON_TAB_1                     =
            IT_VERPO_SERNR                     =
            IT_PACKING                         =
            IT_PACKING_SERNR                   =
            IT_REPACK                          =
       it_handling_units_1                = it_rehang[]
            IT_OBJECTS                         =
             ET_CREATED_HUS                     = it_CREATED_HUS[]
            TVPOD_TAB                          =
    if sy-subrc = '0'.
    write:/ 'ok'.
    else.
    write:/ 'failed'.
    endif.

    Change your code to:
    if_error_messages_send = space
    If you send 'X' the messages are displayed, otherwise they don't. Look at the message_send_check_do routine in the FM.

  • Error exception handling in adf

    hi how do i handle error exception in adf for exaple if i have validation/constraint in my database that no duplicate value must be entered in table. how can i display unique constraint error in more meangiful way so the user user can undestand it,am in jdeveloper 11.1.1.6.0
    how can i show this error to user as error message oppose to this database error,this error happen if same user is added to same organisation twice but the same user can be added to other organisation,i what to display error message like "this user already belong to organisation xyz"Edited by: adf009 on 2013/03/11 9:49 AM
    Edited by: adf009 on 2013/03/11 10:56 AM
    Edited by: adf009 on 2013/03/11 4:26 PM

    i change the method to this
           @Override
        public void reportException(DCBindingContainer dCBindingContainer,
                                    Exception ex) {
                if (ex instanceof TxnValException) {
                          Object[] exceptions= ((TxnValException)ex).getDetails();
                          if(ex!=null){
                          for(int i=0;i<exceptions.length;i++){
                              if(ex instanceof RowValException){
                                   this.reportException(dCBindingContainer, (Exception)ex);                                
                              else{
                            super.reportException(dCBindingContainer, (Exception)ex);
    but is still not display error message in more meangful way
    my DataBindings.cpx  is
    <?xml version="1.0" encoding="UTF-8" ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
                 version="11.1.1.61.92" id="DataBindings" SeparateXMLFiles="false"
                 Package="uam.view" ClientType="Generic"
                ErrorHandlerClass= "uam.view.CustomErrorHandler">
      <definitionFactories>
        <factory nameSpace="http://xmlns.oracle.com/adf/controller/binding"
                 className="oracle.adf.controller.internal.binding.TaskFlowBindingDefFactoryImpl"/>
        <dtfactory className="oracle.adf.controller.internal.dtrt.binding.BindingDTObjectFactory"/>
      </definitionFactories>
      <pageMap>
        <page path="/payment.jsff" usageId="uam_view_paymentPageDef"/>
        <page path="/test.jspx" usageId="uam_view_testPageDef"/>
        <page path="/security.jsff" usageId="uam_view_securityPageDef"/>
        <page path="/pdetails.jsff" usageId="uam_view_pdetailsPageDef"/>
        <page path="/odetails.jsff" usageId="uam_view_odetailsPageDef"/>
        <page path="/opayment.jsff" usageId="uam_view_opaymentPageDef"/>
        <page path="/members.jsff" usageId="uam_view_membersPageDef"/>
        <page path="/suburb.jsff" usageId="uam_view_suburbPageDef"/>
        <page path="/testsub.jspx" usageId="uam_view_testsubPageDef"/>
        <page path="/WEB-INF/register-org-flow.xml#register-org-flow@CreateInsert"
              usageId="uam_view_register_org_flow_register_org_flow_CreateInsertPageDef"/>
        <page path="/SelectOrg.jsff" usageId="uam_view_SelectOrgPageDef"/>
        <page path="/updateorg.jspx" usageId="uam_view_updateorgPageDef"/>
        <page path="/OrgDetails.jsff" usageId="uam_view_OrgDetailsPageDef"/>
      </pageMap>
      <pageDefinitionUsages>
        <page id="uam_view_paymentPageDef" path="uam.view.pageDefs.paymentPageDef"/>
        <page id="uam_view_testPageDef" path="uam.view.pageDefs.testPageDef"/>
        <page id="uam_view_securityPageDef"
              path="uam.view.pageDefs.securityPageDef"/>
        <page id="uam_view_pdetailsPageDef"
              path="uam.view.pageDefs.pdetailsPageDef"/>
        <page id="uam_view_odetailsPageDef"
              path="uam.view.pageDefs.odetailsPageDef"/>
        <page id="uam_view_opaymentPageDef"
              path="uam.view.pageDefs.opaymentPageDef"/>
        <page id="uam_view_membersPageDef" path="uam.view.pageDefs.membersPageDef"/>
        <page id="uam_view_suburbPageDef" path="uam.view.pageDefs.suburbPageDef"/>
        <page id="uam_view_testsubPageDef" path="uam.view.pageDefs.testsubPageDef"/>
        <page id="uam_view_register_org_flow_register_org_flow_CreateInsertPageDef"
              path="uam.view.pageDefs.register_org_flow_register_org_flow_CreateInsertPageDef"/>
        <page id="uam_view_SelectOrgPageDef"
              path="uam.view.pageDefs.SelectOrgPageDef"/>
        <page id="uam_view_updateorgPageDef"
              path="uam.view.pageDefs.updateorgPageDef"/>
        <page id="uam_view_OrgDetailsPageDef"
              path="uam.view.pageDefs.OrgDetailsPageDef"/>
      </pageDefinitionUsages>
      <dataControlUsages>
        <dc id="OrgValidationBean" path="uam.view.OrgValidationBean"/>
        <dc id="UAMUtil" path="uam.view.UAMUtil"/>
        <BC4JDataControl id="UAMAppModuleDataControl1"
                         Package=uam.model.common"
                         FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
                         SupportsTransactions="true" SupportsFindMode="true"
                         SupportsRangesize="true" SupportsResetState="true"
                         SupportsSortCollection="true"
                         Configuration="UAMAppModuleLocal" syncMode="Immediate"
                         xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
        <BC4JDataControl id="AppModuleDataControl"
                         Package=uam.model"
                         FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
                         SupportsTransactions="true" SupportsFindMode="true"
                         SupportsRangesize="true" SupportsResetState="true"
                         SupportsSortCollection="true"
                         Configuration="AppModuleLocal" syncMode="Immediate"
                         xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
        <BC4JDataControl id="UpdAppModuleDataControl"
                         Package=uam.model.UpdOrgDetails"
                         FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
                         SupportsTransactions="true" SupportsFindMode="true"
                         SupportsRangesize="true" SupportsResetState="true"
                         SupportsSortCollection="true"
                         Configuration="UpdAppModuleLocal" syncMode="Immediate"
                         xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
      </dataControlUsages>
    </Application>
    even if i call class CustomExceptionHandler it does not work
    {code}
    i have recreated the problem using hr schema and i uploaded hear
    http://www.datafilehost.com/download-9d37bd8a.html
    Edited by: adf009 on 2013/03/11 5:20 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to handle Error Handling In Mediator.

    Hi guys,
    Accually my reqirement is need to handle Error exception in Mediator. I am new for Meditor.
    we read source file through Mediator and route the data to Database Table in betwen need to handle Error Handling...What type of Fault handling we can do here..? plese refer any solution and sample interface URL me....Thank you

    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/med_faulthandling.htm#CHDJAADA

  • How to handle ADF_FACES Errors/Exceptions and display customized message.

    Hi All,
    <b>My question here is, </b>
    Is there any way to handle the validation/PPR kind of run time exceptions/errors. I have tried to handle these errors by extending the lifecycle and overridden the reportErrors method. But this method is being called in the PREPARE_RENDER phase. But the exception is happening in the JSF_PROCESS_VALIDATIONS phase. I have tried to handle the exceptions in the custom PagePhaseListener. But these exceptions could not be handled in the custom PagePhaseListener.
    <b>I would like to display a customized message to the user instead of displaying the PPR exception</b>.
    The details are given below.
    I have a use case related to the security like if there is a drop down list in a page. Drop down list is having a af:validateRegExp component which allows only alphabets. Dropdown is populating alphanumeric values.
    One option is selected in the drop down list and submitted the value with the help of the commondbutton.
    With the help of some tools, we modified the submitted value(index of the list submitted) to some alphabets.
    <b>Its throwing some validation exception. Some of the statements are given below.</b>
    <UIXRegion> <_warn> Error processing viewId: /Validate_TF/validate URI: /validate.jsff actual-URI: /validate.jsff.
    java.lang.NumberFormatException: ADF_FACES-60034:SelectOne could not convert index 0asd
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR
    <b>displaying a popup dialog with error message like:</b>
    ADF_FACES_60034:could not convert index
    ADF_FACES_60097:server exception
    ADF_FACES_60096: some exception occurred during PPR,
    <b>I don't want to show these kind of messages to user. Please suggest me whether is it possible or not.</b>
    Thanks in advance.
    Regards,
    SatishRaj Dasari.

    Hi,
    Try reading one of Franks post :
    [url https://blogs.oracle.com/jdevotnharvest/entry/extending_the_adf_controller_exception_handler]
    Nigel

  • Error/Exception handling in MQSeries

    Hi,
    What is the robust (yet simple) way to handle any exception generated while doing any operation in MQ Series for e.g. putting messages on queue.
    Currently i have just done exception handling using try/catch blocks in my java application.
    Kindly explain.
    Thanks,
    Sahil

    This forum is specific to the Sun Java System Message Queue
    product and is not a forum on IBM's MQSeries product.
    If you have a question on MQSeries, you may want to look for a forum on IBM's site.

  • How to handle error or exceptions in jsf

    Hi
    i have a code using DTO and DAO.I want to handle errors in jsf automatically(ie without return parameter in java code .).Hoe i can handlethose errors in faces.config.

    Declaratevly You can't do this.
    I use two event handler for state remembering:
    public static EventResult goToPage(BajaContext context,
    Page page,
    PageEvent pageEvent) {
    Page newPage = new Page(page.getProperty("nextPageName"));
    page.setProperty(NEXT_PAGE_NAME, null);
    newPage.setPropertyAsPage("returnPage", page, context.getPageEncoder());
    return new EventResult(newPage);
    public EventResult returnToPage(BajaContext context,
    Page page,
    PageEvent pageEvent) {
    Page oldPage = page.getPropertyAsPage("returnPage", context.getPageDecoder());
    return new EventResult(oldPage);
    StartPage.uix
    <handlers>
    <event name="nextPage">
    <bc4j:chaining>
    <bc4j:setPageProperty name="nextPageName" value="NextPage"/>
    <method class="..." method="goToPage"/>
    </bc4j:chaining>
    </event>
    </handlers>
    NextPage.uix
    <handlers>
    <event name="nextPage">
    <bc4j:chaining>
    <method class="..." method="returnToPage"/>
    </bc4j:chaining>
    </event>
    </handlers>
    method setPropertyAsPage save all page properties and state informations for page.
    On every page I use ctrl:page or ctrl:pageState DataObjectLists.
    On pages with search criteria I use ctrl:httpSession DataObjectList to save all criteria in one session. You must write event handler when you make search or trigger FIND event. In this event handler you must put every search form parameter in session.
    That's all from me! I hope this help You to resolve problems!

  • 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(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

  • ERROR: exception symbol "09732" not found in resource file

    I am trying to get a client to work with workflow services. I get 'ERROR: exception symbol "09732" not found in resource file' in the output when the method queryTasks is excecuted.
    Jdeveloper 10.1.3.4 and SOA Suite 10.1.3.3.0
    Any ideas?
    Eydun
    ------------------ program ---------------------
    package project1;
    //import com.oracle.services.bpel.task.Task;
    import java.util.ArrayList;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.query.ITaskQueryService;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    import java.util.List;
    import oracle.bpel.services.workflow.repos.Ordering;
    import oracle.bpel.services.workflow.repos.Predicate;
    import oracle.bpel.services.workflow.repos.TableConstants;
    import oracle.bpel.services.workflow.task.ITaskService;
    import oracle.bpel.services.workflow.task.model.Task;
    public class Class1 {
    public Class1() {
    public void TryTask() {
    try {
    //Create JAVA WorflowServiceClient
    IWorkflowServiceClient wfSvcClient =
    WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.WSIF_CLIENT);
    //Get the task query service
    ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
    //Login as jstein
    IWorkflowContext ctx = querySvc.authenticate("jstein",
    "welcome1",
    null, //Use default realm
    null);//Not logging in on behalf of another user
    //Set up list of columns to query
    List queryColumns = new ArrayList();
    queryColumns.add("TASKID");
    queryColumns.add("TASKNUMBER");
    queryColumns.add("TITLE");
    queryColumns.add("OUTCOME");
    //Create a predicate to query tasks that have a null outcome
    String outcome = null;
    Predicate predicate = new Predicate(TableConstants.WFTASK_OUTCOME_COLUMN,
    Predicate.OP_EQ,
    outcome);
    //Create an ordering to order tasks by task number
    Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN
    ,true //Ascending order
    ,false //Nulls last
    //Query a list of tasks assigned to jstein
    List tasks = querySvc.queryTasks(ctx,
    queryColumns,
    null, //Do not query additional info
    ITaskQueryService.ASSIGNMENT_FILTER_MY,
    null, //No keywords
    null, //predicate, //Only tasks with no outome set
    ordering, //Order by ascending task number
    0, //Do not page the query result
    0);
    //Get the task service
    ITaskService taskSvc = wfSvcClient.getTaskService();
    //Loop over the tasks, outputting task information, and approving tasks
    for(int i = 0 ; i < tasks.size() ; i ++)
    Task task = (Task)tasks.get(i);
    int taskNumber = task.getSystemAttributes().getTaskNumber();
    String title = task.getTitle();
    String taskId = task.getSystemAttributes().getTaskId();
    //Set the outcome
    taskSvc.updateTaskOutcome(ctx,taskId,"APPROVED");
    System.out.println("Task #"+taskNumber+" ("+title+") is APPROVED");
    catch (Exception e)
    //Handle any exceptions raised here...
    System.out.println("Caught workflow exception: "+e.getMessage());
    public static void main(String[] args) {
    Class1 class1 = new Class1();
    class1.TryTask();
    ------------------- output ---------------------
    C:\java\jdk1.6.0_07\bin\javaw.exe -client -classpath C:\jdev11work\eej\mywork\Application3\Project1\classes;C:\oracle\jdev10134bpellibs\bpel\lib\bpm-infra.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel-common.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel-thirdparty.jar;C:\oracle\jdev10134bpellibs\j2ee\home\jazncore.jar;C:\oracle\jdev10134bpellibs\j2ee\home\oc4jclient.jar;C:\oracle\jdev10134bpellibs\lib\xml.jar;C:\oracle\jdev10134bpellibs\lib\xmlparserv2.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\config;C:\oracle\jdev10134bpellibs\webservices\lib\orasaaj.jar;C:\oracle\jdev10134bpellibs\webservices\lib\soap.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\lib\bpm-services.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\schema;C:\oracle\jdev10134bpellibs\bpel\lib\olite40.jar;C:\oracle\jdev10134bpellibs\jdbc\lib\ojdbc14.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel.jar;C:\oracle\jdev10134bpellibs\wsclient_extended.jar project1.Class1
    <::> WorkflowService:: TaskQueryService.authenticate(): called. user = jstein identityContext = null onBehalfOfUser = null
    <::> WorkflowService:: VerificationService.authenticateUser: attempting for user = jstein identityContext = null
    <ISConfiguration::load> Found Configuration=Configuration: realmName=jazn.com properties:{} has 1 providers:
    <ISConfiguration::load>      Provider: service=Identity providerType=JAZN providerName=XML Provider properties:{usersPropertiesFile=users-properties.xml}
    <ISConfiguration::load>      
    <ISConfiguration::validate> Validate configuration=Configuration: realmName=jazn.com properties:{} has 1 providers:
    <ISConfiguration::validate>      Provider: service=Identity providerType=JAZN providerName=XML Provider properties:{usersPropertiesFile=users-properties.xml}
    <ISConfiguration::validate>      
    <ISConfiguration::save> Save IdentityService configuration file into /C:/oracle/jdev10134bpellibs/bpel/system/services/config/is_config.xml
    <ServiceFactory::getService> Provider type is JAZN
    <ServiceFactory::getService> JAZN's ProviderType=XML
    <XMLIdentityService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLAuthenticationService::init> Load provider initialization complete
    <XMLAuthorizationService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLAuthorizationService::init> Load provider initialization complete
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService::authenticateUser():: begin
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: begin
    <BPMServiceJAZNBase::getRealm> Realm=[Realm: jazn.com]
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: end
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService:: call authenticate
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService:: user is authenticated!
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService::authenticateUser():: end
    <ServiceFactory::getService> Provider type is JAZN
    <ServiceFactory::getService> JAZN's ProviderType=XML
    <XMLIdentityService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLIdentityService::init> Load provider initialization complete
    <XMLAuthenticationService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLAuthenticationService::init> Load provider initialization complete
    <XMLAuthorizationService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLAuthorizationService::init> Load provider initialization complete
    <BPMAuthorizationServiceImpl::lookupUser> BPMAuthorizationServiceImpl::lookupUser():: begin, userName=jstein
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: begin
    <BPMServiceJAZNBase::getRealm> Realm=[Realm: jazn.com]
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: end
    <BPMUserImpl::<init>> User=jstein was created
    <BPMAuthorizationServiceImpl::lookupUser> User is found, user=RealmUser: jstein
    <BPMIdentityImpl::getActions> BPMIdentityImpl::getActions()
    <BPMIdentityImpl::getAllGrantedRealmRoles> Identity has the following granted realmRoles=[RealmRole: BPMWorkflowReassign, RealmRole: BPMWorkflowSuspend, RealmRole: BPMAnalyst]
    <RoleProperties::load> Resource oracle/tip/pc/services/identity/role.properties is loaded, s_properties={BPMWorkflowSuspend=SUSPEND,RESUME, BPMWorkflowAdmin=ADMIN, BPMWorkflowReassign=REASSIGN, BPMPublic=VIEW_WORK_LIST,ACQUIRE,WITHDRAW,ESCALATE,ERROR,PUSH_BACK,RENEW,RELEASE,REQUEST_INFO,SUBMIT_INFO,CUSTOM,VIEW_TASK_HISTORY,VIEW_SUB_TASKS,UPDATE,ADHOC_ROUTE,OUTCOME_UPDATE_ROUTE, BPMSystemAdmin=, BPMWorkflowViewHistory=VIEW_TASK_HISTORY,VIEW_PROCESS_HISTORY, BPMAnalyst=VIEW_REPORTS}
    <BPMIdentityImpl::getActions> Identity has the following roles:[BPMWorkflowReassign, BPMWorkflowSuspend, BPMAnalyst]
    <BPMIdentityImpl::getActions> Role: BPMWorkflowReassign
    <BPMIdentityImpl::getActions> Actions: [OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE, REASSIGN]
    <BPMIdentityImpl::getActions> Role: BPMWorkflowSuspend
    <BPMIdentityImpl::getActions> Actions: [RESUME, OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, SUSPEND, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE]
    <BPMIdentityImpl::getActions> Role: BPMAnalyst
    <BPMIdentityImpl::getActions> Actions: [OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE, VIEW_REPORTS]
    <BPMIdentityImpl::getActions> Identity has the following actions:[RESUME, OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, SUSPEND, ACQUIRE, RENEW, ADHOC_ROUTE, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, VIEW_WORK_LIST, ERROR, ESCALATE, RELEASE, REASSIGN, VIEW_REPORTS]
    <BPMPrincipalImpl::getAttribute> Attribute=languagePreference is not set. Populate principal=jstein
    <::> WorkflowService:: VerificationService.authenticateUser: successful for user = jstein identityContext = null
    <::> WorkflowService:: TaskQueryService.authenticate(): completed. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ==
    <::> VerificationService.createWorkflowContext: Request NOT authenticated by WS-Security framework
    <BPMAuthorizationServiceImpl::lookupUser> BPMAuthorizationServiceImpl::lookupUser():: begin, userName=jstein
    <BPMUserImpl::<init>> User=jstein was created
    <BPMAuthorizationServiceImpl::lookupUser> User is found, user=RealmUser: jstein
    <BPMPrincipalImpl::getAttribute> Attribute=languagePreference is not set. Populate principal=jstein
    <::> WorkflowService:: TaskQueryService.queryTasks(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein displayColumns = TASKID, TASKNUMBER, TITLE, OUTCOME optionalInformation = assignmentFilter = My keywords = null predicate = null ordering = wfn.taskNumber ASC startRow = 0 endRow = 0
    <::> WorkflowService:: TaskQueryService.getCombinedPredicate(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein assignmentFilter = My keywords = null predicate = null
    <::> WorkflowService:: TaskQueryService.getAssignmentFilterPredicate(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein assignmentFilter = My
    <::> WorkflowService:: TaskQueryService.getAssignmentFilterPredicate(): completed. assignmentFilterPred = ((wfn.taskId=wfa.taskId AND wfa.isGroup =? AND ( wfa.assignee IN (?))) OR ( ( wfn.originalAssigneeUser IN (?)) AND wfn.taskId=wfa.taskId) AND wfn.isGroup =?) AND ( wfn.identityContext IS NULL )
    <::> WorkflowService:: TaskQueryService.getCombinedPredicate(): completed. combinedPredicate = ((wfn.taskId=wfa.taskId AND wfa.isGroup =? AND ( wfa.assignee IN (?))) OR ( ( wfn.originalAssigneeUser IN (?)) AND wfn.taskId=wfa.taskId) AND wfn.isGroup =?) AND ( wfn.identityContext IS NULL )
    ERROR: exception symbol "09732" not found in resource file.
    <::> ORABPEL-09732
    <::>
    <::>
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:231)
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getInstance(PersistencyDriver.java:152)
    <::>      at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:213)
    <::>      at oracle.bpel.services.workflow.query.impl.TaskQueryServiceWSIF.queryTasks(TaskQueryServiceWSIF.java:172)
    <::>      at oracle.bpel.services.workflow.query.client.TaskQueryServiceWSIFClient.queryTasks(TaskQueryServiceWSIFClient.java:66)
    <::>      at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.queryTasks(AbstractDOMTaskQueryServiceClient.java:180)
    <::>      at project1.Class1.TryTask(Class1.java:55)
    <::>      at project1.Class1.main(Class1.java:91)
    <::> Caused by: java.lang.NullPointerException
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getDatasourceName(PersistencyDriver.java:177)
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.initNonTransactionDataSource(PersistencyDriver.java:198)
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:224)
    <::>      ... 7 more
    <2008-10-14 23:59:00,952> <ERROR> <oracle.bpel.services> <::>
    java.lang.NullPointerException
         at oracle.bpel.services.workflow.repos.PersistencyDriver.getDatasourceName(PersistencyDriver.java:177)
         at oracle.bpel.services.workflow.repos.PersistencyDriver.initNonTransactionDataSource(PersistencyDriver.java:198)
         at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:224)
         at oracle.bpel.services.workflow.repos.PersistencyDriver.getInstance(PersistencyDriver.java:152)
         at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:213)
         at oracle.bpel.services.workflow.query.impl.TaskQueryServiceWSIF.queryTasks(TaskQueryServiceWSIF.java:172)
         at oracle.bpel.services.workflow.query.client.TaskQueryServiceWSIFClient.queryTasks(TaskQueryServiceWSIFClient.java:66)
         at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.queryTasks(AbstractDOMTaskQueryServiceClient.java:180)
         at project1.Class1.TryTask(Class1.java:55)
         at project1.Class1.main(Class1.java:91)
    Caught workflow exception:
    Process exited with exit code 0.

    Although the versions 10.1.3.4 and 10.1.3.3 are close and should be able to use 10.1.3.4 JDev for most 10.1.3.3 development, the human tasks is the one exception. 10.1.3.3 had a few bugs fixed therefore the jar file used in JDev 10.1.3.4 may not be compatible with 10.1.3.3.
    I would either use JDev 10.1.3.3 or upgrade SOA Suite to 10.1.3.4
    cheers
    James

  • How to handle errors in a file at sender side?

    Hi
    I have done a file to proxy scenario.
    I know how to handle errors on proxy.
    But on sender side when picking the file if one the record have worng fomat its throwing mapping error and its not processing any record..
    I wanted to process the records which have right format and data and  all remaining recrods which have wromg format should be send back to the sender as file.
    How to do this.
    How to handle error in sender file.
    Regards
    Sowmya

    Hello Sowmya,
    In your scenario Three ways you can validate the data.
    1) Before the data reaches into SAP system ie in XI system during Mapping or before mapping i,e in Adapter Module in the Sender side
    2) this option, is in the receiver applications side. ie. Validations will be taken care in the SAP system i.e in ABAP server proxy code.
    3)Through BPM, If Mapping Exception Occures then through exception Branch you can send bad formate file to sender again.
    Generally, it is prefer to more business critical validations in the Application System ie Receiver Application System (ABAP Server Proxy)
    In this, you can have more flexibility of the validations as you are validating some of the SAP payroll informations as Personal ID etc.
    Based on the complexity and flexibility of the requirement, you can either do this in the XI (if XI, ie Sender Adapter Module or Mapping) or in the ABAP proxy
    Thanks'
    Sunil Singh

  • How to handle multiple exception types in JSF 2?

    I'm trying to handle multiple exception types in JSF2, including a default error page for any unexpected exception types. The problems I'm having are:
    1) ViewExpiredException is handled only when no generic exception handler is specified
    2) "Regular" exceptions like NullPointerException are never handled
    My managed bean:
    @Named
    @SessionScoped
    public class MyController implements Serializable {
    /* A method that does nothing */
    public void doNothing() {
        //do nothing
    /* Generate a null pointer exception on purpose */
    public void generateNpe() throws NullPointerException {
        Object x = null;
        x.toString();
    My test page to generate the exception:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Test page</title>
    </h:head>
    <h:body>
        <h:form>
            <h:commandButton id="button1" value="do nothing" action="#{myController.doNothing}" />
            <h:commandButton id="button2" value="generate NPE" action="#{myController.generateNpe}" />
        </h:form>
    </h:body>
    </html>
    My web.xml:
    <!-- Redirect all NPEs to this page; this never works! -->
    <error-page>
        <exception-type>java.lang.NullPointerException</exception-type>
        <location>/error/error003.jsf</location>
    </error-page>
    <!-- Redirect all VEEs to this page; this works fine if the next section is excluded -->
    <error-page>
        <exception-type>javax.faces.application.ViewExpiredException</exception-type>
        <location>/error/error002.jsf</location>
    </error-page>
    <!-- This grabs everything, even with the previous sections defined.  If I exclude this error-page section, VEE works fine but NPE still does not get redirected -->
    <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>/error/error001.jsf</location>
    </error-page>My questions are as follows:
    1) How can we handle "regular" java exceptions like NPE?
    2) How can we define a catch-all for unexpected exception types, while still respecting specific exception handlers for VEE, etc?
    Thanks,
    Benjamin

    Is your data model right? If you are adding in one and deleting in another it sounds to me more like a process that an entity, in which case you may revisit your data model and simplify it, add in a session bean with the process method to co-ordinate between the two.
    However, if you want to map multiple different tables within a single entity bean it is possible and just part of the mapping. How you actualyl specify it depends on which implementation you are working with.
    Cheers,
    Peter.

  • 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

  • Is there a way to handle system exception ERROR_MESSAGE?

    Hi,
    I have a program executed in background, which produces a bunch of consecutive documents for a set of Bulk Shipments -> TD Loading and TD Delivery Confirmation. To create those documents I use function modules 'OIGI_LOADING_CREATE' and 'OIGI_DEL_CONF_CREATE'  - both from Industry-Solution Oil-and_Gas (IS-Oil).
    In some cases these FM-s produces error messages (E-type) which cancel execution of the program and broke my flow-logic.
    Below are few messages recorded in a job log for my task:
    18.08.2005 15:56:41 Job started                                                                         
    18.08.2005 15:56:41 Step 001 started (program /PTRL/TAS_POSTPONDED_SYNC, variant , user name IMUTAFCHIEV)
    18.08.2005 15:56:58 Shipment 180753 saved                                                               
    18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV                    
    18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV                    
    18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV                    
    18.08.2005 15:57:06 Job cancelled after system exception ERROR_MESSAGE                                  
    Both function modules are not designed to handle any exceptions, and in owr environment (4.6c) there is no documented system exception 'ERROR_MESSAGE' which to be handled in CATCH-ENDCATCH block.
    Is there a way to handle this exception and to track the list of error messages produced by some FM into an internal table, log, whatever, as it is done in the log of the background job. I need to find a way write these messages in my log-tables and to proceed further with my flow-logic.
    FYI: my program executes an RFC call to a remote system and retrieve a list of documents which need to be synchronized with R/3. I loose information, if the R/3 broke my flow-logic.
    Any help would be highly appresiated.
    Many thanks in advance.
    Ivaylo Mutafchiev

    Sven,
    I made few programs where we used business scenario:
    IS-Oil Shipment => IS-Oil Loading Confirmation => IS-Oil Delivery Confirmation.
    All of them are based on Function Module call:
    1. OIGI_LOADING_CREATE and
    2. OIGI_DEL_CONF_CREATE.
    To load shipment I call 1st FM in a way:
      CALL FUNCTION 'OIGI_LOADING_CREATE' DESTINATION 'NONE'
           EXPORTING
                I_SUBRC     = 9  "save and commit
                I_SHNUMBER  = shNumber
                I_VEHICLE   = vehicle
                I_LDPLT     = plant
                I_LDDATE    = loadDate
                I_LDTIME    = loadTime
                I_LDCDAT    = loadDate
                I_VEH_NR    = veh_nr
           TABLES
                T_OIGISVMQ  = quantity_items
                T_OIGISVMQ2 = hpm_append
                T_OIGISIQ   = doc_quan_items
           EXCEPTIONS
                COMMUNICATION_FAILURE = 1 MESSAGE p_error
                SYSTEM_FAILURE = 2 MESSAGE p_error.
    To confirm shipment (status 4) I call the same FM with:
      CALL FUNCTION 'OIGI_LOADING_CREATE' DESTINATION 'NONE'
           EXPORTING
                I_SUBRC    = 39  "confirm & commit 2nd step
                I_SHNUMBER = shNumber
                I_VEHICLE  = vehicle
                I_LDPLT    = werks
           EXCEPTIONS
                COMMUNICATION_FAILURE = 1 MESSAGE sh_error
                SYSTEM_FAILURE = 2 MESSAGE sh_error.
    And finaly to finish process (status = 6) I call 2nd FM in a way:
      CALL FUNCTION 'OIGI_DEL_CONF_CREATE' DESTINATION 'NONE'
           EXPORTING
                I_SUBRC         = 19  "save, confirm and commit
                I_SHNUMBER      = shNumber
                I_RAPID_CONFIRM = 'X'
                I_DDCDAT        = loadDate
                I_DLDATE        = loadDate
                I_DLTIME        = loadTime
           EXCEPTIONS
                COMMUNICATION_FAILURE = 1 MESSAGE p_error
                SYSTEM_FAILURE = 2 MESSAGE p_error.
    FYI: It tooks me some time to 'investigate' and find correct use of these function modules. And I worked VERY CLOSE with our SD consultant.
    For details (what the export parameters and tables consist of) and sample code, please contact me at:
    ivaylo dot mutafchiev at vbs dot bg
    I would be glad to share my knowlege.
    Regards,
    Ivaylo

  • How to handle RFC exception in XI

    We have developed a proxy-> RFC scenario. But its not able to handle the RFC exception. In case of an exception the response payload is as below
    <rfc:Y_BAPI_GET_POSTING_PERIOD.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>RFC_ERROR_SYSTEM_FAILURE</Name><Text>Screen output without connection to user.</Text><Message><ID>RFC_ERROR_SYSTEM_FAILURE</ID><Number>044</Number></Message><Attributes><V1>DYNPRO_SEND_IN_BACKGROUND</V1></Attributes></rfc:Y_BAPI_GET_POSTING_PERIOD.Exception>
    Is it correct way to get exception from RFC in such a way or the error/exception text should come in RETURN part of the RFC response? 
    What is the best approach or solution to handle the sync. RFC call exception in XI?

    Hi,
    You can create a Fault Message Type and map the RFC exception text to this.
    In the interface mapping in addition to Request and response
    mapping you will get an additional fault message mapping.
    This will handle your exception properly.
    Regards,
    V.Ramya

Maybe you are looking for