Messages do not queue--procedure not called plsqlcallback

I'm having a problem with queued messages do not

My code is quite complicated, so I tried this example: http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:8760267539329, except for:
sys@ORA920> begin
  2     dbms_aqadm.grant_system_privilege
  3     ('ENQUEUE_ANY','AQ',FALSE);
  4     dbms_aqadm.grant_system_privilege
  5     ('DEQUEUE_ANY','AQ',FALSE);
  6  end;
  7  /
My user DQIDW has execute privileges on dbms_aq and on the role of AQ_ADMINISTRATOR_ROLE and is the owner of the queue/data/code - no other databases or users are involved.

I think it is sufficient according to the documentation (http://docs.oracle.com/cd/E11882_01/server.112/e11013/manage.htm)

Once I ran example of Tom Kyte I have a session of line in OBJMSGS80_QTAB and nothing in message_table - nothing seems to change over the next hour.

What do need me to do further investigation.

Thank you very much

Ben
BANNER
________________________________________________________________________________
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
That's what I run:
DWDQI> CREATE type dqidw.Message_typ as object
  2    ( subject VARCHAR2(30), text VARCHAR2(80));
  3  /

Type created.

DWDQI>
DWDQI> begin
  2      DBMS_AQADM.CREATE_QUEUE_TABLE
  3      ( queue_table => 'dqidw.objmsgs80_qtab',
  4        queue_payload_type =>  'dqidw.Message_typ',
  5        multiple_consumers => TRUE );
  6
  7      DBMS_AQADM.CREATE_QUEUE
  8      ( queue_name => 'MSG_QUEUE',
  9        queue_table => 'dqidw.objmsgs80_qtab');
 10
 11      DBMS_AQADM.START_QUEUE
 12      (  queue_name => 'MSG_QUEUE');
 13  end;
 14  /

PL/SQL procedure successfully completed.

DWDQI>
DWDQI> create procedure enqueue_msg( p_msg in varchar2 )
  2  as
  3   enqueue_options dbms_aq.enqueue_options_t;
  4   message_properties dbms_aq.message_properties_t;
  5   message_handle RAW(16);
  6   message dqidw.message_typ;
  7  BEGIN
  8     message := message_typ('NORMAL MESSAGE',  p_msg );
  9     dbms_aq.enqueue(queue_name => 'msg_queue',
 10                     enqueue_options => enqueue_options,
 11                     message_properties => message_properties,
 12                     payload => message,
 13                     msgid => message_handle);
 14  end;
 15  /

Procedure created.

DWDQI>
DWDQI> create table message_table( msg varchar2(4000) );

Table created.

DWDQI>
DWDQI> create or replace procedure notifyCB( context raw,
  2                                        reginfo sys.aq$_reg_info,
  3                                        descr sys.aq$_descriptor,
  4                                        payload raw,
  5                                        payloadl number)
  6  as
  7   dequeue_options dbms_aq.dequeue_options_t;
  8   message_properties dbms_aq.message_properties_t;
  9   message_handle RAW(16);
 10   message dqidw.message_typ;
 11  BEGIN
 12     dequeue_options.msgid := descr.msg_id;
 13     dequeue_options.consumer_name := descr.consumer_name;
 14     DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
 15                     dequeue_options => dequeue_options,
 16                     message_properties => message_properties,
 17                     payload => message,
 18                     msgid => message_handle);
 19     insert into message_table values
 20     ( 'Dequeued and processed "' || message.text || '"' );
 21     COMMIT;
 22  END;
 23  /

SP2-0804: Procedure created with compilation warnings

DWDQI> sho err
Errors for PROCEDURE NOTIFYCB:

LINE/COL ERROR
________ _________________________________________________________________
1/21     PLW-06010: keyword "CONTEXT" used as a defined name
DWDQI>
DWDQI> begin
  2      dbms_aqadm.add_subscriber
  3      ( queue_name => 'dqidw.msg_queue',
  4        subscriber => sys.aq$_agent( 'recipient', null, null ) );
  5  end;
  6  /

PL/SQL procedure successfully completed.

DWDQI>
DWDQI> BEGIN
  2      dbms_aq.register
  3      ( sys.aq$_reg_info_list(
  4          sys.aq$_reg_info('DQIDW.MSG_QUEUE:RECIPIENT',
  5                            DBMS_AQ.NAMESPACE_AQ,
  6                           'plsql://AQ.notifyCB',
  7                            HEXTORAW('FF')) ) ,
  8        1 );
  9  end;
 10  /

PL/SQL procedure successfully completed.

DWDQI>
DWDQI>
DWDQI>
DWDQI> select * from message_table;

no rows selected

DWDQI>
DWDQI> exec enqueue_msg( 'This is a test....' );

PL/SQL procedure successfully completed.

DWDQI>
DWDQI> commit;

Commit complete.

DWDQI>
DWDQI> select * from message_table;

no rows selected
and looking round related tables
  1* select * from objmsgs80_qtab

Q_NAME                         MSGID
______________________________ ________________________________
CORRID
________________________________________________________________________________________________________________________
  PRIORITY      STATE DELAY                                                                       EXPIRATION
__________ __________ ___________________________________________________________________________ __________
TIME_MANAGER_INFO                                                           LOCAL_ORDER_NO   CHAIN_NO       CSCN
___________________________________________________________________________ ______________ __________ __________
      DSCN ENQ_TIME                                                                    ENQ_UID
__________ ___________________________________________________________________________ ______________________________
ENQ_TID                        DEQ_TIME
______________________________ ___________________________________________________________________________
DEQ_UID                        DEQ_TID                        RETRY_COUNT EXCEPTION_QSCHEMA
______________________________ ______________________________ ___________ ______________________________
EXCEPTION_QUEUE                   STEP_NO RECIPIENT_KEY DEQUEUE_MSGID                    SENDER_NAME
______________________________ __________ _____________ ________________________________ ______________________________
SENDER_ADDRESS       SENDER_PROTOCOL
____________________ _______________
USER_DATA(SUBJECT, TEXT)
________________________________________________________________________________________________________________________
USER_PROP()
________________________________________________________________________________________________________________________
MSG_QUEUE                      1F9BB7888DD9462BB4F7E026C92D8E5F

         1          0
                                                                                         0          0          0
         0 28-FEB-13 18.41.07.677000                                                   DQIDW
77.12.1223030
                                                                        0
                                        0             0

MESSAGE_TYP('NORMAL MESSAGE', 'This is a test....')

DWDQI> select count(*) from AQ$_OBJMSGS80_QTAB_F;

  COUNT(*)
__________
         1

DWDQI> select count(*) from AQ$_OBJMSGS80_QTAB_G;

  COUNT(*)
__________
         0

DWDQI> select count(*) from AQ$_OBJMSGS80_QTAB_H;

  COUNT(*)
__________
         1

DWDQI> select count(*) from AQ$_OBJMSGS80_QTAB_I;

  COUNT(*)
__________
         1

DWDQI> select count(*) from AQ$_OBJMSGS80_QTAB_L;

  COUNT(*)
__________
         0

DWDQI> select count(*) from AQ$_OBJMSGS80_QTAB_S;

  COUNT(*)
__________
         3

DWDQI> select count(*) from AQ$_OBJMSGS80_QTAB_T;

  COUNT(*)
__________
         0

Location_name: plsql://AQ.notifyCB

Ben,

You have created a notifyCB to DQIDW, but it is recorded as AQ.notifyCB. Please unsubscribe it and re-save it under DQIDW.notifyCB.

BEGIN
  2      dbms_aq.UNregister
  3      ( sys.aq$_reg_info_list(
  4          sys.aq$_reg_info('DQIDW.MSG_QUEUE:RECIPIENT',
  5                            DBMS_AQ.NAMESPACE_AQ,
  6                           'plsql://AQ.notifyCB',
  7                            HEXTORAW('FF')) ) ,
  8        1 );
  9  end;
/

BEGIN
  2      dbms_aq.register
  3      ( sys.aq$_reg_info_list(
  4          sys.aq$_reg_info('DQIDW.MSG_QUEUE:RECIPIENT',
  5                            DBMS_AQ.NAMESPACE_AQ,
  6                           'plsql://DQIDW.notifyCB',
  7                            HEXTORAW('FF')) ) ,
  8        1 );
  9  end;
/

Hope that helps.

Tags: Database

Similar Questions

  • WebLogic JMS: Messages in the queue are not displayed correctly

    Hello

    I use business OSB (courier, query type = type of text and the answer = none) and I publish the message encoded in URL next to a JMS queue:

    * %3 C % 3Fxml % 20version % 3D % 221 *.


    then, when I discovered the message in the queue by using the Weblogic console it is shown as:

    * 00000000: 2533 4325 3346 786 d 6 c 25 3230 7665 7273 %3 C % 3Fxml % 20vers *.
    * 00000010: 696f 3344 2532 3231 2532 3225 2e30 6e25 *.

    Why these numbers come from the message when it is published to the queue.

    Kindly help me to understand this and how to solve the same.

    Thank you
    Kalpana.

    The numbers are just an artifact of the way in which the message is displayed by the console. They are a binary representation of the data from your channel.

    More precisely, it looks like the view you are using shows a binary representation, in hexadecimal, on the left side and an ASCII representation on the right side.

    for example

    "72" is ASCII hex for the 'r '.
    '73' is ASCII hex for "s".

    and, on the next line

    '69' is ASCII hex for 'i '.

    HTH,

    Tom

    Published by: Tom B on April 25, 2013 17:59

  • iPhone app Messages incorrectly reports that the messages are not delivered

    I send text messages with the Messages app on my iPhone.  I've never had a problem until recently.

    Recently, all of my text messages are marked by a red error message "not delivered".  But the beneficiary is in fact receive these messages.

    I want a solution to this problem (if you have one).

    Here are some additional details:

    * I recently made two changes to my iPhone 6, and I wonder if they are related to my problem:

    1. go to iOS 9.3.5

    2 change my cell number

    * I have T-mobile and I "call wifi" enabled.  Usually, I connect using "wifi-calling."

    Hi adaviding,

    Looks like you are having some incorrect Messages notifications appear on your sent messages. Not too sure if recent changes have something to do with it, but I would check your message settings to check everything is in order, it. You can also take a look at the link below. Even if your messages are sent, you can always follow the steps then the message "not delivered" can be resolved. You can also try a simple reboot of your device.

    Restart your iPhone, iPad or iPod touch

    If you can't send or receive messages on your iPhone, iPad or iPod touch

    Please use the Apple Support communities to post your question. These measures should have your Messages app works as expected. Good day.

    Thank you for using

  • Video message does not.

    I use Skype 6.21.60.104, on my PC, XPSP3.

    I couldn't send video messages, and, if I get it, I couldn't watch it.

    Sometimes, he wrote:

    "The content has been blocked because it was not signed by a valid security certificate.
    For more information, see "Certificate errors" in Internet Explorer Help. »
    and sometimes I get only a black screen.

    Sometimes I cannot start a video call too. But after I restarted my PC it's work.

    My camera works and works in video call.

    I try to reset the settings of my IE8, I installed K-Lite Mega codecpack, but not help.

    What can I do?

    Sending Video messages is not enabled on Windows XP. Video messaging requires Windows 7 or higher systems.

    https://support.Skype.com/en/FAQ/FA12283/how-do-i-send-and-receive-video-messages-in-Skype-for-Windo...

    In order to be able to display received video Messages on Windows XP, you must last Internet Explorer (IE8) and the latest version of Adobe Flash Player for Internet Explorer installed.

    http://get.Adobe.com/flashplayer/

    Also, be sure to update root certificates.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=41084

  • How can I disable "AutoCorrect" in Messages and Notes?

    HI -.

    I'm not sure what the feature is officially called but when I use Messages or Notes on my iPhone 6 s, and I type "ezpass" it gets changed to "extends".

    When I type "autopay" it gets changed to "autopsy".

    I hope that those who are enough examples so that you know what function write you about.

    Is there a way to disable this option?  I'm annoyed having to read my texts and notes for someone elses spelling mistakes.

    How to stop these apps to change it as I type?

    Thank you

    Josh

    iPhone 6 s

    Go to settings > general > keyboard - typing on the keyboard and then disable AutoCorrect.

  • Debugging Win32 from OutputDebugString() messages do not appear in the debugger

    I am using CVI to produce messages from debugging debugger Win32 using OutputDebugString().  However, debugging messages are not appearing in any debugger.  I can see them in the debug output window in CVI, but they do not appear in any debugger (DebugView, Spy Trace, Hoo WinTail, etc..)  I show all messages in every process in the debugger, and I can see the messages sent with OutputDebugString() of LabVIEW, but for some reason any nothing appears when I call with CVI OutputDebugString().  I also tried all the Options-> environment-> Debug settings.  I'm with CVI 10.0.0.

    Any ideas?

    Thanks in advance,

    Joe

    Only a debugger can capture the output of debugging a program debugged at the time. So if you are DEBUGGING your CVI program, then the program debug output is visible in the CVI debug output window. If you RUN (Ctrl + F5) your CVI program without debugging, then you can see the output in dbgview program debugging.

  • I try to open most of the icons in my control panel, I can get the message: application not found c\windows\system32\rundll32.exe.

    How can I fix it so I can delete unwanted programs? I try to open most of the icons in my control panel, I can get the message: application not found c\windows\system32\rundll32.exe.

    Please press Crtl + Alt + Delete key on the keyboard. Now, you will get a new manager called tasks window.

    Now, please hold down the CTRL key on the keyboard and click file, new task on the Task Manager.  Now, you will get a new black window. Copy the following and paste it into the black command window and press ENTER. Restart the computer.

    Assoc .exe = exefile

    Assoc .lnk = lnkfile

  • error code message appears not

    Hello

    I tried to create a set of labview error codes codes using the tools-> edition of error codes.  Has created some test errors and saved the file

    C:\Program NIUninstaller Instruments\LabVIEW 2009\user.lib\errors

    The file called test - errors.txt appears as follows:




    First file of Sean error code


    Unstable device


    Unstable critical apparatus


    Press Stop or device will begin the countdown to destruction


    Destruction began the countdown, all organic life will be destroyed with a radius of 2 miles in t - 10 minutes

    Then, I designed a simple VI to test the error codes, see the attachment.  However, the error message do not appear in the error on the source area.

    Does anyone know why LabVIEW is not recognizing my error codes?

    Rgds,

    Sean

    David,

    The data cluster error type may not contain the actual description of an error.  When an error is generated, only the cluster of error data will be the error code, status and source.  The source must contain the path calling of the VI that generated the error, not the description of the error.  It is recommended to use the VI Simple or General Error Handler to programmatically display the short description of the error.  If you want to interactively view the description you can right-click on a cluster of error control or indicator and select 'explain the error.

    Chris M

  • When I click on a link to seend an email to someone, I get an erro message which indicates that the yahoo mail server can not connect and my messages are not sent.

    Problems sending messages.

    When I click on a link to seend an email to someone, I get an erro message that says that this yahoo mail server can not connect

    and my messages are not sent. I have a total of 9 messages that have been blocked.

    Do I need to have a pop3 address or can you tell me what is happing.

    You must have an account set up under Tools | Accounts | Mail to send from Windows Mail.  If you click on a link, it will not lead you to a webmail interface, but called instead a mail client, such as WinMail.  Around that, the only way is to copy the email address and paste it into a new message you have composed of webmail.

    Steve

  • ADF InputText Disabled = True, ValueChangeListener do not call

    Hello

    I use JDev 11.1.1.7

    There is a text of entry in my jsff and he disabled = true property with the property value change listener and it is not the call. But if I set disabled = false, it works.

    Why this is happening?

    < af:inputText label = "#{portalextensionBundle.TOPLAM_MIKTAR} '"

    ID = "it10.

    contentStyle = "width: 100px;"

    Binding = "#{pageFlowScope.MainBean.itToplam} '"

    partialTriggers = 'it5 it9.

    disabled = "true".

    autoSubmit = 'true '.

    autoSubmit valueChangeListener = "#{pageFlowScope.SeyahatMasrafBean.valueChangeListenerToplam}" = "true" > "

    "< af:convertNumber pattern =" #. ## »

    messageDetailConvertPattern = "#{portalextensionBundle.L_U00FCTFEN_FORMATA_UYGUN_GIRI}" / >

    < / af:inputText >

    Thank you

    I know that it cannot be changed by the user; but I'm updating value by entering text with sum other values. So he has a partial trigger. My question was why it isn't working valuechangelistener, because the value is changing.

    Value change events should be fired only on the evolution of the direct value by the user (Yes, there is a way to trigger this event programmatically from code, or as some "side effect", but there is generally bad practices that indicate that something is wrong with your code)

    If you want to run the code in several places (in your example, when the value is changed in inputText1 or inputText2), then move this code to the procedure and call this procedure from two places.

    Dario

  • updateRemoveAttributeValues is not called (is it called when a right is revoked)?

    Hello.

    I assume the onMessage BPEL for updateRemoveAttributeValues is called when a right is revoked (resource is supported by a Web service connector).

    It works well when I call updateAddAttributeValues (when I ask a payment).

    No error message anywhere. It seems that the Web service method is not called (if I could at least see a mistake on weblogic EM)

    According to me, Miss me something really stupid here.

    I'm following this tutorial excellent 'extending from Webservice connector"of http://www.oracle.com/technetwork/middleware/id-mgmt/overview/oim-11g-assets-504842.html

    TIA

    Leo

    so the answer to my question is: Yes, you must create a new process in the console of design using the same example of right to update links, but associating with adpXXXXWebServiceRemoveChildTableValue to make it work

  • 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;
    }

    }

  • DW not call script, unless I put it in the model

    Hi all

    I'm trying to call a function (javascript) that should be placed in the < head > tags of my page. The page is based on my main model, which contains some basic javascript functions used on the site.

    Please take a look at my code. I think that I placed the script (validateAddToCart) in the correct position, in the region of "Editable" from the < head > section of the page. But when I click on the button that calls the script, it does not (at the moment I just display an alert for test purposes).

    However, if I had to change my main model and place this function in the same area as the other common functions javascript... it works. I am able to call him very well. Of course I don't want to do this, as the script will only be used from this page.

    Everyone can see what is the problem? Any help would be appreciated. Thank you!


    FF says there's an error of syntax in it-

    If (N = 'Y') & (cust_text == "") \n
    --------^

    I bet that's it. See if that changes things for you...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Vozzek" wrote in message
    News:fh2aks$Hae$1@forums. Macromedia.com...
    > OK, here's a link to the details page:
    >
    > http://www.thefrogandtheprincess.com/detail99.php?RecordID=3
    >
    > The 'validateAddToCart' script is not called when the button Add to cart
    > button
    > is pushed. However, if I add the script in my main template, it
    > concludes
    > without problem.
    >
    >
    >

  • iMessage old messages does not

    1I # keep all my texts people I regularly text would come back on a convo and I wanted to see what they texted me a month ago, but I was scrolling to the top as I normally do and it stopped at some point and charge more.

    Now, I know I didn't delete the text before this point, and I tried with others and it is letting me go up to a year. I tried force closure of the Messages app and restart my phone and nothing.

    What is odd, is that the person in particular messages does not load after a certain point, but all the pictures/gifs, we sent the other still appear in the "Détails" button

    Advice or people with a similar problem?

    Anyone?

  • Messages do not work on my iPad 2

    Since IOS 10 appeared, the Messages do not work on my iPad with IOS 9.3.5 2.

    Any solution?

    Can you explain what you mean by "will not work". You can launch the application? What happens when you try to send a message? You get an error message?

Maybe you are looking for