Dropping Strings

<<SNIPPED>>
    public static void main(String[] args) {
             FileInput inFile;
             String filename = "RobotInfo.txt";
          inFile = new FileInput(filename);
          ArrangeableRobot[] robotArray = new ArrangeableRobot[100];
             String a = inFile.readToken(); //null street
             int b = inFile.readInt();
             String c = inFile.readToken(); //null avenue
             int f = inFile.readInt();
             World.setSize(b,f);<<SNIPPED>
Contents of text file containing ints for array:
streets 20
avenues 20
Robot 1 7 East 30
Robot 2 6 West 20
Robot 3 9 North 10
Robot 5 5 South 1I'm trying to read a text file, drop the verbal string before the int and parse the ints as the parameters for the dimensions of the world to create. The error that I' m getting is a post-compile message:
Bad.input.java.lang.NumberFormatException: For input string: "streets"

I used System.out.println() and it came up with :
streetsavenues
40 <= because I
added 20 to 20
So there shouldnt be a bad input error, but there
still isYou would need to post the code you used to print the debug info for us to know what it is doing.
Also, FileInput is not a standard class so we do not know how it works. If you have documentation on how it is supposed to work then post it here also.
Also, I assume you are the poster previously known as Tracekill?
Message was edited by:
jbish

Similar Messages

  • Drag and Drop For String Control

    Hello all,
    I attached a example program, where I did not see event for String Drag Starting?.
    Is it normal.
    I placed a break point and I tried to start draging, but I hvn't seen the event.
    Please let me know, if this is normal.
    Thanks,
    Attachments:
    Drag and Drop -String.vi ‏45 KB

    Extract from the LV help for this event :
    Generated when you start a drag
    from a listbox control. Use this event to signal
    when a drag and drop operation begins from a specific control. This
    event is generated only when LabVIEW begins a drag and drop operation on
    a listbox control. You can use the Start Drag method to begin a drag from other controls.

  • Drag and Drop using iterator in ADF 11.1.1

    I am looking for a workaround for the following problem.
    <af:componentDragSource> returns an incorrect dragComponent value when dropped on a dropTarget when container elements are generated by an iterator.
    Below is sample code:
    in jspx file:
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 1"/>
                             <af:componentDragSource discriminant="activity"/>
                             <f:attribute name="draggedActivity" value="Drag object 1"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget1" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 1"/>
                             <af:spacer width="600px"/>
                             <f:attribute name="dropTarget" value="Drop target 1"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 2"/>
                             <f:attribute name="draggedActivity" value="Drag object 2"/>
                             <af:componentDragSource discriminant="activity"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget2" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 2"/>
                             <f:attribute name="dropTarget" value="Drop target 2"/>
                             <af:spacer width="600px"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 3"/>
                             <f:attribute name="draggedActivity" value="Drag object 3"/>
                             <af:componentDragSource discriminant="activity"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget3" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 3"/>
                             <f:attribute name="dropTarget" value="Drop target 3"/>
                             <af:spacer width="600px"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                        <af:spacer height="16px"/>
                        <af:iterator var="item" first="0" varStatus="stat" rows="0"
                                  value="#{projectToolbarBean.narrativeBean.testDnD}">
                            <af:panelGroupLayout>
                                <af:outputText value="Drag object #{item}"/>
                                <af:componentDragSource discriminant="test"/>
                                <f:attribute name="draggedActivity" value="#{item}"/>
                            </af:panelGroupLayout>
                            <af:panelGroupLayout layout="horizontal" id="dropTarget1" inlineStyle="background-color:#ffff00">
                                <af:spacer height="8px"/>
                                <af:outputText value="Drop target #{item}"/>
                                <af:spacer width="600px"/>
                                <f:attribute name="dropTarget" value="#{item}"/>
                                <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                    <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="test"/>
                                </af:dropTarget>
                            </af:panelGroupLayout>
                         </af:iterator>In bean:
        public Collection getTestDnD() {
            List items = new ArrayList<Integer>();
            items.add(1);
            items.add(2);
            items.add(3);
            items.add(4);
            items.add(5);
            return items;
        public DnDAction dropTest(oracle.adf.view.rich.event.DropEvent event) {
            if (event.getDragComponent() != null && DnDAction.MOVE.equals(event.getProposedAction())) {
                UIComponent dropComponent = event.getDropComponent();
                UIComponent dragComponent = event.getDragComponent();
                String dropped = "";
                String dragged = "";
                if(dropComponent.getAttributes().get("dropTarget") instanceof String){
                    dropped = (String) dropComponent.getAttributes().get("dropTarget");
                    dragged = (String) dragComponent.getAttributes().get("draggedActivity");
                else if(dropComponent.getAttributes().get("dropTarget") instanceof Integer){
                   dropped = dropComponent.getAttributes().get("dropTarget").toString();
                   dragged = dragComponent.getAttributes().get("draggedActivity").toString();
                System.out.println("The label of the dragged object is: " + dragged + ". the drop target is " + dropped);
                return DnDAction.MOVE;
            } else {
                return DnDAction.NONE;
        }Drag a 'drag object' from the hard coded top group and drop it on a yellow drop target in the same group.
    Output from System.out will be correct.
    Do the same for the second iterator-generated group. You will find that the 'dragged' value in the bean code returns the same value as the 'dropped' value. In other words, event.getDragComponent() is losing context and is replaced by the value of event.getDropComponent().
    Can anyone help fix or workaround this problem? I cannot replace the iterator with a forEach due to other requirements.
    Does anyone know if this issue exists in ADF 11.1.2?
    Thanks

    Sorry 1 correction on my earlier post.  Install iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16) NOT 12.1.0.71!
    Thanks Guys!  This fixed me up.
    I uninstalled
    - All  Apple Packages
    - Bonjour
    - iTunes
    - Quick Time packages
    Deleted the Apple, iTunes, & Quick Times folders:
    - c:\Program Files
    - c:\Program Files (x86)
    - C:\Program Data
    - C:\Users\%profile%\AppData\Local
    - C:\Users\%profile%\AppData\LocalLow
    - C:\Users\%profile%\AppData\Roaming
    Rebooted
    Sorry 1 correction on my earlier post.  Install iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16) NOT 12.1.0.71!
    Installed the newest QuickTime 7.7.6
    and Bingo!  Hopefully the next iTunes release addresses the issue moving forward.
    Thanks Again!

  • Doing drag drop with HandPointers

    As first seen on this thread:
    http://social.msdn.microsoft.com/Forums/en-US/6b8d6251-c59a-46c7-9da8-b912cb16dfab/kinectregionaddhandpointerhandler?forum=kinectv2sdk
    Take a look at http://1drv.ms/VQxR00
    I've zipped up a DragDropElement implementation and a DragDropSample page.
    You can place those 3 files in ControlsBasics-WPF in the Pages folder. Then add the following to the SampleDataSource -- put it near the KinectPointerPointSample reference in SampleDataSource.cs:
                group1.Items.Add(
                         new SampleDataItem(
                             "Group-1-Item-6",
                             "Drag Drop",
                             string.Empty,
                             SampleDataSource.lightGrayImage,
                             "Shows how to implement a DragDropElement",
                             itemContent,
                             group1,
                             typeof(DragDropSample)));
    Would love feedback about this.
    Thanks, Rob
    Rob Relyea [MSFT] http://twitter.com/rrelyea
    Rob Relyea [MSFT] http://twitter.com/rrelyea

    This is a nice example of how to move a rectangle around a Canvas in Kinect...
    But how can it interact with other objects? In my case ones that have AllowDrop="True"?
    For example: If I put your DragDropElement around an Image then shift it up to a Canvas that is subscribed to the Drop event nothing is fired upon letting go.
    The mouse equivalent of:
    private void ImagePreview_MouseDown(object sender, MouseButtonEventArgs e)
    DragDrop.DoDragDrop((DependencyObject)sender, ((Image)sender).Source, DragDropEffects.Copy);
    private void Canvas_Drop(object sender, DragEventArgs e)
    foreach (var format in e.Data.GetFormats())
    ImageSource imageSource = e.Data.GetData(format) as ImageSource;
    if (imageSource != null)
    // Do something...
    Thanks,
    Brad

  • Biztalk Map: Map repeating structures into a single node

    Simple one for the experts. I have the following two samples. Can somebody please guide me on how to achieve my output? Just a caveat. The Errorlist may or may not have errors in which case just an empty tag should suffice.
    Input
    <Detail Att1="a">
    <Value1>Test</Value1>
    <Value2>Test2</Value2>
    <ErrorList>
    <Error>Error_0</Error>
    <Error>Error_1</Error>
    <Error>Error_2</Error>
    </ErrorList>
    </Detail>
    Output1: Could be one or more xmls depending on the number of errors
    <Detail Att1="a">
    <Value1>Test</Value1>
    <Value2>Test2</Value2>
    <Error>Error_0</Error>
    </Detail>
    <Detail Att1="a">
    <Value1>Test</Value1>
    <Value2>Test2</Value2>
    <Error>Error_1</Error>
    </Detail>
    <Detail Att1="a">
    <Value1>Test</Value1>
    <Value2>Test2</Value2>
    <Error>Error_2</Error>
    </Detail>
    Output 2: Concatenation of errors using a suitable delimiter (I used pipe..pls suggest)
    <Detail Att1="a">
    <Value1>Test</Value1>
    <Value2>Test2</Value2>
    <Error>Error_0 | Error_1 | Error_2</Error>
    </Detail>
    Thanks

    Hello ZIntegrator,
    for your second output case, you can build map like below . since error can occur zero or more times, make sure you set the "Error" element  max occurs property to unbounded and Min occurs to 0 in the input schema.
    so just drop String concatenation and cumulative concatenation functiods like above.
    and for String concatenation, supply second parameter as the character pipe  "|".  that's it, it should work.
    And coming to your first output case, as per your input you have 3 error cases. so do you want to create 3 different xml messages?
    please note that a map can only output one message (of course we can create more than one using transform shape in orchestration, that is different case).
    if you want seperate xml documents to be generated for each error, then normal mapping cannot work. 
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Passing Var to Java from PL/SQL

    I am trying to pass a PL/SQL varchar2 var to Java String. Java is not responding..
    sendmail(v_sub,v_msg,'[email protected]','[email protected]');
    it does accept ('ddd','ddd','[email protected]','[email protected]');
    Any ideas on how to make it work so I can use PL/SQL variable.
    Thanks much!

    Try with the following example.
    This ia taken from the Oracle8i manual.
    import java.sql.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    public class GenericDrop {
    public static void dropIt (String object_type, String object_name)
    throws SQLException {
    // Connect to Oracle using JDBC driver
    Connection conn =
    DriverManager.getConnection("jdbc:default:connection:");
    // Build SQL statement
    String sql = "DROP " + object_type + " " + object_name;
    try {
    Statement stmt = conn.createStatement();
    stmt.executeUpdate(sql);
    stmt.close();
    } catch (SQLException e) {System.err.println(e.getMessage());}
    CREATE OR REPLACE PROCEDURE drop_it (
    obj_type VARCHAR2,
    obj_name VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'GenericDrop.dropIt(java.lang.String, java.lang.String)';
    Create table ee1(a number);
    declare
    i1 varchar2(20);
    i2 varchar2(20);
    begin
    i1:='TABLE';
    i2:='EE1';
    dropit(i1,i2);
    end;
    There is no problem in executing the above procedure.
    What is the exact error message you are getting?

  • SCE 8000 with High CPU running SCOS 3.6.5

    Hi Guys,
    We have 1 SCE 8000 out of 20 that suddenly started showing high CPU
    SCE_VINA02#>show processes cpu sorted
    CPU utilization for five seconds:  99%/  0%; one minute:  99%; five minutes:  99%
    PID   Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process
    6572  1743157450   2912773          0 41.79% 48.95% 42.00%   0 (scos-main)    
    6592   377205520   2822045          0 25.47% 22.96% 26.37%   0 (scos-main)    
    3773 -1131308800   2912909          0 22.09% 22.05% 22.19%   0 RucMain        
    20676   249912990   1895163          0 17.51% 15.86% 18.65%   0 (scos-main)    
    4058  1241380640   2839209          0  8.76%  9.06%  9.00%   0 PartyDBManager 
    4038    58347790   1778224          0  3.18%  3.40%  3.63%   0 controlRpcExtServer
    4042   199502330   2718111          0  1.99%  2.03%  2.06%   0 tFormatter     
    6594    80405570   2558527          0  1.99%  2.59%  2.80%   0 (scos-main)    
    20677    48485580   1405062          0  1.99%  2.28%  2.48%   0 (scos-main)    
    4595   309332240   2912876          0  1.39%  2.13%  2.12%   0 HwChk          
    4040   112684050   2736243          0  1.00%  1.12%  1.14%   0 qReaderExt     
    3639   264215460   2848244          0  1.00%  0.94%  0.91%   0 (scos-main)    
    4041    69509430   2868791          0  0.80%  0.74%  0.75%   0 qReaderInt     
    6573   235121090   2801654          0  0.80% 16.28%  5.13%   0 (scos-main)    
    6574    24244400    624919          0  0.60%  0.96%  3.70%   0 (scos-main)    
    3771    53398760   2912883          0  0.40%  0.38%  0.39%   0 CpuUtilMonitor 
    4037    32594910   2537807          0  0.40%  0.36%  0.38%   0 tLogger        
    3712    16686250   1627766          0  0.20%  0.11%  0.11%   0 fanControlTask 
    3778    46339600   2912908          0  0.20%  0.27%  0.28%   0 MsgQuMess-rcv  
    4028     8361600    734410          0  0.20%  0.07%  0.06%   0 tCCWatchdog    
    4059     5358870    353706          0  0.20%  0.04%  0.02%   0 SNMP agentx Task
    2971     2518240    166310          0  0.20%  0.05%  0.01%   0 (nfsd)         
    The CPU is STUCK at 99%, even when the traffic is minimal, we are seeing that the scos main process is hogging the CPU
    When i do the show interface line 0 counter cpu-utilization it shows me a different value than the first command, which is more reasonable according tho the quantity of traffic that is flowwing through the box at this moment.
    SCE_VINA02#>show interface LineCard 0 counters cpu-utilization
    Traffic Processor CPU Utilization:
    ==================================
    TP 1 CPU Utilization: 17%
    TP 2 CPU Utilization: 16%
    TP 3 CPU Utilization: 23%
    TP 4 CPU Utilization: 17%
    TP 5 CPU Utilization: 17%
    TP 6 CPU Utilization: 15%
    TP 7 CPU Utilization: 18%
    TP 8 CPU Utilization: 16%
    TP 9 CPU Utilization: 16%
    TP 10 CPU Utilization: 15%
    TP 11 CPU Utilization: 18%
    TP 12 CPU Utilization: 18%
    SCE_VINA02#>   
    When i log under linux in the box, it shows me another value different than what the other first two commands showed me
    [root@SCE_VINA02 ~]#>top
    top - 14:26:47 up 169 days,  7:46,  1 user,  load average: 3.86, 3.68, 3.31
    Tasks:  64 total,   1 running,  63 sleeping,   0 stopped,   0 zombie
    Cpu(s): 59.5%us,  2.2%sy,  0.0%ni, 36.4%id,  1.3%wa,  0.2%hi,  0.5%si,  0.0%st
    Mem:   2028668k total,  1914156k used,   114512k free,    47392k buffers
    Swap:        0k total,        0k used,        0k free,   320416k cached
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                               
    3639 root      20   0 1353m 1.3g  44m S  134 65.9 355517:28 scos-main                                                             
       23 root      15  -5     0    0    0 S    0  0.0  24:59.23 scos-dump                                                             
    2973 root      20   0     0    0    0 S    0  0.0  39:56.53 nfsd                                                                  
    3455 root      20   0 16188 2620 1756 S    0  0.1 122:21.52 scos-sys-cmd-se                                                       
    26549 root      20   0  2476 1116  896 R    0  0.1   0:00.05 top                                                                   
        1 root      20   0  1776  616  540 S    0  0.0   3:17.32 init                                                                  
        2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd                                                              
        3 root      RT  -5     0    0    0 S    0  0.0   0:58.98 migration/0                                                           
        4 root      15  -5     0    0    0 S    0  0.0   0:42.82 ksoftirqd/0                                                           
        5 root      RT  -5     0    0    0 S    0  0.0   2:25.35 watchdog/0                                                            
        6 root      RT  -5     0    0    0 S    0  0.0   0:59.95 migration/1                                                           
        7 root      15  -5     0    0    0 S    0  0.0   0:02.60 ksoftirqd/1                                                           
        8 root      RT  -5     0    0    0 S    0  0.0   0:18.66 watchdog/1                                                            
        9 root      15  -5     0    0    0 S    0  0.0 161:33.60 events/0                                                              
       10 root      15  -5     0    0    0 S    0  0.0  46:47.38 events/1                                                              
       11 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper                                                               
       12 root      15  -5     0    0    0 S    0  0.0   9:55.55 kblockd/0                                                             
       13 root      15  -5     0    0    0 S    0  0.0   3:26.99 kblockd/1                                                             
       16 root      15  -5     0    0    0 S    0  0.0   0:03.08 kswapd0                                                               
       17 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/0                                                                 
       18 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/1                                                                 
       19 root      15  -5     0    0    0 S    0  0.0   0:00.00 nfsiod                                                                
       20 root      15  -5     0    0    0 S    0  0.0   0:00.00 mtdblockd                                                             
       21 root      15  -5     0    0    0 S    0  0.0  50:36.28 skynet                                                                
       22 root     -86  -5     0    0    0 S    0  0.0 280:11.75 hw-mon-regs                                                           
       24 root     -91  -5     0    0    0 S    0  0.0  22:36.48 wdog-kernel                                                           
       25 root      15  -5     0    0    0 S    0  0.0   0:00.00 rpciod/0                                                              
       26 root      15  -5     0    0    0 S    0  0.0   0:00.00 rpciod/1                                                              
       80 root      15  -5     0    0    0 S    0  0.0   0:00.17 kjournald                                                             
       84 root      15  -5     0    0    0 D    0  0.0  17:05.31 kjournald                                                             
       92 root      15  -5     0    0    0 S    0  0.0   1:36.60 kjournald                                                             
      246 root      15  -5     0    0    0 S    0  0.0  36:09.67 bond0                                                                 
      952 root      20   0     0    0    0 S    0  0.0   0:00.01 pdflush                                                               
    1032 root      20   0     0    0    0 S    0  0.0   3:12.76 pdflush                                                               
    1430 bin       20   0  2024  500  388 S    0  0.0   0:00.01 portmap                                                               
    1459 root      20   0  1884  644  536 S    0  0.0   0:22.97 syslogd                                                               
    1467 root      20   0  1772  408  336 S    0  0.0   0:00.04 klogd                                                                 
    1469 root      20   0  1764  512  448 S    0  0.0   0:00.00 getty                                                                 
    1710 root      20   0  3308 1048  488 S    0  0.1  73:02.73 scos                                                                  
    1711 root      20   0  2476  568  484 S    0  0.0   0:00.19 tee                                                                   
    1733 root      20   0  3308  980  420 S    0  0.0   0:00.00 scos                                                                  
    1735 root      20   0  2948 1280 1080 S    0  0.1   0:00.00 sh                                                                    
    [root@SCE_VINA02 ~]#>
    We have a TAC opened but is being more than a 2 weeks and the engineer hasnt being able to find the source of the issue, she even has a ticket open with the BU
    Please if anybody out there might be facing a similar issue

    here is the RDR statistics and debug summary log.
    SUBSCE8K01#>show RDR-formatter statistics
    RDR-formatter statistics:
    =========================
    Category 1:
      sent:               1733914918
      in-queue:           0
      thrown:             0
      format-mismatch:    0
      unsupported-tags:   0
      rate:               404 RDRs per second
      max-rate:           1984 RDRs per second
    Category 2:
      sent:               919837769
      in-queue:           0
      thrown:             0
      format-mismatch:    0
      unsupported-tags:   0
      rate:               0 RDRs per second
      max-rate:           3657 RDRs per second
    Category 3:
      sent:               0
      in-queue:           0
      thrown:             0
      format-mismatch:    0
      unsupported-tags:   0
      rate:               0 RDRs per second
      max-rate:           0 RDRs per second
    Category 4:
      sent:               156867972
      in-queue:           0
      thrown:             0
      format-mismatch:    0
      unsupported-tags:   0
      rate:               105 RDRs per second
      max-rate:           163 RDRs per second
    Destination:     10.123.2.25 Port: 33000 Status: up   Active: yes
      Sent: 1733915274
      Rate:   396  Max:  1984
      Last connection establishment: 3 weeks, 6 days, 20 hours, 45 minutes, 27 seconds
    Destination:     10.123.2.26 Port: 33000 Status: up   Active: no
      Sent:          0
      Rate:     0  Max:     0
      Last connection establishment:  0 hours, 6 minutes, 14 seconds
    Destination:       127.0.0.1 Port: 33001 Status: up   Active: no
    SUBSCE8K01#>
    SUBSCE8K01#>
    SUBSCE8K01#>sh proc cpu sorted
    CPU utilization for five seconds:  96%/  0%; one minute:  97%; five minutes:  99%
    PID   Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process
    4929   293498890    475542          0 99.00% 21.55% 16.40%   0 (scos-main)
    4555   573866000    478707          0 25.65% 25.89% 25.96%   0 RucMain
    4918   625477080    478701          0 25.45% 29.72% 33.67%   0 (scos-main)
    1810       88530       192          0  7.96% 14.82%  9.38%   0 (scos-main)
    4927   172451130    474889          0  7.56% 14.99%  9.97%   0 (scos-main)
    1809       97510       192          0  7.16% 17.72% 12.00%   0 (scos-main)
    5359   122862320    476098          0  6.96% 13.29%  6.39%   0 (scos-main)
    4817    83463610    476198          0  6.36%  6.31%  6.29%   0 controlRpcExtServer
    5358   137770620    476591          0  5.97%  5.68%  6.14%   0 (scos-main)
    5135   107450270    475407          0  4.38%  4.86%  6.47%   0 (scos-main)
    4840   584104440    476935          0  4.37% 11.73%  5.28%   0 PartyDBManager
    4821   152431380    478706          0  3.58%  3.40%  3.37%   0 tFormatter
    4919   249427970    331960          0  2.98%  0.92%  0.92%   0 (scos-main)
    4819    33178220    462486          0  1.59%  1.55%  1.39%   0 qReaderExt
    5516    51751940    478645          0  1.39%  2.17%  2.15%   0 HwChk
    4820    22420960    461376          0  0.99%  0.96%  0.96%   0 qReaderInt
    3345    42535190    476936          0  0.99%  0.87%  0.84%   0 (scos-main)
    4816    16505300    474586          0  0.80%  0.78%  0.72%   0 tLogger
    4560     9043340    478707          0  0.40%  0.34%  0.34%   0 MsgQuMess-rcv
    4521     7505470    476057          0  0.40%  0.36%  0.36%   0 nsm-to-sm-med-dispatcher
    4520     8472310    475729          0  0.40%  0.38%  0.37%   0 sm-to-nms-high-collector
    4551    10427120    478707          0  0.40%  0.45%  0.44%   0 CpuUtilMonitor
    SUBSCE8K01#>
    Summary of debug file.
    ************** CURRENT APPLICATION INFORMATION ***************
    Application file: /apps/data/scos/release_.sli
    Application name: Engage SML Version 3.6.5 build 41 (Protocol Pack 26 build 15)
    Using Lib - PL_V3.6.5_B1
    Using Lib - Classifier_V3.6.5_B1
    Application help: Entry point of Engage
    Original source file: /auto/srbu-proj1-bgl/apps/users/aninatar/autoBuild/App/SML/Engage/V3.6.5/src/com/pcube/AppTemplate/Main/template_app_main.san
    Compilation date: Thu, October 20, 2011 at 23:30:08
    Compiler version: SANc v3.20 Build 14 built on: Tue 08/04/2009 06:58:22.;SME plugin v1.1
    Capacity option used: 'EngageDefaultSCE8000'.
    ************** DBG LOG FILE MESSAGES HISTOGRAM ***************
    MOD ID : MSG ID | SEVERITY  | AMOUNT  |   DROPS    | STRING
    ----------------+-----------+---------+------------|-------
    Total number of different <> messages is 0
    Total number of different <> messages is 0
    [0x0502:0x000a] | | 0120529 | 0000001056 | Party DB: PartyDB::waitForState(pcid=%d) called, maxPCIDs=%d.
    [0x0102:0x0013] | | 0024763 | 0000000000 | Application Subscriber Context: Breach counter is negative for subscriber service counter=%d
    [0x0ce1:0x0010] | | 0000027 | 0000000000 | SnmpMibs: %s %s %d %d.
    [0x0505:0x0194] | | 0000005 | 0000000000 | Party DB Manager: (anonymous) createUnmappedParty - rcid = %lu, pid=%lu, ipAddress = 0x%x - came from ruc=%u, selected ruc=%u wrong ruc selected.
    [0x0300:0x004d] | | 0000013 | 0000000000 | Formatter: RdrVXConnection: Closed existing socket to port %d. (%s)
    [0x0910:0x002c] | | 0000002 | 0000000000 | RuC Interrupt Handler: %s.
    [0x0920:0x000a] | | 0000002 | 0000000000 | Logger: %s
    Total number of different messages is 7
    [0x0a10:0x0004] |     | 0000027 | 0000000000 | System Message: System Info message:
    %s
    [0x0aa2:0x001e] |     | 0000013 | 0000000000 | SNMP Agent: %s
    [0x0300:0x0059] |     | 0000013 | 0000000000 | Formatter: Formatter connection closed: address %s, port %d.
    [0x0aa2:0x001c] |     | 0000008 | 0000000000 | SNMP Agent: %s
    [0x0300:0x0056] |     | 0000008 | 0000000000 | Formatter: No Formatter connections is open on category %d.
    [0x0aa2:0x001d] |     | 0000013 | 0000000000 | SNMP Agent: %s
    [0x0300:0x005a] |     | 0000013 | 0000000000 | Formatter: Formatter connection opened: address %s, port %d.
    [0x0aa2:0x001b] |     | 0000008 | 0000000000 | SNMP Agent: %s
    [0x0300:0x0057] |     | 0000008 | 0000000000 | Formatter: Formatter active connection opened : address %s, port %d, category %d.
    [0x0505:0x029e] |     | 0000001 | 0000000000 | Party DB Manager: notifyPullRequestByPid() - %lu calls for notifySpawn() - failed in the last hour.
    [0x0920:0x0008] |     | 0000004 | 0000000000 | Logger: %s
    [0x0743:0x0000] |     | 0000001 | 0000000000 | TELNET_SSH_SERVER: A %s session from %s was established.
    [0x0730:0x0010] |     | 0000016 | 0000000000 | CLI: Executing CLI command: '%s'.
    [0x0309:0x002c] |     | 0000001 | 0000000000 | CmdlFFS: File system operation : del  %s
    Total number of different     messages is 14

  • I want to read the content of a text file dropped in a watched folder into a string variable

    I have a workbench process with 2 variable.
    inDoc (DataType=Document/input/required)
    outStr (DataType = String/output)
    The document being passed to the workflow is a text file with 4 lines of text in it.  when the text file is dropped into the watched folder, it will be assigned to the inDoc parameter in the workflow.
    My workflow needs to extract the 4 lines of text and write it into a string (outStr).
    Id like to use the FileUtilsService.ReadString service but i can't since its input parameter is the file path.  When i do, i get the following error...
    Caused by: ALC-FUT-001-011: File rO0ABXNyABZjb20uYWRvYmUuaWRwLkRvY3VtZW50yAEFUxsO+CEDACNJAAtfY2FsbGJhY2tJZFoADV9kZXNlcmlhb Gl6ZWRJABBfZGlzcG9zYWxUaW1lb3V0WgAJX2Rpc3Bvc2VkWgAZX2lzRGlzcG9zYWxUaW1lb3V0RGVmYXVsdFoAE19 pc1RyYW5zYWN0aW9uQm91bmRKAAdfbGVuZ3RoSQAOX21heElubGluZVNpemVaAAhfb3duRmlsZVoAC19wYXNzaXZhd GVkWgALX3BlcnNpc3RlbnRJABFfc2VuZGVyQ2FsbGJhY2tJZFoAEV9zZW5kZXJQYXNzaXZhdGVkWgARX3NlbmRlclB lcnNpc3RlbnRJAA5fc2VuZGVyVmVyc2lvbkkABl9zdGF0ZUwAC19hdHRyaWJ1dGVzdAATTGphdmEvdXRpbC9IYXNoT WFwO0wACF9jYWNoZUlkdAAfTGNvbS9hZG9iZS9pZHAvRG9jdW1lbnRDYWNoZUlEO0wADF9jYWxsYmFja1JlZnQAIUx jb20vYWRvYmUvaWRwL0lEb2N1bWVudENhbGxiYWNrO0wADF9jb250ZW50VHlwZXQAEkxqYXZhL2xhbmcvU3RyaW5nO 0wAC19kYXRhQnVmZmVydAAeTGNvbS9hZG9iZS9zZXJ2aWNlL0RhdGFCdWZmZXI7TAAPX2V4cGlyYXRpb25UaW1ldAA QTGphdmEvbGFuZy9Mb25nO0wABV9maWxldAAOTGphdmEvaW8vRmlsZTtMABBfZ2xvYmFsQmFja2VuZElkdAAhTGNvb S9hZG9iZS9pZHAvRG9jdW1lbnRCYWNrZW5kSUQ7WwAHX2lubGluZXQAAltCTAAMX2lucHV0U3RyZWFtdAAVTGphdmE vaW8vSW5wdXRTdHJlYW07TAAPX2xvY2FsQmFja2VuZElkcQB+AAhMAAxfcHVsbFNlcnZhbnR0ACRMY29tL2Fkb2JlL 2lkcC9JRG9jdW1lbnRQdWxsU2VydmFudDtMABFfcmFuZG9tQWNjZXNzRmlsZXQAGkxqYXZhL2lvL1JhbmRvbUFjY2V zc0ZpbGU7TAAVX3NlbmRlckNhbGxiYWNrUmVmSU9ScQB+AARMABZfc2VuZGVyR2xvYmFsQmFja2VuZElkcQB+AAhMA A1fc2VuZGVySG9zdElkcQB+AARMABVfc2VuZGVyTG9jYWxCYWNrZW5kSWRxAH4ACEwAGl9zZW5kZXJQdWxsU2VydmF udEpuZGlOYW1lcQB+AARMAARfdXJsdAAOTGphdmEvbmV0L1VSTDt4cHcGAAAAAwAAcHd1AHMwOjA6MDowOjA6MDowO jEvMTI3LjAuMC4xLy8vLy8vLy8vZmU4MDowOjA6MDo3NDMyOmU0OWQ6NmUzMToxNTU0JTEwLzEwLjI0LjIzOS4xMjY vZmU4MDowOjA6MDowOjVlZmU6YTE4OmVmN2UlMTEvLy8vdXIAAltCrPMX+AYIVOACAAB4cAAAAcRJTU01MjU3XzAxL TIwMTFfMXwwMXx8YXx8fHxGZW1hbGV8MjAwMHw2fDh8Y3wyNTZ8MjU2fDkxMnwwMXx8fHx8fHx8Tnx8fHx8fHx8fHx 8fHx8fHx8fHxZfHx8fHx8fHx8fDAyfHx8fHx8TnwyMDEyfDJ8MTR8DQpJTU01MjU3XzAxLTIwMTFfMnx8fHx8fHx8f Hxhc2RmfDI1NnwyMDEyfDAyfDAxfDIwMTJ8MDN8MDJ8fHx8YXxhfDI1Mnx8fHxZfHx8fHx8fHx8fHx8fHx8DQpJTU0 1MjU3XzAxLTIwMTFfM3xOfHx8fHx8fHx8fDIwMDB8Nnx8fGFzZGZ8YXNkZnxhc2RmfDI1Nnx8fHx8fHx8fHx8fHx8f Hx8fHx8DQpJTU01MjU3XzAxLTIwMTFfNHxOfE58fE58TnxOfHxOfE58fE58TnxOfA0KSU1NNTI1N18wMS0yMDExXzV 8U2luZ2xlfDAxfHwyMDEyfDAyfDE4fDIwMTJ8MDN8MDN8MjM0fGFzZGZ8fGFzZGZhc3x8fHxFeGNoYW5nZS1Qcm8uO S40MDEuRnVsbC5XSU4uZW5fQ0EuRU5VLTEwLTIwMTF8DQoNCnBwdwYAAAAAAAB0AAp0ZXh0L3BsYWlucHNyABFqYXZ hLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAA AADdAAKd3NmaWxlbmFtZXQAJ0M6XFVzZXJzXENodWxseS5QYXJrXERlc2t0b3BcaGRzY2FuLnR4dHQACGJhc2VuYW1 ldAAKaGRzY2FuLnR4dHQABGZpbGVxAH4AFXh3NwAtYWRvYmUvaWRwL0RvY3VtZW50UHVsbFNlcnZhbnQvYWRvYmVqY l9MQ19ERVYx//////////94 does not exist.
    at com.adobe.livecycle.fileutils.FileUtilsService.readDocument(FileUtilsService.java:363)
    which is what i expected...
    I've also tried with the Script.executeScript to call some java code but im not too strong in java and in all the examples i find, the file pointer requires a file path.
    import java.io.*;
    FileInputStream f = new FileInputStream(patExecContext.getProcessDataValue("/process_data/inDoc"));
    OR
    File f = new File(patExecContext.getProcessDataValue("/process_data/inDoc"));
    OR
    File f = patExecContext.getProcessDataValue("/process_data/inDoc");
    Any clue how to resolve my problem?

    Try the following code snippet to read the String content from the file recieved through watched folder endpoint.
    com.adobe.idp.Document inputDoc = patExecContext.getProcessDataDocumentValue("/process_data/inDoc");
    java.io.InputStream inStream = inputDoc.getInputStream();
    byte[] dataBuffer = new byte[inStream.available()];
    inStream.read(dataBuffer);
    String strData = new String(dataBuffer);
    patExecContext.setProcessDataStringValue("/process_data/outStr",strData);
    The code is not tested, hence if you find any mistakes, correct and test the functionality.
    Nith

  • How do I drop the last 3 characters in a string?

    Hello.  I'm trying to find a way to drop the last 3 characters in a string.  The length varies because it is a last name field.  The problem is that when a customer has a suffix on their name, III for example, it is appended to the last name all in the last name field.  If I use the ProperCase function, I end up with "Smith Iii".  How can I tell it to drop the last 3 characters?  I'll then append an UpperCase edition of the last 3 characters to that.  Thank you!

    Use the instring and right string functions then UpperCase

  • Widget to get drop down values based on user input query string

    Hi,
    I have a requirement, where in user types in some text and clicks on a search button. On button click, a drop down or some box appears which has result based on the input string (from json ). User can select one of the values in the drop down or box. User should be able to select values from drop down or box only.
    How can I achieve this. Is there any custom widget in CQ for this, or I have to write my own widget.
    Can i use SuggestField widget for this? if yes, please give some example for this widget.
    I want something similar to "authselection" widget. In case of authselection widget user names come from CQ, in this case user name will come from some other system using a CQ custom json.
    If user types "gopa" and click on search , i should be able to call a json with query parameter "gopa" & the result from the query will be in the drop down.
    Regards,
    Gopal

    Hi Gopal,
              Out of the box there are many example. You can look for siteadmin has a reference.
    Thanks,
    Sham

  • Drag & Drop from JTree (String) to JTextArea (Graphics2D)

    Hi everyone,
    I want to create a Drag & Drop from a JTree node to any location in a JTextArea. Upon dropping the node onto the JTextArea, I would want to draw a rectangle and the node name.
    I've created a custom transfer handler which allows the transferring of text from the tree node to the JTextArea.
    Any general ideas on how I can do that are wlecomed.

    I've managed to get hold of the JPanel via TransferHandler.TransferSupport.getComponent()
    the source seems a bit more tricky. I've tried this
    Transferable tr = support.getTransferable();
                   DataFlavor f = new DataFlavor();
                   f = new DataFlavor(MyTreeNode.class,"MyTreeNode");
                   try {
                        Object o = tr.getTransferData(f);...
    but the source does not provide a MyTreeNode instance, but something else (a String, I guess)
    how can I change this?

  • Drop text in string after hyphen

    Post Author: jasonangus
    CA Forum: Formula
    Is there a way to drop text in a string after a hyphen?  For example if I have a string:  johnson-smith is there a way to truncate the -smith and return only johnson?Thanks for the help.

    Post Author: jasonangus
    CA Forum: Formula
    Thank you very much - I have been banging my head on that one all morning.

  • Internet Explorer 11 - Emulation Document Mode and User Agent String Drop Down Menu Blank

    Hey
    I have a user who has a problem with Internet Explorer 11 where when you go to emulation mode using F12, the Document Mode and User Agent String Drop Down Menu are both blank. On our internal website its works correctly but on all other external websites
    they are both blank.
    I have had a look at the link below but this did not help as it would not recreate some of the registry keys.
    http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/document-mode-and-user-agent-string-dropdowns/cd34d5f8-7839-4083-af55-05d49ba85190?rtAction=1387560713451
    Charlie

    Hi,
    Please include links to any websites that you are having issues with your questions.
    There are some known reasons why the documentMode dropdown appears blank...
    not all websites though should have the conditions for this.
    f12>Console tab, refresh the page to show suppressed error messages and warnings... (documentMode x-ua toggling is listed)...
    IE11 includes improvements for XSS... to link to internet sites from your intranets you need to add those sites (If you really, really trust them) to the Trusted Sites list.
    the developer console will list blocked xss requests.
    by default IE11 runs in EPM.... in the Internet Zone, while it is not switched on for the intranet zone....
    EPM only allows 64 bit Addons and ActiveX controls to run in the context of an IE tab...
    so its highly likely that one of your Addons is causing the issue.
    the first step in troubleshooting IE issues is to test in noAddons mode.
    Regards.
    Rob^_^

  • Drop non-letters from string

    Is there a way to drop all of the characters in a string that are not upper or lower case letters? Thanks

    Is there a way to drop all of the characters in a
    string that are not upper or lower case letters?
    Thanks
    String line = ...
    line = line.replaceAll("[^a-zA-Z]","");

  • How do I use one drop down list to refresh the list in another drop down?

    I am using a drop down list full of years (i.e. 2008, 2009..etc). When I make my selection from this drop down list (say for instance I select 2009) I want it to update the available data in the second drop down list. I have the query statement set up within the JSP page but it needs to be a dynamic SQL statement based off the value I selected in the first drop down.
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    The variable "year" is the value I need to figure out how to assign. Now this variable is a Java variable (attribute) and Im unsure how to get the value from the previous drop down and assign it to that. Basically I need the JavaScript value from the first drop down assigned to the Java attribute "year".
    Anyone able to help me with this???
    Thanks,
    Jed

    Here are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
    <select name="season">
    <option value='2009' selected>2009</option>
    <option value='2008'>2008</option>
    </select>
    <select name="gameselect">
    <%
    try
    String year = "2009";
    String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    Statement s = con.createStatement();
    s.executeQuery(sql);
    ResultSet rs = s.getResultSet();
    while(rs.next())
    %>
    <option value="1"><% out.print(rs.getString("GameDescription"));%></option>
    <%
    catch(Exception e)
    %>
    </select>
    Thanks,
    Jed

Maybe you are looking for

  • 10.7.3 Screen flashes then shutdown...And KP's

    2010 i5 MBP with 8GB Crucial ram....In January I began getting random shut-downs...The screen would go garbled, then flash 2-3 times, then the computer would shut down...Has happened somewhat infrequently until this week...Happened 4 times on Tuesday

  • Can't see my custom xmp panel in file info in PS CC 2014.

    Has the "Custom File Info Panels" location moved with CC 2014?  For previous CC versions, location was (mac): HD/users/username/Library/Application Support/Adobe/XMP/Custom File Info Panels/ Anyone know?  Thanks!

  • The application could not be installed...question

    Hello ! I keep getting this error: The application could not be installed because an application with that name already exists at the selected installation location. Try installing to a different location. I have tried deleting everything and startin

  • Header discount and basb con type in pricing procedure

    in my company tax calculation is based on condition type basb, but this condition type is not considering header discount. for example po gross price = 100rs and in po in invoice tab condition type basb = 100rs now i enter header discount 10% then co

  • Automatically return to main vi from subi

    I have a main VI and a sub VI. The sub vi front panel is opened when it is called and the main VI is updated. But I need to automatically return to the main VI front panel after running the subvi Attachments: 24-01-2014 main vi.vi ‏121 KB electron vo