Cluster + case help

Hello,
I am trying to learn clusters and the unbundle by name function using a case structure. For some reason my output cluster's wire is broken and it says the error is incorrect data type, but I am multiplying by a scalar, I do not understand why the error is happening and what to do to fix it.
Also I have a problem with the case structure. So I want the case structure do something if it is false (As displayed). But, I don't want it to do anything if the case structure is true. How would I go about in wiring and setting up the block diagram for the true case structure?
I have attached pictures of my front panel and block diagram.
Hopefully I was clear in my question, if not just let me know!
I appreciate all help! thank you!
Solved!
Go to Solution.
Attachments:
block diagram.png ‏103 KB
front panel.png ‏86 KB

I want the true case statement to do nothing. I literally just want an if false then this. If true then do nothing. 
Then put nothing into the TRUE case.  It really is just as simple as that.
Put something into the FALSE case.
Do note that *-IF-* you have something coming OUT of the FALSE case (an output from something inside the false case coming thru the case "wall", then you have to supply something for that wire in the TRUE case as well.
That can be just a default value, or a zero, empty string, whatever, but you have to supply a value.
But that's ONLY if that wire goes thru the "wall".
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

Similar Messages

  • Caching read-only data in a weblogic cluster: Need Help

    Hello,
    I'm working on the development of a web site that will be based on a weblogic cluster spread across several weblogic instances running on several unix boxes.
    To avoid frequent hits to the database, I would like hold a huge amount of data in the application's in-memory cache. The idea is to query the database at startup and store the results in memory for the life of the JVM.
    I have three questions around this:
    1. Is it advisable to store this data in the form of read-only entity beans?
    2. If not, what other options do I have?
    3. In some rare cases, a back-end script might change (and commit) data contained in one or two of these 64000 records. What is the best way of propagating these data changes across the cluster?
    Any help in this regard would be greatly appreciated.
    Regards,
    Dipak Jha

    Could somebody please guide me on this?
    Dipak Jha

  • SecurityException when deploying to a cluster.Please help !

    Hi Guys,
              I am running a clustering scenario wherein i have an administration server and 2 managed servers(this forms the cluster). Admin server and 1 managed server is in one machine and the second managed server is in another machine.Node Manager is configured in both the machines.
              I am able to get a successful application deployment when i choose to deploy it partially to either of the manged servers in the cluster.But when i choose to deploy the application to the whole cluster i always get the following exception indicating that the run-as principal 'ProcessInjectorMessageBeanUser' is not a member of the current security realm.However, in the secuity realm that this domain is using,i can see this user listed in the Administration console.Any idea what could be wrong ?
              As i am beginner in weblogic clustering, Any help will be really appreciated.
              [Deployer:149033]preparing application COM-ORCH-expand-1.1 on grp-fred
              [Deployer:149033]preparing application COM-ORCH-expand-1.1 on new_managedServer_1
              [Deployer:149033]prepared application COM-ORCH-expand-1.1 on grp-fred
              [Deployer:149033]failed application COM-ORCH-expand-1.1 on new_managedServer_1
              [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application COM-ORCH-expand-1.1 on TFFCluster.:
              Exception:weblogic.management.ApplicationException: prepare failed for ORCH-ejb-1.1.jar
              Module: ORCH-ejb-1.1.jar Error: Exception preparing module: EJBModule(ORCH-ejb-1.1.jar,status=NEW)
              Unable to deploy EJB: .\new_managedServer_1\stage\COM-ORCH-expand-1.1\ORCH-ejb-1.1.jar from ORCH-ejb-1.1.jar:
              weblogic.ejb20.WLDeploymentException: The run-as principal 'ProcessInjectorMessageBeanUser' for EJB 'com/OrchestratorMessageBean' is not a user in the current realm. The user must exist for the EJB to successfully deploy.
              at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.getRunAsPrincipal(MBeanDeploymentInfoImpl.java:1047)
              at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeRunAsSettings(MBeanDeploymentInfoImpl.java:838)
              at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:246)
              at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1262)
              at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
              at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Cheers,
              Josh

    Can you post the config.xml from both boxes ?
              I think there may some mismatch in the Advanced Security Credentials on both domains.
              Dips

  • Case help

    I'm using 9.2.0.5.0
    I have a case in a where clause. The select is:
    SELECT description,dist
    FROM posdist
    WHERE posname LIKE 'NAPOS'
    AND to_char(nvl(active,9)) in CASE 2
    WHEN 1
    THEN '1'
    WHEN 3
    THEN '9'
    WHEN 2
    THEN (1,9)
    END;
    The column "active" is numeric. This query is going to end up being used as a dynamic statement in HTML DB. The case condition is going to be a field on the screen that the user will make a selection. The actual return value possibilities are 1 and NULL.
    A value of 1 is active
    A value of NULL is inactive
    I am casting the column as a character because I was getting non-numeric errors from the last condition (WHEN 2) and the screen will return the values as character. I'm using the NVL function just to make the NULL's a 9 just so that they're easier to work with and compare.
    The user may want both Active and Inactive records. This is my problem. I made the return value from the screen for INACTIVE a 3 to make the CASE easier to work with instead of trying to work with "nulls". As it stands now, the values of 1 and 3 works. The statement fails on the last condition - when the value is 2.
    What I would like the where clause to be, of course, is when the value is 2 then the case resolve the last condition as: AND to_char(nvl(active,9)) in (1,9);
    Again, when the values are 1 or 3 I get the correct records back.
    Can someone help me out?
    Thanks,
    Joe

    The only options for using IN are to have a static list or a query as your right hand operand. Obviously a static list won't accomplish what you want, but a query will. You allow 1 if the value you're considering is 1 or 3, and you allow 9 if the value you're considering is 1 or 2.
    SELECT 1 FROM dual WHERE :x IN (1, 3)
    UNION ALL
    SELECT 9 FROM dual WHERE :x IN (1, 2)So then you can re-write your query as,
    create table posdist (
    posname  varchar2(30),
    active  number,
    dist  varchar2(30),
    description  varchar2(80));
    insert into posdist values ('NAPOS', 1, 'A', 'The letter A');
    insert into posdist values ('NAPOS', 2, 'B', 'The letter B');
    insert into posdist values ('NAPOS', 3, 'C', 'The letter C');
    insert into posdist values ('NAPOS', 4, 'D', 'The letter D');
    insert into posdist values ('NAPOS', 5, 'E', 'The letter E');
    insert into posdist values ('NAPOS', 6, 'F', 'The letter F');
    insert into posdist values ('NAPOS', 7, 'G', 'The letter G');
    insert into posdist values ('NAPOS', 8, 'H', 'The letter H');
    insert into posdist values ('NAPOS', 9, 'I', 'The letter I');
    insert into posdist values ('NAPOS', 10, 'J', 'The letter J');
    SELECT rownum
      FROM dual
    COMMIT;
    SQL> VAR x VARCHAR2
    SQL>
    SQL> exec :x := 2;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> SELECT description,
      2         dist
      3    FROM posdist
      4   WHERE posname LIKE 'NAPOS'
      5     AND TO_CHAR (NVL (active, 9)) IN (
      6           SELECT '1' FROM DUAL WHERE :x IN (1, 3)
      7           UNION ALL
      8           SELECT '9' FROM DUAL WHERE :x IN (1, 2)
      9         );
    DESCRIPTION
    DIST
    The letter I
    Inull

  • Macbook 2009 case help

    Hey guys, I want to buy this keyboard cover / hard case for my 2009 Macbook (its a 13.3 inch). It says its  for a 13.3 inch Macbook pro, will it fit? I saw some listings for similiar covers that specifically said it wouldnt fit but this particulary one doesn't say anything at all. I don't want to waste any money, I just can't get a for sure answer if it will fit or not. Thanks for any help,
    here's the amazon listing of the cover I want : http://www.amazon.com/gp/product/B005N57X20
    my model ID if needed : A1181

    As the A1181 is a little taller and a rather less streamlined shape compared to the Pro models, I would strongly suggest that this case is not going to fit. If possible you need to find one that states that it is made for the A1181. 

  • IPhone5/5s charger case- HELP

    I bought an iPhone5/5s charger case from eBay for my iPhone 5s. When I use it, it says that 'This cable or accessory is not certified and may not work reliably with this iPhone'. Can anyone help me to fix it please?
    I am going to go to Jessie J's concert wednesday, I need it to work because the battery dies very quick and I need to contact my mum after.
    Can anyone help me please?

    the latest update does this .. stops all third party unauthorised data charger cords. best go buy another from any authorised retail selling apple products store.

  • Dropped iPhone in Case-Help

    Hey guys,I used my iphone 4S and had a cse on it (thinking that the case would work), i dropped it  and know it wont come on.
    Any help would be nessecary. Thnaks.

    Sorry to hear of this, you can try resetting it by holding the sleep/wake button and the home button until the apple reappears but if that does't work you may be out of luck. these phones are delicate, you know.

  • MIN by CASE (HELP)

    TABLE A
    ID     TERM     UNITED
    1     604     LOP
    1     604     MA
    9     704     SC
    9     603     CI
    9     704     BPO
    3     603     LOS
    2     603     KIR
    1     603     SSK
    1     602     MNO
    TABLE B
    ID     CITY
    1     (null)
    1     (null)
    9     603
    9     603
    9     603
    3     (null)
    2     (null)
    1     (null)
    1     (null)
    I WANT:
    ID     TERM
    1     604
    9     (null)
    3     603
    2     603
    1     602
    So where there is a UNITED and NO CITY then display lowest TERM.
    BUT IF there IS A UNITED AND CITY then NULL (eg ID 9)
    What i had:
    SELECT A.ID, min(A.TERM) as TERM
    FROM TABLE A, TABLE B
    WHERE A.ID = B.ID
    AND A.UNITED IS NOT NULL
    AND B.CITY IS NULL
    GROUP BY A.ID
    ORDER BY A.ID
    which gets me:
    ID     TERM     UNITED     CITY
    1     604     LOP     (null)
    1     604     MA     (null)
    1     603     LOS     (null)
    3     603     KIR     (null)
    2     603     SSK     (null)
    1     602     MNO     (null)
    It Does not disply ID 99999
    I know why but i dont know how to ad a case statement to bypass it.
    Can any one help?
    Thank you.
    Edited by: 927374 on 12/04/2012 23:11
    Edited by: 927374 on 12/04/2012 23:13
    Edited by: 927374 on 12/04/2012 23:14

    I am not sure why you expect this row :
    ID     TERM
    1     604Shouldn't the lowest TERM for ID 1 be 602 ?
    may be :
    SQL> ed
    Wrote file afiedt.buf
      1  with tab_a as
      2  (
      3  select 1 ID, 604 term, 'LOP' united from dual union all
      4  select 1, 604, 'MA' from dual union all
      5  select 9, 704, 'SC' from dual union all
      6  select 9, 603, 'CI' from dual union all
      7  select 9, 704, 'BPO' from dual union all
      8  select 3, 603, 'LOS' from dual union all
      9  select 2, 603, 'KIR' from dual union all
    10  select 1, 603, 'SSK' from dual union all
    11  select 1, 602, 'MNO' from dual
    12  ),
    13  tab_b as
    14  (
    15  select 1 id, null city  from dual union all
    16  select 1, null  from dual union all
    17  select 9, 603 from dual union all
    18  select 9, 603 from dual union all
    19  select 9, 603 from dual union all
    20  select 3, null from dual union all
    21  select 2, null  from dual union all
    22  select 1, null  from dual union all
    23  select 1, null  from dual
    24  )
    25  select id,
    26         min(term) term
    27  from   (select a.id,
    28                 a.united,
    29                 Nvl2(b.city, min(null), min(a.term)) term
    30          from   tab_a a,
    31                 tab_b b
    32          where  a.id = b.id
    33          group  by a.id,
    34                    a.united,
    35                    b.city
    36          order  by a.id)
    37* group  by id
    SQL> /
            ID TERM
             1 602
             2 603
             3 603
             9
    4 rows selected.

  • **** iPod Nano- CASE HELP! ****

    I simply have a question concerning an iPod Nano case. This case that I am referring to flips open to reveal the iPod inside. Now, to keep that flap closed, there is a magnet. I am just wondering if having a magnet that close to the iPod Nano could possibly cause any sort of damage. Thanks in advance for your help. =)

    I had a look at this case sounds good, but when checked it out on the web, saw this review.
    I tend to agree, if doesn't protect the screen what use is it.
    Another thing to add about the review, sounds a little like they were promoting this web site, when checking it out, did have a review but has been archived, and they expected to buy $$ to read the cramy opinion.
    If you click RainDayMagazine you notice they only posted on this topic and identical in each stream, purely promoters not ipod users helping others. Although does help find out about cases, finds all the posts on the subject.
    I stick clear of this case. One last thing, you cant see your ipod either through the metal finish of this case.
    Google search on iKeychain case:-
    There have been a lot of rumblings in the Apple community about how easily the iPod Nano’s screen gets scratched so I am surprised that iLounge rewarded this case with an 8 even though it doesn’t offer any protection to the screen. It’s a very stylish case and the keychain aspect of it makes it very chic, but if I can’t read the screen due to it being scratched up then the case serves me no purpose.
    You have to assume that because this case fits on a keychain it will be surrounded by keys and from what I have learned through extensive research over the past 17 months is that keys scratch stuff, .....
    Who be stupid enough to run over their ipod really, please.

  • Cluster/ visibility help

    Hello all,
            I have a regarding clusters and visibility of numeric controls inside the cluster. Attached you will find a code I'm working with where the numeric controls left1 thru 4 and right 1 thru right 4 are displayed inside the cluster and will index the column with the increment of y value. The question I have is if to display only values > 0.
    left      right           
    1          2
    0          1
    1          0
    0          3
    to look like
    left    right
    1        2
              1
    1          
               3
    Please provide me your inputs.
    thanks.
    K
    Attachments:
    cluster.vi ‏57 KB

    Have you tried to setup the condition if value=0, with a case structure, for a property node of the indicators?  You can select the property that you wish to set accordingly.
    Yik
    Kudos and Accepted as Solution are welcome!

  • Cluster creation help!

    Hi there
    Does any one have a fool-proof document for creating and proving a 2 server ColdFusion 10 cluster? Most of the documents I have found are missing something. 
    More specifically, what is the difference between HTTP Port and Admin Component Port in the remote instance manager?
    Should the Cluster Manager show anything on the remote node?
    Is there a cluster monitor that show's its state? Is the there a simple test to prove it works.
    If this is in the remote node server.xml
    <Engine jvmRoute="cfusion" name="Catalina" defaultHost="localhost">
    should the jvmRoute value in the Instance Manager should be set to cfusion?
    Thanks for your help
    Richard

    Vishu
    Thank you for your fast reply. I'm still having problems though. :-(
    Both are Enterprise servers and both are on the same subnet.
    I have created 2 new instances called cluster1 and cluster2, one on each server. Both show HTTP Port 8501 and Remote Port 8103.
    On cluster1 server, I add in a New Remote Instance:
    Instance Name: cluster2
    Remote IP/Name - servername of second server
    Remote Port: 8103
    HTTP Port: 8501
    JVMRoute - In the server.xml in the cluster2 instance, the line is
    <Engine jvmRoute="cluster2" name="Catalina" defaultHost="localhost"> so I have entered "cluster2" for jvmroute
    Load Balance Factor:1
    Admin Component Port: 8500 - the port for the main instance (the 'cfusion' instance")
    Admin Username and Passwords: My administrator details.
    The remote instance does then appear in the list.
    I have added the cluster code in the to cluster2 runtime/conf/server.xml file after the </host> tag.
    I have commented out the ManagerPath in context.xml.
    On the first server I created a cluster and added the local cluster1 and the cluster2_remoteserver name to the server. I restarted both servers
    In the coldfusion-out.log in the cluster2 and cluster1 logs I get
    Cluster1
    22-Aug-2013 10:54:43 org.apache.catalina.tribes.util.UUIDGenerator <clinit>
    INFO: Creation of SecureRandom instance for UUID generation using [SHA1PRNG] took [5,002] milliseconds.
    22-Aug-2013 10:54:43 org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
    INFO: Setting cluster mcast soTimeout to 500
    22-Aug-2013 10:54:43 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4
    22-Aug-2013 10:54:44 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Done sleeping, membership established, start level:4
    22-Aug-2013 10:54:45 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:8
    22-Aug-2013 10:54:46 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Done sleeping, membership established, start level:8
    INFO: Starting clustering manager at localhost#/
    22-Aug-2013 10:55:15 org.apache.catalina.ha.session.DeltaManager getAllClusterSessions
    INFO: Manager [localhost#/]: skipping state transfer. No members active in cluster group.
    22-Aug-2013 10:55:15 org.apache.catalina.ha.session.JvmRouteBinderValve startInternal
    Cluster2
    22-Aug-2013 10:14:44 org.apache.catalina.ha.tcp.SimpleTcpCluster startInternal
    INFO: Cluster is about to start
    22-Aug-2013 10:14:44 org.apache.catalina.tribes.transport.ReceiverBase bind
    INFO: Receiver Server Socket bound to:/xxxxxxxxxxx:4003
    22-Aug-2013 10:14:49 org.apache.catalina.tribes.util.UUIDGenerator <clinit>
    INFO: Creation of SecureRandom instance for UUID generation using [SHA1PRNG] took [5,002] milliseconds.
    22-Aug-2013 10:14:49 org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
    INFO: Setting cluster mcast soTimeout to 500
    22-Aug-2013 10:14:49 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4
    22-Aug-2013 10:14:50 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Done sleeping, membership established, start level:4
    22-Aug-2013 10:14:50 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:8
    22-Aug-2013 10:14:51 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
    INFO: Done sleeping, membership established, start level:8
    INFO: Starting clustering manager at localhost#/
    22-Aug-2013 10:15:19 org.apache.catalina.ha.session.DeltaManager getAllClusterSessions
    INFO: Manager [localhost#/]: skipping state transfer. No members active in cluster group.
    22-Aug-2013 10:15:19 org.apache.catalina.ha.session.JvmRouteBinderValve startInternal
    Any ideas on what might being going wrong?
    Thanks
    Richard

  • Table Cluster Creation - Help required.

    Hi,
    I need to create a Table Cluster. My requirement is to create Table Cluster for MARA and 3 more 'Z' tables.
    I read through the SAP documentation for the creation of table cluster. <http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/content.htm>
    But when i tried creating 'Cluster Table' i am getting errors.
    Please suggest the precautions to be taken while creating a Table Cluster, It would be of great help if any Mock document can be provided for creation of Table Cluster.
    Quick help in this regard is much appreciated.
    Many Thanks
    Ramesh.
    Edited by: Ramesh Kajuru on Apr 10, 2008 3:49 AM

    hi ramesh,
    Creating Pooled Tables/Cluster Tables
    Procedure
    In the initial screen of the ABAP Dictionary select object type Table, enter a table name and choose  Create.
    The field maintenance screen for the table is displayed. Table type Transparent table is set as default.
    Make the necessary entries in the Short description and Delivery class fields on the Attributes tab page. Then define the fields of the table.
    Proceed as when  creating a transparent table. Save your entries.
    Choose Extras ® Change table category.
    A dialog box appears in which you have to select the table type Pooled table or Cluster table.
    Choose Select.
    You return to the field maintenance screen for the table. Field Pool/cluster name is displayed on the Attributes tab page in addition to the standard fields.
    Enter the name of the table pool or table cluster to which you want to assign the pooled table or cluster table in field Pool/cluster name
    Note that the total key length of a pooled table may not exceed the key length of the associated table pool. The key of a cluster table must correspond to the key of the associated table cluster.
    Proceed as when creating a transparent table (see  Creating Tables). Remember that you cannot create indexes for pooled or cluster tables.
    All the attributes of the  technical settings can be maintained for pooled tables and cluster tables. Before you can access these attributes, however, you must convert the table to a transparent table.
    Creating Table Pools/Table Clusters
    Procedure
    In the initial screen of the ABAP Dictionary, choose Utilities ® Further Dictionary Objects.
    A dialog box appears.
    Select the object type Table pool/cluster and enter the object name. Choose .
    A dialog box appears in which you must specify if it is a table pool or a table cluster.
    Select the required object type and choose .
    The maintenance screen for table pools/clusters appears.
    The necessary entries will have been made automatically for the fields for table pools since a table pool has a fixed structure. You should not change these standard settings if you can avoid it.
    The structure of a table cluster is also mostly fixed. Certain fields are therefore proposed when the table cluster is created. You can adjust this proposal to your requirements, for example by inserting further key fields. However, make sure you conform to the structure necessary for a table cluster.
    Enter an explanatory text in the field Short text.
    If necessary, select the  activation type of the table pool/cluster with Utilities ® Activation type.
    Create documentation about the table pool/cluster with Goto ® Documentation.
    This documentation should describe what the table pool/cluster is used for. The documentation is also output when the table pool/cluster is printed.
    Go to the maintenance screen for the technical settings by choosing Goto ® Technical settings.
    In contrast to the table maintenance screen, you can only define the  size category here. All other attributes of the technical settings are preset.
    Activate the table pool/cluster with .
    Result
    The table pool/cluster is activated. You can look at the log of the activation with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.
    After the table pool/cluster has been activated, you need to create it in the database. To do this, use the database utility (Utilities ® Database utility).
    Once a table pool contains data, it can no longer be changed.
    thanks
    karthik
    reward me points if usefull

  • A transaction problem in cluster environment,help!

              I need to take a complicated data operation which will have to call sevearl SQL
              sentences to add datas into DB in a circle. In order to minimize the cost of DB
              connection, I use one connection to create 5 statements,which are used to add
              datas repeatedly. You can read the corresponding codes below. These codes run
              very well in stand-alone environment,but problem occurs when changed to cluster
              environment. The console shows that it's timeout because the transaction takes
              too long time. But when it runs in stand-alone environment,it completes in less
              than one second! In both situations I use the same TX data source. I guess when
              changed to cluster environment,the transaction processing becomes very complicated
              and then it leads to dead-lock. Anybody agrees with this, or has any experience
              about it before? Help,thanks a lot!
              conn = getConnection();
              pstmt3 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTPACK_CREATE);
              pstmt4 = conn.prepareStatement
              (DBInfo.SQL_RECEIPT_CREATE);
              pstmt5 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTPACKAUDIT_INSERT_ALL);
              pstmt6 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTAUDIT_INSERT_ALL);
              int count = (endno+1-startno)/quantity;
              for(int i=0;i<count;i++)
              int newstartno = startno +
              i*quantity;
              int newendno = newstartno +
              quantity - 1;
              String newStartNO =
              Formatter.formatNum2Str(newstartno,ConstVar.RECEIPT_NO_LENGTH);
              String newEndNO =
              Formatter.formatNum2Str(newendno,ConstVar.RECEIPT_NO_LENGTH);
              pstmt1 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTPACK_SEQ_NEXT);
              rs1 = pstmt1.executeQuery();
              if(!rs1.next()) return -1;
              int packid = rs1.getInt(1);
              cleanup(pstmt1,null,rs1);
              pstmt3.setInt(1,packid);
              pstmt3.setString(2,newStartNO);
              pstmt3.setString(3,newEndNO);
              pstmt3.setInt(4,quantity);
              pstmt3.setLong(5,expiredt);
              pstmt3.setInt
              (6,ConstVar.ID_UNIT_TREASURY);
              pstmt3.setInt
              (7,Status.STATUS_RECEIPTPACK_REGISTERED);
              pstmt3.setLong(8,proctm);
              pstmt3.setInt(9,procUserid);
              pstmt3.setInt
              (10,ConstVar.ID_UNIT_TREASURY);
              pstmt3.setInt(11,typeid);
              pstmt3.addBatch();
              //audit
              pstmt5.setInt(1,procUserid);
              pstmt5.setInt(2,packid);
              pstmt5.setInt
              (3,OPCode.OP_RCT_RGT_RECEIPTPACK);
              pstmt5.setLong(4,0);
              pstmt5.setLong(5,proctm);
              pstmt5.addBatch();
              for(int
              j=newstartno;j<=newendno;j++)
              String receiptNO =
              Formatter.formatNum2Str(j,ConstVar.RECEIPT_NO_LENGTH);
              pstmt2 =
              conn.prepareStatement(DBInfo.SQL_RECEIPT_SEQ_NEXT);
              rs2 =
              pstmt2.executeQuery();
              if(!rs2.next()) return -
              1;
              int receiptid =
              rs2.getInt(1);
              cleanup
              (pstmt2,null,rs2);
              pstmt4.setInt
              (1,receiptid);
              pstmt4.setString
              (2,receiptNO);
              pstmt4.setInt
              (3,Status.STATUS_RECEIPT_REGISTERED);
              pstmt4.setDouble
              (4,00.0);
              pstmt4.setInt(5,0);
              pstmt4.setDouble
              (6,00.0);
              pstmt4.setDouble
              (7,00.0);
              pstmt4.setDouble
              (8,00.0);
              pstmt4.setInt
              (9,procUserid);
              pstmt4.setLong
              (10,proctm);
              pstmt4.setLong
              (11,expiredt);
              pstmt4.setInt(12,0);
              pstmt4.setInt
              (13,packid);
              pstmt4.setInt
              (14,typeid);
              pstmt4.addBatch();
              //audit
              pstmt6.setInt
              (1,procUserid);
              pstmt6.setInt
              (2,receiptid);
              pstmt6.setInt
              (3,OPCode.OP_RCT_RGT_RECEIPTPACK);
              pstmt6.setLong(4,0);
              pstmt6.setLong
              (5,proctm);
              pstmt6.addBatch();
              pstmt3.executeBatch();
              cleanup(pstmt3,null);
              pstmt5.executeBatch();
              cleanup(pstmt5,null);
              pstmt4.executeBatch();
              cleanup(pstmt4,null);
              pstmt6.executeBatch();
              cleanup(pstmt6,null);
              

    Hello,
    Are you using any kind of Load Balancer, like an F5. I am currently troubleshooting this issue for one of our ADF apps and I originally suspected the F5 was not sending traffic correctly. We have not set the adf-config file for HA and the dev team will fix that. But my concern is that will just hide my F5 issue.
    Thanks,
    -Alan

  • Error : cannot set up certs for trusted CAs, help !

    Hi !
    I am attempting to use the javax.crypto classes in order to decrypt and encrypt
    information.
    But i get the follow message when i change the executing directory :
    -> cannot set up certs for trusted CAs
    If i decompress all follow jar files:
    jce1_2_1.jar;
    sunjce_provider.jar;
    local_policy.jar;
    US_export_policy.jar;
    my applicattion doesn't work. ...
    But if i use jar files, everything is ok and only in a "unique" directories ....
    Why ?
    [email protected]

    Hi Sri,
    I am working on a similar problem. In fact, while I write a simple stand-alone program, everything works fine for me.
    As soon as I embed the very same class into my application, I also get the error you see. The major difference I see between my application and the stand-alone program is the class loading, which my application does via its specialized class loaders. However, I failed to catch the encryption code in my class loader between the call to
    SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(k);
    and the error.
    You have any idea how to track the issue down?
    Regards,
    Jack

  • Macbook Air Case - HELP

    Hello!
    I had my macbook air for about a month when it was splashed with water and completely died the cost of repair was 1300 more then the actual laptop. With this being said dose anyone know of a good WATERPROOF hard shell case of soft sleeve. I have looked on this support comunity/ google/ amazon / ebay and have yet to find one.

    There isn't a case out there which will allow you to use the MacBook Air and offer waterproof protection.
    There is a process called Liquipel or HZO Waterblock, which repels water from electronics itself. There are plenty of Youtube videos that show Liquipel in action.
    They offer the waterproofing service for smart phones and tablets, but not laptops YET.
    Hopefully, soon.

Maybe you are looking for