Values of 'State String' JMS Message

Hello

We have a java application to monitor and process messages in a set of JMS queues.

We noticed that some messages do not appear in our Java program. However, when we use the weblogic console we are able to view the content of the message.

The model only we've seen is that messages that work well in our program have a "string value of State" visible, while messages that do not appear in our program have a value 'string of State' ordered.

(Note. We also tested using Hermes JMS and he can not see messages with the ordered either State channel).

What is this attribute?
Is there an API to access the messages in this State, (for example that the console uses)

Our code uses the JMX call getMessage in the queue. We use Weblogic 10.3

The "ORDERED" State indicates that the message is part of a group (or unit-of-Order). When a message is 'Ordered' status, it is not visible to the consumer.
There's a getMessages() API on the JMSDestinationRuntimeMBean you can get all messages to a given State. If you specify the State as 0x7fffffff, you should be able to get all the messages.

Tags: Fusion Middleware

Similar Questions

  • A JMS message is not a property of the unity of the order and a unit of work property


    I received this message on my side Client of JMS:

    weblogic.jms.common.JMSException : A JMS message is not a property of the unity of the order and a unit of ownership of the work

    I put only the unit of work properties in what follows.  Don't know why he complains that I put together.

    Joe

    ***************************************************

    message.setStringProperty ("JMS_BEA_UnitOfWork", rMes.getPid ());

    message.setIntProperty ("JMS_BEA_UnitOfWorkSequenceNumber", rMes.getSequence ());

    message.setBooleanProperty ("JMS_BEA_IsUnitOfWorkEnd", rMes.isEnd ());

    } catch (Exception e) {}

    System.out.println ("Unit of work" + e.getMessage ());

    }

    queueSender.send (message, DeliveryMode.PERSISTENT, 7, 0);

    I think I found the answer.  While I was watching Oracle Oracle guru Jeff West of Youtube video, he suddenly appeared to me that I missed the series WL classes JMS.

    Import weblogic.jms.extensions.WLConnection;

    Import weblogic.jms.extensions.WLDestination;

    Import weblogic.jms.extensions.WLQueueSession;

    Import weblogic.jms.extensions.WLMessageFactory;

    Import weblogic.jms.extensions.WLMessageProducer;

    Import weblogic.jms.extensions.WLQueueSession;

    This is the code that actually works!  I changed to PUA, however, based on the characteristics of our company. Now the Weird message of "properties have PUA both UOW" disappeared!

    Joe

    *****************

    package test.viant.edi.translator.messaging.processor.images.impl;

    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.ArrayDeque;
    import java.util.Hashtable;
    to import java.util.Iterator;

    Import javax.jms.DeliveryMode;
    Import javax.jms.JMSException;
    Import javax.jms.Queue;
    Import javax.jms.QueueConnection;
    Import javax.jms.QueueConnectionFactory;
    Import javax.jms.QueueSender;
    Import javax.jms.QueueSession;
    Import javax.jms.Session;
    to import javax.jms.TextMessage;
    to import javax.naming.Context;
    Import javax.naming.InitialContext;
    Import javax.naming.NamingException;

    Import weblogic.jms.extensions.WLConnection;
    Import weblogic.jms.extensions.WLDestination;
    Import weblogic.jms.extensions.WLQueueSession;
    Import weblogic.jms.extensions.WLMessageFactory;
    Import weblogic.jms.extensions.WLMessageProducer;
    Import weblogic.jms.extensions.WLQueueSession;

    public class UOOProducer {}
    private static string = "-1" current group
    private static int currentSeq = 1;

    Public Shared Sub main (String [] args) {}

    Dim queueName = "jms/MsgProcSvc/gisInboundQueue";
    String queueConnectionFactoryName = "jms/MsgProcSvc/jmsMsgProcConnectionFactory";
    Context jndiContext = null;
    Factory Factory = null;
    WLConnection queueConnection = null;
    WLQueueSession queueSession = null;
    Queue queue = null;
    WLMessageProducer queueSender = null;
    TextMessage message = null;
     
    / * Set the environment for a connection to the OC4J instance * /.
    Hashtable env = new Hashtable();
    env.put (Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    env.put ("java.naming.rmi.security.manager", "Yes");
    env.put (Context.PROVIDER_URL, "t3: / / localhost:5557, localhost:5558" "");
    /*
    The value of the context object. * Search for the queue connection factory. *
    * Search for the JMS Destination.
    */
    try {}
    jndiContext = new InitialContext (env);
    Factory = jndiContext (Factory)
    . Lookup (queueConnectionFactoryName);
    queue = jndiContext.lookup (queueName) (tail);
    } catch (NamingException e) {}
    System.out.println ("JNDI lookup failed:" + try ());
    System.Exit (1);
    }
    /*
    To create the connection. * Create connection session. * Create
    * sender. To create text message. To send messages. Send some out of text
    the message at the end of the text messages. * Close the connection.
    */

    try {}
    queueConnection (WLConnection) = queueConnectionFactory.createQueueConnection ();
    queueSession (WLQueueSession) = queueConnection.createQueueSession (false,
    Session.AUTO_ACKNOWLEDGE);
    queueSender (WLMessageProducer) = queueSession.createSender (tail);
    message = queueSession.createTextMessage ();
      
      
    try {}
    Open the file
    FileInputStream fstream = new FileInputStream("U:\\114157\\testFile1.txt");
    BufferedReader br is new BufferedReader (new InputStreamReader (fstream));.

    String strLine;
    ArrayDeque messageDeque = null;
       
    Read the file line by line
    While ((strLine = br.readLine ())! = null) {}
    Print content on the console
    System.out.println (strLine);
    String pidOfLine = getpid(2) (strLine);
    EDIMessage em = new EDIMessage();
        
    If (! pidOfLine.Equals (currentGroup)) //If this is a new group or the beginning of the message
    {
         
    If (messageDeque! = null &! messageDeque.isEmpty ()) {}
    EM = (EDIMessage) messageDeque.removeLast ();
    em.setEnd (true);
    messageDeque.addLast (em);
          
    EDIMessage AFFECTS = null;
    The message group is now ready.
    for (Iterator itr = messageDeque.iterator (); itr.hasNext ();)  {
    AFFECTS = (EDIMessage) itr.next ();
    try {}
    message.setText (em.getMessage ());
    message.setStringProperty ("JMS_BEA_UnitOfOrder", rMes.getPid ());
    * message. SetStringProperty ("JMS_BEA_UnitOfWork", rMes.getPid ());
    message.setIntProperty ("JMS_BEA_UnitOfWorkSequenceNumber", rMes.getSequence ());
    message.setBooleanProperty ("JMS_BEA_IsUnitOfWorkEnd", rMes.isEnd ());
    String of PUA = message.getStringProperty ("JMS_BEA_UnitOfOrder");
    String uow = message.getStringProperty ("JMS_BEA_UnitOfWork");
    System.out.println ("PUA:" + PUA);
    System.out.println ("uow:" + uow) ;*/
            
    } catch (Exception e) {}
    System.out.println ("Unit of work" + e.getMessage ());
    }
    System.out.println ("before sending the message:" + AFFECTS + "\n");
    queueSender.send (message);
            
    }

    }
    current group = pidOfLine;
    currentSeq = 1;
    messageDeque = new ArrayDeque();
         
         
    }
        
    What is the new nest or not, fill these values
    em.setPid (pidOfLine);
    em.setSequence (currentSeq);
    em.setEnd (false);
    em.setMessage (strLine);
    messageDeque.addLast (em);
        
           
        
    }

    Close the input stream
    Br. Close();
    } catch (IOException ioe) {}
    System.out.println (ioe.getMessage ());
    }
      
      
    } catch (Throwable e) {}
    e.printStackTrace ();
    System.out.println ("Exception occurred:" + e.getMessage ());
    } {Finally
    If (queueConnection! = null) {}
    try {}
    queueConnection.close ();
    } catch (JMSException e) {}
    System.out.println ("error in closing:" + try ());
    }
    }
    }
    }

    private static String getpid(2) (String sampleString) {}
    int start = nthIndexOf (sampleString, "|", 4);
     
    System.out.println ("start =" + start);
    int end = nthIndexOf (sampleString, "|", 5);
    System.out.println ("end =" + end);
    Return sampleString.substring (start + 1, end);
    }

    public static int nthIndexOf (final String string, final string token
    final int index) {}
    int j = 0;

    for (int i = 0; i)< index;="" i++)="">
    j = string.indexOf (token, j + 1);
    If (j == - 1).
    break;
    }

    return j;
    }

    }

  • Get the value in the selection of message

    I need to read a value from a choice of message and when a button is clicked an event is triggered.

    I've coded this way but I can't get the value of the choice of the message.

    If (("ApplyBTN".equals (source)) & & (!)) » ». {Equals (source)))}

    OAMessageChoiceBean = dropDownAction

    WebBean.findChildRecursive ("DropDownList") (OAMessageChoiceBean);

    String valueSelected = dropDownAction.getSelectionText (pageContext);

    String valueSelected1 = (String) dropDownAction.getValue (pageContext);

    System.out.println ("valueSelected" + valueSelected);

    System.out.println ("valueSelected1" + valueSelected1);

    }

    Varun,

    In addition, for the choice of message, you can try the options below:

    1 try this code:

    String selValue = (String)pageContext.getParameter("DropDownList");
    

    2. for a choice of message, you need not specify pickListViewDef and pickListViewName. So just delete the pickListViewName.

    
    

    3. is there a particular reason that you have associated with the View object for this? If you do not need this to eliminate viewName and viewAttr also.

    
    

    See you soon

    AJ

  • PL/SQL error: digital or value error: character string buffer too small

    HI gurus of the oracle,.

    I'm new to PL/SQL,

    my version of oracle's oracle 11g.

    I create a procedure to insert data from flat file to a table using UTL_FILE.

    The table is

    CREATE TABLE EXT_PERSON_INFO

    (

    ID_PERSON NUMBER (38),

    ID_BATCH NUMBER (38),

    ID_PERSON_NBR VARCHAR2 (3 BYTE),

    ID_AREA VARCHAR2 (5 BYTE),

    NM_FINAL VARCHAR2 (20 BYTE),

    NM_START VARCHAR2 (20 BYTE),

    DATE OF DT_DOB,

    ID_SERIAL VARCHAR2 (BYTE 9),

    DATE OF DT_RESPONSE,

    TRANS_TYPE VARCHAR2 (2 BYTE),

    REG_RESPONSE VARCHAR2 (1 BYTE),

    TM_RX TIMESTAMP (6)

    )

    My procedure is

    CREATE OR REPLACE PROCEDURE PROC_PERSON

    IS

    f_line VARCHAR2 (2000);

    f utl_file.file_type;

    f_dir VARCHAR2 (250);

    fname VARCHAR2 (50);

    F_ID_PERSON EXT_PERSON_INFO.ID_PERSON%type: = 1;

    F_ID_BATCH EXT_PERSON_INFO.ID_BATCH%type: = 1;

    F_ID_PERSON_NBR EXT_PERSON_INFO.ID_PERSON_NBR%type;

    F_ID_AREA EXT_PERSON_INFO.ID_AREA%type;

    F_NM_FINAL EXT_PERSON_INFO. Type of NM_FINAL %;

    F_NM_START EXT_PERSON_INFO. Type of NM_START %;

    F_DT_DOB EXT_PERSON_INFO. Type of DT_DOB %;

    F_ID_SERIAL EXT_PERSON_INFO.ID_SERIAL%type;

    F_DT_RESPONSE EXT_PERSON_INFO. Type of DT_RESPONSE %;

    F_TRANS_TYPE EXT_PERSON_INFO. Type of TRANS_TYPE %;

    F_REG_RESPONSE EXT_PERSON_INFO. Type of REG_RESPONSE %;

    BEGIN

    fname: = "D:\raj\raj.txt";

    f: = utl_file.fopen('RAJ',fname,'r');

    loop

    Start

    UTL_FILE.get_line (f, f_line);

    exception

    When no_data_found then

    "exit";

    end;

    F_ID_PERSON: = 1;

    F_ID_BATCH: = 1;

    F_ID_PERSON_NBR: = substr (f_line, 1, 3);

    F_NM_FINAL: = substr (f_line, 4, 22);

    F_NM_START: = substr (f_line, 23, 34);

    F_DT_DOB: = substr (f_line, 35, 44);

    F_ID_SERIAL: = substr (f_line, 45, 48);

    F_DT_RESPONSE: = substr (f_line, 49, 58);

    F_TRANS_TYPE: = substr (f_line, 59, 60);

    F_REG_RESPONSE: = substr (f_line, 61, 61);

    F_ID_AREA: = substr (f_line, 62, 64);

    insert into EXT_PERSON_INFO VALUES (F_ID_PERSON, F_ID_BATCH, F_ID_PERSON_NBR, F_ID_AREA, F_NM_FINAL, F_NM_START, F_DT_DOB, F_ID_SERIAL, F_DT_RESPONSE, F_TRANS_TYPE, F_REG_RESPONSE);

    end loop;

    UTL_FILE.fclose (f);

    commit;

    end;

    /

    am getting error

    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    Please help me in this regard. Impossible to trace the issue.

    Thanks in advance

    Kind regards

    REDA

    The error message should include a line number to reference your code to see what line the error occurred on.

    That said, look at the documentation for SUBSTR as you incorrectly use the third parm.  It's length, no end of race.  That's your problem.

  • JMS message filtering

    Hello

    can we filter JMS message form



    Thank you

    I could not understand the question, but according to my knowledge, selector of JMS messages is static configuration and must have the exact value at the time of the design itself which is the way it currently works. What you're looking for is "way to assess the selection criteria based on the expression at the time of execution". I don't think that he is currently supported.

    If we descend into thinking more than why this behavior, then we can say that if we want to execute logic, so we have to instantiate who hold the variables and evaluate expressions of a thread, but Message selector is nothing, but subscription so property whenever a Subscriber is stored in the JMS server he hears message based on it and when something specific Vienna then only he initiated a thread for subscriber process further.

    What will be needed in your case, it's this Subscriber subscribe all messages and will initiate the thread and then reject the message based on the logic of the selector within the scope of the processing thread. I don't think it will be good idea because it will instantiate many unnecessary wires in a business solution. This will be equivalent to an if-else in the pipeline early condition to reject unwanted messages. The whole idea of having Message selector must give this responsibility to the subscription instead of the Subscriber. I don't think that selector messages JMS should work this way.

    I hope that I have understood the question correctly and especially the help of details mentioned.

    Kind regards

    Ankit

  • ORA-06502: PL/SQL: digital or value error: character string buffer too small in the functions

    Hi all

    FUNCTION to CREATE or REPLACE fnc_two (p_in_job IN VARCHAR2)

    RETURN VARCHAR2

    AS

    CUR CURSOR

    IS

    SELECT ename

    WCP

    WHERE job = p_in_job;

    v_first_name emp.ename%TYPE;

    BEGIN

    FOR my heart IN rec

    LOOP

    IF v_first_name IS NULL

    THEN

    v_first_name: = rec.ename;

    ON THE OTHER

    v_first_name: = v_first_name | ',' || Rec.Ename;

    END IF;

    END LOOP;

    RETURN v_first_name;

    END;

    SQL > SELECT fnc_two ('CLERK')

    2 FROM dual;

    SELECT fnc_two ('CLERK')

    *

    ERROR on line 1:

    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    ORA-06512: at the 'APPS '. FNC_TWO', line 17

    SQL > select distinct work of emp

    2.

    JOB

    ---------

    CLERK

    SELLER

    PRESIDENT

    MANAGER

    ANALYST

    v_first_name: = v_first_name | ',' || Rec.Ename;

    The above statement is the original error. The value has been assinged to v_first_name is larger than the computer can handle.

    Increase the size of the variable v_first_name to avoid the error example

    v_first_name varchar2 (100);

  • Text editor enriched ORA-06502: PL/SQL: digital or value error: character string buffer too small

    Hello

    I have apex user 4.2.3 with enterprise database edition 11, I page include RICH TEXT EDITOR, when I add data to this text and save it will record successfully and when I try to view this information in another page I see all the data, as expected, the problem when I try to go to the same page as RICH TEXT EDITOR error message apper ORA-06502 : PL/SQL: digital or value error: buffer string too small, I see this link https://forums.oracle.com/thread/2461151?tstart=0 but I don't know how it solve it, the problem is made data at the point of the rich text editor.


    Any suggestion?


    Thank you

    Thanks for the reply,

    Its standard form with text rich field, my question she same as link above I added before

  • Retrieving ID of the JMS Message using Java

    Hello

    I built a sequence flow which is JMS Producer (BPEl)-> Consumer (Bpel) JMS-> composite A Bpel, inserting database. Now, I deliberately blamed the bpel instance. now, I want to enter the instance bpelcomposite faulted consumer id which I was able to do, but also to retrieve the message id jms I have been unsuccessful.
    I imported the javax.jms.Message package and my code is as follows
    / public class FaultHandlingPOC implements IFaultRecoveryJavaClass {}

    {} public void handleRetrySuccess (IFaultRecoveryContext ctx)

    System.out.println ("this is for the success of the new attempt");

    handleFault (ctx);

    }
    public String handleFault (IFaultRecoveryContext ctx) {}
    BPELFaultRecoveryContextImpl bpelCtx = (BPELFaultRecoveryContextImpl) ctx;
    Message m = ctx (Message);
    System.out.println ("Instance Composite:" + bpelCtx.getCompositeInstanceId ());

    try {}
    System.out.println ("ID of Message JMS" + m.getJMSMessageID ());
    } catch (JMSException e) {}
    System.out.println ("insert failed");
    }

    return to "Rise again";
    }

    The error generated is class Cast Exception even if I am able to retrieve the Bpel composite instance id

    Help, please.

    You can not thrown another IFaultRecoveryContext thing, it's an Interface and it does not do anything:

    public interface IFaultRecoveryContext
    {

    public abstract String getIndex (int i);

    public abstract card getProperties();

    public abstract String getActionId();

    public abstract String getPolicyId();

    public abstract String getActivityType();

    public abstract String getActivityId();

    public abstract String getActivityName();

    public abstract String getWsdlLocation();

    public abstract String getPartnerLinkName();

    public abstract QName getPortType();

    public abstract String getCorrelationId();

    public abstract BPELFault getFault();

    public abstract BPELProcessId getProcessId();

    public abstract String getStatus();

    public abstract void setStatus (String s);

    public abstract String setTitle (String s);

    public abstract String getTitle();

    public abstract int getPriority();

    public abstract setPriority (int i) Sub;

    public abstract getInstanceId() long;

    public abstract Locator getLocator();

    public abstract void addAuditTrailEntry (String s, object obj);

    public abstract void addAuditTrailEntry (String s);

    public abstract void addAuditTrailEntry (Throwable throwable);

    public abstract Object getVariableData (String s)
    throw BPELFault;

    public abstract Object getVariableData (String s, String s1)
    throw BPELFault;

    public abstract Object getVariableData (String s, String s1, String s2)
    throw BPELFault;

    public abstract void setVariableData (String s, Object obj)
    throw BPELFault;

    public abstract void setVariableData (String s, String s1, Object obj)
    throw BPELFault;

    public abstract void setVariableData (String s, String s1, String s2, object obj)
    throw BPELFault;
    }

  • ORA-06502: PL / SQL: numeric or value error: character string buffer too small

    Dear friends,

    We have a package customized for FTP PLSQL.
    I get ORA-06502: PL/SQL: digital or value error: character string buffer too small when the FTP service running.
    The FTP function call the HOST function that is in fact to launch the above mentioned error.
    Here is the code for FTP and HOST functions.
    FUNCTION HOST(text_in    IN VARCHAR2,
               result_out IN OUT VARCHAR2) RETURN BOOLEAN IS
    ret boolean;
    drun boolean;
    hid number;
    BEGIN
       dbms_output.put_line('host1 begin');
       ret := HOST(text_in,result_out,hid,drun,1);
       if not drun then
         dbms_output.put_line('not derun');
          return false;
       end if;
         dbms_output.put_line('after if');
       return ret;
    END HOST;
    FUNCTION GET_ENV(env IN VARCHAR2) RETURN VARCHAR2 IS
     res boolean;
     out varchar2(256);
    BEGIN
      res := HOST('echo '||env,out);
      return out;
    END GET_ENV;
    FUNCTION HOST(text_in      IN VARCHAR2,
              result_out IN OUT VARCHAR2,
              hostid     IN OUT NUMBER ,
              demrunning IN OUT boolean,
              maxlines   IN NUMBER DEFAULT NULL) RETURN BOOLEAN IS
      tempid      number;
      tempstat      varchar2(10);
      n           number;
      m           number;
      retry      number;
      mult           number;
      timestamp_date  date;
      lv_result_out varchar2(200);
    BEGIN
      --result_out := NULL; --fcxh76
      demrunning := true;
      dbms_output.put_line('host2 begin');
      select XXAR_SHELL_CMD_S.nextval
      into  tempid from dual;
      hostid := tempid;
    
      dbms_pipe.pack_message(tempid);
      n := dbms_pipe.send_message('CMD');
    
      dbms_pipe.pack_message(abs(maxlines));
      dbms_pipe.pack_message(rtrim(text_in));
      n := dbms_pipe.send_message ('CMD'||rtrim(to_char(tempid)),0);
    
      m := dbms_pipe.receive_message('CMDSTAT'||rtrim(to_char(tempid)),5);
      if m = 1 then
          demrunning := false;
          dbms_output.put_line('m=1');
          result_out := 'ERROR : GLCC0005 presumed not running';
          dbms_output.put_line('result_out - '||result_out);
          return FALSE;
      elsif m = 0 then
         dbms_pipe.unpack_message(tempstat);
      end if;
    
      if tempstat = 'ERROR' then
         dbms_output.put_line('tempstat = ERROR');
         result_out := NULL;
         dbms_output.put_line('after result out');
         return FALSE;
      end if;
    <<CHECK_AGAIN>>
         m := dbms_pipe.receive_message('RSLT'||rtrim(to_char(tempid)),0);
    
    if m <> 0 then
        goto CHECK_AGAIN;
    end if;
    
         if m = 0 then
                dbms_pipe.unpack_message(result_out);
                dbms_pipe.purge('RSLT'||rtrim(to_char(tempid)));
                return TRUE;
         else
             result_out := 'ERROR : Call to GLCC0006 failed';
             return FALSE;
         end if;
    END HOST;
    FUNCTION FTP (program_name in VARCHAR2,
               source_file in VARCHAR2,
               dest_file   in VARCHAR2 default NULL) RETURN BOOLEAN
    AS
    fd               utl_file.file_type;
    res            boolean;
    res1           boolean;
    out            varchar2(256);
    out1           varchar2(256);
    ftp_dnsname      varchar2(50);
    ftp_user         varchar2(50);
    ftp_pass         varchar2(50);
    ftp_pre_opt      varchar2(150);
    ftp_post_opt     varchar2(150);
    ftp_override     varchar2(150);
    destination_file varchar2(50);
    ftp_command      varchar2(2000);
    ftp_main         varchar2(2000);
    proc_id           varchar2(10);
    fderr             varchar2(100);
    rec           varchar2(1024);
    temp_buf      varchar2(100);
    base_source       varchar2(100);
    log_dir              varchar2(100) := get_env('$APPLCSF')||'/log';
    fndc_logfile_dir varchar2(100) := 'FNDC_LOGFILE_DIR';
    i            number ;
    ftp_tried        boolean;
    begin
     ftp_tried := false;
     dbms_output.put_line('begin');
    for ftp_rec in ( select  attribute1,
                       attribute2,
                       attribute3,
                       attribute4,
                       nvl(attribute5,' ') attribute5,
                       nvl(attribute6,' ') attribute6,
                       nvl(rtrim(attribute7),'put') attribute7
              from fnd_flex_values
              where  flex_value_set_id in
              (select flex_value_set_id
               from fnd_flex_value_sets
               where flex_value_set_name = 'CPC_FTPS'
              )
              and flex_value like program_name
              )
         LOOP
                 dbms_output.put_line('Looping');
               ftp_tried := true;
              ftp_dnsname      := ftp_rec.attribute1;
              ftp_user         := ftp_rec.attribute2;
              ftp_pass         := ftp_rec.attribute3;
              destination_file := ftp_rec.attribute4;
              if dest_file is not null then
                 destination_file := dest_file;
                    end if;
    
                                   if destination_file is null then
                    destination_file := base_name(source_file);
                end if;
                ftp_pre_opt      := ftp_rec.attribute5;
              ftp_post_opt     := ftp_rec.attribute6;
              ftp_override     := lower(ftp_rec.attribute7);
              dbms_output.put_line('host');
    
              res := HOST('echo $$',proc_id);
              dbms_output.put_line('proc_id - '||proc_id);
         dbms_output.put_line('after host');
         base_source := rtrim(base_name(source_file));
           dbms_output.put_line('host 1');
           res := HOST('>  '||log_dir||'/ftpcmd.'||proc_id ||
              ' ; chmod 777 '||log_dir||'/ftpcmd.'||proc_id,out1);
           dbms_output.put_line('host 2');
           res := HOST('>  '||log_dir||'/ftpmain.'||proc_id ||
              ' ; chmod 777 '||log_dir||'/ftpmain.'||proc_id,out1);
           dbms_output.put_line('host 3');
           res := HOST('>  '||log_dir||'/ftplog.'||proc_id ||
              ' ; chmod 777 '||log_dir||'/ftplog.'||proc_id,out1);
           dbms_output.put_line('host completed');
    ......
    ......
    ......
    Here is the PLSQL block that I will carry out and also the output on this block
    declare 
    lv_ftp_result boolean; 
    begin 
    lv_ftp_result := u.FTP('XXAR_REV_PA', ' ' || '/u07/app/qaoa083a/data/outgoing/xxar/PARECREV' || '/' || 'REVENUE_20120319014318.dat','REVENUE_20120319014318.dat');  
    IF lv_ftp_result THEN 
    dbms_output.put_line('True'); 
    ELSE 
    dbms_output.put_line('False'); 
    END IF; 
    exception 
    when others then 
    dbms_output.put_line('in exception - '||sqlerrm); 
    end;
    Output:
    host1 begin
    host2 begin
    m=1
    result_out - ERROR : GLCC0005 presumed not running
    not derun
    begin
    Looping
    host
    host1 begin
    host2 begin
    m=1
    in exception - ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    The flow of execution goes like this:
    1 FTP function called from PL/SQL block
    2 inside of the FTP service, the Sub statement calls the HOST function
    log_dir              varchar2(100) := get_env('$APPLCSF')||'/log';
    3. This HOST function in turn calls another function of overloaded HOST (code shown above).
    4. in the function overloaded with the HOST, the following statements are executed successfully, and FALSE is returned by the function
    dbms_output.put_line('m=1');
    result_out := 'ERROR : GLCC0005 presumed not running';
    dbms_output.put_line('result_out - '||result_out);
    5. the remaining code in the FTP service is running and the HOST function is called again using the Sub statement
    res := HOST('echo $$',proc_id);
    6.again, this HOST function in turn calls another function of overloaded HOST (code posted above).
    7. this time, in the function overloaded host, ORA-06502 is thrown when the following statement is executed and the execution stops here that this exception is unhandled.
    result_out := 'ERROR : GLCC0005 presumed not running';
    This statement is very successfully in the previous call to the function of HOST (step 4), but it fails now.

    Any idea on why this error occurs in this scenario? Because the issue of memory?

    DB Info:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    Kind regards
    Anthony

    Published by: Anthony Alix on March 20, 2012 08:53

    Hello

    HOST (1) calls the function of MODERATOR (2) with his second parameter as result_out

    The first time you call the function of host (1) in the function get_env you use

    ...
     out varchar2(256);
    BEGIN
      res := HOST('echo '||env,out);
    ...
    

    out is big enough varchar2 (256)

    The second time you call (1) HOST of the FTP function as:

    ...
    ftp_main         varchar2(2000);
    proc_id           varchar2(10);
    fderr             varchar2(100);
    ...
    
    ...
              res := HOST('echo $$',proc_id);
              dbms_output.put_line('proc_id - '||proc_id);
    ...
    

    Here, use you proc_id which is varchar2 (10)

    And it's not big enough!

    Kind regards

    Peter

  • 1067: coercion of a value of type String to an unrelated type flash.display:DisplayObject.

    Hi guys. I build games never anything too big. I'm having fun.

    I get the following error message

    1067: coercion of a value of type String to an unrelated type flash.display:DisplayObject.

    He got to do with the varObject variable, that I convey in the hitTestObject (at the end of the code)

    a. I exported the moveclip for actionscript and it has given an instance name so, what's the problem?

    stage.addEventListener (MouseEvent.CLICK, myClickReaction);
    speeds the LONG NYPOTENUSE
    var v: Number = 5;
    var varObject:String;
    var i: Number;
    var arrayObjects:Array;

    complete table and initialize the variables i and varObject
    arrayObjects is ['chocolate', 'ice', 'pizza', 'Burger', 'sandwich', 'egg'];.
    i = 1;
    varObject = arrayObjects [i - 1];
    trace (varObject);


    mouse click point
    var clickPoint:Point = new focus();
    function myClickReaction(e:MouseEvent):void {}
    clickPoint.x = mouseX;
    clickPoint.y = mouseY;
    addEventListener (Event.ENTER_FRAME, onEnterFrame);
    }
    function onEnterFrame(event:Event):void {}
    var xDistance:Number = clickPoint.x - sunny.x;
    var yDistance:Number = clickPoint.y - sunny.y;
    var angle: Number = Math.atan2 (yDistance, xDistance);
    Sunny.x += v * Math.cos (angle);
    Sunny.y += v * Math.sin (angle);
    If (clickPoint.x > = sunny.x) {}
    sunny.gotoAndPlay ("walk straight");
    trace (Math.ABS (xDistance));
    }
    If (sunny.x > = clickPoint.x) {}
    sunny.gotoAndPlay ("left foot").
    trace (Math.ABS (xDistance));
    }
    If (Math.abs (xDistance) < = 10) {}
    trace ("Works");
    sunny.gotoAndPlay ("static");
    removeEventListener (Event.ENTER_FRAME, onEnterFrame);
    }
    }
    addEventListener (Event.ENTER_FRAME, enterFrameHandler);
    function enterFrameHandler(e:Event):void {}
    If (sunny.hitTestObject (hotspot_pizza)) {}
    If (sunny.hitTestObject (varObject)) {}
    trace ("Yes boy");
    }
    }

    If you have objects with references (in the current scope) which correspond to these channels, you can use:

    stage.addEventListener (MouseEvent.CLICK, myClickReaction);
    speeds the LONG NYPOTENUSE
    var v: Number = 5;
    var varObject:String;
    var i: Number;
    var arrayObjects:Array;

    complete table and initialize the variables i and varObject
    arrayObjects is ['chocolate', 'ice', 'pizza', 'Burger', 'sandwich', 'egg'];.
    i = 1;
    varObject = arrayObjects [i - 1];
    trace (varObject);

    mouse click point
    var clickPoint:Point = new focus();
    function myClickReaction(e:MouseEvent):void {}
    clickPoint.x = mouseX;
    clickPoint.y = mouseY;
    addEventListener (Event.ENTER_FRAME, onEnterFrame);
    }
    function onEnterFrame(event:Event):void {}
    var xDistance:Number = clickPoint.x - sunny.x;
    var yDistance:Number = clickPoint.y - sunny.y;
    var angle: Number = Math.atan2 (yDistance, xDistance);
    Sunny.x += v * Math.cos (angle);
    Sunny.y += v * Math.sin (angle);
    If {(clickPoint.x>=sunny.x)}
    sunny.gotoAndPlay ("walk straight");
    trace (Math.ABS (xDistance));
    }
    If {(sunny.x>=clickPoint.x)}
    sunny.gotoAndPlay ("left foot").
    trace (Math.ABS (xDistance));
    }
    If (Math.abs (xDistance)<=10)>
    trace ("Works");
    sunny.gotoAndPlay ("static");
    removeEventListener (Event.ENTER_FRAME, onEnterFrame);
    }
    }


    addEventListener (Event.ENTER_FRAME, enterFrameHandler);
    function enterFrameHandler(e:Event):void {}
    If (sunny.hitTestObject (hotspot_pizza)) {}
      If (sunny.hitTestObject (this [varObject])) {}
    trace ("Yes boy");
    }
    }

  • 1067: coercion of a value of type String to a type unrelated with

    Hello

    I created a Web service that is based on sql server 2005 with several methods with success.

    I have a headach now just trying to make a few simple tests with Flex :-(

    I used the "import Web service", he created some code "generated Web services."

    My test p_SEARCH_NAME_SOUNDEX method is based on a decision of wich procedure sql varchar (128) as a parameter = > NAL_NOM.

    I'm just trying to debug this function (error on line in red)

    service public searchEntry(name:String):void
    {
    Save the event listener for the findEntry operation.
    agenda.addfindEntryEventListener (handleSearchResult);
    myWS.addp_SEARCH_NAME_SOUNDEXEventListener (handleSearchResult);

    Call the operation if we have a valid name.
    If (name! = null & & name.length > 0)

    myWS.p_SEARCH_NAME_SOUNDEX (name);

    }

    I got this error message:

    067: constraint implied to a value of type String to type without generated report. Web services: NAL_NOM_type1.

    FLEX has creaetd a type called NAL_NOM_type1 for my class:

    /**
    * NAL_NOM_type1.as
    * This file was automatically generated from WSDL by the Apache Axis2 generator modified by Adobe
    * Any changes made to this file is overwritten when the code is regenerated.
    */


    package generated.webservices
    {
    Import mx.utils.ObjectProxy;
    import flash.utils.ByteArray;
    Mx.rpc.soap.types import. *;
    /**
    * Wrapper for a type of operation required class
    */

    public class NAL_NOM_type1
    {
    /**
    * Constructor, initializes the class type
    */
    public void NAL_NOM_type1() {}

    public var varchar:String; public function toString (): String
    {
    Return varchar.toString ();
    }

    }
    }

    I tried to do myWS.p_SEARCH_NAME_SOUNDEX (NAL_NOM_type1 (name());

    and also reported as NAL_NOM_type1 ' name'... but I still get this error.

    It's how he said my Web service method:

    public void p_SEARCH_NAME_SOUNDEX(nAL_NOM:NAL_NOM_type1):AsyncToken
    {
    var _internal_token:AsyncToken = _baseService.p_SEARCH_NAME_SOUNDEX (nAL_NOM);
    _internal_token.addEventListener ("result", _P_SEARCH_NAME_SOUNDEX_populate_results);
    _internal_token.addEventListener ("Fault", throwFault);
    Return _internal_token;
    }

    I'm not even on the level of trust the data on my grid... I just want to see how he gets the first data in the debugging.

    Thanks in advance for you help.

    KR,

    Meta

    Hi Meta,

    function p_SEARCH_NAME_SOUNDEX(nAL_NOM:NAL_NOM_type1) need of a parameter with the NAL_NOM_type1 type.

    you call

    myWS.p_SEARCH_NAME_SOUNDEX (name); where name is a string

    You can change constuctor for the string parameter

    public void NAL_NOM_type1 (str:String = "") {}

    varchar = str;

    }

    After this call myWS.p_SEARCH_NAME_SOUNDEX (new NAL_NOM_type1 (name));

    The second alternative is to create NAL_NOM_type1 variables, register name varchar.

    var t = new NAL_NOM_type1 ();

    t.varchar = name;

    myWS.p_SEARCH_NAME_SOUNDEX(t);

  • ORA-06502: PL/SQL: digital or value error: character string too small buffer

    Dear gurus, I'm generation mail format html from oracle 10 g database.

    Display the data in html format message body are superior to more than 32 k.

    can you please guide me how to handle this error?

    ORA-06502: PL/SQL: digital or value error: character string too small buffer


    I use the long data type for message body data.

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:4325516854017254:P11_QUESTION_ID:1739411218448

    see you soon

  • JMS Messages, refusing to participate in JTA transactions

    I worked on this issue for several days, and I can't find a path.

    I have a situation where I have to write in the database and also to send a JMS message. I want both to work, or nothing works, so it's a simple application of JTA, so I think.

    The used JMS connection factory is located to participate in XA transactions (I checked that 10 times).

    I originally had a UserTransaction started and committed around these statements, but since that doesn't seem to work, I put all the code in an EJB with transaction required.

    Whatever it is, it does not the way I expected.

    I have a breakpoint in the MDB which receives the message, but also a breakpoint on the Publisher code, and the code immediately after him. I find whenever as soon as I didn't have the JMS publish, the breakpoint in stops MDB then, indicating that the JMS message has been sent, even if the transaction publishers is certainly not over - finally the debugger will return back to the line after the publication.

    I am sure that we have made repeatedly in the past, and it worked as I expect with transaction code works.

    Someone has ideas about obvious things to check to determine why the JMS message is outside the transaction? Or not so obvious...

    Thanks in advance,
    Ken clark

    Hi Ken,

    You reason - the use case is common, but there are has some pitfalls new users sometimes face.

    The results of tracing of breakpoint you are expected. Message from a sender goes to the JMS server while sending message is called. If the message is involved in the transaction, it is always sent, but it became visible to consumers until the transaction is subsequently committed.

    To ensure that a sent message is involved in a transaction:

    1. ensure that the connection factory is «activé XA»

    2. ensure that there is a transaction on the thread. For example: System.out.println ("MY TX" + weblogic.transaction.TransactionHelper.getTransactionHelper () .getTransaction ());

    3 - ensure that your connection.createSession () invoking past 'false' for the first parameter - not true! If true and that you do not use a resource ref, the session would then become a "transactional" session, and JMS messages will take part in an independent local transaction rather than the overall XA transaction

    4. If not using a WebLogic JMS to send, then you must make sure that WebLogic automatically entered the foreign seller send call in the WL TX. All that is needed is to use a standard JEE 'refers to a resource"to get him CF. rather than directly raising the CF foreign in the foreign JNDI provider. This enables WebLogic detect and wrap calls foreign seller of the application, which in turn allows the automatic registration. See the JMS WebLogic Interop FAQ for more information.

    4 b - If you use AQ - JMS to send, more work is required, since QA - JMS are quite unique among the JMS implementations. WL 10.3.1 and later provides features to simplify this work.

    See for a related FAQ [integrating remote JMS providers | http://download.oracle.com/docs/cd/E15523_01/web.1111/e13727/interop.htm#JMSPG553], and for resources info Ref see [support strengthened using WebLogic JMS with EJB and servlet | http://download.oracle.com/docs/cd/E15523_01/web.1111/e13727/j2ee.htm#g1329180] (especially the 9-5 example).

    Hope this helps,

    Tom

  • Disabled user account control, when try to turn on the States of error message "you don't have the appropriate permissions to perform this action.

    Disabled user account control, when try to turn on the States of error message "you don't have the appropriate permissions to perform this action.

    What type of account selected for this account you upward?

    And your administrator account is now or not?

    go in Start > Control Panel > user accounts see what is written under your username.

  • How to get the decimal value of a string of international currency

    Hi all

    How to get the decimal values to a string of international currency.

    Finally, we get to the real problem.

    You can use location functions or write your own using string functions already mentioned...

    http://developer.BlackBerry.com/native/documentation/Cascades/device_platform/internationalization/

Maybe you are looking for

  • LED constant name does not match between window Panel and attribute popup

    Edit a range of gui (file .uir) in CVI, I double click on a LED and change the name of the constant.  The name in the Panel summary attribute on the right of the IDE indicates the wrong name.  What causes this?  I had copied and pasted the other LEDs

  • problems with Windows Media Center, rotation of the photos after burning a DVD

    During the preparation of photos, create a slide show using Windows Media Center, all the photos are well aligned. When I burn the DVD, some of the pictures are rotated 90 degrees. I double-check the photos in the file and they are properly aligned.

  • Cannot start windows update

    When I try manually start Windows Update in the menu start my PC displays a window asking what program I want to use to open it. This has never happened before and help appreciated woul Bob Paerson

  • I have a HP OJ 6500 709 a.

    This OJ6500 709 a is connected to my wireless router. my Vista laptop wireless can access this printer? can I pay for installing vista as a printer wireless or wired?

  • HelpHelpHelp

    Can not disable the touchpad shake where necessary, but nothing is cut