exceptions during loops

Hi all is it possible to handle exceptions during a loop in a workflow.

for example, I have a workflow of mass deployment which is cloning of servers on in bulk. Can I check back on the clone_vm task codes and connect all and either bail or continue based on return codes.

in some situations, that I would like to try / do not continue the loop.

in others, that I would try fail stop loop.

Are there samples anywhere that I could look over.

You could start your clone as a parallel workflow in a parent workflow and check the status of symbolic workflow to start a workflow of reclamation. Search for "Start workflows in parallel" in the library as a base.

Tags: VMware

Similar Questions

  • ADF_FACES - 60096:Server Exception during the PPR, #22

    Hello

    I sent CodingForm (imagingAXFAccountDistribution) on server SOA and IPM. In AXF Refresh shape - developer's guide they said coding

    to deploy the imagingAXFAccountDistribution EAR on IPM server only, but when I deploy the form of coding of the deployed application (imagingAXFAccountDistribution) as a single MARKET right on server IPM

    the coding form don't appear/rendering as I click on the task of AccountDistribution (http:// < host_name >: 16000/axf/faces/command/CommandExecutor.jspx?cmd=StartOpenSolutionWorkspace & land = OpenSolutionWorkspace)

    So I just tried to deploy the application imagingAXFAccountDistribution on IPM and SOA, and then deploy the form of coding as MAR on the servers, and then when I click

    AccountDistribution task, I get the form (on the second half of the page) but this time with the following error in the logs (ADF_FACES - 60096:Server Exception during the PPR, #2). Also, a window appears stating "unknown error occurred during data streaming.

    Inside the form of coding I don't see the line editable item. Also, I have a small "data extract" message but does not show anything.

    Button "Add line" or the 'Invoice Image' tab on the form of coding does not work. and the same pop-up appears, as I mentioned above.

    Number of the line does not also appear. In short, the entire line is not editable and watch in grey.

    Ref:

    Using the form of coding later: Financials-Image-Processing-Solution-Accelerator-11_1_1_8_0

    Jdev: 11.1.1.7.0 open the coding form using 'custom role' as described in the document.

    There is a similar thread with the same details, but that is checked, don't know why...

    Kind regards.

    Vikrant Korde

    Hey Vikrant,

    I saw a similar question, while on the screen the message "unknown error occurred during data streaming" appears, but in newspapers, I found a nullPointerException for KFF Configurator.

    The question could be there because of missing package required for the fields of flex.

    There are 3 scripts you need to run to solve the problem of field flex.

    The scripts are present under the following directories:

    1. "11g_Accelerator\CodingForm\scripts\AXF_FLEX_FIELDS.sql".

    2. "11g_Accelerator\CodingForm\scripts\EBS_R12\AXF_LOV.sql".

    3. "11g_Accelerator\CodingForm\scripts\AXF_GRANTS.sql".

    All you have to do is connect to the basis of EBS by using patterns of applications and run above scripts.

    This should solve the problem.

    Kind regards

    Siddhartha Agarwal

  • ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #2 60096:Server

    Hi all, I had a problem when using popup to create a new table row.

    I do like in this http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html

    but when I click on insert, an error stating:

    java.lang.NullpointerExeption

    ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #2 60096:Server

    In other cases, when showing Popup, when I clicked on cancel (popup), the display of the error as above. I don't know why?

    Can someone explain to me why. Thank you

    Check your page links if the createInsert operation is present.

    Then check that the getBindings() method returns a value and not null.

    Timo

  • Get an Exception during the instantiation of a model of vApp

    I got an Exception during the instantiation of a model of VAPP by REST and get a result like 'Bad request', here is the log:

    com.vmware.vcloud.api.presentation.service.BadRequestException: change a routed network VAPP bridged mode and change the parent network a VAPP bridged network, are not supported by instantiating a VAPP with 'Identical copy' (CustomizeOnInstantiate = false) model selected.
    at com.vmware.vcloud.vdc.impl.VdcServiceImpl.renameDirectConnectedVappNetworks(VdcServiceImpl.java:3614)
    at com.vmware.vcloud.vdc.impl.VdcServiceImpl.instantiateVApp(VdcServiceImpl.java:3549)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    ....

    What should I do? I had a bad configuration?

    View.

    Hello

    You cannot change the MAC address before or during the instantiation of vApp.

    However, once the vApp is created (instantiated) and before it is deployed, you can change the MAC address for each of its virtual machines.

    This can be done by changing the networkConnectionSection in each virtual machine using the REST API:

    PUT https:/// api/PPPV//networkConnectionSection

    Content-Type: application/vnd.vmware.vcloud.networkConnectionSection+xml

    Body of the request:

        Specifies the available VM network connections
        0
       
            0
            fake
            00:50:56:18:02:7 B
            NONE
       
        https://10.26.49.174/API/vApp/VM-2a17fb4c-e67a-4b33-B82C-f53df52cead8/networkConnectionSection/"/ >

    Kind regards

    Todor Todorov

  • Unknown exception during analysis of NsSAX2Reader

    Hello!

    I use the java API for Berkeley DB XML 2.4.13 under Windows XP SP2.
    I have the following peace of code:

    documentConfig = new XmlDocumentConfig();
    Results = xmlContainer.getAllDocuments (documentConfig) XmlResults;

    {while (Results.hasNext ())}
    XmlDocument doc = results.next () .asDocument ();
    ...
    }

    After the line "XmlDocument doc = results.next () .asDocument ()" I get an exception:

    com.sleepycat.dbxml.XmlException: error: unknown exception during NsSAX2Reader parse the file: \dbxml-2.4.13\dbxml\src\dbxml\nodeStore\NsSAX2Reader.cpp line: 366, errcode = INTERNAL_ERROR
    at com.sleepycat.dbxml.dbxml_javaJNI.XmlResults_nextInternal (Native Method)
    at com.sleepycat.dbxml.XmlResults.nextInternal(XmlResults.java:162)
    at com.sleepycat.dbxml.XmlResults.next(XmlResults.java:47)
    .... (with exceptions in my code)

    Does anyone know how to determine what is the reason for this error?

    Additional information:
    I added material to the container via the C++ API
    The container has WholeDoc type

    Thanks in advance

    Vyacheslav

    Well I can't yet reproduce your error, even with the resolver that you gave. Nothing in your resolver is clearly wrong, although it seems strange that you use tntManager to create the stream buffer instead of the XmlManager spent by the funtion. Try calling

    return xmlManager.createMemBufInputStream(null, 0, false);
    

    Instead of

    return tntManager.createMemBufInputStream(null, 0, false);
    

    Lauren Foutz

  • I want to put my blocker exceptions during installation. How this is done?

    I need to deploy FireFox 10.0.2 in my environment. An important requirement is to have exceptions Blocker is set during installation. I know that these settings are stored in the file permissions.sqlite. Is it possible to configure this file with my settings, it is installed with my settings.

    If you need to initialize specific files in a new profile, and then create a folder of model in the Firefox program folder (C:\Program Files\Mozilla Firefox\defaults\profile\) and place the files in this folder.

  • Exception during Audio recording

    Hello

    I am trying to create a screen where the user can start and the voice to stop recording.

    Start button will start the recording of the voice, where as stop stop recording and store the voice record.

    I looked for Ko Javadevelopment and found some code and changed according to my understanding (as the code is available in pieces).

    When I press the Start Recording button, I get an exception "java.lang.ClassCastException.

    Can you please help me to solve the same.

    I'm pasting my entire code here for your reference.

    package comp;
    
    import java.io.IOException;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class myAudio extends MainScreen {
        private ButtonField _startRecordingButton;
        private ButtonField _stopRecordingButton;
        private HorizontalFieldManager _fieldManagerButtons;
        private VoiceNotesRecorderThread _voiceRecorder;
        private LabelField _myAudioTextField;
    
        public myAudio() {
            _startRecordingButton = new ButtonField("Start Recording");
            _stopRecordingButton = new ButtonField("Stop Recording");
            _fieldManagerButtons = new  HorizontalFieldManager();
            _voiceRecorder = new VoiceNotesRecorderThread(5000,"file:///store/home/user/myfile.amr",this);
            _voiceRecorder.start();
    
            myButtonFieldChangeListener buttonFieldChangeListener = new myButtonFieldChangeListener();
            _startRecordingButton.setChangeListener(buttonFieldChangeListener);
            _stopRecordingButton.setChangeListener(buttonFieldChangeListener);      
    
            _fieldManagerButtons.add(_startRecordingButton);
            _fieldManagerButtons.add(_stopRecordingButton);
    
            _myAudioTextField = new LabelField(" Hello..." );
            add(_fieldManagerButtons);
            add(_myAudioTextField);
        }
    
        public void setAudioTextField(String text) {
            _myAudioTextField.setText(text);
        }
    
        class myButtonFieldChangeListener implements FieldChangeListener{
            public void fieldChanged(Field field, int context) {
                if(field == _startRecordingButton) {
                    try {
                        _voiceRecorder.startRecording();
                    } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                    }
                }else if(field == _stopRecordingButton) {
                    _voiceRecorder.stopRecording();
                }
            }
        }
    }
    
    package comp;
    
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    
    import javax.microedition.io.Connector;
    import javax.microedition.io.file.FileConnection;
    import javax.microedition.media.Manager;
    import javax.microedition.media.Player;
    import javax.microedition.media.control.RecordControl;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class VoiceNotesRecorderThread extends Thread
    {
       private Player _player;
       private RecordControl _rcontrol;
       private ByteArrayOutputStream _output;
       private byte _data[];
       private int recordSizeLimit;
       private String recordFileName;
       private myAudio myAudioScreen;
       private FileConnection fileConn;
    
       VoiceNotesRecorderThread(int limit, String filePath, myAudio screen) {
           fileConn = null;
           recordSizeLimit = limit;
           recordFileName = filePath;
           myAudioScreen = screen;
       }
    
       private int getSize()
       {
           return (_output != null ? _output.size() : 0);
       }
    
       private byte[] getVoiceNote()
       {
          return _data;
       }
    
    //  public void run() {
    //      while(true){
    //          synchronized (UiApplication.getEventLock()) {
    //              myAudioScreen.setAudioTextField(" Running Thread...");
    //          }
    //      }
    //  }
    
        public boolean startRecording() throws IOException {
    
            _output = null;
            _rcontrol = null;
            _player = null;
    
            try {
                synchronized (UiApplication.getEventLock()) {
                    myAudioScreen.setAudioTextField(" Start Recording...");
                }                
    
                fileConn = (FileConnection) Connector.open(recordFileName);
    
                if (fileConn.exists()) {
                    fileConn.delete();
                    synchronized (UiApplication.getEventLock()) {
                        Dialog.inform(" File: File is already available" );
                    }
                }
                fileConn.close();
    
                fileConn = (FileConnection) Connector.open(recordFileName, Connector.WRITE );
                fileConn.create();
                _output = (ByteArrayOutputStream) fileConn.openOutputStream();
    
                //Create a ByteArrayOutputStream to capture the audio stream.
                //_output = new ByteArrayOutputStream();
                // Create a Player that captures live audio.
                _player =  Manager.createPlayer("capture:///audio?encoding=audio/amr");
                _player.realize();
    
                synchronized (UiApplication.getEventLock()) {
                    Dialog.inform(" Player is Created" );
                }
                // Get the RecordControl, set the record stream,
                _rcontrol = (RecordControl)_player.getControl("RecordControl");
                _rcontrol.setRecordSizeLimit(recordSizeLimit);
                //_rcontrol.setRecordLocation(pathToRecording);
                _rcontrol.setRecordStream(_output);
                _rcontrol.startRecord();
                _player.start();
                synchronized (UiApplication.getEventLock()) {
                    Dialog.inform(" Player is Started" );
                }
                //_output.reset();
                //_player.addPlayerListener(playerListen);
            }
            catch ( Exception e) {
                if(fileConn != null) {
                    fileConn.delete();
                    fileConn.close();
                }
                synchronized (UiApplication.getEventLock()) {
                    Dialog.inform(" StartRecording: Exception "+ e.toString() );
                }
                return false;
            }
            return true;
        }
    
        public void stopRecording() {
            try {
                synchronized (UiApplication.getEventLock()) {
                    myAudioScreen.setAudioTextField(" Stop Recording...");
                }
    
                if(_rcontrol != null) {
                    _rcontrol.commit();
                }
                else {
                    synchronized (UiApplication.getEventLock()) {
                        Dialog.inform(" _rcontrol is null " );
                    }
                }
                if(_output != null) {
                    //_output.flush();
    
                    if(!(_output.size() >0) ) {
                        synchronized (UiApplication.getEventLock()) {
                            Dialog.inform(" _output buffer empty " );
                        }
                    }
                    _data = _output.toByteArray();
                    _output.close();
                }
                if(!(_data.length > 0)) {
                    synchronized (UiApplication.getEventLock()) {
                        Dialog.inform(" Data gone baby gone " );
                    }
                }
                if(_player != null) {
                    _player.close();
                    _player = null;
                }
            }
            catch (final Exception e) {
                synchronized (UiApplication.getEventLock()) {
                    Dialog.inform(" Stop recording Failed:  " + e.toString());
                }
                return;
                //Dialog.inform(e.toString());
            }
        }
    
        class FieldListener implements FieldChangeListener {
            Object recordButtonField = null;
            Object stopRecordingButtonField = null;
    
            public void fieldChanged(Field field, int context) {
                if(field.equals(recordButtonField)) {
                    try {
                        startRecording();
                    } catch (IOException e) {
                        synchronized (UiApplication.getEventLock()) {
                            Dialog.inform(" Start Button Exception:  " + e.toString());
                        }
                        //e.printStackTrace();
                    }
                    /*recording only occurs during the sleep*/
                } else if(field.equals(stopRecordingButtonField)) {
                    stopRecording();
                }
            }
        }
    }
    

    _player = Manager.createPlayer ("capture://audio?encoding=audio/amr");

    Mark as resolved

    Give us some kudoes

  • Problem during loop playback of MP3

    Hello

    I'm trying to play an mp3 file in a loop on Blackberry pearl 8100, here's the code:

    Try
    {
               
    Player=javax.microedition.media.Manager.createPlayer(getClass().getResourceAsStream("/sound.MP3"),"audio/MPEG");
               
    Player.Realize ();
    Player.prefetch ();
    player.setLoopCount(-1);
    Player.Start ();
    }
    catch (System.Exception e)
    {
    System.out.println ("error in the establishment of the media:" + e);
               
    }

    The problem is the sound simple and after that I get under the exception:

    MEDIA_NATIVES: unload0() mediaHandle = 0
    MN: unload 1
    MEDIA_NATIVES: init0() mediaHandle = 0 State = 0
    MN: charge 0
    MEDIA_NATIVES: seekComplete0() mediaHandle = 0
    MEDIA_NATIVES: unload0() mediaHandle = 0
    MN: unload 1
    Streaming is reason = 1 prev - state = 300
    AUDIOMANAGER: IOException
    Streaming is reason = 1000 prev - state = 300

    This exception is automatically without coming and println statement...

    Is there anything that I'm missing, please give me the solution...

    Kind regards

    LOULOU

    If you have everything installed recent versions, give a try.

  • Raise the Exception in loop For

    Currently my loop code is
    FOR i IN 2..vt_records.count
            LOOP
              EXIT WHEN INSTR(vt_records(i), v_delimiter,2) = 0;
                csv_to_array(vt_records(i), vt_record, v_delimiter);
    
              --| Workaround for the case when the last column is null
              IF vt_record.count < v_expected_csv_cols
                THEN
                  FOR i IN 1..(v_expected_csv_cols - vt_record.COUNT)
                    LOOP
                      --RAISE_APPLICATION_ERROR(-20000, 'vt_Record.COUNT=' || vt_record.count || ' - loopcount=' || (v_expected_csv_cols-vt_record.COUNT));
                      vt_record(vt_record.COUNT+1) := NULL;
                    END LOOP;
              END IF;
    
             begin
             --{
               INSERT INTO cit_interface_correlation (
               massupdateid,
               primarymatkey_hr,
               geokey_hr,
               depmatkey_hr,
               promokey_hr,
               statcalcday,
               usercorfactor,
               inst_user,
               inst_session,
               inst_date
               ) 
               VALUES
               (
               seq_cit_interface_correlation.nextval,
               vt_record(1),
               TRIM(vt_record(2)),
               TRIM(vt_record(3)),
               vt_record(4),
               TO_DATE(TRIM(vt_record(5)),'DD.MM.YYYY'),
               TRIM(vt_record(6)),
               v('APP_USER'),
               v('APP_SESSION'),
               sysdate
               );
             --}
             end;
          END LOOP;
    {code]
    What I need to do is raise an exception if vt_record(5) is greater than sysdate.
    If any line has a date greater than sysdate then the loop should fail and not carry on.
    
    Cheers
    
    Gus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Like this?

    for i in 2..vt_records.count
    loop
         exit when instr(vt_records(i), v_delimiter,2) = 0;
    
         csv_to_array(vt_records(i), vt_record, v_delimiter);
    
         if vt_record.count < v_expected_csv_cols
         then
              for i in 1..(v_expected_csv_cols - vt_record.count)
              loop
                   vt_record(vt_record.count+1) := null;
              end loop;
         end if;
    
         if vt_record(5) > sysdate then
              raise_application_error(-20001, 'vt_record(5) is greater than sysdate');
         else
              insert into cit_interface_correlation
              (
                   massupdateid,
                   primarymatkey_hr,
                   geokey_hr,
                   depmatkey_hr,
                   promokey_hr,
                   statcalcday,
                   usercorfactor,
                   inst_user,
                   inst_session,
                   inst_date
              )
              values
              (
                   seq_cit_interface_correlation.nextval,
                   vt_record(1),
                   trim(vt_record(2)),
                   trim(vt_record(3)),
                   vt_record(4),
                   to_date(trim(vt_record(5)),'dd.mm.yyyy'),
                   trim(vt_record(6)),
                   v('APP_USER'),
                   v('APP_SESSION'),
                   sysdate
              );
         end if;
    end loop;
    
  • FOR exception management loop

    Given the following code:
    for x in my_cursor loop
        begin
            <<stmt_1>>
            <<stmt_2>>
        exception
            when others then
                <<log_error>>
        end;
    end loop;
    Say there are 5 x in my_cursor. On the element x 3, stmt_1 works fine but stmt_2 throws an exception. I would like to restore ONLY the work done on x 3 (in this case, stmt_1), then continue the loop of the next element, x 4. Can this be achieved with a combination of backup/restore point?

    In this particular case, I would suggest that you follow the third example I posted where you stand on the core of your loop in a procedure such that you change only the values of a and b If your insert succeeds, that is

    CREATE OR REPLACE PROCEDURE proc_name( p_x IN NUMBER, p_a IN OUT NUMBER, p_b IN OUT NUMBER )
    AS
      l_tmp_a NUMBER;
      l_tmp_b NUMBER;
    BEGIN
      SAVEPOINT s1;
      l_tmp_a := p_a + p_x;
      l_tmp_b := 1/(6-l_tmp_a);
      INSERT INTO test_tbl VALUES( l_tmp_a, l_tmp_b );
      p_a := l_tmp_a;
      p_b := l_tmp_b;
    EXCEPTION
      WHEN <>
      THEN
        ROLLBACK TO SAVEPOINT s1;
    END;
    

    You can, of course, have the same local variables of the TMP in your original code. Or you could replicate the calculations, i.e.

    for x in 1..5 loop
    begin
      savepoint s;
      insert into test_tbl values(a+x,1/(6-a));
      a := a+x;
      b := 1/(6-a);
    exception
      when others then
        rollback to savepoint s;
    end;
    

    Justin

  • Exception during initialization of Lecroy Ivi driver using c#

    Hello!

    We bought a Lecroy WaveRunner 64MXI-a and tried to control remotely, we have already created a resource of Visa using MAX, tested using the Panel to test VISA and everything seemed ok, we interviewed without problem.

    The problem came when we downloaded and installed the driver of the ivi of lecroy http://teledynelecroy.com/support/softwaredownload/labview.aspx, we have added references as literature has declared and initialized in this way using c#.

    Mylec ILeCroyScope = new LeCroyScopeClass();
    MYLEC. Initialize ("TCPIP0::LCRY0621N67647:inst0:INSTR", false, false, "simulation = false");

    It throws the following exceptionSystem.Runtime.InteropServices.COMException Exception de HRESULT: 0x8000FFFF (E_UNEXPECTED).

    that the exception is not thrown when we simulate = true. And we already tested it using a session simple message in function, but no luck with the ivi driver.

    Has anyone encountered this problem and found a solution? any help is useful, thank you.

    PD: I have already contacted lecroy but no response atm, I'm looking for advice here.

    Hello Nelson.

    Just a tip, I just send you an email response to your support request by email TeledyneLeCroy.

  • Exception during consumption of huge data from a web service.

    Hello

    I m developing an application to receive data from a Web Service and retain the data received on the device.

    App is developed for OS 4.3.0

    The Web Service call is made using Ksoap. The Code receives the data from the web service, analyzes the data and stores it in an object. This object is then persisted on the device. The data are essentially the coordinates. It takes the number of contacts required as input and passes it to the Web Service. The Web Service then returns the requested number of records

    The code works if I ask data of up to ~ 600 cases. If I specify more than 600 cases, it throws the following exception

    Chain rg.xmlpull.v1.XmlPullParserException:unexpected type (position: TEXT entity request in T...@1:24 in java.io.InputStreamReader@1f87d1b4)

    When I debugged using Eclipse, this exception is thrown on this statement ht.call (soapAction, envelope);

    Would it be because of a time-out? OT is because the Analyzer is not able to analyze huge data?

    Given that this exception occurs on the declaration of ht.call, I guess the problem is with the web service call and not with the code for persistent storage.

    I have included the code here... Is could someone please show me what the problem is?

    C ode to call Web Services

    public Vector getWebData(String count)
        {
    
       Vector personsVectorto = new Vector();
        try
        {
        StringBuffer receivedContent = new StringBuffer();
        String serviceUrl = "........";
        String serviceNamespace = ".....";
        String soapAction = ".........";
    
       SoapObject rpc = new SoapObject(serviceNamespace, "GetContactsList");
            //rpc.addProperty("listSize", "5");
            rpc.addProperty("listSize", count);
         SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    
            envelope.bodyOut = rpc;
    
            envelope.dotNet = true;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
    
            ht.call(soapAction, envelope); // This is where thexmlpullparser exception occurs
    
     Object obj = envelope.getResponse();
            SoapObject soapResult = (SoapObject)obj;
    
                for(int i=0; i < soapResult.getPropertyCount(); i++)
    
                {
                  PersonDTO personto = new PersonDTO();
               SoapObject choice = (SoapObject)soapResult.getProperty(i);
                if( choice!=null)
                {
                    for(int j = 0; j < choice.getPropertyCount(); j++)
                    {
                      receivedContent.append(" Reading Property Number" + String.valueOf(j) + " Value = " + choice.getProperty(j).toString());
    
         if (j==0) personto.setElement(1,choice.getProperty(j).toString());
        if (j==1) personto.setElement(2,choice.getProperty(j).toString());
        if (j==2) personto.setElement(3,choice.getProperty(j).toString());
        if (j==3) personto.setElement(4,choice.getProperty(j).toString());
        if (j==4) personto.setElement(5,choice.getProperty(j).toString());
         if (j==5) personto.setElement(6,choice.getProperty(j).toString());
         if (j==6) personto.setElement(7,choice.getProperty(j).toString());
          if (j==7) personto.setElement(8,choice.getProperty(j).toString());
         if (j==8) personto.setElement(9,choice.getProperty(j).toString());
       if (j==9) personto.setElement(10,choice.getProperty(j).toString());
                    }
                }                 
    
                personsVectorto.addElement(personto);
                //storepersistentobject(personsVectorto);
            }
    
            }catch(org.xmlpull.v1.XmlPullParserException ex2)
            {
                String bah1 = ex2.toString();
                Dialog.alert("String: " + bah1);
                String bah2 = ex2.getMessage();
                Dialog.alert("Message: " + bah2); 
    
            }       
    
            catch(Exception ex){
                String bah = ex.toString();
                Dialog.alert("Response: " + bah);
    
                }
    
                return personsVectorto;
        }
    

    Thank you

    Hi Philippe,.

    First Question: Print server response

    Yes - I think for you too in fact just print the answer you'll have to do a regular HTTP call to the server and print it like this:

    StringBuffer sb = new StringBuffer();

    int thumb;

    HttpConnection httpConn = (HttpConnection) Connector.open (url);

    httpConn.setRequestMethod (HttpConnection.GET); or by POST depending on your needs

    in = httpConn.openInputStream ();

    While ((thumb = in.read ())! = - 1).

    {

    SB. Append ((Char) inCh);

    }

    System.out.println ("server response:" + sb.toString ());

    Try and see if you get a request too large entity. Note: you should probably put your SOAP request in GET or POST http request.

    Second Question: Is zipping required?

    This is how I chose to do for my particular needs that transfer me a large amount of data and the compression algorithm seems to keep all my data well below 40 k. However, it is not the only way, you could actually make several requests and get data piece by piece, but I don't know if it works well with SOAP responses. Depending on the type of Network Setup Blackberry you have, you can also set this limit to be higher (I think a maximum of 1 024 Ko for BES).

    Third Question: Timeout Logging

    For wait times, usually the exception you get should indicate that there was a timeout, but if you are suspicious that it's a timeout check your web service and see.

    Hope that helps!

    R

  • How to handle Exceptions during the HTTP J2ME...?

    Can someone help me find answers to the following questions?

    1. how to catch exceptions for HTTP requests as unavailable network connection / page not found / error occur?
    2. What are the J2ME functions necessary to open an HTTP request, a response, identify the code response, parsing of the json message?
    3. What are the functions of J2ME to create a timer, start timer and stop a timer?
    4. What are the functions of J2ME to spawn a thread, kill a thread, create a mutex, lock a mutex, unlock a mutex?
    5. how detect us a WAP-Push message?

    Thanks in advance

    Concerning

    Hinduja

    1 page not found and other http response code is not considered and exception. but network unavailable. to catch the exception you just add 'try catch block' and intercept the right Exception or an IOException. for the page not found and other codes http error, once connected, you can call the getResponseCode() of the httpConnection object. then in the HttpConnection API, there's static variables, which corresponds to the HTTP error codes.

    2. check the HttpConnection in blackberry dev guide and it is the standard way of doing things. not sure about JSon message.

    3 use the RIM API Timer and TimerTask object.

    4. Ditto that create a thread in J2SE.

    5. never worked with WAP push before. I'm sorry.

  • security exception during playback of the audio file preloaded on 8900

    Hi all

    I'm working on a project and need to play audio files preloaded on 8900. I tried with the real device, is to launch a security exception when creating multimedia player. I installed the demo signed on the device application and change once again the permissions of the application of the "Custom" to "allow". But the problem persists.

    I use JDE 4.6 for the development.

    V 4.6 BB 8900 to test device and

    Signature IDS are: RRT, RBB, CPR.

    Join the application code under where the exception occurs:

    try{
                            Player player = Manager.createPlayer("file:///store/samples/ringtones/Alarm_HighAlert.mid");
                            player.addPlayerListener(HelloWorldDemo.theApp);
                            player.prefetch();
                            player.realize();
                            player.start();
                            }catch (MediaException x) {
                                Dialog.alert("media exception in creating player"+x);
                            }
                            catch (IOException ix) {
                                Dialog.alert("io exception..."+ix);
                            }
                            catch (SecurityException sx) {
                                Dialog.alert("security exception..."+sx);
                            }
                            catch (IllegalArgumentException ax) {
                                Dialog.alert("Illigal Argument exception..."+ax);
                            }
    

    exception thrown in the dialog box: exception of security... net.rim.device.api.system.ConrolledAccessException

    I test the same code on BB Storm, created with JDE 4.7 build and it works very well. BB storm .m4a audio files inside a preloaded directory, while the BB 8900 has files *. Mid both .m4a (both types of files throw the same security exception).

    Please, someone has a suggestion, I'll be very grateful.

    The exception you see is planned.  Third-party applications are not able to play the files audio sample included with a BlackBerry smartphone.

  • Get NoClassDefFound Exception during authentication IWorkflowContext

    I'm building a custom java client which approves applications for the IOM in NETBeans. I imported the jar for ClasspathAccessor, but it still doesn't work.

    Code:

    Map < IWorkflowServiceClientConstants.CONNECTION_PROPERTY, java.lang.String > properties = new HashMap < IWorkflowServiceClientConstants.CONNECTION_PROPERTY, java.lang.String > ();
    Properties.put (IWorkflowServiceClientConstants.CONNECTION_PROPERTY. CLIENT_TYPE, WorkflowServiceClientFactory.SOAP_CLIENT);
    Properties.put (IWorkflowServiceClientConstants.CONNECTION_PROPERTY. SOAP_END_POINT_ROOT, 'http://10.0.20.195:8001');
    IWorkflowServiceClient klient = null;
    try {}
    Klient = WorkflowServiceClientFactory.getWorkflowServiceClient (properties, null);
    } catch (WorkflowException ex) {}
    Logger.getLogger (SoaController.class.getName ()) .log (Level.SEVERE, null, ex);
    }
    ITaskQueryService Qservices = klient.getTaskQueryService ();
    try {}
    IWorkflowContext ctx = qService.authenticate ("xelsysadm", password.toCharArray (), null); < < FAILS HERE
    } catch (WorkflowException ex) {}
    Logger.getLogger (SoaController.class.getName ()) .log (Level.SEVERE, null, ex);
    }

    Stack trace:

    EVERE: Servlet.service () for dispatcher servlet threw the exception
    java.lang.NoClassDefFoundError: has not been initialized class oracle.wsm.policymanager.accessor.ClasspathAccessor
    to oracle.wsm.policyaccess.ConfigurationFramework$ ContextualAccessor. < init > (ConfigurationFramework.java:404)
    to oracle.wsm.policyaccess.ConfigurationFramework$ ContextualAccessor. < init > (ConfigurationFramework.java:299)
    at oracle.wsm.policyaccess.ConfigurationFramework.initializeAccessors(ConfigurationFramework.java:1910)
    at oracle.wsm.policyaccess.ConfigurationFramework.reset(ConfigurationFramework.java:1982)
    at oracle.wsm.policyaccess.ConfigurationFramework.getPolicyAccessPoint(ConfigurationFramework.java:1702)
    to oracle.wsm.policyaccess.impl.PolicyAccessorImpl. < init > (PolicyAccessorImpl.java:153)
    to oracle.integration.platform.common.mgmt.PolicyCacheImpl. < init > (PolicyCacheImpl.java:217)
    at oracle.integration.platform.common.mgmt.PolicyCacheImpl.getInstance(PolicyCacheImpl.java:75)
    to oracle.integration.platform.common.mgmt.InterceptorChainManager. < init > (InterceptorChainManager.java:56)
    to oracle.integration.platform.common.mgmt.InterceptorChainManager. < init > (InterceptorChainManager.java:95)
    at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.createSOAPBindingInterceptorChain(SuperClientInterceptorPipeline.java:200)
    at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.getPolicyPipeline(SuperClientInterceptorPipeline.java:231)
    at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.getPolicyPipeline(SuperClientInterceptorPipeline.java:222)
    at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.handleRequest(SuperClientInterceptorPipeline.java:74)
    at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:614)
    at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:592)
    at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:788)
    at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235)
    at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106)
    at oracle.bpel.services.common.util.SOAPDispatcher.invoke(SOAPDispatcher.java:161)
    at oracle.bpel.services.common.util.SOAPDispatcher.dispatchWithoutPolicy(SOAPDispatcher.java:189)
    at oracle.bpel.services.common.util.SOAPDispatcher.dispatch(SOAPDispatcher.java:177)
    at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.invoke(TaskQueryServiceSOAPClient.java:195)
    at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.authenticate(TaskQueryServiceSOAPClient.java:246)
    at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:172)
    at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:192)
    at com.hubcitymedia.identitylayer.controllers.SoaController.connect(SoaController.java:71)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
    to org.apache.coyote.http11.Http11AprProtocol$ Http11ConnectionHandler.process (Http11AprProtocol.java:594)
    to org.apache.tomcat.util.net.AprEndpoint$ Worker.run (AprEndpoint.java:1675)
    at java.lang.Thread.run(Thread.java:662)

    Hello

    SOAP client must have the following JAR files in their class path:

    ${bea.home}/wlserver_10.3/server/lib/wlfullclient.jar
    ${bea.home}/AS11gR1SOA/webservices/wsclient_extended.jar
    ${bea.home}/AS11gR1SOA/soa/modules/oracle.soa.fabric_11.1.1/bpm-infra.jar
    ${bea.home}/AS11gR1SOA/soa/modules/oracle.soa.workflow_11.1.1/bpm-services.jar
    ${bea.home}/AS11gR1SOA/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar

    You can generate the wlfullclient.jar file using the commands
    CD ${bea.home}/wlserver_10.3/server/lib
    java-jar... /... /.. /modules/com.BEA.core.jarbuilder_1.3.0.0.jar

    See you soon,.
    Vlad

    It is considered good etiquette to the answerers rewards with points (as "useful" - 5 pts - or 'correct' - 10pts).
    https://forums.Oracle.com/forums/Ann.jspa?annID=893

Maybe you are looking for

  • What memory you choose for Satellite P10-304

    HelloI have Toshiba Satellite SP10-304http://UK.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/JSP/productPage.do?service=UK&PRODUCT_ID=75423 I want to express the memory, but I don't know what should be the number of the memory model. Could you exp

  • Fax from computer

    On my old computer I was able with a fax from him. On my new Acer, I can't find anything on sending faxes, any help would be appreciated. Thank you.

  • HP Pavilion dv6 forgotten power on password

    Apparently, I forgot the password of ignition for my laptop.  I thought that I had changed my name, but will not accept my name in any form.  The code gives me after 3 unsuccessful attempts to login is 74526866.  I want to set so that it is not NEVER

  • The contact group problem

    Help, please. There is a code in which I get a contact name.How to get the name of the Group? try { PIM pim = PIM.getInstance(); BlackBerryContactList contacts = (BlackBerryContactList) pim.openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE); Enumeration i

  • Plan a Workflow Runtime: dynamic values

    I would like to run a workflow using trigger plan. I can see in the properties of the calendar that all fields must be defined manually. Is there a way where we can set the values of some fields dynamically? For example, start time-this is adjustable