Database querry & attempted update not working as expected????

Hi All,
I am posting my question here because it is related to a web application that I am developing. However as this question is database related I may not be posting in the correct location, please forgive me if this is the case.
I recently developed a web application that uses JSP on the front end, servlets for processing, and a mysql database on the back end.
I am using the Tomcat 5 software container, and instead of developing complex database pooling classes I am using the "DataSource" aspect of Tomcat. A relevant section of web.xml follows;
<!-- Database Connection Pool Resources Defined -->
<resource-ref>
      <res-ref-name>jdbc/craftstampindexes</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
      <res-ref-name>jdbc/stampData</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
      <res-ref-name>jdbc/craftsurvey</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
      <res-ref-name>jdbc/currencyconversion</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
</resource-ref>I then access the contents of the databases defined above through a servlet, and then use the results (saved into JavaBeans from the Servlet) to build a JSP.
I have had this code fully functional before. However recently I changed development computers and now the code does not appear to be functional.
When I last had the code functioning information was correctly read from database tables and the tables were also successfully updated (where required).
However now that I have changed development computers, tables are not updating. Strangely enough I am able to querry database tables, however I am not able to update them. Even though my servlet code tries to update the database tables I am not seeing any error messages, all I am seeing is the old contents of the database table, which are not being updated. I thought that I would have seen an error through Tomcat itself if Servlet code failed to update a table, however this is not happening.
The only thing that I can think of which could be contributing to this error is the fact that on my old computer I had mysql installed onto a data patition called "D:\" drive, now I have installed mysql onto the standard Windows root directory "C:\" drive. This doesn't make it any easier for me to understand why tables are being read but not updated!!!
Any help with this will be greatly appreciated, as I am truly at a loss. If I can provide further information which could be of assistance please don't hesitate to let me know.
Thanks for your time.
Kind Regards
David Dartnell

Hi Everyone,
Thanks again for all of your assistance. I have not yet invested the time required to learn Log4j, however I did "lace" my code with println() statements to see what was going on through the console. This is my code as it looks now..
package craftsurvey;
import java.io.*;
import java.sql.*;
import javax.naming.*;
import javax.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
public class CraftSurveyServlet extends HttpServlet
     private DataSource dataSource;
     public void init(ServletConfig config) throws ServletException
          super.init(config);
          try{
               Context init = new InitialContext();
               Context ctx = (Context) init.lookup("java:comp/env");
               dataSource = (DataSource) ctx.lookup("jdbc/craftsurvey");
               System.out.println("Finished looking up DataSource.");
          }catch (NamingException ex){
               throw new ServletException("Cannot retrieve java:comp/env/jdbc/craftsurvey",ex);
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
          doPost(request, response);
     public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
          String surveyVote = request.getParameter("surveybutton");
          System.out.println("Entered doPost() method.");
          String[] finalSurveyResults = new String[5];
          String[] initialSurveyResults = new String[5];
          String newTableValue = "";
          int noOfBears = 0;
          int noOfCountry = 0;
          int noOfFloral = 0;
          int noOfHearts = 0;
          int noOfWording = 0;
          int totalVotes = 0;
          /* Printwriter included for testing purposes */
          response.setContentType("text/html");
          PrintWriter out = response.getWriter();
          Connection con = null;
          Statement stmt = null;
          ResultSet rs1 = null;
          ResultSet rs2 = null; 
          System.out.println("Database access code should be accessed now.");
          /* Database Query performed */
          try {
               synchronized (dataSource) {
                   con = dataSource.getConnection();
               String initialFetch = "SELECT bears, country, floral, hearts, wording FROM survey";           
               stmt = con.createStatement();
               System.out.println("Database Statement created.");
               rs1 = stmt.executeQuery(initialFetch);
               System.out.println("First Database querry performed.");
               while(rs1.next())
                    initialSurveyResults[0] = rs1.getString("bears");
                    initialSurveyResults[1] = rs1.getString("country");
                    initialSurveyResults[2] = rs1.getString("floral");
                    initialSurveyResults[3] = rs1.getString("hearts");
                    initialSurveyResults[4] = rs1.getString("wording");
               noOfBears = Integer.parseInt(initialSurveyResults[0]);
               noOfCountry = Integer.parseInt(initialSurveyResults[1]);
               noOfFloral = Integer.parseInt(initialSurveyResults[2]);
               noOfHearts = Integer.parseInt(initialSurveyResults[3]);
               noOfWording = Integer.parseInt(initialSurveyResults[4]);
               if(surveyVote.equals("bears"))
                    noOfBears++;
                    Integer noOfBearsInt = new Integer(noOfBears);
                    newTableValue = noOfBearsInt.toString();
               else
               if(surveyVote.equals("country"))
                    noOfCountry++;
                    Integer noOfCountryInt = new Integer(noOfCountry);
                    newTableValue = noOfCountryInt.toString();
               else
               if(surveyVote.equals("floral"))
                    noOfFloral++;
                    Integer noOfFloralInt = new Integer(noOfFloral);
                    newTableValue = noOfFloralInt.toString();
               else
               if(surveyVote.equals("hearts"))
                    noOfHearts++;
                    Integer noOfHeartsInt = new Integer(noOfHearts);
                    newTableValue = noOfHeartsInt.toString();
               else
               if(surveyVote.equals("wording"))
                    noOfWording++;
                    Integer noOfWordingInt = new Integer(noOfWording);
                    newTableValue = noOfWordingInt.toString();
               System.out.println("Survey table update about to be attempted.");
               String updateSurvey = "UPDATE survey SET " + surveyVote + "= " + newTableValue;
               stmt.executeUpdate(updateSurvey);
               System.out.println("Survey table updated.");
               String finalFetch = "SELECT bears, country, floral, hearts, wording FROM survey";
               rs2 = stmt.executeQuery(finalFetch);
               System.out.println("Final querry performed.");
               while(rs2.next())
                    finalSurveyResults[0] = rs2.getString("bears");
                    finalSurveyResults[1] = rs2.getString("country");
                    finalSurveyResults[2] = rs2.getString("floral");
                    finalSurveyResults[3] = rs2.getString("hearts");
                    finalSurveyResults[4] = rs2.getString("wording");
             catch(Exception ex)
                 out.println("<H2>Exception Occurred</H2>");
                 out.println(ex);
               if (ex instanceof SQLException)
                    SQLException sqlex = (SQLException) ex;
                    out.println("SQL state: "+sqlex.getSQLState()+"<BR>");
                    out.println("Error code: "+sqlex.getErrorCode()+"<BR>");
             finally{
               try{
                    rs1.close();
                    rs2.close();
               }catch(Exception ex){}                
               try{
                    stmt.close();
               }catch(Exception ex){}
               try{
                    con.close();
               }catch(Exception ex){}
          System.out.println("All table querries should have been performed now.");
          totalVotes = noOfBears + noOfCountry + noOfFloral + noOfHearts + noOfWording;
          SurveyBean surveyResultsBean = new SurveyBean();
          surveyResultsBean.setBearVotes(noOfBears);
          surveyResultsBean.setCountryVotes(noOfCountry);
          surveyResultsBean.setFloralVotes(noOfFloral);
          surveyResultsBean.setHeartVotes(noOfHearts);
          surveyResultsBean.setWordingVotes(noOfWording);
          surveyResultsBean.setTotalVotes(totalVotes);          
          request.setAttribute("surveyResults", surveyResultsBean);
          /* Control forwarded to JSP for display */
          String url = "/ferngully/surveyResults";
          ServletContext servCont = getServletContext();
          RequestDispatcher reqDispatch = servCont.getRequestDispatcher(url);
          System.out.println("Request dispatched to surveyResults.jsp.");
          reqDispatch.forward(request, response);          
}The output I receive at the console as a result of running this code is the following:
Finished looking up DataSource
Entered doPost() method
Database access code should be accessed now
All table querries should have been performed now
Request dispatched to surveyResult.jsp
It looks as though the entire synchronized block of code is being completely skipped!
If anybody could offer further assistance it will be greatly appreciated.
Thanks for your time.
Kind Regards
David

Similar Messages

  • Silverlight 5 binding on a property with logic in its setter does not work as expected when debug is attached

    My problem is pretty easy to reproduce.
    I created a project from scratch with a view model.
    As you can see in the setter of "Age" property I have a simple logic.
        public class MainViewModel : INotifyPropertyChanged
                public event PropertyChangedEventHandler PropertyChanged;
                private int age;
                public int Age
                    get
                        return age;
                    set
                        /*Age has to be over 18* - a simple condition in the setter*/
                        age = value;
                        if(age <= 18)
                            age = 18;
                        OnPropertyChanged("Age");
                public MainViewModel(int age)
                    this.Age = age;
                private void OnPropertyChanged(string propertyName)
                    if (this.PropertyChanged != null)
                        PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    In the MainPage.xaml 
         <Grid x:Name="LayoutRoot" Background="White">
                <TextBox 
                    Text="{Binding Path=Age, Mode=TwoWay}" 
                    HorizontalAlignment="Left"
                    Width="100"
                    Height="25"/>
                <TextBlock
                    Text="{Binding Path=Age, Mode=OneWay}"
                    HorizontalAlignment="Right"
                    Width="100"
                    Height="25"/>
            </Grid>
    And MainPage.xaml.cs I simply instantiate the view model and set it as a DataContext.
        public partial class MainPage : UserControl
            private MainViewModel mvm;
            public MainPage()
                InitializeComponent();
                mvm = new MainViewModel(20);
                this.DataContext = mvm;
    I expect that this code will limit set the Age to 18 if the value entered in the TextBox is lower than 18.
    Scenario: Insert into TextBox the value "5" and press tab (for the binding the take effect, TextBox needs to lose the focus)
    Case 1: Debugger is attached =>
    TextBox value will be "5" and TextBlock value will be "18" as expected. - WRONG
    Case 2: Debugger is NOT attached => 
    TextBox value will be "18" and TextBlock value will be "18" - CORRECT
    It seems that when debugger is attached the binding does not work as expected on the object that triggered the update of the property value. This happens only if the property to which we are binding has some logic into the setter or getter.
    Has something changed in SL5 and logic in setters is not allowed anymore?
    Configuration:
    VisualStudio 2010 SP1
    SL 5 Tools 5.1.30214.0
    SL5 sdk 5.0.61118.0
    IE 10
    Thanks!                                       

    Inputting the value and changing it straight away is relatively rare.
    Very few people are now using Silverlight because it's kind of deprecated...
    This is why nobody has reported this.
    I certainly never noticed this problem and I have a number of live Silverlight systems out there.
    Some of which are huge.
    If you want a "fix":
    private void OnPropertyChanged(string propertyName)
    if (this.PropertyChanged != null)
    //PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    Storyboard sb = new Storyboard();
    sb.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 100));
    sb.Completed += delegate
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    sb.Begin();
    The fact this works is interesting because (I think ) it means the textbox can't be updated at the point the propertychanged is raised.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • Software Update not working

    On my Mac Mini Software Update is not working as expected. I have this machine setup with multiple accounts and my kids accounts are very limited so they can use the computer safly while I am not home. My account has admin permissions. When I log into the computer and run Software Update it finds many (11) updates. I click install all and go do something else. I come back about 20 mintues later and found the system sitting at the "login" screen. I thought great it finished. Then I thought that was way to fast. So I log in and run Software Update again. You guessed it the same 11 items need an Update. So now I try and update them one at a time. I successfully updated a few items. Then I thought let me update the 4 items that require a reboot at one time. I started the update and left the machine alone for a while. I came back to the system saying I needed to restart. I clicked on OK. The system then said that it couldn't log out because "Software Update" was running. I could not do anything at this point except hold the power button in until the system powered down and I could then restart it.
    To me it seams like a problem with the multi-user setup. Does anyone have any thoughts?
    Thanks,
    Scott

    This did not solve the problem. I repaired disk permissions and deleted all the SoftwareUpdate ".plist" files found in the link. I restarted the Mac Mini. When I tried to run the Software Update for everything it still died. I then ran each update by itself and it worked fine so my system is up to date. However, I suspect the problem will reappear the next time Apple releases many updates together.
    I guess I need to figure out the best way to contact Apple directly. And thanks for the info you provided.

  • Site list update not working with TED and Zenworks for Servers

    Product: Zenworks for Desktops 7Sp1 and Zenworks For Server/TED 7Sp1HP5
    Subject: Site list update not working with TED and Zenworks for Servers ,
    all on Linux
    Description: We have an exiting environment with 6 ZfS Servers and now we
    brought up a new Server for another location. I configured all same as on
    the other Server and the new one created all NAL-Apps at the new location.
    But in the Application Site list on the golden App is this Application
    missing. So I clicked on the Link up site list on the Distribution Screen
    in C1. On ApplicationSite list the App from the new location is missing.
    So I removed all and added the new from the new location and now i see all
    in the application site list.When I install an app on the client on the
    new location NAL is connecting alway th the same (wrong location-server
    and i get an msi error 1612 or id=53272 with path=\Wrong serverpath to
    file.
    I looked on the other tab on C1 at the golden app an I see the backlinks
    are going to all other servers without the new one. Software installation
    on other locations are ok
    Regards

    Andreas,
    I forgot to mention that you can also set the loging level on the Distributor and the Subscriber to 6. to do this at the Zenworks Server Management prompt type "setconsolelevel 6" if you want to capture this to the log file ted.log then use "setfilelevel 6"
    Next delete the Distribution from the Subscriber and then re-push the channel.
    What we are looking for here in the log is the creation of the object and the linking information about the gold object. it should look like this (not the failure part ;-))) )
    In this excerpt you will see the entry
    Golden App =
    This should be were the link is to
    You can check this both ways in the Golden App and in the Distributed Application.
    Here is a log from me that shows this info as an example of what you should be looking for.
    2008.05.29 03:35:41 [TED:Work Order In(yourserver.yes.com)] Receiving distribution: Creating new application failed,
    Subscriber Tree Name= YOUR-TREE,
    Subscriber DN = SUBSCRIBER_YOURSERVER.BRN.FL.SUBS.SUBSCRIBERS.ZSM. GRS.CBH,
    Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
    Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
    error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..
    2008.05.29 03:35:41 [TED:Event Processing] Handle Event: Work order IN completed... Creating new application failed,
    Subscriber Tree Name= YOUR-TREE,
    Subscriber DN = SUBSCRIBER_HAVERHI-FLBRN1.BRN.FL.SUBS.SUBSCRIBERS.ZSM.GRS.CBH,
    Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
    Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
    error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..
    2008.05.29 03:35:41 [TED:Event Processing] Received (from haverhi-flbrn1.yesbank.com) Creating new application failed,
    Subscriber Tree Name= YOUR-TREE,
    Subscriber DN = SUBSCRIBER_HAVERHI-FLBRN1.BRN.FL.SUBS.SUBSCRIBERS.ZSM.GRS.CBH,
    Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
    Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
    error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..

  • DB Adapter polling as singleton process is not working as expected

    Am using poller DB adapater to control the transaction per seconds to the downstream system and i want this poller process as singleton (One instance should be in running state at a time).
    As suggested in oracle documents , below is the parameters configured in composite.xml file.
    <service name="polling_Mange_Alert_Events"
      ui:wsdlLocation="polling_Mange_Alert_Events.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/db/Application1/int_app_manageAlerts/polling_Mange_Alert_Events#wsdl.interface(polling_Mange_Alert_Events_ptt)"/>
      <binding.jca config="polling_Mange_Alert_Events_db.jca">
      <property name="singleton">true</property>
      </binding.jca>
      <property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
      <property name="jca.retry.interval" type="xs:int" many="false"
      override="may">1</property>
      <property name="jca.retry.backoff" type="xs:int" many="false"
      override="may">2</property>
      <property name="jca.retry.maxInterval" type="xs:string" many="false"
      override="may">120</property>
      </service>
    Below is the JCA file parameters configured :
    <adapter-config name="polling_Mange_Alert_Events" adapter="Database Adapter" wsdlLocation="polling_Mange_Alert_Events.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/DB/vff-int-fus" UIConnectionName="PT_APPINFRA" adapterRef=""/>
      <endpoint-activation portType="polling_Mange_Alert_Events_ptt" operation="receive">
        <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
          <property name="DescriptorName" value="polling_Mange_Alert_Events.ManageAlertEvents"/>
          <property name="QueryName" value="polling_Mange_Alert_EventsSelect"/>
          <property name="MappingsMetaDataURL" value="polling_Mange_Alert_Events-or-mappings.xml"/>
          <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
          <property name="MarkReadColumn" value="TRANSACTION_STATUS"/>
          <property name="MarkReadValue" value="Processing"/>
          <property name="PollingInterval" value="10"/>
          <property name="MaxRaiseSize" value="5"/>
          <property name="MaxTransactionSize" value="5"/>
          <property name="NumberOfThreads" value="1"/>
          <property name="ReturnSingleResultSet" value="false"/>
          <property name="MarkUnreadValue" value="Pending"/>
        </activation-spec>
      </endpoint-activation>
    </adapter-config>
    This poller process is running on clustered environment (2 soa nodes) and it is not working as expected as singleton process.
    Please advise to solve this issue ?

    Hi,
    1.Set Singleton property outside   <binding.jca> like this:
    <binding.jca config="polling_Mange_Alert_Events_db.jca"/>
      <property name="singleton">true</property>
      <property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
      <property name="jca.retry.interval" type="xs:int" many="false"
    2.Also you can try setting these values in jca file:
    <property name="RowsPerPollingInterval" value="100"/>
    <property name="MaxTransactionSize" value="100"/>
    3. try to increase the polling interval time.
    Regards,
    Anshul

  • Container-Managed Transaction Type Attributes not working as expected

    I am having a problem with the container-managed transactions not working as expected. I have 2 methods that work as follows:
    MethodA{
    for(a lot)
    call MethodB;
    @Transaction Type = RequiresNew
    MethodB{
    EntityManager Persist to database
    I want the code in MethodB to be committed to the database when methodB returns. The problem is that I am running out of memory and MethodA is failing. When methodA fails after numerous calls to MethodB nothing is persisted to the database.
    It is my understanding that when using requires new transactions that a new transaction is started for each call to the method and ends when the method returns while the calling method transaction is suspended.
    How am I misunderstanding the requiresNew transaction attribute. What can I do to make a batch insert into my database that will not run out of memory (commit when a methodB returns)?
    Thanks in advance.

    The problem is that EJB invocation semantics for security, container-managed transactions, etc.
    only apply when an invocation is made through an EJB reference. In your case, you are directly
    invoking the implementation method from within the bean. The EJB container has no idea that's
    happening. It's no different than invoking a utility method.
    In order to get the behavior you'd like, you need to retrieve a reference to your own bean and invoke
    through that. You can use SessionContext.getBusinessObject() to get the EJB reference for the
    business interface through which the method in question is exposed.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • UpsertDocumentAsync not working as expected

    I'm using UpsertDocumentAsync to either insert or update a document, but it doesn't seem to work as expected. When I use it either inserts / creates or
    replaces the document. I doubt I'm calling it wrong?
    await client.UpsertDocumentAsync(documentsLink, this.document);
    Working as expected (but with incorrect name) or not working as expected?
    Regards,
    Joakim
    Joakim Rosendahl Consultant at OnTrax AB, Sweden.

    Found this one (doesn't contain the work PATCH though)
    http://feedback.azure.com/forums/263030-documentdb/suggestions/7075256-provide-for-upsert
    Voted for that one, but it doesn't seem like the developer community is interested in upsert/patch functionality =/.
    Joakim Rosendahl Consultant at OnTrax AB, Sweden.

  • [Bug?] Defer Panel Update not working when changing scale property

    Hi,
    I found that Defer Panel Update [when True] does not work properly when changing the scale fit property of an intensity graph.
    Try the VI.
    When Defer Panel Update is True, and you change the Numeric controls, the Intensity graph is not updated (as expected).
    But now change the "Z Scale.Scale Fit" button and.... the Intensity graph is updated (only the Z-color, not the axis).
    This looks to be a bug to me!
    Nicolas
    Attachments:
    [Bug] Defer Panel Update not working when changing scale property.vi ‏27 KB

    Hi Nicolas,
    This indeed looks like a bug. I will do more research on it and file a bug report if it's not already filed.  Thank you for posting this information!
    Yi Y.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Problem description: mac mail not opening, software updates not working, app store not opening. imac osx 10.9.5

    Problem description:
    mac mail not opening, software updates not working, app store not opening. 10.9.5
    EtreCheck version: 2.0.11 (98)
    Report generated 1 December 2014 16:51:49 CET
    Hardware Information: ℹ️
      iMac (21.5-inch, Late 2009) (Verified)
      iMac - model: iMac10,1
      1 3.06 GHz Intel Core 2 Duo CPU: 2-core
      12 GB RAM Upgradeable
      BANK 0/DIMM0
      4 GB DDR3 1067 MHz ok
      BANK 1/DIMM0
      4 GB DDR3 1067 MHz ok
      BANK 0/DIMM1
      2 GB DDR3 1067 MHz ok
      BANK 1/DIMM1
      2 GB DDR3 1067 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      NVIDIA GeForce 9400 - VRAM: 256 MB
      iMac 1920 x 1080
      BenQ GL2240 1920 x 1080 @ 60 Hz
    System Software: ℹ️
      OS X 10.9.5 (13F34) - Uptime: 1:32:17
    Disk Information: ℹ️
      WDC WD5000AAKS-40V2B0 disk0 : (500.11 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) /  [Startup]: 499.25 GB (164.03 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      HL-DT-ST DVDRW  GA11N 
    USB Information: ℹ️
      EPSON EPSON Epson Stylus S22 Series
      Canon MX410 series
      ASMedia AS2105 1 TB
      S.M.A.R.T. Status: Verified
      EFI (disk3s1) <not mounted> : 210 MB
      Backup (disk3s2) /Volumes/Backup : 999.86 GB (506.24 GB free)
      Apple Inc. Built-in iSight
      Apple Internal Memory Card Reader 7.95 GB
      S.M.A.R.T. Status: Verified
      EOS_DIGITAL (disk1s1) /Volumes/EOS_DIGITAL : 7.94 GB (7.83 GB free)
      Western Digital My Book 1140 2 TB
      S.M.A.R.T. Status: Verified
      EFI (disk2s1) <not mounted> : 210 MB
      2TB (disk2s2) /Volumes/2TB : 2.00 TB (1.50 TB free)
      Wacom Co.,Ltd. CTE-450
      Contour Design ShuttlePRO v2
      Apple Computer, Inc. IR Receiver
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Applications/Parallels Desktop.app
      [not loaded] com.parallels.kext.hidhook (9.0 24217.979618) Support
      [not loaded] com.parallels.kext.hypervisor (9.0 24217.979618) Support
      [not loaded] com.parallels.kext.netbridge (9.0 24217.979618) Support
      [not loaded] com.parallels.kext.usbconnect (9.0 24217.979618) Support
      [not loaded] com.parallels.kext.vnic (9.0 24217.979618) Support
      /Applications/Toast 10 Titanium/Toast Titanium.app
      [not loaded] com.roxio.BluRaySupport (1.1.6) Support
      /Library/Extensions
      [loaded] at.obdev.nke.LittleSnitch (4052 - SDK 10.8) Support
      [not loaded] xxx.qnation.PeerGuardian (1.1.9) Support
      /System/Library/Extensions
      [not loaded] com.FTDI.driver.FTDIUSBSerialDriver (2.2.18 - SDK 10.6) Support
      [not loaded] com.pctools.iantivirus.kfs (1.0.1) Support
      /Users/[redacted]/Library/Services/ToastIt.service/Contents/MacOS
      [not loaded] com.roxio.TDIXController (2.0) Support
    Startup Items: ℹ️
      ParallelsDesktopTransporter: Path: /Library/StartupItems/ParallelsDesktopTransporter
      WkSvMacX: Path: /Library/StartupItems/WkSvMacX
      Startup items are obsolete and will not work in future versions of OS X
    Launch Agents: ℹ️
      [running] at.obdev.LittleSnitchUIAgent.plist Support
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.adobe.CS4ServiceManager.plist Support
      [running] com.epson.epw.agent.plist Support
      [loaded] com.oracle.java.Java-Updater.plist Support
    Launch Daemons: ℹ️
      [running] at.obdev.littlesnitchd.plist Support
      [failed] com.adobe.fpsaud.plist Support
      [loaded] com.adobe.versioncueCS4.plist Support
      [loaded] com.barebones.textwrangler.plist Support
      [running] com.cleverfiles.cfbackd.plist Support
      [not loaded] com.gopro.stereomodestatus.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
      [loaded] com.oracle.java.Helper-Tool.plist Support
      [loaded] com.oracle.java.JavaUpdateHelper.plist Support
      [invalid?] com.tvmobili.tvmobilisvcd.plist Support
      [loaded] fi.polar.libpolar.plist Support
      [running] fi.polar.polard.plist Support
      [failed] xxx.qnation.PeerGuardian.kextload.plist Support
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist Support
      [loaded] com.facebook.videochat.[redacted].plist Support
      [loaded] com.google.keystone.agent.plist Support
      [loaded] com.macpaw.CleanMyMac.helperTool.plist Support
      [loaded] com.macpaw.CleanMyMac.trashSizeWatcher.plist Support
      [running] com.macpaw.CleanMyMac.volumeWatcher.plist Support
      [invalid?] com.plexapp.helper.plist Support
      [not loaded] com.spotify.webhelper.plist Support
    User Login Items: ℹ️
      Garmin Express Service Application (/Applications/Garmin Express.app/Contents/Library/LoginItems/Garmin Express Service.app)
      SmartDaemon Application (/Library/Application Support/CleverFiles/SmartDaemon.app)
      SilverKeeper Scheduler ApplicationHidden (/Applications/SilverKeeper.app/Contents/Resources/SilverKeeper Scheduler.app)
      Dropbox Application (/Applications/Dropbox.app)
      Garmin ANT Agent UNKNOWN (missing value)
    Internet Plug-ins: ℹ️
      DirectorShockwave: Version: 11.5.7r609 Support
      Google Earth Web Plug-in: Version: 6.1 Support
      Default Browser: Version: 537 - SDK 10.9
      Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 Support
      PandoWebInst: Version: 1.0 Support
      AdobePDFViewerNPAPI: Version: 10.1.12 Support
      FlashPlayer-10.6: Version: 15.0.0.189 - SDK 10.6 Support
      DivXBrowserPlugin: Version: 2.0 Support
      Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
      Flash Player: Version: 15.0.0.189 - SDK 10.6 Mismatch! Adobe recommends 15.0.0.239
      iPhotoPhotocast: Version: 7.0 - SDK 10.8
      QuickTime Plugin: Version: 7.7.3
      SharePointBrowserPlugin: Version: 14.0.0 Support
      AdobePDFViewer: Version: 10.1.12 Support
      GarminGpsControl: Version: 4.2.0.0 - SDK 10.8 Support
      JavaAppletPlugin: Version: Java 7 Update 71 Check version
    User Internet Plug-ins: ℹ️
      fbplugin_1_0_3: Version: (null) Support
    Safari Extensions: ℹ️
      Open in Internet Explorer
    Audio Plug-ins: ℹ️
      DVCPROHDAudio: Version: 1.3.2
    3rd Party Preference Panes: ℹ️
      Adobe Version Cue CS4  Support
      DivX  Support
      Flash Player  Support
      Flip4Mac WMV  Support
      GoPro  Support
      Growl  Support
      Java  Support
      MacFUSE  Support
      MenuMeters  Support
      Perian  Support
    Time Machine: ℹ️
      Skip System Files: NO
      Auto backup: NO - Auto backup turned off
      Destinations:
      Back Up [Local]
      Total size: 0 B
      Total number of backups: 0
      Oldest backup: -
      Last backup: -
      Size of backup disk: Excellent
      Backup size 0 B > (Disk size 0 B X 3)
    Top Processes by CPU: ℹ️
          12% Google Chrome
          12% WindowServer
          4% Dock
          2% Little Snitch Agent
          2% SystemUIServer
    Top Processes by Memory: ℹ️
      399 MB iTunes
      322 MB mds_stores
      216 MB Google Chrome Helper
      193 MB Google Chrome
      155 MB com.apple.IconServicesAgent
    Virtual Memory Information: ℹ️
      6.64 GB Free RAM
      3.51 GB Active RAM
      1.36 GB Inactive RAM
      1.11 GB Wired RAM
      1.91 GB Page-ins
      0 B Page-outs

      [not loaded] com.pctools.iantivirus.kfs (1.0.1) Support
    Un-install according to the developer's un-install instructions.
    You do not need to use cleaning programs. They can destroy your computer operation as they may already have done.
    CleanMyMac - Uninstall
    CleanMyMac2 Un-install
    After un-installing, run this program to make sure you got all the pieces.
    EasyFind – Spotlight Replacement
    Do a backup.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.appstore.plist. Move the .plist to your desktop.
    Restart, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this.

  • Mac Book Software Update not working, iTune will not update because of that, iPhone 4 won't connect to iTunes because iTunes is not updated. Mac v.10.5.8, iTunes v.10.5.2, iPhone4 iOS 6

    Mac Book Software Update not working (Software Update does not have any new software for your computer at this time), my current MacBook version is 10.5.8.
    As a result I can't update iTunes, version 10.5.2  (This software requiers Mac OS X version 10.6.8 or later)
    Now when I connect my iPhone 4, version iOS 6 iTunes can't connect to iPhone (The iPhone "XXXXX's iPhone" cannot be used because it requiers iTunes version 10.6.3 or later.)
    so in a nutshell can't use iphone 4, because iTune is not updated and will not  update because Mac Book is not up to date and will not update either.
    Please help.
    Thank you
    bt465

    Welcome to Apple Support Communities
    Snow Leopard is a paid upgrade. http://support.apple.com/kb/sp575 Call Apple to buy Snow Leopard. Then, make a backup, insert the DVD and upgrade. When it finishes, open  > Software Update

  • Subtraction of two key figures normalized to result not working as expected

    Hello SAP Community!
    I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
    In order to explain the problem I am facing please analyze below text:
    1) Let's assume I have below data:
    LOAD MONTH  PLANT    MATERIAL HORIZON MONTH     FORECAST UNITS
    200805         PLANT-A  MAT-1            200805         510,235.00
    200805         PLANT-B  MAT-1           200805          74,240.00
    200805         PLANT-A  MAT-1           200806         438,721.00
    200805         PLANT-B  MAT-1           200806          74,240.00
    200805         PLANT-A  MAT-1           200807         356,981.00
    200805         PLANT-B  MAT-1           200807          74,240.00
    200806         PLANT-A  MAT-1           200805               0.00
    200806         PLANT-B  MAT-1           200805               0.00
    200806         PLANT-A  MAT-1           200806         510,235.00
    200806         PLANT-B  MAT-1           200806          74,240.00
    200806         PLANT-A  MAT-1           200807         438,721.00
    200806         PLANT-B  MAT-1           200807          74,240.00
    2) Then, assume I have a comparison report, restricted by load month for two months May and June 2008 (filter restricted by two month variables) with FORECAST units spread accross columns for whole horizon (two months also in this case).
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Comparison Units (June 2008) 510,235.00  438,721.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Comparison Units (June 2008)  74,240.00   74,240.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    3) Now, let's suppose we want to know the proportions (%) of Base vs Comparison units, so
    we normalize forecats to results an we get the below report:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    4) Finally, let's suppose we want to know the deltas (differences) of Base vs Comparison
    units, for both number of units and %. The report now look as below:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  1.77%       2.74%
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %  -1.77%      -2.74%
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    5) PROBLEM:
    In my report, the "Delta base vs. comp. units %" is not working as expected and
    calculates number of units just as "Delta base vs. comp. units" does instead of calculating the % difference.
    So my report looks as follows:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  71,514.00  81,740.00 <<<WRONG!!
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %       0.00        0.00
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    The formulas are:
    a) Delta base vs. comp. units %
      Delta base vs. comp. units % = Comparison Units % - Base Units %
    b) Delta base vs. comp. units
      Delta base vs. comp. units = Comparison Units - Base Units
    The KFs
    - Comparison Units %
    - Base Units %
    Are RESTRICTED key figures (restricted to Base and comparison month variables) which
    are setup as:
    1) Calculate Result As:  Summation of Rounded Values
    2) Calculate Single Value as: Normalization of result
    3) Calculate Along the Rows
    The KFs
    - Delta base vs. comp. units %
    - Delta base vs. comp. units
    are FORMULAS setup to:
    1) Calculate Result As:  Nothing defined
    2) Calculate Single Value as: Nothing defined
    3) Calculate Along the Rows: user default direction (grayed out)
    Thanks for the time taken to read in detail all of this. Long text but necessary to understand what the problem is.
    Any help is highly appreciated.
    Thank you.
    Mario

    Hi,
    The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
    I hope this will solve your issue.
    Regards,
    S P.

  • Events in SubVi not working as expected

    Hi, I am reposting this question as my previous one didn't resulted in any satisfactory conclusion.
    I have attached my Vi's which are not working as expected. If I remove ONE subVi and its associated 3 controls and two indicators, the other one works just fine, but when I add two SUB Vis, it goes messy. I am trying to learn this way, I am sure it can be done many other ways, but please help me finding out the problem doing it this way as in my final MainVi, I would like to use 8 such sub Vis. Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Main.vi ‏11 KB
    SubVi.vi ‏12 KB
    SubVi_2.vi ‏15 KB

    Your main problem is DATA FLOW.  A loop cannot iterate until EVERYTHING in it has completed.  So, as you have it, you have to have both event structures execture before you can go back to look for the next event.  So if you insist on having these subVIs, they need to be in seperate loops.
    BTW, you can get away with a single subVI.  Go into the VI properties and make it reentrant (preallocated clone).  Then each call of your subVI will have its own memory space.  A lot easier to maintain that way.
    And I know you said you didn't want alternatives, but here's how you can do it all with a single event structure in your main loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Main_MODTR.vi ‏10 KB

  • AFS ARUN Size Substitution Not Working As Expected

    Hi All,
    I need help with this. If any one of you have worked with AFS ARUN size substitution, kindly provide me with some details on how can I set it up. I am specially interested in setting up size substitution with two-dimensional grids.
    I have setup some examples but it does not work as expected.
    Here is a small example:
    Say I have a size 28/30, 28/32 .........29/30....
    What I want to achieve is that during ARUN if there is a shortage of stock in 28/30 then the remaining requirement qty should be confirmed from size 28/32.
    with my setup after 28/30 it goes into looking for stock in 29/30, which is what I do not want.
    Any inputs will be really appreciated.
    Thanks!!

    srdfrn wrote:
    Hi YOS,
    I tried importing a PCX image into CVI 2010 and then sizing the image to the control and didn't see the behavior you have been describing.  Would you mind posting an example (alongside an image file) that demonstrates this?
    Also, one thing I noticed is that PCX images appear to be quite dated.  Could upgrading them to a JPEG or PNG format be an option for you?
    Thanks,
    Stephanie R.
    National Instruments
    Stephanie, thanks for the reply.
    I am very sorry to state that I made a mistake.
    VAL_SIZE_TO_IMAGE indeed works.
    What fails to work is VAL_SIZE_TO_PICTURE. (Second option in Fit Mode attribute in control editing panel)
    I tried with JPEG and it's the same.
    I am attaching an example.(Load_Image.c & ONEP_3Trow_POS1.JPG)
    A panel with two picture rings.
    - SW_1 remains at the intended size and the loaded picture is not clear.
    - SW_2 will fit to picture size and looks OK.
    Appreciate your support,
    YOSsi Seter
    Attachments:
    Load_Image.c ‏2 KB
    ONEP_3Trow_POS1.JPG ‏4 KB

  • Notification "Launch the app and go to the library" not working as expected

    Hello,
    we are sending notification "Launch the app and go to the library" - but it's not working as expected, it's still just launching app with last open folio.
    Whats wrong there? Do we need v30 app? We have V29, but this is not mentioned in documentation.
    Thanks
    Martin

    Ah.
    Ok, now it's clear.
    Anyway i would appreciate possibility to force viewer to switch to library view after new issue is detected, even without notification. Quite often requested feature - "there is new cover in Newsstand, but customer don't know how to download new publication easily".
    Martin

  • Wireless OS Update - not working

    I've been trying to update my BlackBerry Torch 9800 6.0.0.246 to higher version wirelessly but all it says - “Your BlackBerry is up to date.” The others we're able to update their smartphone but why can't I? I don't want to plug my phone to any computer using the cable connector because I'm afraid it would get virus and be ruined eventually. Please help..

    Duplicate:
    http://supportforums.blackberry.com/t5/BlackBerry-Torch/wireless-OS-update-not-working/m-p/2039115#n...
    Answer provided there. Please avoid poly-posting the exact same issue.
    Thanks!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for