Local references for the last time..:-)

I'm getting NUTS with this...please is it possible determine in Visual C++ which local references in JNI are not deleted????

You have given me no solution understandable to a non geek. I will just go to Internet explorer and try my luck.

Similar Messages

  • For the last time. What's wrong in these code ? please let your opnion.

    I can'nt get the data from the list in <c:forEach> tag, are you able to see the possible error?though the jsp page is returned, it is all in blank.
    the codes are these:
    -my conecction and where i get my list
    package teste;
    public class Data {
        Connection con;
        Detalhes detalhes;
        int codigo;
        ArrayList  list;
        public Data()throws Exception {       
            try {
                Class.forName("org.gjt.mm.mysql.Driver");
                con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/Loja?user=root&password=131283");            
            } catch (Exception ex) {
                throw new Exception(" Database not found!!" +
                    ex.getMessage());
        public void remove() {
            try {
                con.close();
            } catch (SQLException ex) {
                System.out.println(ex.getMessage());
        public void setCodigo(int codigo){
            this.codigo = codigo;
        public Detalhes getDetalhes(){
            try {
                String selectStatement = "select * from produto where codigo="+codigo;
                PreparedStatement prepStmt = con.prepareStatement(selectStatement);
                ResultSet rs = prepStmt.executeQuery();
                while(rs.next())
                     detalhes = new Detalhes(rs.getString(1), rs.getString(2), rs.getDouble(3), rs.getInt(4));          
                prepStmt.close();
            }catch(Exception e){
           return detalhes;
        public ArrayList getList(){
            try {
                list = new ArrayList();
                String selectStatement = "select * from produto";
                PreparedStatement prepStmt = con.prepareStatement(selectStatement);
                ResultSet rs = prepStmt.executeQuery();
                while(rs.next()){
                     detalhes = new Detalhes(rs.getString(1), rs.getString(2), rs.getDouble(3), rs.getInt(4));          
                     list.add(detalhes);
                prepStmt.close();
                Collections.sort(list);
            }catch(Exception e){
                System.out.println(e.getMessage());
            return list;
    }    - the object where i store and show the data through the methods
    package teste;
    public class Detalhes {
        private String titulo;
        private String autor;
        private Double preco;
        private int codigo;
        public Detalhes(String titulo, String autor, Double preco, int codigo) {
            this.titulo = titulo;
            this.autor = autor;
            this.preco = preco;
            this.codigo = codigo;       
        public String getTitulo(){
            return titulo;
        public String getAutor(){
            return autor;
        public Double getPreco(){
            return preco;
        public int getCodigo(){
            return codigo;
    }-my inicial context class
    package teste;
    import javax.servlet.*;
    public final class ContextPage implements ServletContextListener {
        private ServletContext context = null;
        NewClass bookDB;
        public void contextInitialized(ServletContextEvent event) {
            context = event.getServletContext();
            try {
                bookDB = new NewClass();
                context.setAttribute("bookDB", bookDB);
            } catch (Exception ex) {
                System.out.println("Couldn't create bookstore database bean: " +
                    ex.getMessage());
        public void contextDestroyed(ServletContextEvent event) {
            context = event.getServletContext();
            NewClass dados = (NewClass) context.getAttribute("bookDB");
            if (dados != null) {
                dados.remove();
            context.removeAttribute("bookDB");              
    }- my jsp page
    <p><b><h1>Resultado:</h1></b></p><br>
    <jsp:useBean id="dataSource" class="teste.Data" scope="page" >
           <jsp:setProperty name="dataSource" property="codigo" value="${param.theCode}"/>          
    </jsp:useBean>
    <c:forEach var="book" items="${dataSource.list}">
        <p><b><h1><font color="red">${book.titulo}<h1></b></p>        
        <p><b><h1><font color="red">${book.autor}<h1></b></p>        
        <p><b><h1><font color="red">${book.preco}<h1></b></p>        
        <p><b><h1><font color="red">${book.codigo}<h1></b></p>        
    </c:forEach>
    <c:out value=${bookList}/>

    First of all: Don't try to force a response by using a subject "For the last time ..."
    Independent of your original problem
    There are a lot of things which are not correct in your code.
    // i would never use the user root to access a database :-(
    con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/Loja?user=root&password=131283");
    public Detalhes getDetalhes(){
            PreparedStatement prepStmt = null;
            ResultSet rs = null;
            try {
                // use place holders when working with prepared statements
                //  String selectStatement = "select * from produto where codigo="+codigo;
                 String selectStatement = "select * from produto where codigo= ?" ;
                PreparedStatement prepStmt = con.prepareStatement(selectStatement);
                prepStmt.setInt(1,codio);
                rs = prepStmt.executeQuery();
                while(rs.next())
                     // use colomn names rather than indices
                     detalhes = new Detalhes(rs.getString(1), rs.getString(2), rs.getDouble(3), rs.getInt(4));
                rs.close();
                rs = null;
                prepStmt.close();
                prepStmt = null;
            // don't catch Exception
            }catch(SQLException sqle){
                // try and forget - is allways very useful
                Logger.getLogger(this.class.getName()).log(Level.SERVE, sqle.getMessage(), sqle);
            } finally {
               // close prepared statements and result sets within finally blocks
               if (rs != null) {
                  try {
                     rs.close();
                  } catch (SqlException sqle) {
                     Logger.getLogger(this.class.getName()).log(Level.FINEST , sqle.getMessage(), sqle) ;
               if (prepStmt != null) {
                  try {
                       prepStmt.close();
                  } catch (SQLException sqle) {
                      Logger.getLogger(this.class.getName()).log(Level.FINEST , sqle.getMessage(), sqle) ;
           return detalhes;
    public final class ContextPage implements ServletContextListener {
        // don't use a member field here the context is passed within the event.
        private ServletContext context = null;
        // makes no sense to save it as member field.
        // what's NewClass ?
        NewClass bookDB;
        public void contextInitialized(ServletContextEvent event) {
            context = event.getServletContext();
            try {
                bookDB = new NewClass();
                context.setAttribute("bookDB", bookDB);
            } catch (Exception ex) {
                System.out.println("Couldn't create bookstore database bean: " +
                    ex.getMessage());
        public void contextDestroyed(ServletContextEvent event) {
            context = event.getServletContext();
            NewClass dados = (NewClass) context.getAttribute("bookDB");
            if (dados != null) {
                dados.remove();
            context.removeAttribute("bookDB");              
    <%-- I don't see where a bean with id dataSource and scope page is set
             if the bean does not exist a new bean will be created
             nobody ever calls the remove method of your Data bean
             what's param.theCode ?
    --%>
    <jsp:useBean id="dataSource" class="teste.Data" scope="page" >
           <jsp:setProperty name="dataSource" property="codigo"
    value="${param.theCode}"/>          
    </jsp:useBean>
    }So now you've got a lot of work.
    If you have fixed all the problems I've told you and you have still problems you can come
    back and ask additional questions.
    andi

  • Date when the cube was filled with data for the last time

    Hi!
    We are using a SAP BW System and on top of it BOBJ for reporting. Within BEx Web Application Designer, it's very simple to access the data, when the cube was filled with data for the last time. Is it possible to access this information within BOBJ, too?
    Thanks for your help!
    Greetings
    Stefan

    Hallo Ingo,
    thanks for your answer. That was exactly what we were looking for.
    We will have to think about a workaround now.
    Greetings
    Stefan

  • Project Managers to know when a task has been updated for the last time

    Hi,
    I would like know if there is any timestamp feature in Project Server 2007, so that it can be possible for Project Managers to know when a task has been updated for the last time.
    Thanks in advance

    Hi,
    If you are using the My Tasks to drive the task updates then you can use the 'Applied Requests and Errors' available under 'Go To' in the Task Updates area. Here the PM can find when requests have been approved and how many updates he/she received for a
    particular task (by clicking the task name) etc.
    Hope this helps
    Paul

  • Can't change DVD region for the last time?

    I wish to change the DVD region setting on my emac and have one more left from the 5 changes allowed but when I try to change it, it comes up with an alert along the lines of "There was a problem changing the region on your drive." How can I resolve this? It is a newish 1.25ghz Superdrive model.
    PS. Someone commented here that perhaps the count of how many changes have occurred is incorrect? If so, how can I fix that? http://discussions.apple.com/thread.jspa?messageID=2279627&#2279627
    Also, the error doesn't seem to suggest I need to use a single-region DVD to set the new region as per here: http://docs.info.apple.com/article.html?artnum=31304

    I also am having this problem, was told to restart and hold down Alt Apple, P & R at the same time and wait for 3 dongs, and try to change region again, but did not work, I am stuck on region 1 need to change to region 2, the same problem it will be the last change.

  • ACDSee has failed me for the last time.  What is a good image viewer?

    Hi Photo gurus,
    I've been using ACDSee for years. But I'm getting increasingly tired of it because it crashes often and seems to hang a lot. I'm curious to know what you people use as an image sorter, contact sheet maker and quick viewer? I'd prefer a stand alone program instead of bridge, because I need a cost effective solution.
    Thanks,
    Stan

    Hmmm, "hatred:
    i ...intense dislike or extreme aversion..."
    does indeed describe my feelings toward the entity that is MS. After an MBA that hopefully imparted an awareness of the right and wrong ways to compete, I have lived a lifetime watching MS's anti-competitive behavior impact the tech world. The US Supreme Court (effectively negated by actions of the GW Bush Administration) and the EEU both also sanctioned against MS for the illegal anti-competitive practices that MS made a successful business model of.
    Insofar as is feasible, I choose not to do business with the Enrons and the Microsofts of the world.
    And I also simply
    i dislike
    the OS, even though the nature of my work forces me to deal with it daily.

  • My icloud eMail got updated on 06/11 for the last time.

    Since then I am getting the "cannot get mail connection to the server failed" message on my ipad. Apples support site is not too helpful. Went throught the suggested steps numerous times. Tried different wireless networks with same result. Same issue with MacBook. Cannot access my emails.

    This may help-->  http://support.apple.com/kb/HT1495

  • For the last time, how do I get rid of Facemoods? I hate it!

    There is a facemoods bar that is so distracting that I cannot do a search for anything else. I am ready to leave Firefox. I see from a search for a solution that I am not the only user who is disgusted with facemoods. It is juvenile and irritating.

    You have given me no solution understandable to a non geek. I will just go to Internet explorer and try my luck.

  • My Time Capsule has stopped backing up.  I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message: "The backup was not performed because an error occurred while copying files to the backup disk.

    My Time Capsule has stopped backing up.
    I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message:
    "The backup was not performed because an error occurred while copying files to the backup disk."
    I have gone into Mac Help and followed this down to stage 4:
    under shared it lists my time capsule and my husband's iMac - both use the time machine but we have switched his off temporarily.  Clicking on my Time capsule I get "Connected" and "Sharepoint" - I didn't have to enter connect or password
    I don't understand stage 5: how and where do I select the disk or volume that contains Time Machine backups ?  How do I know which it is? My disk utility lists 160.04 TOSHIBA MK... with sub-heading Macintosh HD.  It also lists (with a "CD" icon) HL-DT-ST DVDRW GS22N
    Under stage 6, how and where do I Locate your backup ? I try dragging my Time capsule from Finder to the Disk Utility side panel but it won't go.  What is my computer's name?
    Please someone help!  I'm completely stumped.
    Thanks,
    Maggie
    Mac Help says:
    If you back up to a Time Capsule or network disk:
    Open the Time Machine pane of System Preferences, and slide the switch to Off.
    Open Time Machine preferences
    Open Disk Utility, which is in the Utilities folder in the Applications folder. 
    Open Disk Utility
    Make sure the Time Capsule or network disk is turned on and available. 
    Open a Finder window, select your Time Capsule or network disk in the Shared section of the sidebar, and click Connect. If necessary, enter your user name and password. 
    On the Time Capsule or network disk, select the disk or volume that contains Time Machine backups. Depending on how your Time Capsule is set up, there may be one or more disks or volumes. 
    Locate your backup, and drag it to the Disk Utility sidebar.You can identify your backup by looking for your computer’s name in the backup’s filename.

    Hello,
    Thanks to the great Pondini...
    http://pondini.org/TM/C3.html

  • HT5796 I restored my phone after resetting all settings for an international unlock.  I had backed up everything under Gail-PC as the device name Itunes.  After I restored the device and went to sync my phone it now says the last time i backed it up was M

    I had Sprint unlock my phone for international use.  I backed up my phone to Gail-PC on Itunes and then reset the iphone 4S.  When i went to resync the phone after the reset my computer now says the last time it was backed up was March 2013.  I backed it up prior to and had no computer error.  Now it shows the divice Gail-PC no longer exists in Itunes and only Gail's Iphone shows up.  I upgraded to IOS 7 recently, I don't know if this could be an issue.  Help what do I do know? I have lost all my messages and data from the last year.  This computer does not have a backup.  I only have 5 Gb space on Icloud so the Imessages did not get saved there.  Is there any help for me now?

    Thanks for the reply!  Yeah that's pretty much what I figured.... I just find it upsetting that it didn't tell me the reset had anything to do with backing up data and made it sound like it would save everything on my phone regardless.  Thanks again for your response

  • I have a new Macbook Air and for the last few days the fan had run continuously, this is the first time it has ever run, and now it won't stop, the fan starts up as soon as I turn it on. The computer is not hot.Any ideas on how I can fix this please ?

    I have a new Macbook Air, 6 months old, and for the last few days the fan had run continuously, this is the first time it has ever run, and now it won't stop, the fan starts up as soon as I turn it on and the computer seems to running more slowy.The computer is not hot but I am worried it may burn out,.Any ideas on how I can fix this please ?

    Hello dwb,
    Here is the screen shot, just the top half, there are another 10 pages, but I guess this should enough for you to have an idea of waht is going on, bit small I am afraid. No, I don't have any apps setup to run when I open my computer, the kernel, varies between 290 and 305 per cent ish.
    Would that PRAM thing help ? I think it may be the computer itself, well something inside, as this the first time that the fan has ever started running since I have this computer, even when I have 3 or 4 apps running.
    Thank you again for your advice,
    Regard,
    Beauty of Bath

  • Back up iPhoto 08' for the first time (different than last time I did it)

    The last time I backed up my photo library was before I got iPhoto 08'. I know I should have done it a long time ago and backed things up at least once a week but I kinda got busy. Since my last backup I have also upgraded to Leopard, which yes I did back up my hard drive when I did that, but I also had the advantage of having an IT person personally helping me.
    Today when I went to back up my library things were different. Rather than the old "iPhoto Library" folder that use to be in the pictures section, I just see a single file named "iPhoto Library" and when I click it, it launches iPhoto.
    So my question is how do I back up my library now, and what ever happened to the "Original" and "Modified" folders? What I would really like to do is save my current library on an external with everything intact. Events, Albums, the order I added them in, etc. I want to clear iPhoto out completely and then re-import my current library.
    I should probably mention that on the external hard drive right now is a back up of my old library from before my upgrade to Leopard and it still has the old setup of the iphoto folder and then inside that is the "Original" and "Modified" folders. How should I handle this, just delete it?

    With iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    Want to see inside? Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look familiar? Standard Warning: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    What I would really like to do is save my current library on an external with everything intact. Events, Albums, the order I added them in
    Simply copy the iPhoto Library from the Pictures Folder to the External. That's it.
    I want to clear iPhoto out completely and then re-import my current library.
    I'm afraid that doesn't make a lot of sense to me. If you back up a library then trash it, then restore the selfsame library, how does that constitute a “clear out”?
    I would delete nothing until I had the Maintenance project finished.
    As an Fyi
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • I have been working on the same numbers file for the past few weeks.  The last time I opened it was 1 week ago.  Today when I tried to open it I am unable and getting a message that the file is invalid and the index.xml file is missing.

    I have been working on the same numbers file for the past few weeks.  The last time I opened it was 1 week ago.  Today when I tried to open it I am unable and getting a message that the file is invalid and the index.xml file is missing. 

    Hi Tracie,
    I upgraded to Maverick OS X 10.9.5, numbers spreadsheet is saved. Upon re-opening, it appears to be frozen, a warning "file is invalid as index.xml file is missing". I checked, and the file is not "locked". This appears to occur only with using the new numbers app. When I open previous spreadsheets from old iWorks, no such problem occurs.
    How did you resolve your problem?
    Would appreciate any help here.
    Thanks,
    Deehay

  • For the last year, I have to refresh my browser to load certain normal pages...IE opens them, but not Firefox. I also have extreme difficulties loading video from sites including YouTube, Yahoo, etc. I open them in IE just fine. I update all the time.

    For the last year, I have to refresh my browser to load certain normal pages...IE opens them, but not Firefox. I also have extreme difficulties loading video from sites including YouTube, Yahoo, etc. I open them in IE just fine. I update all the time.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"<br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    *Java Plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • HT1338 for the last 6 months my mac is crashing all the time. I think it is safari because firefox works fine. Any suggestions?

    for the last 6 months my mac is crashing all the time. I think it is safari because firefox works fine. Any suggestions?

    What is crashing, is it just Safari or is the entire computer freezing (if that's what you mean by crashing)? If the latter, are you saying it only happens when Safari is open?
    You need to explain with more detail just what is happening and when.
    Do you get a message to restart?

Maybe you are looking for