Apps hanging on Retrieval through Excel

Essbase 7.1.5 Windows 2003 Server. 16 gig ram
On multiple occasions now I have cases where users retrieving through excel have their retrievals "hang". These are stock retrievals that normally have split second retrieval time.
If I go in through EAS and try and terminate their retrieval it goes into "terminating" indefinitely. I can't stop the app through EAS either, “user performing database operation”.
I can stop the app by killing the process in Task Manager. However if it then restarts, problems start again.
I have to stop all apps, restart the box. Then everything is good again, usually for another 24 hours. Sometimes less, sometimes a couple of days. Problems does not seem to occur on weekends (few to no users. However lots of app rebuilding/restructuring/etc going on)
This box does have alot of activity, with many apps on the go. 10-15 can be loaded at anyone time. Mix of BSO and ASO cubes. Multiple users, across multipile apps, doing multiple excel retrievals with lots of connects and disconnects going on.
Problem has been ongoing for several months now. No I haven't logged a case with Tech support.

I have similar experience over Essbase 5,6,7,9. Please have a look at the reserved portrange of ESSBASE. Applications like event triggered backups, monitors from network provider or whatever can used one or more of the reserved ports in the ESSBASE range and they avoid that the next database, which is requested and needs to be started therfore cannot be "reached" from ESSBASE agent process. Another problem of "freezing" like I called it all the years is that there are agent intensive operations like renaming an application which can freeze the login process or reaction of the agent.
I usally do a tail -f Essbase.log to see if the agent is reacting or not.
But to make it clear, the portrange scan was our solution.
knightrich

Similar Messages

  • ADF app hangs when accessing through browser

    Hello ADF/Weblogic friends,
    When I try to access the ADF app, it says loading... for ever, which was deployed successfully in WebLogic. I do not see any visible errors in the log. Verified the DB connection which was deployed is working. Also created the datasource for the same db/jndi name in the server level.
    The same app works through JDeveloper(11.1.1.4.0)
    Configuration details are "WebLogic Server Version: 10.3.4.0", "Oracle Enterprise Manager - Fusion Middleware Control 11.1.1.3.0".
    Would be helpful if somebody sheds light on this issue.
    thanks

    Thank you for your reply... sorry for not replying earlier... i had given up hopes : )
    You are right about psadmin binary not being in psconsole.war.. maybe since it is portal server 6, it is some other executable.
    When i asked the person who had given me the setup about psconsole not being available, he said that psconsole was working on his machine. He is not a technical guy and had not installed SJS 6 by himself. So he could not help me with this problem. It could be that the the psconsole.war file was missing from the installation.
    I searched for the war files in both the installed directory as well as in the setup files and could not find it. : (
    Anyway, i un-installed SJS 6 2004Q2 using the setup.exe (in windows) and while uninstalling it showed a window saying "psonsole was not found while accessing through the browser. Retry| Ignore| Exit". Also, the un-installation successfully removed all the services required for starting components like directory server, web server, calender server, (cacao also), etc...
    I've downloaded Portal server 7.2. Let's see how that turns out... Thanks anyways...

  • Java Swing App hangs on socket loop

    H}ello everyone i've run into a bit of a snag with my application, its a simple chat bot right now but will evolve into a chat client soon. I can't do that however since my app hangs when i look through the readLine() function to receive data and i dont know how to fix this error. The code is below.
    The doSocket() function is where the while loop is if anyone can help me with this i'd be very greatful.
    * GuiFrame.java
    * Created on August 13, 2008, 9:36 PM
    import java.net.*;
    import java.io.*;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    * @author  brian
    public class GuiFrame extends javax.swing.JFrame {
        /** Creates new form GuiFrame */
        public GuiFrame() {
            initComponents();
        Socket client_sock = null;
        PrintWriter out = null;
        BufferedReader in = null;
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            convertButton = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Test Bot");
            convertButton.setText("Connect");
            convertButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    convertButtonActionPerformed(evt);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(41, 41, 41)
                    .addComponent(convertButton)
                    .addContainerGap(42, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addComponent(convertButton)
                    .addContainerGap(26, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
    private void convertButtonActionPerformed(java.awt.event.ActionEvent evt) {                                             
        if (convertButton.getText()=="Connect") {
                    String old;
                    try {
                        client_sock = new Socket("www.spinchat.com", 3001);
                        out = new PrintWriter(client_sock.getOutputStream(), true);
                        in = new BufferedReader(new InputStreamReader(client_sock.getInputStream()));
                    } catch (UnknownHostException e) {
                    } catch (IOException e) {
                try {
                    doSocket();
                } catch (IOException ex) {
                    Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
        } else if (convertButton.getText()=="Disconnect") {
            out.println("e");
            out.close();
            try {
                client_sock.close();
                in.close();
            } catch (IOException ex) {
                Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
    private void doSocket() throws IOException {
        BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
        String userInput;
        String old;
            while ((userInput = stdIn.readLine()) != null) {
                old = userInput;
                if (userInput != old) {
                    String proto = userInput.substring(0, 0);
                    if (proto == ":") {
                        out.println("{2");
                        out.println("BI'm a bot.");
                        out.println("aNICKHERE");
                        out.println("bPASSHERE");
                    } else if (proto == "a") {
                        convertButton.setText("Disconnect");
                        out.println("JoinCHannel");
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new GuiFrame().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JButton convertButton;
        // End of variables declaration                  
    }Edited by: briansykes on Aug 13, 2008 9:55 PM
    Edited by: briansykes on Aug 13, 2008 9:56 PM

    >
    ..i've run into a bit of a snag with my application, its a simple chat bot right now but will evolve into a chat client soon. >Is this intended as a GUId app? If so, I would stick to using a GUI for input, rather than reading from the command line (which when I run it, is the DOS window that jumps up in the BG - quite counterintuitive). On the other hand, if it is intended as a non-GUId or headless app., it might be better to avoid any use of JComponents at all.
    My edits stick to using a GUI.
    Other notes:
    - String comparison should be done as
    s1.equals(s2)..rather than..
    s1 == s2- Never [swallow exceptions|http://pscode.org/javafaq.html#stacktrace] in code that does not work.
    - Some basic debugging skills are well called for here, to find where the program is getting stuck. When in doubt, print out!
    - What made you think that
    a) a test of equality on a member against which you had just set the value to the comparator, would logically lead to 'false'?
    old = userInput;
    if (userInput != old) ..b) A substring from indices '0 thru 0' would provide 1 character?
    String proto = userInput.substring(0, 0);
    if (proto == ":") ..
    >
    ..if anyone can help me with this i'd be very greatful.>Gratitude is often best expressed through the offering of [Duke Stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview].
    * GuiFrame.java
    * Created on August 13, 2008, 9:36 PM
    import java.net.*;
    import java.io.*;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    * @author  brian
    public class GuiFrame extends JFrame {
        /** Creates new form GuiFrame */
        public GuiFrame() {
            initComponents();
        Socket client_sock = null;
        PrintWriter out = null;
        BufferedReader in = null;
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            convertButton = new JButton();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Test Bot");
            convertButton.setText("Connect");
            convertButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    convertButtonActionPerformed(evt);
            GroupLayout layout = new GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(41, 41, 41)
                    .addComponent(convertButton)
                    .addContainerGap(42, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addComponent(convertButton)
                    .addContainerGap(26, Short.MAX_VALUE))
            pack();
            setLocationByPlatform(true);
        }// </editor-fold>
    private void convertButtonActionPerformed(java.awt.event.ActionEvent evt) {
        if (convertButton.getText()=="Connect") {
                    String old;
                    try {
                        System.out.println( "Connect start.." );
                        client_sock = new Socket("www.spinchat.com", 3001);
                        out = new PrintWriter(client_sock.getOutputStream(), true);
                        in = new BufferedReader(new InputStreamReader(client_sock.getInputStream()));
                        System.out.println( "Connect end.." );
                    } catch (UnknownHostException e) {
                        e.printStackTrace();
                    } catch (IOException e) {
                        e.printStackTrace();
                try {
                    doSocket();
                } catch (IOException ex) {
                    Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
        } else if (convertButton.getText()=="Disconnect") {
            out.println("e");
            out.close();
            try {
                client_sock.close();
                in.close();
            } catch (IOException ex) {
                Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
        private void doSocket() throws IOException {
            System.out.println( "doSocket start.." );
            String userInput;
            String old;
            userInput = JOptionPane.showInputDialog(this, "Send..");
            while(userInput!=null && userInput.trim().length()>0) {
                System.out.println( "doSocket loop 1.." );
                String proto = userInput.substring(0, 1);
                System.out.println("proto: '" + proto + "'");
                if (proto.equals(":")) {
                    System.out.println("Sending data..");
                    out.println("{2");
                    out.println("BI'm a bot.");
                    out.println("aNICKHERE");
                    out.println("bPASSHERE");
                } else if (proto.equals("a")) {
                    convertButton.setText("Disconnect");
                    out.println("JoinCHannel");
                userInput = JOptionPane.showInputDialog(this, "Send..");
            System.out.println( "doSocket end.." );
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new GuiFrame().setVisible(true);
        // Variables declaration - do not modify
        private JButton convertButton;
        // End of variables declaration
    }

  • 10.6 -- All Office 2008 apps hang at splash screen. FontCache Tool runaway

    Did an upgrade of 10.5 to 10.6. Nearly everything works fine. Can't launch Office 2008. All apps hang at their splash screen; usually at Optimizing Font Menu Performance.
    Once an app is opened, in Activity viewer you'll find a process called FontCache Tool using >90% of the CPU (on my Core Duo MBP at least, YMMV). I suppose it's saying a lot about 10.6 that the computer is completely usable with that runaway process. Even after forcing the office app(s) to quit, Font Cache Tool stays running until it's killed manually.
    I have yet to find out if FontCache Tool is an Apple or MS process. I think it's microsoft.
    This happens under multiple users.
    This happens after reinstalling Office.
    This was an Office 2008 upgrade from Office 2004.
    After reinstall, and installing Rosetta, office 2004 will run, but office 2008 will not.
    Office 2008 is 12.2.1.
    I am running FontAgent Pro for font management, and so font book sees certain activated fonts as duplicates. (Validate fonts shows duplicate warnings but no errors). FontAgent Pro 4.0.3 is listed as Snow Leopard compatible. So is Office 2008.
    I have yet to do a clean SL install, which I'm guessing will fix it, but I'm curious if there is a sub-sledgehammer approach, or if I am the only person with this issue.
    Other probably irrelevant facts include that the computer is bound to both Active Directory and OS X OpenDirectory servers. Open Directory is running on Leopard 10.5 Server. It does have some managed preferences, including those for Office (e.g. to set default to .doc rather than .docx) but the situation persists even after removing those managed preferences.
    Normally really specific problems are easy to isolate and solve, but I'm at a loss.
    Any help appreciated
    keppie

    Hey i think i figured it out.
    Had the same prob. 10.6 12.2.1 entourage hanging.
    Renamed FCT, instantly prompted that a font was corrupt. Removed the corrupt Font: KufiStandardGK.ttf << this just happened to be my one corrupt font.
    A little troubleshooting i did leading up to this, I read your post and my situation was the same. I use Linotype X to manage fonts. I disabled all but the minimum fonts (i moved them into a folder font_trouble in the same folder)
    I also deleted every office pref/plist setting i thought relevant to startup which triggered the microsoft setup assistant (watched via the console app) and it ran through its check and then immediately the fontcachetool started and went awol on cpu time. Once i killed it--during the starting up of word and entourage... timing may be unrelated but i did them at nearly the same time.
    Ps. Your post was extremely well written and I apologize for my stream of consciousness, less than stelllar response... hope this helps if not feel free to ping me for more details on what I did...
    Good Luck.. All my office apps are running normally now.

  • Apps hang at splash screen and lock computer

    I have tried to install indd and ai and both crash and lock the computer when I try and run them. The apps get as far as the spas screen then freeze.
    Creative cloud
    Macpro 10.7.5

    Hey i think i figured it out.
    Had the same prob. 10.6 12.2.1 entourage hanging.
    Renamed FCT, instantly prompted that a font was corrupt. Removed the corrupt Font: KufiStandardGK.ttf << this just happened to be my one corrupt font.
    A little troubleshooting i did leading up to this, I read your post and my situation was the same. I use Linotype X to manage fonts. I disabled all but the minimum fonts (i moved them into a folder font_trouble in the same folder)
    I also deleted every office pref/plist setting i thought relevant to startup which triggered the microsoft setup assistant (watched via the console app) and it ran through its check and then immediately the fontcachetool started and went awol on cpu time. Once i killed it--during the starting up of word and entourage... timing may be unrelated but i did them at nearly the same time.
    Ps. Your post was extremely well written and I apologize for my stream of consciousness, less than stelllar response... hope this helps if not feel free to ping me for more details on what I did...
    Good Luck.. All my office apps are running normally now.

  • Bug in Mail.app preventing from retrieving mail

    Found a bug today when using Mail.app:
    What happened:
    - I setup my IMAP account onto Mail
    - Synchronized Mail with my IMAP account by clicking 'Get Mail'
    -> I could get all my mails, but any other click on 'Get Mail' ended up with doing nothing. Even the 'Check for new mail every x minute' checked, I was never getting new mails. The only way to retrieve my mails was to quit Mail.app and run it again or Go offline in the App and then click 'Get Mail'
    Did some investigations and here's what I found:
    - Displayed the Activity Viewer at startup
    - I saw that the app was connecting to the server, then getting mail, then doing some caching over my attachments in existing mails. While the task running on attachment was not finished I was able to click 'Get Mail' and see a task for it.
    - Once the task for attachment was finished, 'Get Mail' stopped working and no new task appeared in the activity viewer each time I clicked the button
    - Quit Mail.app and ran it through terminal.
    - When caching the attachments, I saw an exception about an absurd size in one of the attachments and some lock issues (sorry didn't copy the exception at that time)
    - Sorted my mail by attachment and looked for a mail for an attachment with a strange size.
    - While I did not saw anything weird in the sizes, when I went over one of the mails, got again the exception in the terminal.
    - Deleted the mail, restarted Mail.app
    -> And everything started working fine
    Conclusion:
    - Either a bug in the Mail.app code or a faulty attachment can create a lock between threads, preventing then a normal functioning of the application... (sorry I did not kept the attachment)

    It's not related to a third party app. I don't have any.  The tech was able to pinpoint the folder in the Library/Mail/V2/Mailboxes
    He said they have had reports of this bug and he went directly there. So they must be aware of it.

  • Mail app hangs on ios5 and gmail account

    The Mail app hangs several times per day. I have one gmail account. The diag. files says something like "com.apple.mobilemail failed to resume in time" or "Power assertion timeout for MailPendingChanges"

    This connectivity issue between my Apple Mail through CLEAR as ISP to Godaddy's pop.secureserver.net is just getting weirder. Now my 9 boxes spin out (when upload is testing at .07 mbps and also at .54 mbps) but partner's 4 emails on iMac using same settings through same network is fine...was glitched a while ago too though. Then partner's emails all do same thing, and hers and my Gmail accounts check fine. SO, Helllloooo Godaddy, if Gmail checks fine but your pop.secureserver.net does not, maybe it IS a problem on your end? Of course, getting Godaddy to ADMIT THEY HAVE A PROBLEM would be a miracle.
    Still zero reply or help from either Godaddy or Clear, no resolution from either, still pitching blame at each other.

  • App to Edit Microsoft word, excel

    Hi their,
    I want a great app to edit Microsoft word & excel files. If possible it should also be able to retrieve files from my email attachments that i receive or send. I really need an app as I already have the iPhone with other brilliant apps, but still lack this feature. I am also doing this for my father who is looking for ward to buy the iPhone instead of other business devices.
    Please do answer me..............

    QuickOffice's MobileFiles Pro was released last week, which currently allows editing of excel spreadsheets, word doc editing is coming in a future update (I don't know when exactly). It also allows viewing of all the usual office, iwork, PDF, image files etc. as well as playback of audio/video files. You can access your MobileMe iDisk with the app, and download files to the iPhone's local storage, as well as uploading xls files you have created/edited locally with the app. If you don't use MobileMe, the app has the ability of transferring files over your wifi network.
    I've got it and highly recommend it. What it does, it does very well, however there are features I'd like to see added, like cut/copy/paste of cells, ability to email files as attachments, fast-scrolling/bookmarking in large PDFs/docs, word doc & ppt file editing/creation.
    QuickOffice have been in the game for a long time with native apps on Palm, Windows Mobile, Symbian & BlackBerry, so I'd expect the app to get better and better over time.
    Here's the link to the app:
    http://linktoapp.com/mobilefiles+pro
    And info on their website:
    http://www.quickoffice.com/mobilefiles
    And the quickoffice forums, for other opionions/feedback:
    http://forums.quickoffice.com

  • Looking for a free iOS 4 app that can search through .pdf files or spreadsheets

    Looking for a free iOS 4 app that can search through .pdf files or spreadsheet    
    Thanks

    Hey there
    "pdf creator" for iPad works flawlessly for me working with pdf files
    It takes care of all my needs
    I'm not sure about sending via Wifi or Bluetooth but I send them via e- mail all the time
    Possibly it could handle your needs as well
    Just type it into the App Store search field and the first one that comes up is the one I use
    Jump on over there and read up on it before buying and see if it will help you 
    Hope this helps
    Regards

  • Database hangs after retrieving some records....

    hi,
    I create a two level B+-tree index, for the first level i'm using key as logical database name, for the second level B+-tree i'm using some other field in my data. I am retrieving the records based on logical database name. I am using C++ to implement my index.
    In the following code i'm retrieving records from database. Program is behaving differently for different logical database names. For example in my database i have around 4 lakhs records with logical database name 'A' and around 1 lakh of records with logical database name 'B'. The following code displays all B records but programs hangs after retrieving some A records.
    I'm using PAGE_SIZE=8192, numBuffers=2048, and runnig in Fedora Core3.
    DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                   myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
              catch (DbException &e) {
                   cerr << "Exception occurred: " << e.what() << endl;
                   exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
         db->open(NULL,
                   "treedb.db",
                   dbname,
                   DB_BTREE,
                   0,
                   0);
         catch(DbException &e)
              cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end : "<<r<<"\t";
              cout<<"level : "<<s<<"\n";
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
              cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);

    HI Andrei,
    thank you for giving reply, I'm not using any secondary indecies, subdatabases and not using any threads.
    the following code displays index...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char dbname[500],filename[500],str [500];
         tuple t;
         Db *db;
         Dbt key,data;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         try {
                myEnv.open("/home/raviov/Desktop/example", DB_CREATE | DB_INIT_MPOOL, 0);
           catch (DbException &e) {
                  cerr << "Exception occurred: " << e.what() << endl;
                  exit(1);
         for(n=0;n<=84;n++)
              db = new Db(&myEnv, 0);     // Instantiate the Db object
                    db->set_bt_compare(compare_int);
               db->set_pagesize(PAGE_SIZE);
              strcpy(filename,"/home/raviov/Desktop/GTCReport/code/sequence/splitter/tree/");
              strcat(filename,itoa(n));
              fp=fopen(filename,"r");
              if(fp==NULL)
                   cout<<"error in opening the file";
                   exit(0);
              while(fgets (str , 500 , fp)!=NULL)
                   sscanf(str,"%d(%d,%d,%d,%d)",&i,&j,&k,&l,&m);
                   key=new Dbt(&i,sizeof(int));
                   if(total==0)
                        strcpy(dbname,itoa(j));
                   t.startPos=k;
                   t.endPos=l;
                   t.level=m;
                   data=new Dbt(&t,sizeof(t));     
                   if(total==0)
                        try
                             db->open(NULL,
                             "tree.db",
                                       dbname,
                              DB_BTREE,
                                DB_CREATE,
                                0);
                        catch(DbException &e)
                               cerr << "Failed to create DB object" << endl;
                             exit(1);
                        total=99;
                   int ret=db->put(NULL,key,data,DB_NOOVERWRITE);
                   if(ret==DB_KEYEXIST)
                        cout<<"key already exist\n";
                        exit(1);
                   delete key;
                   delete data;
              total=0;
              fclose(fp);
              try
                   db->close(0);
              catch(DbException &e)
                     cerr << "Failed to close DB object" << endl;
                   exit(1);
         myEnv.close(0);
    }The following code retrieves the records from database that we had built above...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char *dbname;
         char filename[200],str [100];
         tuple t;
         Db *db;
         Dbt key,data;
         Dbc *cursorp=NULL;
         int ret,x=4;
         char *ravi;
         int p=84763;
         int y=2134872;
         int r,s,q,count=0;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                      myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
               catch (DbException &e) {
                      cerr << "Exception occurred: " << e.what() << endl;
                      exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
              db->open(NULL,
                    "tree.db",
                     dbname,
                     DB_BTREE,
                     0,
                     0);
         catch(DbException &e)
                cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position   : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end   : "<<r<<"\t";
              cout<<"level   : "<<s<<"\n";
              delete key;
              delete data;
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
                cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);     
    }

  • Corruption in text files retrieved through Adobe Drive on Mac

    I am running an OpenCMIS based CMIS server on Mac. When viewing text files retrieved from the CMIS repository through Adobe Drive, there is nontextual content appearing at the end of the file. XCode, for example, ends up displaying this content as a variable number of '¿' characters. This is not just a visual problem as file comparisons between a file retrieved through Adobe Drive and the same file retrieved through other means detect the files as being different.
    This is only happening with text files. Binary comparison of nontext files retrieved through Adobe Drive and files retrieved through other means detect the files identical.
    This only occurs when the CMIS server is running on a Mac and Adobe Drive is running on a Mac. Adove Drive running on a Windows machine and connecting to this same CMIS server does not have this problem and vice versa.
    This problem does not occur if I retrieve files through other CMIS clients.
    Any help/resolution you could offer on this issue would be appreciated.

    Having same issue. Using Indesign CC 2014.2 update, OS X 10.10.3 and any server using a smb, afp, or cifs connection.

  • Using a radio app to Airplay music through my Apple TV. Works, but after some minutes, the Airplay audio output setting switches back to iPad. Why? Solution?

    I want to use a FM radio app to Airplay music through my Apple TV (by using the synchronizing function). Works, but after some minutes, the Airplay audio output setting switches back to iPad. Why? Solution?
    Why don't use iTunes? Because this just needs to many handling in order to get it where i want it (in general, this whole idea of doing everything online just works likes... ). An app is easier (that's why it is invented).

    Hey AKfishgirl,
    Thanks for the question. The common variable here is your Wi-Fi router. Let’s check to see if the commonly used ports are being blocked by a firewall on your router:
    Apple TV: TCP and UDP ports and protocols used
    http://support.apple.com/kb/HT2463
    Well known TCP and UDP ports used by Apple software products
    http://support.apple.com/kb/HT6175
    Thanks,
    Matt M.

  • Watchespn app will not play through the apple composite a/v cable. All others apps will do so.

    Watchespn app will not play through apple composite a/v  cable, but all other apps will do so.

    * should read did not want to visit a store etc

  • Can ipod touch 4G output apps to a tv through hdmi?

    Can ipod touch 4G output apps to a tv through hdmi?

    Not that I am aware.  First the app would have to support this and second there would have to be an hdmi cable made for this.  You can look in the Apple store to see, but I am not sure that there is such a cable.

  • Why can't i access my Apps that I downloaded through iTunes. I believe I'm doing something wrong and not that the issue is iTunes itself

    Occasionally ill try downloading an App through my Macbook Pro 13.5 & it directs me to iTunes to be downloaded. So, I go to iTunes and download the App I need. For instance, Amazon. I go into 'My Apps' in iTunes and try clicking on one of my DL Apps, but nothing happens. Why can't I access the Apps, which I downloaded through iTunes.?I believe I'm doing something wrong and not that the issue is iTunes itself.  I have OS X Yosemite 10.10.1. I am due for an upgrade from that software and also an upgrade for iTunes as well, but that shouldn't be the problem. I've tried everything on my end to troubleshoot. I don't really have the time during the day to call in and troubleshoot, so thats why I'm asking the community. Please help with this problem if anyone can. Thank You!

    Once you download an iOS app, you cannot run that app from the computer. That can only be run from an iOS device. You cannot download Mac Apps from the iTunes App Store, those are downloaded from the Mac App Store. Two different places. If you want a Mac app that will run on your Mac, you need to download that from the Mac App Store. iTunes App Store only has iOS apps that work on iOS devices, iPhone, iPad, or iPod.

Maybe you are looking for