JOptionPane blocking problem

I have the following code in my 1.4.1 applet:
int response = JOptionPane.showConfirmDialog(NewJabber.mainFrame,"Receive message from unregistered user: "+jid.getName()+" over the "+JID.SHOWNAMES[jid.getHostType()]+" transport. Accept and add user to roster?","Message Received",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE);
if(response == JOptionPane.YES_OPTION){
The dialog seems to work like a charm, but after it's been open for about 3 seconds, it somehow enters an infinite loop because IE starts to use 100% of my processor. I don't want users to have their computer DRASTICALLY slow until they respond to the dialog.(which does work and stops the processor usage)
this only seems to be a problem with showConfirmDialog(). The following code works fine and so do my classes that extend JDialog.
public static String getInput(String show){
return JOptionPane.showInputDialog(show);
}

I assume you mean: JOptionPane.showConfirmDialog(this, ...)
problem is that 'this' isn't a Component.

Similar Messages

  • JOptionPane event blocking problem

    Hi,
    JOptionPane is causing me a problem.
    I have a simple frame that contains a text field and a button.
    Pressing the button should write something to the standard output.
    When the text field loses focus a JOptionPane in poped to the user.
    The following scenario is problematic:
    1. The text field owns the focus.
    2. The user presses the button.
    Expected result:
    The JOptionPane appears due to the lost focus event on the text field.
    After closing it some text is written to the standard output due to the action event on the button.
    The actual result:
    The JOptionPane does appears but after closing it nothing is written to the standard output. The button stays in a curious state (when the mouse hovers over the button the button looks pressed, and when the mouse doesn't hover over the button the button looks unpressed).
    Probable reason for this behaviour:
    The JOptionPane blocks all awt/swing events while it is opened. Some of the button code is perfomed due to the button press, but the ActionListener's actionPerformed method is not invoked.
    I need the actionPerfomed method to be invoked.
    Can anyone help me?
    Here is the source code:
    package test;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test {
    public Test() {
    public static void main(String[] args) {
    //Test test1 = new Test();
    final JFrame f = new JFrame("Test");
    JButton b = new JButton("Click Here");
    JTextField tField = new JTextField("Text", 10);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    b.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Button pressed!");
    tField.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
    if (e.isTemporary()) return;
    JOptionPane.showMessageDialog(f,
    "Focus lost",
    "Title",
    JOptionPane.INFORMATION_MESSAGE);
    JPanel content = (JPanel)f.getContentPane();
    content.setLayout(new BoxLayout(content, BoxLayout.X_AXIS));
    content.add(tField);
    content.add(Box.createHorizontalStrut(5));
    content.add(b);
    f.pack();
    f.show();
    Thanks,
    Shai

    Hello Shai.
    The JOptionPane seems to consume all events when its shown. (Check the stack after JOptionPane is shown.) I've solved a similar problem with the SwingUtilities.invokeLater() method. Maybe the following example will help:
    Runnable doDlgError = new Runnable() {
    public void run() {
    JOptionPane.showMessageDialog(this, "Error", "Error",
    JOptionPane.ERROR_MESSAGE);
    SwingUtilities.invokeLater(doDlgError);
    -Olaf

  • Number of data block problem

    number of data block
    is there any limit for the number of datablocks in a form?
    i have a form that has 8 blocks and all of them are none base,
    some times when i use this form it suddenly closed and a special file (ifrun60_dump file)
    is created.i donot know the reson and i cannot solve the problem
    if you have any idea about this ,plz help me?
    thanks in advance.
    regards ,
    shoja.

    Restriction on the number of objects is documented in the Help topic "Limits" - There is no practical limit to the number of blocks in a form. Certainly 8 is a timy number compared with mosdt forms.
    Contact support and supply them with the dump file, that should help to identify the issue you have.

  • MT100 Header Blocks problem

    Hello expert,
    I have a problem in MT100 generation.
    File is generated with the correct payment information but I don't have headr block i mean tags 01, 02, 03, 04, 05, 06 and 07.
    There is an option that i should set to print also header block?
    Thank you in advance.

    Thank you Gaurav.
    I checked all MF of all events. There is no tags 1,2..7. In the event 30, the MF creates tags 20 until 72.
    The bank sent me the file format MT100 expected. There are two blocks: header Block  (Tag from 1 to 7) and payment information  block  (Tag from 20 to 72). I have no problem with the payment  block is what generate SAP and i found those tags in event 30.
    by cons I do not know how to enable the generation of header block?
    1- This block could be generated by standard SAP ? What i must to set?
    2- Or i must use MF to add myself this header block? (Specific dev)
    Just for information, header block is like that:
    :01:  Refrence    --> YYMMDDNN when NN is the file number --> Mandatory for the bank
    :02: Total amount                                                                      --> Mandatory for the bank
    :03: No orders                                                                          --> Mandatory for the bank
    :04: Paying Bank --> SWIFT                                                     --> Mandatory for the bank
    :05: Ordering party --> Ordering party name and adress       --> Mandatory for the bank
    :06: User No --> User No at the paying bank                         -->optional
    :07: File name                                                                         -->optional
    Thank you very much for your help.

  • JOptionPane showConfirmDialog problem

    Hello everyone,
    I have written my own class that shows a customized confirm dialog (code is pasted below). I need to be able to tell whether the user clicks "YES", "NO" or "CANCEL".
    My main app has a panel with a JButton "Start System". When this button is clicked, the following code instantiates OperatorConfirmDialog:
         public void startNetwork(){
              confirmDialog = new OperatorConfirmDialog("Are you sure you want to start the network?");
              System.out.println("WE MADE IT TO HERE");//problem we do not get to here until confirm dialog acked
         }I referred to the examples for JOptionPane given at:
    http://java.sun.com/j2se/1.5.0/docs/api/index.html
    for examples but it doesn't seem to be working for me.
    Here is the code for OperatorConfirmDialog
    public class OperatorConfirmDialog extends JFrame {
         JOptionPane pane;
         public OperatorConfirmDialog(String message){
              pane = new JOptionPane();
              this.setDefaultLookAndFeelDecorated(true);
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.getContentPane().setLayout(new BorderLayout());
              pack();
              //pane.getSelectionValues()
              pane.showConfirmDialog(this, message, "Confirm", JOptionPane.YES_NO_CANCEL_OPTION);
              Object selectedValue = pane.getValue();  //problem here
              if(selectedValue == null){
                   //do nothing...they just killed window
              }else {
                   for(int counter = 0, maxCounter = pane.getOptions().length; counter < maxCounter; counter++){
                        if(pane.getOptions()[counter].equals(selectedValue)){
                             //do something
              this.dispose();
         public JOptionPane getPane(){
              return pane;
         public static void main(String[] args) {
              OperatorConfirmDialog dialog = new OperatorConfirmDialog("Please enter a valid username.");
    }I put a break point at the line:
    if(selectedValue == null){
    When I run the debugger, confirmDialog prompts me to click "YES", "NO" or "CANCEL". I click "YES" and then arrive at the breakpoint. But, selectedValue doesn't seem to have the right value....the debugger says its value is "uninitializedValue" (literally). Any ideas?
    Thanks!

    Try this. Notice I received an int result from the showConfirmDialog() method.
    import javax.swing.*;
    import java.awt.*;
    public class OperatorConfirmDialog extends JFrame {
        JOptionPane pane;
        public OperatorConfirmDialog(String message) {
            pane = new JOptionPane();
            this.setDefaultLookAndFeelDecorated(true);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.getContentPane().setLayout(new BorderLayout());
            pack();
    // get the response from the user
            int result = pane.showConfirmDialog(this, message, "Confirm", JOptionPane.YES_NO_CANCEL_OPTION);
            if (JOptionPane.YES_OPTION == result) {
                // do what you want on 'yes' clicked
                System.out.println("User Clicked 'Yes'.");
            } else {
    // user clicked 'no' or 'cancel'... you could check result for JOptionPane.NO_OPTION or CANCEL_OPTION
                System.out.println("User Clicked either 'No' or 'Cancel'.");
            this.dispose();
        public JOptionPane getPane() {
            return pane;
        public static void main(String[] args) {
            OperatorConfirmDialog dialog = new OperatorConfirmDialog("Please enter a valid username.");
    }

  • JOptionPane handling problem

    Hi all,
    I'm imlementing a GUI using JPanel and paintComponent(Graphics g).
    When i have to display some data on the screen i use JOptionPane.showMessageDialog(...) and the data are displayed.
    The problem is that, when i close the Message Dialog, it doesn't completely disappear from the screen and so my screen is being messed up. I think it has to do with the graphic environment but i can't figure out what exactly is the problem.
    Thanks,
    John.

    I'm imlementing a GUI using JPanel and
    paintComponent(Graphics g).
    When i have to display some data on the screen i use
    JOptionPane.showMessageDialog(...) and the data are
    displayed.hello John,
    are you invoking JPanel's paintComponent ?public void paintComponent(Graphics g)
          super.paintComponent(g);
          //your painting stuff...
    }Not calling JPanel's paintComponent can cause background-painting problems.
    regards,
    Tim

  • GP - Sequential Block Problem with input structure

    Hi all
    My scenario is as follows:
    I have three Actions A1 , A2, A3
    every action has collable object of type WebDynproComponent : CO1 CO2 CO3
    CO1 has only output parameters that i have mapped to input parameters of CO2 . 
    Output parameters of CO2 are apped to input parameters of CO3 . 
    I have created sequential block with Actions A1 , A2, A3.where target of A1 is A2 and that of A2 is A3
    I have created IVIEW of this GP process .
    when i open iview , ideally it should directly open the webdynpro comp of collable object CO1.
    *But my problem is its before instantiation asking me to fill values for  input parameters of CO2 which is in sequence to CO1.*
    *Is there any setting that i have missed while creating block?*
    Regards,
    Sheetal

    Hi,
    If you expose parameters at the process level, it will ask you to provide values while instaniation.
    If it is not a mandatory parameter, you can proceed with out providing values.
    The best way is don't expose paramters, if is not required at process level.
    You have to expose a parameter at process level, only if you want to use that parameter in other processes.
    by default, it will be exposed. You have to uncheck it, If you don't want to expose it.
    thanks

  • Thread Problem - (Thread Blocking Problems?)

    Hi Friends
    In my program while using thread i found a problem in this code .
    In this whlie running the 'msg' was printen only after all 5 inputs are given .
    why i was not getting output after one input.why the thread out was waiting for remaining threads input.
    my code is
    import java.io.*;
    class MyThread extends Thread
      BufferedReader bin;
       MyThread()
         super();
         start();
       public void run()
          try
           bin=new BufferedReader(new InputStreamReader(System.in));
           String msg=bin.readLine();
           System.out.println(msg);
          catch(IOException e)
             System.out.println(e);
    public class Threads
         public static void main(String args[])
              for(int i=0;i<5;i++)
                new MyThread();
    }

    Hi Friends
    In my program while using thread i found a problem
    em in this code .
    In this whlie running the 'msg' was printen only
    after all 5 inputs are given .
    why i was not getting output after one input.why
    hy the thread out was waiting for remaining threads
    input.Probably because of how the scheduler was rotating among the threads while waiting for input and queueing up output.
    When you call readLine, that thread blocks until a line is available. So it probably goes to the next thread's readLine, and so on. All threads are probably blocked waiting for input before you enter a single character.
    Something inside the VM has to coordinate the interaction with the console, and between that and your threads, the out stuff just doesn't get a chance to display right away.
    In general, you can't predict the order of execution of separate threads.

  • Invoice Block problem in MIRO

    Hi Friends,
    I am facing a issue. Can some one help to overcome this issue please
    1. We have created PO with item value Rs 100  and  GR is not done yet.
    2. Then we created Invoice for value Rs 20. Invoice got blocked due to Quantity (because GR is not done)
    3. Now,I am creating subsequent debit for the same PO for the remaining value of Rs 80. But this subsequent document is not getting blocked . According to me this subsequent document should also get blocked. Can some one help me why this problem. Is it a standard SAP functionality that subsequent document will not get blocked?
    Deva

    Please have a look for details
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/a8/b99725452b11d189430000e829fbbd/content.htm
    Subsequent Debits/Credits are used in cases where the quantity is in the original invoice is to remain the same. For eg.
    PO  10 - $10
    Gr   10 - $10
    LIV 10 - $11 (Logistics Invoice Verification)
    The vendor invoice is more than that in the Purchase Order. In order to correct, the Vendor may send in another invoice for
    the Increased amount or a credit memo for the increased amount.
    If you approve of the price increase, post the subsequent invoice received as a Subsequent Debit/Credit Invoice.
    If it is a credit memo that has been received, then post the credit memo as Subsequent Debit/Credit.
    This would retain the quantity but reduce the amount.
    Subsequent Debit/Credit is for the case when the credit is not for the full amount eg. if the Vendor decided to credit
    only the $1 overcharged.
    Credit memo is for the credit of the full amount and value.
    Edited by: Sridhar Jayavarapu on Feb 12, 2009 2:34 PM

  • OBIEE 11g  Initialization Block problem with WLS User

    Hello,
    a brief description of my environment:
    - I have one machine with all OBIEE 11.1.1.6.2 components (build 120604.0813 BP1 64bit) and Oracle Database 11gR2;
    - In a separate machine I have the OID - Oracle Internet Directory where I have all business users with access to OBI Presentation Services;
    - In Weblogic Console I created a user named "weblogic" and this one is the administrator of all BI environment, this user is member of BIAdministrator and Administrators group, also this user is used to perform the communication between Fusion Middleware and Weblogic;
    - In weblogic Console I created a second user named "init_test" and he have the BIAuthor Role like the users that come from OID;
    - I have no problem logging in with all users OID and weblogic.
    Problem:
    - I created a simple Initalization Block and a variable to contain the result of the follow sql: SELECT region FROM adm_test_region WHERE city='Lisboa'
    - Initialization Blocks for Session variables are not working for "weblogic" user. For all other users everything is working as expected (users from OID and "init_test").
    Question:
    - There is any restriction in terms of Initialization Blocks for Session variables regarding the user that is linking Oracle Fusion Middleware with Oracle Weblogic?
    Thank you in advance,

    950780 wrote:
    Hello,
    a brief description of my environment:
    - I have one machine with all OBIEE 11.1.1.6.2 components (build 120604.0813 BP1 64bit) and Oracle Database 11gR2;
    - In a separate machine I have the OID - Oracle Internet Directory where I have all business users with access to OBI Presentation Services;
    - In Weblogic Console I created a user named "weblogic" and this one is the administrator of all BI environment, this user is member of BIAdministrator and Administrators group, also this user is used to perform the communication between Fusion Middleware and Weblogic;
    - In weblogic Console I created a second user named "init_test" and he have the BIAuthor Role like the users that come from OID;
    - I have no problem logging in with all users OID and weblogic.
    Problem:
    - I created a simple Initalization Block and a variable to contain the result of the follow sql: SELECT region FROM adm_test_region WHERE city='Lisboa'
    - Initialization Blocks for Session variables are not working for "weblogic" user. For all other users everything is working as expected (users from OID and "init_test").
    Question:
    - There is any restriction in terms of Initialization Blocks for Session variables regarding the user that is linking Oracle Fusion Middleware with Oracle Weblogic?
    Thank you in advance,When you say they are not working:
    1) You are using the session variables in a data filter in the RPD and for weblogic, the filter does not get applied?
    2) When trying to display the value of the sessoin variable in an analysis query, it errors out saying no value?
    As a BI Administrator, no data filters gets applied to the reports from the RPD unless you explicitly add them in the front end to the reports.
    You can also open the RPD in online mode, and go to sessions and kill everything, login using weblogic and monitor the sessions to see if a session is being created and the list of variables getting intilialized upon weblogic's entry into analytics.
    Thanks,
    -Amith.

  • Creating temporary table in pl/sql block problem

    hello
    i have a problem in creating and using temporary table in pl/sql block
    please verify below block
    begin
    execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
    insert into alitemp1 (co_t,color) values ('001','red');
    execute immediate 'DROP TABLE alitemp1';
    end;
    when i execute that block i will receive this error
    insert into alitemp1 (co_t,color) values ('001','red');
    ERROR at line 3:
    ORA-06550: line 3, column 14:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 3, column 2:
    PL/SQL: SQL Statement ignored
    i think it because that alitemp1 table don't create
    but two below block run fine
    begin
    execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
    execute immediate 'DROP TABLE alitemp1';
    end;
    begin
    execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
    end;
    select table_name from user_tables where table_name='ALITEMP1';
    TABLE_NAME
    ALITEMP1
    it means that problem is when the below line exists in block
    insert into alitemp1 (co_t,color) values ('001','red');
    if may please guide me

    In addition to the comments by Justin and 3360, you cannot do what you want the way you are doing it.
    All objects referred to in a PL/SQL block must exist at the time the block is compiled. In your case, since it is an anonomous block, that is run time. Since you are dynamically creating the temporary table you need to refer to it dynamically as well. More like:
    BEGIN
    EXECUTE IMMEDIATE 'create global temporary table alitemp1 (co_t varchar2(10),
                                                               color varchar2(10))';
    EXECUTE IMMEDIATE 'insert into alitemp1 (co_t,color) values (:b1,:b2)' USING '001', 'red';
    EXECUTE IMMEDIATE 'DROP TABLE alitemp1';
    END;However, don't do that it is a really bad idea. Just create the temporary table, if you really need it, once and use it in your processing.
    In most cases, things that SQL Server needs temporary tables for can be done easily in Oracle with a single SQL statement,
    John

  • Weblogic 10 jsp compliation thread block problem

    hi
    i am using weblogic 10 and jdk1.5.
    My application is deployed in ear format, with 2 wars, and 20 ejbs.
    The ear works ok with weblogic 8.1.
    In the application , one war passes the request to another war, that's the workflow....
    Now when the request is passed on the second war, a jsp is supposed to open....but the application get stuck there.
    The call is like this in a servlet....
         reqDisp = req.getRequestDispatcher("/newIndex.jsp");
    reqDisp.forward(req, res);
    The new index jsp is not opened....there is no problem with it it comiples ok....i check with weblogic appc...and it is working on weblogic 8.1.
    when i stop the server...the log gives me following exception info.
    "ExecuteThread: '12' for queue: 'default'" daemon prio=6 tid=0x2b8edad0 nid=0xc1
    0 in Object.wait() [0x2da1e000..0x2da1fb64]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x07f94608> (a javelin.client.JobWaiter)
    at java.lang.Object.wait(Object.java:474)
    at javelin.client.JobWaiter.blockUntilFinished(JobWaiter.java:45)
    - locked <0x07f94608> (a javelin.client.JobWaiter)
    at javelin.client.ClientUtilsImpl.build(ClientUtilsImpl.java:838)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:248)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
    - locked <0x07ef8220> (a weblogic.servlet.jsp.JavelinxJSPStub)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
    at LCDisplayController.handleProcessing(Unknown Source)
    at DisplayControllerServlet.doPost(Unknown Source)
    at DisplayControllerServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
    at com.orbitech.workflow.servlet.WFAppListController.openWorkitem(WFAppListController.java:793)
    at com.orbitech.workflow.servlet.WFAppListController.processRequest(WFAppListController.java:102)
    at com.orbitech.workflow.servlet.WFAppController.doProcessRequest(WFAppController.java:97)
    at com.orbitech.workflow.servlet.WFAppController.doGet(WFAppController.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    i think the there is thread blocking and the jsp is not getting compiled or smthing....
    i am unable to understnd the exception....
    any help, suggestion ? thanks in advance.

    We are using jBPM and Hibernate in our application which runs fine on other java application servers. On Weblogic we were getting an error:
    org.hibernate.HibernateException: Errors in named queries: GraphSession...........
    By adding:
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    to our weblogic.xml, Weblogic used our Hibernate3 and antl-2.7.6 .jar files which resolved this issue but created multiple CompilationException errors in many .jsp's. (as follows)
    Error 500--Internal Server Error
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/jsp/struts/dashboards/portfolio_chart.jsp
    portfolio_chart.jsp:1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
    <%@ taglib uri="/jstl-core" prefix="c" %>
    ^---------------------------------------^
    portfolio_chart.jsp:1:1: The validator class: "com.primavera.pvweb.taglib.JSMessageTagLibraryValidator" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
    <%@ taglib uri="/jstl-core" prefix="c" %>
    ^---------------------------------------^
         at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:298)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:165)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
    Is this a Weblogic bug ?

  • Try block problem !

    Hi all,
    I have problem to compile java program which has a large block of try {}
    This is the error message
    C:\Program Files\crt_table.java:3011: code too large for try statement
    catch (Exception e)
    ^
    anyone has solution to this type of problem ?
    Thanks in advance.

    How many different types of exception are you trying to catch ?
    Surely, if the try block is so big that the compiler is objecting, then you should be able to break the block down into smaller try blocks each of which is just catching one or two different exceptions. And perhaps you have code in this block which couldn't possibly cause an exception and doesn't need to be in a try block ?

  • WF_STANDARD.block Problem

    Hi,
    I have created a custom workflow which has a BLOCK node which pauses the workflow until some external application completes. After external activity gets completed, wf_engine.completeactivity() is executed so as to resume the wokflow and complete the process.
    But problem is, workflow doesn't resumes even if wf_engine.completeactivity() executes without error.
    Following is the syntax type for complete activity:
    WF_ENGINE.completeactivity('ITEM_TYPE_ABC','ITEM_KEY_111','BLOCK-3','NULL');
    'BLOCK-3' is the label of BLOCK node in workflow. NULL is used in last attribute as no result type is associated with BLOCK node. Also the status is 'NOTIFIED' for the activity.
    Please indicate what could be the problem which is preventing the workflow from resuming?
    Thanks in advance
    Nitin

    Hi,
    I´ve noticed you use this BLOCK activity in multiple subprocess. Sou you should do this:
    wf_engine.CompleteActivity(’ORDER’, ’1003’,’ORDER_PROCESS:BLOCK–3’,
    ’null’);
    Depending of your OWF version, your result should be 'None' instead of 'Null'
    Regards,
    Luiz

  • Two Master  and two details block problem

    Hi,
    I am getting problem in displaying the correct records on one of the detail block. There is one main master block 'A' and then it has one details block 'B' and then this detial block 'B' has got two details blocks 'c' and 'D'. I form different queries based on the value selected at detail block 'D'. Now i go to ,aster block and execute_query then it fetche the correct record at master block not on detail block 'D'. I have one anmoly in Dtails Block D and Master block B that they are joined with a common field not on the basis of proimary key and forign key. Please sugget

    Hi,
    When you establish the relations using the references, then oracle will look for the parent key in both the parent tables. Either you need to remove the foreign keys or change your db design to add one more table and have one-one parent child relationships.
    HTH
    Regards,
    Badri.

Maybe you are looking for

  • Change in Standard VAT Report :  S_alr_87012385

    Dear All, In  VAT summary report - S_ALR_87012385 I need some additions and changes as listed below- 1. Document wise line level tax detail is displayed - need at document level 2. Vendor TIN number is not getting displayed in the standard VAT report

  • Help! I can't print to HP Printer across LAN

    I can't print on my HP psc 1350xi all in one scanner and printer from my iMac G5 across my LAN. The printer is connected to my old iMac 600 MHz computer, running 10.2.8, through the USB 1 port, and the two iMacs are networked through a wired Linksys

  • The respond button on eBay works with Internet Explorer, but NOT with Firefox.

    The "Ask a question == This happened == Every time Firefox opened == Yesterday

  • Images on flash site half grey

    Hi I have a website motionstills.co.uk which has dynamic flash images, the images have the same info in photoshop. However, some of them load as half grey... 1'st page, gallery image 4 and contact page. Has anyone had this before?? Any help would be

  • Url called from form question

    HELP! I created a form that allows the user to enter a number (SEATPLAN). The code below is executed on a custom PL/SQL button. It does not seem to work. The url generated runs fine typed directly into the url of a browser. But the called url from th