The Calculator example

Hello!
I have runned th calculator RMI example in the tutorial.
But it seems to work only when i run both the server and the client on the same machine.
I get this error message when i try to connect the client to the server on a separate machin:
RemoteException
java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused: connect
Does anybody have a short RMI code example that works when connecting the client to the server on a different machine?

From lookup.That's one answer to three questions. I wouldn't have asked the other two if I didn't think they were relevant. But if you're getting a connection refused to 127.0.0.1 when doing a lookup(), obviously you are looking up the Registry in 127.0.0.1 instead of the host where the server and registry actually are.

Similar Messages

  • Problem with the calculator and modifications needed

    i have got a problem with the calculator on my iphone i.e i cannot find any DEL key or Backspace....the problem is when typing a long value if one number is entered wrong we should start again.
    EXAMPLE...if i need to type    114678047 * 345612
    if acidentally if i type 114678047 * 3455           ( then i should start over typing  "C"  key)
    i should start over to type the whole data..if we have a delete key we can just correct it right away and continue.....rather than starting over
    we can find this feature in all the other smart phones , i dont know why apple coudnt find that
    even every scientific calculator have a DEL key...
    Thanks
    vickyk7

    FEEDBACK
    If you want to give Apple feed back then do it here http://www.apple.com/feedback/iphone.html

  • What are the Calculations of Compression days in MRP?

    Hi,
    Can anyone please explain me with example that what are the calculations for compression days calculated for planned orders?? I am using MRP planning.
    Thanks and Regards
    Farhan

    HI,
    compression days are the days by which lead time of your buy items gets compressed to fulfill the demand due dates.
    For ex,  Finished Good is having Due date ( as scheduled ship date/request date in SO)   on 15th of Feb, but the buy item used in this assembly has lead time of 20 days.
    Consider the plan is running today i.e. on 6th Feb, so buy item will be actually available  on 6+20=26th of  Feb,
    But your demand due date is 15th Feb, which needs to be met, so planning engine will suggest an exception for this buy item as 'Item with compression days'
    by compressing its lead time as 26th Feb-15th Feb=11days as compression days.
    Please mark this post as correct or helpful it serves your purpose.
    Thanks,
    Avinash

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • How to do the calculation in the plsql loop?

    Hi,
    I have table like below below
    MODEL_NAME     ITEM_NUMBER     DA_VALUE
         A     A-1          2.1
         A     A-2          3.1
         A     A-3          1.1
         A     A-4          4.5
         B     B-1          3.2
         B     B-2          5.3
         B     B-3          7.2
         C     C-1          3.9
         C     C-2          4.0
         C     C-3          9.9          I need to write a stored procedure with 2 input values. One is design_code and another one is model_name. I will pass the model name as comma
    separated values to the procedure. Model name is nothing but A,B,C in the above table. Procedure has to split those model names and display
    all the item_numbers and da_numbers for the model names.
    Here the logic is i have to take all the model's item da_value and multiply.
    For example for the above table, I have to multiply all A-1 da_values and B-1 da_value and C-1 da_value then stored in to one array that result.
    Again A-1 da_value and B-2 da_values and C-2 da_values then stored into the same array.
    Again A-1 da_value and B-3 da_values and C-3 da_values then stored into the same array.
    After that come to A-2 da_value and start B-1 da_value and C-1 da_value then store into the same array.
    Again A-2 da_value and B-2 da_values and C-2 da_values then stored into the same array.
    Again A-2 da_value and B-3 da_values and C-3 da_values then stored into the same array.
    So like this only the flow should go for all the models. Below is the sample example.
    v_variable := 2.1 * 3.2 * 3.9;
               A-1   B-1   C-1
    v_variable := 2.1 * 5.3 * 4.0;
               A-1   B-2   C-2          
    v_variable := 2.1 * 7.2 * 9.9;
               A-1   B-3   C-3
    v_variable := 3.1 * 3.2 * 3.9;
               A-2   B-1   C-1          
    v_variable := 3.1 * 5.3 * 4.0;
               A-2   B-2   C-2     The calculation should happen like above example. Can anyone share with your thoughts?
    Thanks

    Hi All,
    I have built the below package. It is something like below. But it is working 75%. can you rearrange this?
        PROCEDURE calc_cv_valve (
                i_design_cv     IN NUMBER,
                i_option_class  IN VARCHAR2
                --o_calculated_cv OUT FND_TABLE_OF_VARCHAR2_255,
                --o_item_number   OUT FND_TABLE_OF_VARCHAR2_255
        IS
            CALC_CV     FND_TABLE_OF_VARCHAR2_255 := FND_TABLE_OF_VARCHAR2_255();
            ITEM_NUMBER FND_TABLE_OF_VARCHAR2_255 := FND_TABLE_OF_VARCHAR2_255();
            TYPE calculate_oc1_cv_rec IS RECORD
                     ITEM_NUMBER          VARCHAR2(100) := NULL,
                     CV_NUMBER      NUMBER := NULL                
            TYPE calculate_oc1_cv_tbl_type IS TABLE OF calculate_oc1_cv_rec INDEX BY BINARY_INTEGER;
            v_calculate_oc1_cv_tbl_type   calculate_oc1_cv_tbl_type;
            v_calc_oc1_index  PLS_INTEGER;
            TYPE calculate_oc2_cv_rec IS RECORD
                     ITEM_NUMBER          VARCHAR2(100) := NULL,
                     CV_NUMBER      NUMBER := NULL                
            TYPE calculate_oc2_cv_tbl_type IS TABLE OF calculate_oc2_cv_rec INDEX BY BINARY_INTEGER;
            v_calculate_oc2_cv_tbl_type   calculate_oc2_cv_tbl_type;
            v_calc_oc2_index  PLS_INTEGER;
            TYPE calculate_oc3_cv_rec IS RECORD
                     ITEM_NUMBER          VARCHAR2(100) := NULL,
                     CV_NUMBER      NUMBER := NULL                
            TYPE calculate_oc3_cv_tbl_type IS TABLE OF calculate_oc3_cv_rec INDEX BY BINARY_INTEGER;
            v_calculate_oc3_cv_tbl_type   calculate_oc3_cv_tbl_type;
            v_calc_oc3_index  PLS_INTEGER;               
            TYPE option_class_rec IS RECORD
                     OPTION_CLASS      VARCHAR2(100) := NULL
            TYPE option_class_tbl_type IS TABLE OF option_class_rec INDEX BY BINARY_INTEGER;
            v_option_class_tbl_type   option_class_tbl_type;
            v_option_index  PLS_INTEGER;
            v_count_option_class    NUMBER;
            v_attribstart           NUMBER;
            v_attribpos             NUMBER;
            v_calc1_inc     NUMBER;
            v_calc2_inc     NUMBER;
            v_calc3_inc     NUMBER;
            v_end_loop2     NUMBER;
            v_end_loop3     NUMBER;
            v_end_loop4     NUMBER;
            v_end_loop5     NUMBER;
            v_prior_loop    NUMBER;
            v_valid_cv      NUMBER;
            v_calculation   NUMBER;
        BEGIN
            BEGIN
                SELECT  COUNT(COLUMN_VALUE)
                INTO    v_count_option_class
                FROM    TABLE(xxcz_va_sizing_util_pkg.get_string_comma(i_option_class,','));
                DBMS_OUTPUT.PUT_LINE('Count of Option Class----: '||v_count_option_class);
            EXCEPTION
            WHEN OTHERS
            THEN
                NULL;       
            END;
            IF v_count_option_class = 3
            THEN
                v_attribstart := 1;
                v_attribpos := 1;
                v_option_index := 1;
                WHILE (v_attribpos <> 0)
                LOOP
                    v_attribstart := v_attribpos;
                    xxcz_va_sizing_util_pkg.tokenize_string (v_attribstart,
                                                            ',' || i_option_class,
                                                            v_option_class_tbl_type(v_option_index).option_class,
                                                            v_attribpos
                    v_option_index := v_option_index + 1;
                END LOOP;
                SELECT  item_number, cv_number
                BULK COLLECT INTO v_calculate_oc1_cv_tbl_type
                FROM    SAMPLE_CONTROLS--xxcz_va_controls_info
                WHERE   control_name = v_option_class_tbl_type(1).option_class;
                SELECT  item_number, cv_number
                BULK COLLECT INTO v_calculate_oc2_cv_tbl_type
                FROM    SAMPLE_CONTROLS--xxcz_va_controls_info
                WHERE   control_name = v_option_class_tbl_type(2).option_class;           
                SELECT  item_number, cv_number
                BULK COLLECT INTO v_calculate_oc3_cv_tbl_type
                FROM    SAMPLE_CONTROLS--xxcz_va_controls_info
                WHERE   control_name = v_option_class_tbl_type(3).option_class;
                --v_calc1_inc := v_calculate_oc1_cv_tbl_type.count;
                DBMS_OUTPUT.PUT_LINE('v_calculate_oc1_cv_tbl_type----: '||v_calculate_oc1_cv_tbl_type.count);
                --v_calc2_inc := v_calculate_oc2_cv_tbl_type.count;
                DBMS_OUTPUT.PUT_LINE('v_calculate_oc2_cv_tbl_type----: '||v_calculate_oc2_cv_tbl_type.count);          
                --v_calc3_inc := v_calculate_oc3_cv_tbl_type.count;
                DBMS_OUTPUT.PUT_LINE('v_calculate_oc3_cv_tbl_type----: '||v_calculate_oc3_cv_tbl_type.count);
                v_calc1_inc := 0;
                v_calc2_inc := 0;
                v_calc3_inc := 0;
                v_end_loop2 := 0;
                v_end_loop3 := 0;
                v_end_loop4 := 0;
                v_end_loop5 := 0;
                v_prior_loop    := 0;
                v_valid_cv  := 0;
                WHILE (v_calculate_oc1_cv_tbl_type.next(v_calc1_inc) IS NOT NULL) AND v_valid_cv = 0
                LOOP
                    DBMS_OUTPUT.PUT_LINE('Pre index count of oc1----: '||v_calc1_inc);
                    v_calc1_inc := v_calculate_oc1_cv_tbl_type.next(v_calc1_inc);
                    DBMS_OUTPUT.PUT_LINE('Post index count of oc1----: '||v_calc1_inc);
                    v_prior_loop := v_calculate_oc1_cv_tbl_type.prior(v_calc1_inc);
                    --IF v_calc1_inc <> v_prior_loop--v_end_loop2 = 1 OR v_end_loop4 = 1
                    --THEN
                        v_calc2_inc := 0;
                        DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'Y');
                    --END IF;
                    DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'N');
                    WHILE (v_calculate_oc1_cv_tbl_type.next(v_calc2_inc) IS NOT NULL)
                    LOOP
                        DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'Pre index count of oc2----: '||v_calc2_inc);
                        v_calc2_inc := v_calculate_oc1_cv_tbl_type.next(v_calc2_inc);
                        DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'Pre index count of oc2----: '||v_calc2_inc);
                        --IF v_calc1_inc <> v_prior_loop AND v_calc2_inc = v_calculate_oc1_cv_tbl_type.prior(v_calc2_inc)--v_end_loop3 = 1 OR v_end_loop5 = 1
                        --THEN
                            v_calc3_inc := 0;
                            DBMS_OUTPUT.PUT_LINE('Y');                       
                        --END IF;
                        DBMS_OUTPUT.PUT_LINE('N');                                       
                        WHILE (v_calculate_oc1_cv_tbl_type.next(v_calc3_inc) IS NOT NULL)
                        LOOP
                            DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'Pre index count of oc3----: '||v_calc3_inc);
                            v_calc3_inc := v_calculate_oc1_cv_tbl_type.next(v_calc3_inc);
                            DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'Pre index count of oc3----: '||v_calc3_inc);
                            DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'Calc Value----: '||v_calculate_oc1_cv_tbl_type(v_calc1_inc).cv_number||','
                                                                    ||v_calculate_oc2_cv_tbl_type(v_calc2_inc).cv_number||','
                                                                    ||v_calculate_oc3_cv_tbl_type(v_calc3_inc).cv_number);
                            v_calculation := v_calculate_oc1_cv_tbl_type(v_calc1_inc).cv_number + v_calculate_oc2_cv_tbl_type(v_calc2_inc).cv_number +
                                                v_calculate_oc3_cv_tbl_type(v_calc3_inc).cv_number;
                            DBMS_OUTPUT.PUT_LINE(v_calc1_inc||'Calculated value----: '||v_calculation);                                           
                            IF i_design_cv <= v_calculation
                            THEN
                                v_valid_cv  := 1;
                                DBMS_OUTPUT.PUT_LINE('v_valid_cv----: '||v_valid_cv);                           
                                GOTO end_loop;                           
                            END IF;
                            IF v_calculate_oc2_cv_tbl_type.next(v_calc2_inc) IS NOT NULL
                            THEN
                                v_end_loop2 := 1;
                                DBMS_OUTPUT.PUT_LINE('v_end_loop2----: '||v_end_loop2);                           
                                GOTO calc2_loop;                           
                            END IF;
                            IF v_calculate_oc3_cv_tbl_type.next(v_calc3_inc) IS NOT NULL
                            THEN
                                v_end_loop3 := 1;
                                DBMS_OUTPUT.PUT_LINE('v_end_loop3----: '||v_end_loop3);
                                GOTO calc3_loop;
                            END IF;                       
                            IF v_calc2_inc = v_calculate_oc2_cv_tbl_type.count AND v_calc3_inc = v_calculate_oc3_cv_tbl_type.count
                            THEN
                                IF v_calc2_inc = v_calculate_oc2_cv_tbl_type.count
                                THEN
                                    v_end_loop4 := 1;
                                ELSE
                                    v_end_loop5 := 1;
                                END IF;
                                DBMS_OUTPUT.PUT_LINE('Count point reached for both oc2 and oc3----: '||v_calculate_oc2_cv_tbl_type.count
                                            ||','||v_calculate_oc3_cv_tbl_type.count);
                                GOTO next_record;
                            END IF;
                            <<calc3_loop>>
                            DBMS_OUTPUT.PUT_LINE('Third Loop Conditions finished-------: '||v_calculation);
                        END LOOP;
                        <<calc2_loop>>
                        DBMS_OUTPUT.PUT_LINE('Second Loop Conditions finished-------: '||v_calculation);
                    END LOOP;
                    <<end_loop>>
                    DBMS_OUTPUT.PUT_LINE('Loop Conditions Satisfied-------: '||v_calculation);
                    <<next_record>>
                    DBMS_OUTPUT.PUT_LINE('Loop Conditions Started with next record-------: '||v_calculation);
                END LOOP;
            END IF;
        END calc_cv_valve;

  • Surcharge (x% on the calculated business tax)

    HI All,
    Happy new year to all.
    I am new SD module i am basically BI consultant, now i am doing the SD implementation  project.
    based on below scenario i have create new condition type.
    can any one help me.
    1.       tax example
    Business tax
    Transportation          3 %
    Other Services         5 %
    Surcharge (x% on the calculated business tax)
    Example:
    Transportation                      1000 Yuan
    Business tax (3%)                   30 Yuan
    Surcharge (e.g. 10%)                 3 Yuan
    Packets Domestic               1000 Yuan
    Business tax (5%)                   50 Yuan
    Surcharge (e.g. 10%)                 5 Yuan
    Business tax and surcharge will be displayed on the invoice in two separate lines.
    New Tax conditions type need to be customized.
    Attributes to determine the tax rate:
    ·         Tax classification customer
    ·         Tax classification material
    Thanks,
    kumarp

    Dear Kumar,
    As per my under stand, while u create Sales order time 3 condition types u want
    If my assumption right?
    First u need to main pricing procedure, in that maintain  condition types with from, to
    For Eg:
    S.No-Condition typeFrom-----To
    10-------Transportation
    20----
    Business Tax
    30--Surcharge--
    20
    Like this way u want main pricing procedure, this calculation reflect in sales order.
    Second one is u maintain condition records, Here maintain with percentage.
    If u maintain like this after sales order, billing u will get three separate lines.
    If any think wrong just tell me.
    Thanks
    Satya

  • The calculator is wrong

    Hello
    I've got Mac 21" late 2012. Downloaded Yosemite two days ago and the new calculator does not work properly. I used it too much (it's wonderful when you use a calculator on a big display), I need it much and now I'm disappointed. This is unbelievable. Is it possible to send an email to Apple and to tell them? If it is, please write down the address. Thank you in advance. Tatjana

    For example:
    I type 10 and then 2 and then % and the result is 0.02.
    When I use those buttons in that sequence, 102 appears in the display and when I press  % I see 1.02 in the display.
    You appear to be have left out some key-presses [e.g., the Enter key] in your description and/or are using Reverse Polish Notation. Have you set the calculator to use RPN mode (Reverse Polish Notation)? RPN Calculator use is definitely an "acquired taste". Most folks hate it, but a few can't live without it.
    Most Reverse Polish Notation operators appear AFTER the operands, and operate on the number in the display with the number on the top of a (traditionally four-element) STACK, a concept not used in "regular" calculators (except a few made by Hewlett Packard).
    To perform what you appear to want on a "regular" calculator, you express these in a vaguely algebraic stream of consciousness. number, operator, number, Equals. (e.g., 1 plus 2 Equals -- and the display shows 3)
    The percent key on a "regular" calculator does NOT operate on anything except the number on display. It ONLY expresses the current number on display as a percentage, as if you had added the percent symbol to the number in the display then expressed it as a decimal value instead. --  it does NOT compute x percent of y. I believe operates the same way on a RPN mode calculator.  So I believe it is operating correctly. When you press the percent key and it expresses the 2 in the display as 0.02, or two percent, which is correct.
    If you wanted 2 percent of 10, use the DIVIDE function: (2 Enter, 10, Divide) and follow it with the percent symbol when you transcribe it to your documents, or press the percent key to show it as a decimal percentage.
    -Or- first express 2 as a percentage by typing 2 pressing the % key, Enter, 10, Multiply (to take 2 percent of ten) yielding 0.2.
    In Reverse Polish Notation, the ADD function operates on the element on display plus the top number on the stack. 1 Enter 2 Add yields 3, the number on display plus the number from the top of the stack. 1 Enter 2 Enter yields 4 (the 2 on display and the 2 on the top of the stack are added.

  • HT2492 How do I use the calculator widget in another window?

    How do I use the calculator widget in another window?  For ex: if I want to move the calculator to a window that shows prices of products on a web page.  I used to be able to click on the calculator and use it in another window, before I upgraded to OSX. What am i doing wrong?

    I think you have to bring it back up in widgets in a new window, you can set up a hot corner to make tis qciker

  • Not able to get Out-of-the-Box Examples Index Page for running the jsp examples

    Hi
    I am a new person using weblogic first time I installed the weblogic 7.0 beta
    version on my machine.I am trying to start the weblogic server console so that
    I can configure web applications examples on my machine.
    I am getting following error and not able to view Out-of-the-Box Examples Index
    Page
    error:
    <Apr 5, 2002 12:11:39 PM IST> <Error> <SystemDataStore> <null> <Unable to listen
    on Port 7003: Address in use: JVM_Bind>
    Please help me to find the reason to have this problem
    Thank You in advance
    Vikas

    Hi.
    Please post all WLS 7.0 beta questions to the beta newsgroups -
    weblogic.developer.interest.70beta.*.
    Thanks,
    Michael
    Vikas wrote:
    Hi
    I am a new person using weblogic first time I installed the weblogic 7.0 beta
    version on my machine.I am trying to start the weblogic server console so that
    I can configure web applications examples on my machine.
    I am getting following error and not able to view Out-of-the-Box Examples Index
    Page
    error:
    <Apr 5, 2002 12:11:39 PM IST> <Error> <SystemDataStore> <null> <Unable to listen
    on Port 7003: Address in use: JVM_Bind>
    Please help me to find the reason to have this problem
    Thank You in advance
    Vikas--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Can't run the cluster example

              I would appreciate if someone can explanation my long list of questions regarding
              the deployment of EJB in cluster environment.
              I can't run the cluster EJB example( Teller/Account) in a cluster(contains two
              server2). I always get
              java.rmi.RemoteException: Unable to
              resolve examples.cluster.ejb.Account
              Home. Resolved: 'examples.cluster.ejb'
              Unresolved:'AccountHome'
              Following is my setup:
              Machine A: exampleServer:7001 (admin server)
              Machine A: testServer1:8001 (Managed server)
              Machine B: testServer1_B:8001(Managed server)
              MyCluster : testServer1, testServer1_B
              Test Client:
              java examples.cluster.ejb.Client "t3://Machine A:8001"
              ======================
              Q1: Should I use 8001 or 7001 as cluster port number?
              Q2: What will happen when we click "apply" after select/unselect the server in
              the "target", "server" tab?
              Q3: And what will happen if we click deploy/undeploy check box in "configuration"
              tab of EJB item?
              Q4: I check the JNDI tree from all above three servers can't find out JNDI tree
              doesn't reflect the change I did in Q2 or Q3.
              Q5: What is the right way to deploy EJB components, should we select both cluster
              and server in the "target" tab?
              Q6: I got this message from one of the server when I try to undeploy/deploy ejb
              object.
              "examples.cluster.ejb.TellerHome_EO in the jndi tree is non clusterable
              and you have tried to bind more
              once? How could I make it clusterable?
              Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI name in use"
              from the server.
              How could I fix it.
              Thanks
              

    First I can tell you that the ports have to be the same, be on the the
              same network , i.e. Telnet into the other m/c. Next which you probably
              have done is the properties files. Per-cluster ...
              >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
              On 6/7/01, 6:59:48 AM, "James Hsu" <[email protected]> wrote regarding
              Can't run the cluster example:
              > I would appreciate if someone can explanation my long list of
              questions regarding
              > the deployment of EJB in cluster environment.
              > I can't run the cluster EJB example( Teller/Account) in a
              cluster(contains two
              > server2). I always get
              > java.rmi.RemoteException: Unable to
              > resolve examples.cluster.ejb.Account
              > Home. Resolved: 'examples.cluster.ejb'
              > Unresolved:'AccountHome'
              > Following is my setup:
              > Machine A: exampleServer:7001 (admin server)
              > Machine A: testServer1:8001 (Managed server)
              > Machine B: testServer1_B:8001(Managed server)
              > MyCluster : testServer1, testServer1_B
              > Test Client:
              > java examples.cluster.ejb.Client "t3://Machine A:8001"
              > ======================
              > Q1: Should I use 8001 or 7001 as cluster port number?
              > Q2: What will happen when we click "apply" after select/unselect the
              server in
              > the "target", "server" tab?
              > Q3: And what will happen if we click deploy/undeploy check box in
              "configuration"
              > tab of EJB item?
              > Q4: I check the JNDI tree from all above three servers can't find out
              JNDI tree
              > doesn't reflect the change I did in Q2 or Q3.
              > Q5: What is the right way to deploy EJB components, should we select
              both cluster
              > and server in the "target" tab?
              > Q6: I got this message from one of the server when I try to
              undeploy/deploy ejb
              > object.
              > "examples.cluster.ejb.TellerHome_EO in the jndi tree is non
              clusterable
              > and you have tried to bind more
              > once? How could I make it clusterable?
              > Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI
              name in use"
              > from the server.
              > How could I fix it.
              > Thanks
              [att1.html]
              

  • How to use the Calculated attibute in view object

    Hi,
    I have a view object query with the calculated attribute name as 'TRANCODE' in the below sql.This query works for the initial page loading.
    After the page gets loaded, there is a search section in the same page at the top.
    Here i will have to build the whereclause to the same query and retrieve the values.
    i am using jDeveloper 10.1.3.1, with adf and jHeadstart.
    Can some one tell as how to use the calculated attribute TRANCODE in whereclause?
    SELECT /*+ first_rows(10) */
    BatchCntl.FILE_CNTL_ID,
    CASE WHEN chk_bit(Entry.ENTRY_FLAGS, 2)='Y' OR Entry.ENTRY_SUBSTATUS = 'D' OR Entry.ENTRY_SUBSTATUS = 'J'
    THEN
    CASE eeh.TRAN_CODE
    WHEN '21' THEN 'C'
    WHEN '22' THEN 'C'
    WHEN '31' THEN 'C'
    WHEN '32' THEN 'C'
    WHEN '26' THEN 'D'
    WHEN '27' THEN 'D'
    WHEN '36' THEN 'D'
    WHEN '37' THEN 'D'
    ELSE eeh.TRAN_CODE
    END
    ELSE
    CASE Entry.TRAN_CODE
    WHEN '21' THEN 'C'
    WHEN '22' THEN 'C'
    WHEN '31' THEN 'C'
    WHEN '32' THEN 'C'
    WHEN '26' THEN 'D'
    WHEN '27' THEN 'D'
    WHEN '36' THEN 'D'
    WHEN '37' THEN 'D'
    ELSE Entry.TRAN_CODE
    END
    END AS TRANCODE,
    FROM Batch_Cntl BatchCntl, Entry, ENTRY_EDIT_HIST eeh
    WHERE (BatchCntl.BATCH_TYPE = 'E')
    AND (BatchCntl.BATCH_STATUS in ('A','D','R','P'))
    AND entry.in_batch_cntl_id = BatchCntl.BATCH_CNTL_ID
    and Entry.fi_rt = eeh.fi_rt (+)
    and Entry.entry_id = eeh.entry_id (+)
    AND (Entry.ENTRY_STATUS in ('A','D','R','P'))
    ORDER BY BatchCntl.BATCH_CNTL_ID, Entry.entry_id
    regards
    Raj.

    Let's say your application module is com.yourcompany.someapp.services.MyService, and let's say you authored a method like the following in the MyServiceImpl.java file:
      public void doSomething(int i, String s) {
      }and you exposed this AM custom method using the AM editor.
    BC4J design time will automatically create you the com.yourcompany.someapp.services.common.MyService interface that will look like this if you go look at the source code:
    package com.yourcompany.someapp.services.common;
    import oracle.jbo.ApplicationModule;
    public interface MyService extends ApplicationModule {
      public void doSomething(int i, String s);
    }To use your custom method from a client, just cast your ApplicationModule to your custom interface like this:
    import com.yourcompany.someapp.services.common.MyService;
      MyService mySvc = (MyService)yourAM;
      mySvc.doSomething(1,"foo");

  • Error While building the Sample Example

    Hi,
    I'm trying to run the first example in the following tutorial:
    http://docs.oracle.com/cd/E17904_01/web.1111/e13758/toc.htm
    Getting the following error:
    java.lang.NoClassDefFoundError: com/sun/xml/ws/model/RuntimeModeler
    at weblogic.wsee.util.ClassUtil.getNamespaceFromClass(ClassUtil.java:151
    at weblogic.wsee.jws.WebServiceRuntimeDecl.initNamespaces(WebServiceRunt
    imeDecl.java:253)
    at weblogic.wsee.jws.WebServiceRuntimeDecl.<init>(WebServiceRuntimeDecl.
    java:77)
    at weblogic.wsee.tools.jws.decl.WebServiceDecl.<init>(WebServiceDecl.jav
    a:48)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
    cl.java:81)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
    cl.java:68)
    at weblogic.wsee.tools.jws.decl.WebServiceDeclFactory.newInstance(WebSer
    viceDeclFactory.java:54)
    at weblogic.wsee.tools.anttasks.JwsModule.buildAndValidate(JwsModule.jav
    a:583)
    at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java
    *:574)*
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.model.RuntimeModeler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    *... 29 more*
    Kindly help me out in how to run the example, please let me know where I'm going wrong.
    I'm beginning to feel oracle has the most pathetic documentation, even when u following exactly as told in the tutorial, still its code does not work, personally I feel oracle products are the most complex and most useless while at the same time very expensive.

    Hi,
    you see that message: "The password must be at least 8 alphanumeric characters with at least one number or special character." ?
    The password: The weblogic password you provide when prompted
    must be at least: minimal condition for secure passwords enforced on WLS by default
    at least 8 alphanumeric characters: no 7 but eight or more characters
    with at least one number or special character: password should have a number in it or an "@" "-" or similar
    E.g.
    weblogic1
    is one password option that would meet that requirement
    Frank

  • Am getting the following error while running the servlet example

    Hi,
    am getting the following error while running the servlet example
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         edu.dao.StudentDao.insertStudent(StudentDao.java:18)
         edu.servlet.StudentServlet.doGet(StudentServlet.java:25)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    Thanks
    //sreekanth

    Hi,
    the following code i have written in StudentDao
    package edu.dao;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import org.apache.commons.dbutils.DbUtils;
    import edu.model.Student;
    import edu.util.DBUtil;
    public class StudentDao {
         public void insertStudent(Student student) {
              String stuQuery = "INSERT INTO STUDENT VALUES(?,?)";
              Connection connection = DBUtil.getConnection();
              PreparedStatement preparedStatement = null;
              try {
                   preparedStatement = connection.prepareStatement(stuQuery);
                   preparedStatement.setString(1,student.getStudentNo());
                   preparedStatement.setString(2, student.getStudentName());
                   preparedStatement.executeUpdate();
              } catch(SQLException e){
                   System.out.println("..Sql exception......");
              }finally {
                   DbUtils.closeQuietly(connection,preparedStatement,null);
    }

  • Maintain the acct key and accruals/provisions in the calculation schema

    Dear All,
    I have a problem during invoice posting.
    I create a new freight condition type & assigned it to the calculation schema. I also create a  new account key & assigned to the calculation schema in  accrual keys. Then done OBYC settings. During MIGO, its working fine. But when i post the Miro against po, giving an error msg., "Maintain the acct key and accruals/provisions in the calculation schema, Message no. M8434"
    plz help me to solve this issue.

    Have you ticked the 'Acruals' in control data 2 in M/06 for this condition.
    Regards,
    Piyush

  • IPC:The calculation type   is not permitted

    Hi Guy's
      We are using ECC5.0, CRM4.0, IPC4.0 and ISA4.0 for the B2C implementation.
      We are getting error below in CRM Order screen and not getting price also
      "IPC: The calculation type   is not permitted".
      Scenario: The transferred sales order contains free-of-charge items. (I.e. we are given the free-of goods for particular order in item level)
      I have checked the SAP Notes "389791" but, I couldn't find the solution.
      Please any one help me out on this.
    Thnx
    Suriya

    I think that's the only relevant note. If that doesn't resolve your issue, would suggest raising an oss message.
    Regards,
    Kaushal

Maybe you are looking for

  • How can i insert photos in my posts?

    i know this doesnt deal with phones directly but im wondering how can i post photos in my message/posts? been seaching for the answer no luck......

  • Data is not comming in BSP page

    Hi Experts, At R/3 side while executing the appraisal template application in se80 t-code we are unable to view the total data but the same is working fine Development and Quality but, in Production system only some data is comming what necessary ste

  • Storage space decreasing

    THe storage space is decreasing . the Usage details are as follows 1.Songs 12Nos. 2.Videos 8 nos.  all 1 to 2 minutes duration only 3.Photoes 37nos. 4.Applications 24 nos. 5.Capacity 26.3G.B 7.Available storage 12.6 G.B. WHat measures I have to takea

  • Query HR: error execution with infotype custom

    Hello! Can you help me? In upgrade to ECC 6.0, when I create a query with an Infotype custom, I see this error:  "Error when generating the report" (long text is about "AQ_AD_HOC221"). Thanks, Manu

  • NETLOAD Aabout Load balancing algorithm

    now a MP model ubb: *MACHINES site1 NETLOAD=1000 site1 NETLOAD=100 *GROUPS GROUP1 LMID=site1 GROUP2 LMID=site2 *SERVERS svr1 GRPNO=GROUP1 svr2 GRPNO=GROUP2 now,for example site1 LOAD=500 site2 LOAD=300 if a request is sent from site1 to svr2 on site2