Issue with comparator

Hello All,
I am having a warning issue with my code. I am trying top implement the comparator into my code. Here is the warning..
EarthquakeDataSet.java:88: warning: [unchecked] unchecked call to compare(T,T) as a member of the raw type java.util.Comparator
               if (c.compare(array[low], array[start_high]) == 1)
The appropriate code line is:
if (c.compare(array[low], array[start_high]) == 1) Basically I have Class A, Class B and private static Class C (inner class to B). I have mergesort in A, so in B i have a public method that returns an object instance of C.
A: import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import java.util.Comparator;
import javax.swing.JOptionPane;
public class EarthquakeDataSet
     private int nNumRecordsProcessed; // tracks number of records actually stored in array container
     private EarthquakeRecord[] reqrCollection; // reference to array which will be allocated when processing the file
     public EarthquakeDataSet() {
     public long ProcessFile(String sFileName) throws Exception {
          Scanner scanInput = null;
          // use a try-block when opening the file to guard against file-not-found errors
          try {
               scanInput = new Scanner(new File(sFileName));
          } catch (FileNotFoundException e) {
               throw new Exception("Error opening file:" + sFileName);
          int nMaxNumRecords = Integer.parseInt(JOptionPane.showInputDialog("Maximum Number of Records: "));
          nNumRecordsProcessed = 0; // nNumRecordsProcessed may be less then nMaxNumRecords if the array is larger than needed
          long lStartTime = System.currentTimeMillis();
          reqrCollection = new EarthquakeRecord[nMaxNumRecords];
          try {
               while (nNumRecordsProcessed < nMaxNumRecords && scanInput.hasNext()) {
                    String sRawRecord = scanInput.nextLine();
                    reqrCollection[nNumRecordsProcessed] = new EarthquakeRecord(sRawRecord);
                    //System.out.println("test " + reqrCollection[nNumRecordsProcessed].toString() +"\n");
                    nNumRecordsProcessed++;
          } catch (Exception e) {
               throw new Exception("Input failure at record: " + nNumRecordsProcessed);
          //Comparator c; 
          //EarthquakeRecord.CreateDepthObject();
          Comparator c = EarthquakeRecord.CreateDepthObject();
          mergeSort_srt(reqrCollection, 0, 50, c);
          for(int j = 0; j < 50; j++)
               System.out.println("test11 " + reqrCollection[j].toString());
          return System.currentTimeMillis() - lStartTime; // calculate the elapse time
     public String toString() {
          return "Number of Records: " + nNumRecordsProcessed;
     public void mergeSort_srt(EarthquakeRecord array[],int lo, int n, Comparator c)
              int low = lo;
              int high = n;
              if (low >= high)
                     return;
          c = EarthquakeRecord.CreateDepthObject();
              int middle = (low + high) / 2;
              mergeSort_srt(array, low, middle, c);
             mergeSort_srt(array, middle + 1, high, c);
              int end_low = middle;
              int start_high = middle + 1;
          System.out.println(c.toString());
              while ((lo <= end_low) && (start_high <= high))
                     if (c.compare(array[low], array[start_high]) == 1)
                       low++;
               else
                       EarthquakeRecord Temp = array[start_high];
                       for (int k = start_high- 1; k >= low; k--)
                            array[k+1] = array[k];
                    array[low] = Temp;
                          low++;
                          end_low++;
                          start_high++;
          reqrCollection = array;          
}B has following method...
public static CompareDepth CreateDepthObject()
          CompareDepth cd2 = new CompareDepth();
          return cd2;
     }and C private static class CompareDepth implements Comparator <EarthquakeRecord>
          public int compare(EarthquakeRecord erq1, EarthquakeRecord erq2)
               if(erq1.getDepth() < erq2.getDepth())
                    return 1;
               else if(erq1.getEpicentre() > erq2.getEpicentre())
                    return -1;
               else return 0;
     }I know I have a problem setting and passing the reference to the comparator that I want. Ne ideas ??

tanmay.kansara wrote:
hey
here is my main
public class EarthquakeTest {
     public static void main(String[] args) {
          EarthquakeDataSet eqds = new EarthquakeDataSet(); // create object that will manage the collection of EarthquakeRecord objects
          try {
               String sFileName = JOptionPane.showInputDialog("Filename: "); // prompt user for file name
               long lElapseTime = eqds.ProcessFile(sFileName);// open file and parse all data into EarthquakeRecord objects
               System.out.printf("File Processing: Elapsed time: %f \n", ((float)lElapseTime)/1000.0);
          } catch (Exception e) {
               System.out.println("File not found.");
}I do have two pop up boxes that pop up, first one for Filename and second one for number of Entries to sort...
thanks
tanmayRighto... I think I can post my main method without being accused of "spoon feeding" you...
[again, this code is not compiled, and obviously not tested]
public class EarthquakeTest
  private static final long NANOS = 1000000000L; // 10^9
  public static void main(String[] args) {
    try {
      String filename = JOptionPane.showInputDialog("Filename: ");
      if (filename==null) return; // user pressed cancel.
      long start = System.nanoTime();
      EarthquakeManager manager = new EarthquakeManager();
      manager.loadFile(filename);
      manager.sort(new EarthquakeManager.MagnitudeComparator());
      manager.print(System.out);
      long stop = System.nanoTime();
      System.err.println("took "+((stop-start)/NANOS));
    } catch (Exception e) {
      e.printStackTrace();
}The main method says what is happening, but not how... We get a manager, load a user-specified file into the list of quakes, sort, and then print-oput the list... and we're also saying how long the load and sort process took. All good.
Cheers. Keith.

Similar Messages

  • Issue with comparing two dates

    I am a little confused by this. here is the query
    SELECT CASE
    WHEN TRUNC (mm.revised_validation_due_date) >
    TRUNC (mm.next_validation_date)
    THEN
    'greater'
    ELSE
    'not'
    END
    compare,
    mm.revised_validation_due_date - mm.next_validation_date datediff,
    mm.revised_validation_due_date,
    mm.next_validation_date,
    TO_CHAR (mm.revised_validation_due_date, 'MM/DD/YYYY HH:MM:SS')
    revised_with_time,
    TO_CHAR (mm.next_validation_date, 'MM/DD/YYYY HH:MM:SS') next_with_time
    FROM tbl_master mm
    WHERE mm.tbl_id = 802
    the output
    compare= greater
    datediff= 730487
    revised_validation_due_date= 2/28/2009
    next_validation_date= 2/28/2009
    revised_with_time= 2/28/2009 12:02:00
    next_with_time= 2/28/2009 12:02:00
    So...why does the case statement come out with greater?

    Here it is corrected
    with tbl_master as (
    select      to_date('2/28/2009','fmmm/dd/yyyy')  REVISED_VALIDATION_DUE_DATE
    ,           to_date('2/28/2009','fmmm/dd/yyyy')  next_validation_date
    ,     802 tbl_id
    from dual
    --- Test DATA
    SELECT CASE
             WHEN TRUNC(mm.revised_validation_due_date) >
                  TRUNC(mm.next_validation_date) THEN
              'greater'
             ELSE
              'not'
           END compare,
           mm.revised_validation_due_date - mm.next_validation_date datediff,
           mm.revised_validation_due_date,
           mm.next_validation_date,
           TO_CHAR(mm.revised_validation_due_date, 'MM/DD/YYYY HH:Mi:SS') revised_with_time,
           TO_CHAR(mm.next_validation_date, 'MM/DD/YYYY HH:Mi:SS') next_with_time
      FROM tbl_master mm
    WHERE mm.tbl_id = 802
    COMPARE   DATEDIFF REVISED_V NEXT_VALI REVISED_WITH_TIME   NEXT_WITH_TIME
    not              0 28-FEB-09 28-FEB-09 02/28/2009 12:00:00 02/28/2009 12:00:00SS

  • Webi Report Performance issue as compared with backaend SAP BW as

    Hi
    We are having Backend as SAP BW.
    Dashboard and Webi reports are created with Backend SAP BW.
    i.e thru Universe on top of Bex query and then webi report and then dashboard thru live office.
    My point is that when we have created webi reprts with date range as parameter(sometimes as mandatory variable which comes as prompt in webi) or sometimes taking L 01 Calender date from Bex and creating a prompt in webi,  we are facing that reports are taking lot of time to open. 5 minutes 10 minutes and sometimes 22 minutes  to open.
    This type of problem never ocurred when Backened was Oracle.
    Also when drilling in webi report,it takes lot of time .
    So can you suggest any solution?

    Hi Gaurav,
    We logged this issue with support already, it is acknowledged.
    What happens is that whenever you use an infoobject in the condition
    (so pull in the object into condition and build a condition there,
    or use that object in a filter object in the universe and then use the filter)
    this will result in that object being added to the result set.
    Since the query will retrieve a lot of different calendar days for the period you selected,
    the resultset will be VERY big and performance virtually non-existent.
    The workaround we used is to use a BEX variable for all date based selections.
    One optional range variable makes it possible to build various types of selections
    (less (with a very early startdate), greater (with a very far in the future enddate) and between).
    Because the range selection is now handled by BEX, the calendar day will not be part of the selection...
    Good luck!
    Marianne

  • Hello, Im new to this website. Im having issues with my Macbook. I have the old 2009 model Macbook and it is our schools macbook. The school just upgraded these MacBooks to OSX Mavericks and when i try to open Minecraft it won't let me. It says no jd

    Hello, Im new to this website. Im having issues with my Macbook. I have the old 2009 model Macbook and it is our schools macbook. The school just upgraded these MacBooks to OSX Mavericks and when i try to open Minecraft it won't let me. It says no jdk installed. I also try to install Java SE runtime but half way through the Software Update it says cant download software because of network problem but I'm connected to the internet and i can browse stuff just fine. Can any one help with my problems. P.S. I don't know the administrator password or stuff like that. And yes we are allowed to play games and stuff on these laptops but only at home not at school so don't tell me i need to focus on school and not games. 

    Since you updated the operating system, it is probably Minecraft is missing certain files that ware remove or are not longer comparable with the new version of the OSX. what I recommend, is to check is there is an update for Minecraft and install that. If there is not update available, probably the best thing will be reinstalling Minecraft. Hope this will help you.   

  • Connection Issues with BT infinity + HH3

    I have had BT infinity installed for a couple of months now and I have got some issues with the connection that I am getting.
    Now the Internet connection speed is not a issue getting about 35mb wired and 26mb over Wi-Fi and is pretty stable.
    But when using my iPad 2 and watching a youtube video even at the lowest quality (using the App or Website) sometimes the video will often stop loading at a point and will not load the rest of the video so the video will just stop. This does not happen on my laptop.
    This also affects the BBC iPlayer App, where I cannot even get a programme to even start playing. This all worked fine with BT Option 3.
    It also effects Apps like Twitter were loading new tweets in the timeline can sometimes take forever for just a bit of text.
    My Xbox 360 also will not connect to the WiFi at "N" only at "G". Even though I have one of the new style Xbox 360's that has Wireless N. Also i find the Download speeds realy slow. Took nearly 30 Miniutes to download a 1.3 GB file compared to about 6-8 on my laptop. 
    The one computer that i connected to the HH3 via a Ethernet cable has the most issues where it can take many minutes to load up the simpliest webpage like eBay. This problem does not happen all of the time but useally a couple of time per week. And what seems to happen is you click on a link and nothing happens then everthing loads.
    Has anybody got any of these issues as this laptop seems to be fine but the iPad will not also load the content, and the computer that shouyld be the fastest seems to sometimes be the speed of a dial-up Modem.
    Apart from getting rid of the HH3 and getting someting like a Apple Airport Extreme are there any other soloution to why this happens. This is not what i thought BT Intinty would be like.

    It could be a dodgy router but check the following first
    1) All connections are set to use DHCP(automatic)  rather than fixed IP addresses and that the IP list on the Hub does not contain duplicate entries.
    2) As the wired connection is running slowly it is unlikely to be a wireless conflict but use Inssider 2 to ensure you are not using a crowded channel the HH3 is supposed to do this automatically but seems flaky
    You could try getting a new Hub sent to you but unless you feel rich or have Apple shares there are cheaper cable routers than the Apple ones around  & any router that offers PPOE will work. Plenty of reviews on the web and you can buy them from £20 up.

  • Performance issues with query input variable selection in ODS

    Hi everyone
    We've upgraded from BW 3.0B to NW04s BI using SP12.
    There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
    Using ST01 and SM50 to trace the code in the same query, we see a difference here:
    <u>NW04s BI SQL command</u>
    SELECT                                                                               
    "P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"                             
    FROM                                                                               
    ( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON  "P0000"."COMP_CODE" = "T0000
      "."COMP_CODE"                                                                               
    WHERE                                                                               
    "P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM              
      "/BI0/APY_PP_C100" "O" )                                                                               
    ORDER BY                                                                               
    "P0000"."COMP_CODE" ASC#                                                                               
    <u>BW 3.0B SQL command:</u>
    SELECT ROWNUM < 500 ....
    In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
    It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
    I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
    Anyone with similar experience or can provide help on this?

    here is a reason why the F4 help on ODS was faster in BW 3.x.
    In BW 3.x the ODS did not support the read mode "Only values in
    InfoProvider". So If I compare the different SQL statements I propose
    to change the F4 mode in the InfoProvider specific properties to
    "About master data". This is the fastest F4 mode.
    As an alternative you can define indexes on your ODS to speed up F4.
    So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
    Check below for insights
    https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
    Hope it Helps
    Chetan
    @CP..

  • Performance issues with Planning data load & Agg in 11.1.2.3.500

    We recently upgraded from 11.1.1.3 to 11.1.2.3. Post upgrade we face performance issues with one of our Planning job (eg: Job E). It takes 3x the time to complete in our new environment (11.1.2.3) when compared to the old one (11.1.1.3). This job loads then actual data and does the aggregation. The pattern which we noticed is , if we run a restructure on the application and execute this job immediately it gets completed as the same time as 11.1.1.3. However, in current production (11.1.1.3) the job runs in the following sequence Job A->Job B-> Job C->Job D->Job E and it completes on time, but if we do the same test in 11.1.2.3 in the above sequence it take 3x the time . We dont have a window to restructure the application to before running Job E  every time in Prod. Specs of the new Env is much higher than the old one.
    We have Essbase clustering (MS active/passive) in the new environment and the files are stored in the SAN drive. Could this be because of this? has any one faced performance issues in the clustered environment?

    Do you have exactly same Essbase config settings and calculations performing AGG ? . Remember something very small like UPDATECALC ON/OFF can make a BIG difference in timing..

  • New infinity line and major speed issues with almo...

    Hi,
    Just has infinity installed after moving from my previous FTTC provider.  With the previous provider i was getting 16 down / 1-2 up and it worked great.
    Had my my new inifnity line put in on thrsday and i am getting 17 down / 0.5 up!! 
    I work from home and connect to the office via vpn and remote desktop and its almost unusable.  Laggy, slow, unrepsonsive and is constantly dropping the connection with a failed to read from socket error and is making it very difficult to work form home effectively.
    I have a 4g EE modem also and if i switch to this it is like lightening compared.
    I also had absolutely no connection issues with my previous provider and as i posted above had a mich better uplink speed - which is where i think im getting most of my issues.
    When i signed up to BT this is what i was sent via email:
    We estimate your download speed will be 19.1Mb.
    We estimate your upload speed will be 3.9Mb.
    Im fine with the download but the uplink is shocking compared to the estimate - and as i had much better before i think something is amiss.
    Also when i signed up i was told that if i had any connection issues with the new line i had to notify BT within 7 days and it woudl eb investingated but it seems there are so many roadblocks to creating support tickets etc.. Its like it s been hard to report a fault on purpose.
    Where can i create a support ticket or similar to get this looked at?
    Thanks
    Damian

    dgreenuk wrote:
    Hi,
    I work from home and connect to the office via vpn and remote desktop and its almost unusable.  Laggy, slow, unrepsonsive and is constantly dropping the connection with a failed to read from socket error and is making it very difficult to work form home effectively.
    Thanks
    Damian
    As you use the internet for work purposes did you have business broadband with your previous provider ?
    This is the Residential forum. You may be better posting on the BT Business forum.
    Best regards,
    dfenceman

  • Issue with Hierarchies

    Hi ,
    We are working on BO on top of BW pilot version and finding different issues with different tools.
    1) Used existing BW queries/created universe.When we run the report using Web Intelligence, not able to get the way Hierachies displays in BEx.(Tree like structure).
    If we enable drill up and down option, the summary level disappeas only we can see the lower level.Which I think is a useless information to the user as it appears like a flat file data.
    We created the report with possible Hierarchies upfront like a canned report, but doesn't give any option to drill up/down further, doesn't allow the user any other activity, other than dragging/dropping some columns.
    2) Tried to create the report in Crystal, but because of the page limitations, I cannot get all my columns in the same page( I have 35 columns)
    3) To derive the reports in XCelicius, my business partner tells me that they need to create queries on Excel to use that functionality.They are preferring to go with R/3, rather than BW, which will be again significant amount of work.
    I wonder if anyone encountered these kind of issues ?
    Providing these limitations, I don't see much value of having this tool on top of BW.Any comments?
    I agree, it is a great tool on top of relational databases, as we are using this tool on relational databases and didn't find these many issues.
    Can someone provide me the list of advantages of having BO on top of BW? I mean what BO can offer when compared to BEx( We only use BEx, no Web)
    Thanks
    Priya

    hi,
    perhaps I can bring in some clarifications :
    - Crystal Reports is able to leverage the hierarchies and use a parent child relationship and show the hierarchical levels from BW. It looks like the challenge you have in Crystal Reports is that you have a lot of columns that you would like to have in your report. Crystal Reports is layout driven so you could actually set a size of the report by configuring the page setup.
    - web Intelligence is exposing a hierarchy based on levels so that the user can leverage the levels in the report. when enabling the drill down you could actually go from a top level down to multiple levels of the hierarchy
    - Xcelsius can leverage multiple different sources: Web Services, Crystal reports, web Intelligence. Xcelsius can use Live Office to connect to existing reports from Crystal Reports and web Intelligence.
    Feel free to provide your comments / questions in case this doesn't answer your questions
    Ingo Hilgefort

  • Issues with Analysis Authorization checks in APO

    Hi Friends,
    I am facing an issue with Analysis authorization checks in APO.
    We have setup user access based on Management Entity (Analysis authorization - AGMMGTENT and 0TCAACTVT) and core APO authorizations (based on the work profile - e.g: Demand Planner).
    Scenario: Consider User A has access to India and Australia Management Entities with 0TCAACTVT - *
    This user also has display access to all management Entities (AGMMGTENT - * and 0TCAACTVT - 03). This scenario works very well in Quality where the RSECADMIN trace shows check on both Characteristics. However in Production the RSECADMIN trace shows up only against AGMMGTENT (*) and by default takes 0TCAACTVT as (*).
    In Quality the Characteristics that get checked are as below : and it works as expected. Display access for Management Entities that are supposed to be displayed only and change access to only the Management Entities that it should.
    However the Trace for Production shows the following : As a result it is allowing the user to change access to all management Entities. Which is not desirable..
    Resultant trace results are as below: This should not happen..
    I have compared all Analysis Authorizations and it is same across both Instances. The Demand planner access is consistent too..
    Will it be possible for you to advise on what could I be missing.

    Hi All,
    If it helps, in Quality: the Authorization checks are listed as: Subselection (Technical SUBNR) 1
    while in Production it checks Subselection (Technical SUBNR) 1 in one place, however where it fails - the check happens as Subselection (Technical SUBNR) 0.
    Is there a way we can change this to SUBNR 1. Is there any table entry that I can look at to check if the Authorization check is functioning incorrectly..
    Please advise.. Thanks..
    Regards,
    Prakash

  • Anyone else having an issue with TCP connections using iCloud for Windows?

    Hi,
    Before I asked this question, I did wait to see if any related questions came up, but none did, so I submit it now.
    On my admittedly older laptop running Windows 7 64b Home, I've run into difficulties with the iCloud for Windows app to the extent that I had to uninstall it.
    It would that, as my laptop was running, in the background, iCloudServices.exe would endlessly iterate TCP connections, which, while not actively sending or receiving any data, after some hours would number over 100 instances, taking up resources, and grinding my laptop's WiFi connection to a grindingly slow pace. I ended up, within the app, turning off everything, iCloud Drive and Photos, (I never used bookmarks), but still this would continue to occur.
    I contacted Apple Support, explaining what was going on, and they stated they only dealt with IOS and gave me a Microsoft Support number. When I called Microsoft support, I came more and more to the realization that the issue was specifically with the iCloud for Windows app, as that was the only software that was endlessly creating and not closing TCP connections as it was. How was Microsoft supposed to solve an issue with Apple code?
    So I called Apple back, whereupon they insisted it was a Microsoft issue. I explained other cloud services installed on the same computer were not having the same issue, it was unique to ICloudServices.exe. They stated they only dealt with IOS. I stated I purchased an iPad Air less than 7 months ago, and was trying to run iCloud in support of that.  They again stated they only dealt with IOS, and suggested I again try Microsoft. I asked them if it was reasonable to expect Microsoft to solve issues with Apple code? They said regardless, there was zero support offered for anything having to do with Windows, and all I could do was uninstall the app, which I did, though that did not feel very satisfactory to me. My thinking is, if Apple writes a Windows app in support of their hardware, they should offer support for it.
    Anyway, I was just wondering, is this an issue unique to me? or have others experienced a similar issue? I found this issue by opening the Windows Resource Monitor, looking under the Networking tab, and scrolling through the TCP Connections section to find 100+ concurrent iCloudServices.exe instances listed, whereas even Chrome, with multiple tabs and extensions, topped out at around 20.
    My one month old Desktop, DYI, sports a solid Asus 1150 MoBo, i7-4790k cpu, 16GB Ram, and an EVGA GTX 970 video card. I list some specs only to illustrate this computer has no hardware issues in comparison to my long in tooth laptop. On this desktop, running Win 8.1 Pro 64b,  at least as many, identifiably Apple, background service TCP connections are created even compared to Chrome, regardless of many tabs being open, many extensions, and even some related apps. Adobe does not even come close, though I run the full CC subscription. On this new computer, running Windows 8.1 Pro 64b, there are currently over 50 TCP connections and loopbacks that do not identify themselves, with just a - for the Image, and PID. With the experience on my laptop, I wonder how many of these are generated by Apple software, if not specifically iCloud software?
    The frustrating aspect of these connections is they seem in no way active, While the Chrome and Adobe connections can be seen to be transferring data, as long as I am not running iTunes, or so have my iPad actually plugged in, it seems 99% of the time these iCloudServices.exe connections are just taking up ports, neither sending nor receiving any data discernable to me under the Processes with Network Activity, or Network Activity lists, both displayed in the same window as the TCP Connections in the Windows Resource Monitor.
    Though I am fairly ignorant as regards coding, it seems as if there is no call to close a connection, very specifically, iCloudServices.exe, when it is no longer needed, and the next time a connection is needed, a new one is opened, rather than accessing the one previously opened. The only other reason I could imagine this might be occurring is if my Norton Internet Security software might mask and/or block the port after a certain time of inactivity.
    Anyone out there have any ideas or advice about this? Thanks in advance.

    Thanks jared,
    I'm still dealing with this issue through Apple. Some time after I posted this, I contacted Apple again. They did start a case up for me, as I was experiencing the same behavior on two different machines, with two different versions of Windows.
    So far it remains unsolved. I've logged iClouds for Windows on my desktop, which is brand new, then logged for awhile after completely uninstalling Norton Security Suite, depending on the Microsoft security for some time, and finally logged after I uninstalled iCloud for Windows, restarted, installed a clean download, and connected using a completely different test account, which Apple set up for me. None of this made any difference. Looking at the logs, it seems every 10 minutes, iCloudServices.exe creates a new TCP connection to confirm I'm using less than 5GB on iCloud, (which I am by a good margin, using less than 2GB), it seems this connection is not closed, and when the next iteration rolls around 10 minutes later, a new TCP connection is created. I come very close to having 6 TCP connections created per hour, until I restart my computer. This works out to... 6 x 24 = 144/day.
    Perhaps the article you posted will shed some further light on this. I'm thinking seeing the state of the connection through netstats, at the least, could help.
    For the last week, I've been putting a hold on further logging, as Apple wants me to create a new user account on one of my computers, install iCloud for Windows there, and log it running in the other account. This however basically means I cannot use my computer for a fair number of hours, and I've been busy enough with work the past week that I haven't the time or energy to afford to set this up and run it. I've had need of my computers too much for the past week.

  • 2008 R2: OS(systemState/C: Drive) backup issues with VSS - 0x80042316 & 0x81080101 & 0x80080005 & 2155348001

    Hi-
    Looked thru the thread related to my questions and found nothing that applies yet.
    Example:
     http://social.technet.microsoft.com/Forums/en-US/4e4472b9-8e6f-4fdc-a287-1cc8c0f6de09/windows-2008-r2-backup-fails-with-event-521-error-code-2155348001?forum=windowsbackup
    http://social.technet.microsoft.com/Forums/en-US/e8c910f7-f0dd-4613-beae-b98894fb6f23/windows-server-2008-std-backup-fails-constantly-with-error-code-2155348001?forum=windowsbackup
    Here are details of the issues....
    Backup - OS error - system image:
    External disk - USB
    Mon - Fri @ 6PM.
    Windows SystemState
    OS(C:)
    Last backup failure...
    Start time: 8/11/2014 6:01:32 PM
    End time: 8/12/2014 4:51:29 AM
    Duration: 10:49:56.4414784
    [Critical error WINIMAGE_UNABLE_VSS] Unable to create VSS snapshot
      - Additional information: Refer to the log for more details
      - Troubleshooting link:
    http://kb.backupassist.com/errormap.php?BA2512
    The backup operation stopped before completing.
    Detailed error: ERROR - The shared restore point operation failed with error (0x81000101)
    The creation of a shadow copy has timed out. Try this operation again.
    Log of files successfully backed up:
    C:\Windows\Logs\WindowsServerBackup\Backup-12-08-2014_04-41-00.log
    Log of files for which backup failed:
    C:\Windows\Logs\WindowsServerBackup\Backup_Error-12-08-2014_04-41-00.log
    NOTE:
    The errors logs are not there?
    Windows Backup timed-out before the shared protection point was created.
    ERROR - The shared restore point operation failed with error (0x81000101)
    The creation of a shadow copy has timed out. Try this operation again.
    Event Viewer Log:
    Sequence of Events...
    1.
    The Block Level Backup Engine service has successfully started.
    2.
    Backup operation that started...
    Log Name:      Application
    Source:        Microsoft-Windows-Backup
    Date:          8/12/2014 4:51:06 AM
    Event ID:      521
    Task Category: None
    Level:         Error
    Keywords:     
    User:          SYSTEM
    Computer:      mdnfile.Auxiant.local
    Description:
    The backup operation that started at '?2014?-?08?-?12T09:41:00.492000000Z' has failed because the
    Volume Shadow Copy Service operation to create a shadow copy of the volumes being backed up failed
    with following error code '2155348001'.
    Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.
    --> Suggestion are to check Virus scanner or consult DPM forum...
    3.
    OS Job failed with errors...( Backup Assist is 3rd party backup - wrapper round Wbadmin/Win Backup)
    Log Name:      Application
    Source:        BackupAssist
    Date:          8/12/2014 4:51:51 AM
    Event ID:      5634
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      mdnfile.Auxiant.local
    Description:
    Backup job OS backup failed with errors.
    Critical error: Unable to create VSS snapshot
    Destination: External disk
    Start time: 8/11/2014 6:01:32 PM
    End time: 8/12/2014 4:51:29 AM
    Duration: 10:49:56.4414784
    Destination: External disk
    Start time: 8/11/2014 6:01:32 PM
    End time: 8/12/2014 4:51:29 AM
    Duration: 10:49:56.4414784
    4.
    Backup Assist reports via Win backup - Snapshot in progress
    Log Name:      Application
    Source:        BackupAssist
    Date:          8/12/2014 4:52:20 AM
    Event ID:      5634
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      mdnfile.Auxiant.local
    Description:
    Backup job Data backup failed with errors.
    Ultra critical error: Volume Shadow Copy Error 0x80042316 - snapshot set in progress
    Destination: Local directory
    Start time: 8/12/2014 4:52:10 AM
    End time: 8/12/2014 4:52:12 AM
    Duration: 00:00:02.7300000
    5.
    The Block Level Backup Engine service has stopped.
    6.
    Later...we tried manually stopping VSS and SWPRV services - only VSS had the issue.
    WBengine was not running...
    C:\>sc stop swprv
    SERVICE_NAME: swprv
            TYPE               : 10  WIN32_OWN_PROCESS
            STATE              : 3  STOP_PENDING
                                    (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    C:\>sc query swprv
    SERVICE_NAME: swprv
            TYPE               : 10  WIN32_OWN_PROCESS
            STATE              : 1  STOPPED
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    C:\>sc query wbengine
    SERVICE_NAME: wbengine
            TYPE               : 10  WIN32_OWN_PROCESS
            STATE              : 1  STOPPED
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    C:\>sc query vss
    SERVICE_NAME: vss
            TYPE               : 10  WIN32_OWN_PROCESS
            STATE              : 3  STOP_PENDING
                                    (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    C:\>sc stop vss
    [SC] ControlService FAILED 1061:
    The service cannot accept control messages at this time.  
    Log Name:      Application
    Source:        VSS
    Date:          8/12/2014 9:20:33 AM
    Event ID:      8225
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      mdnfile.Auxiant.local
    Description:
    The VSS service is shutting down due to shutdown event from the Service Control Manager.
    7.
    VSS still having issues here...not stopping!
    Log Name:      Application
    Source:        VSS
    Date:          8/12/2014 9:42:33 AM
    Event ID:      11
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      mdnfile.Auxiant.local
    Description:
    Volume Shadow Copy Service information:
    The COM Server with CLSID {e579ab5f-1cc4-44b4-bed9-de0991ff0623} and name IVssCoordinatorEx2 cannot be started.
    Most likely the CPU is under heavy load. [0x80080005, Server execution failed]
    8.
    Not sure why this is started again?
    Plus a DCOM timeout...
    Log Name:      Application
    Source:        Microsoft-Windows-Backup
    Date:          8/12/2014 9:31:13 AM
    Event ID:      753
    Task Category: None
    Level:         Information
    Keywords:     
    User:          SYSTEM
    Computer:      mdnfile.Auxiant.local
    Description:
    The Block Level Backup Engine service has successfully started.
    Event Xml:
    Log Name:      System
    Source:        Microsoft-Windows-DistributedCOM
    Date:          8/12/2014 9:31:43 AM
    Event ID:      10010
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      mdnfile.Auxiant.local
    Description:
    The server {E579AB5F-1CC4-44B4-BED9-DE0991FF0623} did not register with DCOM within the required timeout.
    9.
    Lots more errors about VSS...repeating Event ID's 11 and 8193...
    Log Name:      Application
    Source:        VSS
    Date:          8/12/2014 9:42:33 AM
    Event ID:      8193
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      mdnfile.Auxiant.local
    Description:
    Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance. 
    hr = 0x80080005, Server execution failed
    . Operation:
       Instantiating VSS server
    10.
    Then, finally stopping again...
    Log Name:      Application
    Source:        Microsoft-Windows-Backup
    Date:          8/12/2014 9:51:13 AM
    Event ID:      754
    Task Category: None
    Level:         Information
    Keywords:     
    User:          SYSTEM
    Computer:      mdnfile.Auxiant.local
    Description:
    The Block Level Backup Engine service has stopped.
    11.
    And still repeating 11 & 8193 at this point...as we write up this post.
    12.
    This was suggested by the Backup Assist - software vendor....
    A.)
    ...for 0x81080101:
    "ERROR - The shared restore point operation failed with error (0x81000101)
    The creation of a shadow copy has timed out. Try again this operation."
    If you receive the above error in your report, we have recently found a registry key which
    contains the timeout value set by Microsoft for VSS and found that you can edit this to extend it.
    To get to the registry key, open Regedit (Start > Run > Regedit) and browse to:
    "HKLM\Software\\Microsoft\\Windows NT\\CurrentVersion\\SPP\\CreateTimeout".
    Change value to 1200000 (2*10*60*1000 = 20 mins).
    The default for the timeout period is 10 mins so hopefully doubling this will give enough time to
    complete the snapshot.
    If this isn't present, you'll need to manually enter the registry key. It's a DWORD 32-bit key.
    --> NOTE: HAve not done this yet.
    B.)
    And for 0x80080005...
    http://support.microsoft.com/kb/870655/en-gb
    Our server does have high CPU load at times...
    13.
    Another post from technet mentions system volume size - here is our layout below:
    A.)
    OS/system Disk...
    DISKPART> list disk
      Disk ###  Status         Size     Free     Dyn  Gpt
      Disk 0    Online          278 GB      0 B    (System Vol = C: Drive - OS w/ Programs and batch jobs)
      Disk 1    Online         2791 GB      0 B        *    (Data drive - DFS, rsync,etc. run on D: Drive)
      Disk 2    Online         1863 GB      0 B    (USB 2/3.0 - Enclosure w/ SATA disk = 2GB formatted w/ NTFS.)
    DISKPART> detail disk
    DELL PERC H710P SCSI Disk Device
    Disk ID: CA0DEEA5
    Type   : RAID
    Status : Online
    Path   : 1
    Target : 0
    LUN ID : 0
    Location Path : PCIROOT(0)#PCI(0100)#PCI(0000)#RAID(P01T00L00)
    Current Read-only State : No
    Read-only  : No
    Boot Disk  : Yes
    Pagefile Disk  : Yes
    Hibernation File Disk  : No
    Crashdump Disk  : Yes
    Clustered Disk  : No
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      Volume 1         RECOVERY     NTFS   Partition   3072 MB  Healthy    System
      Volume 2     C   OS           NTFS   Partition    275 GB  Healthy    Boot
    B.)
    Backup disk...
    ST320006 41AS USB Device
    Disk ID: 801AF48C
    Type   : USB
    Status : Online
    Path   : 0
    Target : 0
    LUN ID : 0
    Location Path : UNAVAILABLE
    Current Read-only State : No
    Read-only  : No
    Boot Disk  : No
    Pagefile Disk  : No
    Hibernation File Disk  : No
    Crashdump Disk  : No
    Clustered Disk  : No
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      Volume 4     F   BACKUPS      NTFS   Partition   1863 GB  Healthy
    C.)
    NOTE:
    Also on disk 0(system Disk) - we have a small OEM partition = 39MB and a Recovery Partition = 3GB.
    D.)
    Issues with WBAdmin now...
    C:\>wbadmin get disks
    wbadmin 1.0 - Backup command-line tool
    (C) Copyright 2004 Microsoft Corp.
    ERROR - A Volume Shadow Copy Service operation error has
    occurred: (0x80042302)
    A Volume Shadow Copy Service component encountered an unexpected error.
    Check the Application event log for more information.
    14.
    Ran "Check-Disk" -no errors...
    C:\>chkdsk
    The type of the file system is NTFS.
    The volume is in use by another process. Chkdsk
    might report errors when no corruption is present.
    Volume label is OS.
    WARNING!  F parameter not specified.
    Running CHKDSK in read-only mode.
    CHKDSK is verifying files (stage 1 of 3)...
      116224 file records processed.
    File verification completed.
      654 large file records processed.
      0 bad file records processed.
      0 EA records processed.
      76 reparse records processed.
    CHKDSK is verifying indexes (stage 2 of 3)...
      156676 index entries processed.
    Index verification completed.
      0 unindexed files scanned.
      0 unindexed files recovered.
    CHKDSK is verifying security descriptors (stage 3 of 3)...
      116224 file SDs/SIDs processed.
    Security descriptor verification completed.
      20227 data files processed.
    CHKDSK is verifying Usn Journal...
      35628352 USN bytes processed.
    Usn Journal verification completed.
    Windows has checked the file system and found no problems.
     289233919 KB total disk space.
     100241492 KB in 85477 files.
         57380 KB in 20228 indexes.
             0 KB in bad sectors.
        226627 KB in use by the system.
         65536 KB occupied by the log file.
     188708420 KB available on disk.
          4096 bytes in each allocation unit.
      72308479 total allocation units on disk.
      47177105 allocation units available on disk.
    15.
    There are no backup error logs here - only .etl files...
    C:\Windows\Logs\WindowsServerBackup\
    Wbadmin.1.etl = 9:42AM on 8/12
    Wbadmin.2.etl = 4:51AM on 8/12
    Per windows Win troubleshooting:
    http://technet.microsoft.com/en-us/library/ee692290(WS.10).aspx
    http://blogs.technet.com/b/filecab/archive/2009/09/16/diagnosing-failures-in-windows-server-backup-part-1-vss-spp-errors.aspx
    --> Related to Windows backup and not VSS?
    2155348001 - 0x80780021 - Windows Backup timed-out before the shared protection point was created.
    Should we run the "FIXVSS08.BAT" script - restarts services and re-registers DLL's - does this ever help?
    Will this server need a reboot since VSS is in a state and we can't even test backups?
    Is there a tool we can use to debug VSS or troubleshoot or OS backups further?
    MSReport/Diag, VSS debugging, or another way of helping fix our OS(SystemState/C: drive) backup issues?
    Any help is greatly appreciated - thx.
    -SP
    Scot Pichelman

    Hi Scot,
    Sometimes a third party backup application will change the default VSS provider adding VSS writers which causes Windows Server Backup using an incorrect component in doing backup, that's why I suggest to delete it for a test. Anyway you can reinstall it
    after testing.
    And as you said a high-load CPU could also be the cause of the issue so you may need to first rule hardware effective out.
    If issue still exists, please try the steps below as well:
    1. Please check DCOM Server Process Launcher service is started.
    2. If not, try to change RPC service to run as SYSTEM account. To do this please modify the following key:
    Note: Backup the key before edit incase it cause any issue.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\RpcSs\
    Find "ObjectName" and change the value to LocalSystem.
    Reboot to see if DCOM back to work and if Windows Server Backup starts working. If not, please provide the result if there is any new error occurs.
    If DCOM still not work, please compare the content of the following key with a working server:
    HKEY_LOCAL_MACHINE\Software\Microsoft\OLE
    Edit if there is any difference and make sure you created a backup of the key before editing. 
    If you have any feedback on our support, please send to [email protected]

  • Multiple issues with my iPhone 3GS since 4.1; can anyone help?

    Hi,
    I have an iPhone 3GS 16GB which I love very much. Vital Statistics are:
    Version: 4.1 (8B117)
    Carrier: Voda AU 8.0
    Model: MC132X
    Modem Firmware: 05.14.02
    I bought it through Vodafone Australia in January this year. It’s been brilliant, it is this device which convinced me Apple sold brilliant gear, and greatly influenced me to buy my iMac 27", 17" Macbook Pro, Airport Extreme, and Time Capsule.
    I am a Senior Test Analyst with telco experience in all of Australia’s mobile phone operators (3, Vodafone, Optus, and Telstra). I now work for a global media company, and depend on my iPhone for phonecalls, emails, internet, getting access to my share trading platform, banking apps, calendar, etc.
    I went to Germany for 2 months, and I bought the unlock from my carrier, Vodafone Australia, so I could use a usim from Vodafone DE in Germany. Vodafone’s instructions were that in order to apply the unlock, I had to connect my iPhone to iTunes, where it would download an update from Apple and unlock my phone.
    I performed the upgrade to 4.1, which was a completely clean install after backing everything up.
    Unfortunately, after upgrading from 3.1.3 to 4.1 I am having no end of issues with my trusty (once) 3GS.
    Issues I am currently encountering:
    1. Dropped calls. Both in Germany, and in Australia, my iPhone is dropping calls at a rate it has never, ever done before. 1 out of ever 2-3 calls is being dropped. The voice quality is also degraded over what I remember it being (both in AU and DE), and I’m getting ‘squawks’ and ‘screeches’ in the middle of my conversations which I never had prior to upgrading.
    2. Signal strength is very poor. Before I upgraded to 4.1, I was able to make and receive phonecalls at my desk at work (right in the heart of Sydney’s CBD, right next to Hyde Park.) without issue. I was able to walk in between my company’s offices in the CBD and talk the whole way without problem. Now, I get 1 bar at my desk, and I’m lucky if I can make a phonecall 50% of the time there. I can no longer receive the volume of calls that I used to at my desk either. Walking between offices sees my phone calls drop EVERY TIME now. At home, with 3.1.3, I had no problem with reception. Now, I drop calls inside my house on a regular basis, and I often don’t have enough signal to make calls at home where prior I had no issues. My younger brother, who bought an iPhone 3GS on the same day I did, from the same Vodafone store, at the same time, is still on 3.1.2. He has no problems with reception in the house at all. He walks around taunting me holding phonecalls without issue.
    3. Internet performance has been devastated. Whereas my google maps, email, and internet access used to be fast and crisp, now it is slow and haphazard. I am also seeing the 3G symbol disappear and be replaced by an E symbol, and my phone seems to have difficulty staying on the 3G network. My brother, standing right next to me, does not have these problems. Once again, my brother’s iPhone 3GS on 3.1.2 does not have any internet problems when he is using his iPhone right beside me. We are on the same carrier (Vodafone AU), on the same plan.
    4. My iPhone battery life has been dramatically reduced. Whereas I used to be able to use it for almost a full day, with minor top ups when it got really busy, now my battery life vanishes before my eyes in half the time. This is with the device simply not being up to the task of performing the workload it used to!
    5. My iphone locks up, and crashes at random times, and I’ve been having to hard-reset it on occasion.
    6. My iPhone is far slower than it used to be. I’ve compared it to my brother’s identical 3GS on 3.1.2, and his phone flies in comparison to mine! Opening my SMS’s, email client, and internet browser is painfully slow.
    7. When calling a number, often my iPhone ‘waits’ for 20-30 seconds at the ‘calling mobile’ screen before I hear any tone from the phone indicating that it’s making the phone call. This never happened when it was running 3.1.3. This never happens on my brother’s identical 3GS.
    8. My wireless performance has decreased. I have run bandwidth tests through my wireless router numerous times from www.speedtest.net, and compared them with my brother’s results performed right before and right after mine. I’ve run this test against my brother’s 3GS more than enough times to form a statistical picture. On the whole, my wireless performance is around 10-15% worse than his 3GS.
    I work in the telco industry. I regularly chat with the radio engineers who fix up blackspots in 3G coverage for Telstra and 3 Australia. I know that the excuse offered, that of the iPhone software correctly reporting the signal now and not before is absolute rubbish. My 3GS used to work at my desk, between my offices, and at home flawlessly. It crawls along now, and it does not get the reception signal quality it used to.
    I have wiped my iPhone several times now. I have put it into DFU mode and totally, cleanly installed the 4.1 software. I have done this 4 times now.
    The clean installs have not fixed the issues above.
    I would like to know what my options are for fixing these issues?
    The prime questions I have are:
    1. How can I roll back this accursed update?
    2. Why would Apple release a software update(s) that hasn't been tested, and dramatically negatively impacts my beloved 3GS?
    3. How can I get my brilliant 3GS +*back to the way it was*+!?!?
    I’m very, very disappointed. And to be honest, the simple fact I’m taking the time out of my busy day to write this post means I’m very angry as well.
    I know the problem with my 3GS *is not a hardware issue*. It's a software issue, and I'd like to know how I can get my old, fast, reliable, brilliant 3GS back.
    Regards,
    -J

    The picture you show is normal. If you lightly double tap home button it activates reach ability mode for one handed operation. Nothing is wrong there. Another light double tap returns it to full screen. Do not press, just light touch the home button. AAs far as the other issues check the in call volume or ringer volume as it happens, just a possibility. as far as the banner not displayed on lock screen, as far as I know you need to have notifications set to alerts not banners in order for them to show up on the lock screen.

  • Does anyone else have issues with Verizon LTE service on the new iPad?

    I have the new iPad. I have noticed that issues with the LTE signal have gotten progressively worse. When my iPad is sitting in 1 spot it will switch from 3 bars, to no service, to 3 bars, and so fourth. I might be on a website, or in an app that is using data and it works great. Then at random it says No Service again. I just added my iPad to my Verizon account with their new family data plan, so they sent me a brand new SIM card. I feel like I can rule that out.
    I just want to know if anybody else has an issue with their iPad dropping service at random and jumping all over the board. I also have an iPhone on Verizon and it is with me always, I never have this problem with the iPhone. My iPad will say No Service but my iPhone will show nearly full service.
    Just to add, I have switched off LTE for periods of time to see if things change. (that way both my iPhone and iPad are on 3G so I can compare) Things are no different when just running LTE.
    Any thoughts would be appreciated. I am under warrenty and I have Apple Care. I hate taking stuff in and replacing it if I don't need to.
    I am also signed up with a developer account through Apple, and my iPad has iOS 6 beta. This problem did not start with the beta software. It was the case before and after. I guess I was hoping if it was an issue Apple would address it with one of the revisions in iOS 6, but now I am starting to wonder if it is hardware.
    Thank you.

    Try looking/posting here.
    Adobe Support
    Adobe Forums

  • Issues with Synchronize to and from DB (version 3.3.0.747)

    Having an issue with syncing the model and the data dictionary is a very specific case:
    1. Reverse engineer an existing table (T1)
    2. Copy the table (in data modeler) - T2
    3. Rename the table, make changes (add columns and keys)
    4. Forward engineer the new table (i.e., export and run DD for T2L)
    5. Make additional changes to new table (T2) in data model.
    6. Run sync db with model - the sync routine compares my new table (t2) to the original table (T1) in the database! It cannot "find" my new table (T2) in the database to compare to.
    7. Alternatively try to sync the model with the db - this time it wants to sync the original table (T1) to itself (which has no change) and DROP my new table (T2) from the model.
    It appears that sync is looking at meta data one my new table (T2) that contains the original copied table's name (T1). And in fact if I look at the table Summary properties - the source db object property does list the original table name (T1).
    I also tried to reverse engineer the new table (T2) to the merge with the model, that has the same behavior as the sync.
    Is there a way to fix this short of dropping T1 from the schema?
    Edited by: Kent Graziano on May 20, 2013 2:37 PM

    Hi Kent,
    thanks for reporting the problem. I logged a bug and ER for that.
    Is there a way to fix this short of dropping T1 from the schema?Unnecessary information about source need to be cleared. Here is a script that will help on that:
    //array with 2 elements to illustrate different use cases - the first is used to have exact match on table name
    // the second one ("REGIO") can be used with following check in inList function
    //if(table.getName().startsWith(list)){
    var list = ["Regionsv1","REGIO"];
    function isInList(table){
         for(var i=0;i<list.length;i++){
              // different approaches to match table name can be used
              // be aware of letter case
              //if(table.getName().startsWith(list[i])){
              if(table.getName().equalsIgnoreCase(list[i])){
                   return true;
         return false;
    function clearSourceStampforTable(table){
         clearSourceStamp(table);
         cols = table.getElements();
         for(var i=0;i<cols.length;i++){
              clearSourceStamp(cols[i]);
         keys = table.getKeySet().toArray();
         for(var i=0;i<keys.length;i++){
              clearSourceStamp(keys[i]);
              if(keys[i].isFK()){
                   clearSourceStamp(keys[i].getFKIndexAssociation());
    function clearSourceStamp(object){
         object.setSourceConnName("");
         object.setSourceObjSchema("");
         object.setSourceObjName("");
         object.setSourceDDLFile("");
         object.setDirty(true);
    tables = model.getTableSet().toArray();
    for(var i=0;i<tables.length;i++){
         table = tables[i];
         if(isInList(table)){
              clearSourceStampforTable(table);

Maybe you are looking for

  • BAPI for Transaction VA01?

    How to Develope an interface program to upload the sales order data from legacy system to SAP using BAPI for Transaction VA01.Explain me clearly?

  • 2D Picture Control Export as JPG

    Hi guys, I've created a radar plot using a 2D Picture Control. However on attempts to export this by using 'Get Image' I end up with a complete white/black (depends on background colour) square box. So in short, the radar plot created out of 2 variab

  • Relationships used in class diagrams

    What are the different relationship used in class diagram

  • Scrollable Result Set

    I am trying to use a scrollable result set in Java so that I can page the result set on the client at 150 records at at time. The problem is, when there is lots of rows (200K+) the client running the query runs out of memory. To solve this, I limited

  • Problem Regarding memory ID

    Hello Experts, How am i going to track the containts of memory ID during runtime...? Thanks in advance...!