Problem with my Vector

As an assignment for my computer class, I need to create a Student class that lets the user add an undefined number of grades to a Vector called grades. The user must also be able to call method getGPA( ) to return the average of all the grades.
The problem is, I cant seem to change the object returned from grades.get (index i) to a double! I added it as a double but I have no idea how to treat it as a double again. Can someone please explain the obvious error I am making???

(un)helpfully Java 5+ will make your double into a Double Objectfor you automatically.
I'm loving autoboxing:
import java.util.*;
public class AutomatHeaven {
     public static void main(String[] args) {
          List < Integer > list = new ArrayList < Integer > ();
          //add some example data to list:
          for(int i = 0; i <= 10; ++i)
               list.add(i);
          int total = 0;
          for(int n : list)
               total += n;
          System.out.format("total=%d%n", total);
}

Similar Messages

  • Strange Problem with a Vector wraped inside a Hashtable

    Hi all ,
    I'm having a strange problem with a Vector wraped within a Hashtable inherited Class.
    My goal is to keep the order of the elements of the Hashtable so what I did was to extend Hashtable and wrap a Vector Inside of it.
    Here is what it looks like :
    package somepackage.util;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Vector;
    public class OrderedHashTable extends Hashtable {
        private Vector index;
        /** Creates a new instance of OrderedHashTable */
        public OrderedHashTable() {      
            this.index = new Vector();
    //adds a key pair value to the HashTable and adds the key at the end of the index Vector
       public synchronized Object put(Object key,Object value){      
           index.addElement(key);
           Object obj = super.put(key,value);
           System.out.println("inside OrderedHashTable Put method index size = " + index.size());
           return obj;    
    public synchronized Object remove(Object key){
           int indx = index.indexOf(key);
           index.removeElementAt(indx);
           Object obj = super.remove(key);
           return obj;
    public synchronized Enumeration getOrderedEnumeration(){
           return index.elements();
    public synchronized Object getByIndex(int indexValue){
           Object obj1 = index.elementAt(indexValue);
           Object obj2 = super.get(obj1);      
           return obj2;
       public synchronized int indexOf(Object key){
        return index.indexOf(key);
        public synchronized int getIndexSize() {
            return index.size();
        }Everything seemed to work fine util I tried to add objects using a "for" loop such as this one :
    private synchronized void testOrderedHashTable(){
            OrderedHashTable test = new OrderedHashTable();
            for (int i = 1 ; i<15; i++){
                 System.out.println("adding Object No " + i);
                 String s = new String("string number = "+i);
                 test.put(new Integer(i),s);
                 System.out.println("-----------------------------------");
            //try to list the objects
            Enumeration e = test.getOrderedEnumeration();
            while (e.hasMoreElements()){
                Integer intObj = (Integer) e.nextElement();
                System.out.println("nextObject Number = "+ intObj);
        }Here is the console output :
    Generic/JSR179: adding Object No 1
    Generic/JSR179: inside OrderedHashTable Put method index size = 1
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 2
    Generic/JSR179: inside OrderedHashTable Put method index size = 2
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 3
    Generic/JSR179: inside OrderedHashTable Put method index size = 3
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 4
    Generic/JSR179: inside OrderedHashTable Put method index size = 4
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 5
    Generic/JSR179: inside OrderedHashTable Put method index size = 5
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 6
    Generic/JSR179: inside OrderedHashTable Put method index size = 6
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 7
    Generic/JSR179: inside OrderedHashTable Put method index size = 7
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 8
    Generic/JSR179: inside OrderedHashTable Put method index size = 8
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 9
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 11
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 11
    Generic/JSR179: inside OrderedHashTable Put method index size = 12
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 12
    Generic/JSR179: inside OrderedHashTable Put method index size = 13
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 13
    Generic/JSR179: inside OrderedHashTable Put method index size = 14
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 14
    Generic/JSR179: inside OrderedHashTable Put method index size = 15
    Generic/JSR179: -----------------------------------
    Generic/JSR179: nextObject Number = 1
    Generic/JSR179: nextObject Number = 2
    Generic/JSR179: nextObject Number = 3
    Generic/JSR179: nextObject Number = 4
    Generic/JSR179: nextObject Number = 5
    Generic/JSR179: nextObject Number = 6
    Generic/JSR179: nextObject Number = 7
    Generic/JSR179: nextObject Number = 8
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 10
    Generic/JSR179: nextObject Number = 11
    Generic/JSR179: nextObject Number = 12
    Generic/JSR179: nextObject Number = 13
    Generic/JSR179: nextObject Number = 14
    You can notice that the output seems correct until the insertion of object 9.
    At this point the vector size should be 9 and the output says it is 10 elements long ...
    In the final check you can notice the 9 was inserted twice ...
    I think the problem has something to do with the automatic resizing of the vector but I'm not really sure. Mybe the resizing is done in a separate thread and the new insertion occurs before the vector is resized ... this is my best guess ...
    I also tested this in a pure J2SE evironment and I don't have the same strange behavior
    Can anybody tell me what I am doing wrong or how I could avoid this problem ?
    Thanks a lot !
    Cheers Alex

    Am i doing anything wrong?Uhm, yes. Read the API doc for addElement() and for addAll()

  • Problem with a Vector of objects.

    I have a vectore that contains GItems, it needs to be traversed everytime paintComponent() is called.
    GItem stores the start point, end point and drawing mode (line, rect, circle, etc).
    These GItems are added to the Vector on MouseReleased using items.addElement(new GItem(sPoint, ePoint, mode))
    However, when they are called by paintComponent, they all have the same value as the last line drawn ????
    Heres my paintComponent, maybe you could spot my bug?
    public void paintComponent(Graphics g)  {
         GItem gi;
         Point p1, p2;
         super.paintComponent(g);
         for (int i=0;i<items.size();i++)  {  //items is my Vector
         gi = (GItem)items.elementAt(i);
         p1 = gi.start;
         p2 = g1.end;
         g.drawLine(p1.x, p1.y, p2.x, p2.y)
         g.drawline(sPoint.x, sPoint.y, ePoint.x, ePoint.y);
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thats a good point //excuse the pun
    i'll try setting the mode values to see if new GItems are being created,
    if they are, then the point values must all be referencing the same object
    in which case ePoint.clone() should solve the problem
    Thanks

  • Problem with a vector

    I have this vector, and inside a vector, there are Strings[]
    So, i declared the vector and string like this:
    Vector allCodes = new Vector();
    String code[] = new String[5];Then i assigned tome values to code like this:
    code[0]="whatever";
    code[1]="whatever";
    code[2]="whatever";
    code[3]="whatever";
    code[4]="whatever";Then, the ihing is that, when i do this:
    allCodes.addElement(code);The first value gets overwritten, instead of adding it to a next entry in the vector........
    Am i doing anything wrong?
    Thanks
    Edited by: J.A. on Apr 19, 2010 6:36 AM

    Am i doing anything wrong?Uhm, yes. Read the API doc for addElement() and for addAll()

  • Problems with inserting elements into vectors

    Hi,
    I have a problem with the setElementAt() method for vectors.
    I want to initialise a vector that is same size as a previous vector declared in my program and insert float 0.0 in all the positions.
    The code below is a for loop to do just this where count is the size of the previous vector.
    for(int i=0;i<count; i++)
                   vLargest.setElementAt(zero,i);
              }i have declared zero as a float
    float zero = 0.0f;
    the error that i'm getting is that it that the vector cannot be applied to a float.
    Can anybody tell me what i'm doing wrong?
    Thanks

    Yes you need to store Objects in your Vector not primitives.
    float is not an Object it is a primitive. But Float is an object.

  • Problem with String in a Vector

    I'm making a small hangman game. And I got a problem with putting words in a Vector... This is the code... Can someone tell me what I'm doing wrong?
    // First I define it.
    Vector Words;
    //  Then add the words
    Vector Words = new Vector();
    Words.add(new String("HELLO"));
    Words.add(new String("GOOD BYE"));
    // When I try to get a string from the Vector I use this.
    // The program compiles but when I try to run it I get NullPointerExeption here
    W = (String) Words.elementAt(0);

    Not sure since I cant see all of your code but looks like this might be your problem:
    // First I define it.
    Vector Words; //<-- here you define a Vector named Words that is null
    // Then add the words
    Vector Words = new Vector(); //<-- here you define another vector named Words that holds a reference to a new Vector. This is a different reference than the one created above so you should probably remove the "Vector" part from the beginning of this line. Is this a local variable to a method and the one before is a global variable?
    //Here you probably access the locally created Words vector which is initialized
    Words.add(new String("HELLO"));
    // When I try to get a string from the Vector I use this.
    // The program compiles but when I try to run it I get NullPointerExeption here
    W = (String) Words.elementAt(0); //<--and here my guess is that this statement is inside another method than the one with the local Words vector defined. Thus this one accesses the global Words Vector that is never initalized and is Null. And that gives you the NullPointerException.
    So try changing the statement
    Vector Words = new Vector();
    to
    Words = new Vector();
    or just remove it totally and move the Vector creation to the place where you introduce the global variable.
    Of course I might be totally wrong since I cant see all of your code but that is my guess.
    Hope it helps,
    -teka

  • Problem with filling up vector

    Hello,
    i'm having a problem with the following code; when i try to fill up the vector, it overwrites the previous values with the new, so the when i add the second item, the first item becomes the second too. So when i return the vector, all values are similar (the last).
    public Vector getClients(){
    Database singleton = Database.getDatabase();
    User user=new User();
    Vector clients = new Vector();
    try{
    singleton.openConnection();
    ResultSet rs = singleton.getResultSet("SELECT * FROM tblClients");
    while(rs.next()){
    user.setNaam(rs.getString("naam"));
                   user.setVoornaam(rs.getString("voornaam"));
                   user.setNickname(rs.getString("nickname"));
                   user.setEmail(rs.getString("email"));
                   user.setPaswoord(rs.getString("paswoord"));
    System.out.print("user added:" + user.getNickname() + "\n" );
    clients.add(user);
    System.out.println(user);
    singleton.closeConnection();
    }catch(SQLException sqle){
    sqle.getMessage();
    sqle.printStackTrace();
    System.out.print(clients.size() + " users added\n");
    return clients;
    }

    You are always adding the same user-Object to the Vector.
    You should put the command
    user=new User();inside the while-loop to have different objects for different users.

  • Vector, what is the problem with this code?

    Vector, what is the problem with this code?
    63  private java.util.Vector data=new Vector();
    64  Vector aaaaa=new Vector();
    65   data.addElement(aaaaa);
    74  aaaaa.addElement(new String("Mary"));on compiling this code, the error is
    TableDemo.java:65: <identifier> expected
                    data.addElement(aaaaa);
                                   ^
    TableDemo.java:74: <identifier> expected
                    aaaaa.addElement(new String("Mary"));
                                    ^
    TableDemo.java:65: package data does not exist
                    data.addElement(aaaaa);
                        ^
    TableDemo.java:74: package aaaaa does not exist
                    aaaaa.addElement(new String("Mary"));Friends i really got fed up with this code for more than half an hour.could anybody spot the problem?

    I can see many:
    1. i assume your code snip is inside a method. a local variable can not be declare private.
    2. if you didn't import java.util.* on top then you need to prefix package on All occurance of Vector.
    3. String in java are constant and has literal syntax. "Mary" is sufficient in most of the time, unless you purposly want to call new String("Mary") on purpose. Read java.lang.String javadoc.
    Here is a sample that would compile...:
    public class QuickMain {
         public static void main(String[] args) {
              java.util.Vector data=new java.util.Vector();
              java.util.Vector aaaaa=new java.util.Vector();
              data.addElement(aaaaa);
              aaaaa.addElement(new String("Mary"));
    }

  • Problems with syncing  Adobe Ideas with Adobe Creative Cloud

    Dear Sir/Madam,
    Since yesterday (22.04.2014) I have problems with syncing Adobe Ideas (in my iPad) with Adobe Creative Cloud.
    Could you please help me with this issue?
    Thanks in advance

    Hello,
    I do not understand why there is no professional communication about the problem. I get the impression that Adobe doesn't know that many people use their App as advertised: As a quick professional sketching tool that syncs with Creative Cloud. Not to fix the problem means more people not trusting the cloud idea. I am actually a big fan of the CC, mostly because of regular updates. But the mobile apps seem to fall out of the normal update scheme. Are they not as important as the 'main software'?
    When will the bug be fixed? Just to make clear: As there - up to now - is no other way to get the original idea files on the computer the adobe idea app is useless unless you fix the problem and/ or include the possibility to sync files via USB.
    Meanwhile my Workaround:
    You need Phoneview or another software that shows the files on your mobile device.
    Open it - choose "Apps" - click on "Show all Apps" - click on "Adobe Ideas"
    Than go to:
    Library/Private Documents/documents/data/files/
    there you find folders with cryptic names
    Download one of the folders
    Open the Folder
    select all files in the folder and zip them
    Change the extension from .zip to .idea
    and voila
    you can open it with Adobe Illustrator!
    A long way, but for now the only solution to get the editable vector file on your computer.
    Best regards
    Jo Jacobs

  • Problem with trees(Duplication of the parent node in creation of  children)

    Hi guys i am experiencing a slight problem with the creation of trees.Here is a clear explanation of my program.I created a program that generates edges from a set of datapoints then use each and every edge that is generated to create multiple trees with the edge as the rootnode for each and every tree.Everything up to so far everything went well but the problem comes when i want the program to pick every single tree and traverse through the set of generated edges to create the children of a tree.What it does at the moment for each tree is returning the a duplication of the parent node as the child nodes and that is a problem.Can anyone related with this problem help.Your help will be appreciated.
    The code
    TreeNode class
    package SPO;
    import java.util.*;
    public class TreeNode
            Edge edge;
            TreeNode node;
         Vector childrens = new Vector();
            public TreeNode(Edge edge)
                    this.edge = edge;
            public synchronized  void insert(Edge edge)
                    if(edge.fromNode == this.edge.toNode)
                            if(node == null )
                                    node = new TreeNode(edge);
                                    childrens.add(node);
                            else
                        node.insert(edge);
                                    childrens.add(node);
    Tree class
    package SPO;
    import java.util.*;
    public class Tree
            TreeNode rootNode;
         public Tree()
                    rootNode = null;
            public Tree[]  createTrees(Vector initTrees,Vector edges)
                   Tree [] trees =  new Tree[initTrees.size()];
                   for(int c = 0;c < trees.length;c++)
                      trees[c] = (Tree)initTrees.elementAt(c);     
                   for(int i = 0;i < trees.length;i++)
                            for(int x = 0;x < edges.size();x++)
                                    Vector temp = (Vector)edges.elementAt(x);
                                    for(int y = 0;y < temp.size();y++)
                                           trees.insertNode((Edge)temp.elementAt(y));
    return trees;
    public void printTree(Tree tree)
    System.out.print("("+tree.rootNode.edge.fromNode.getObjName()+","+tree.rootNode.edge.toNode.getObjName()+")");
    Vector siblings = tree.rootNode.childrens;
    for(int i = 0; i < siblings.size();i++)
    TreeNode node = (TreeNode)siblings.elementAt(i);
    System.out.print("("+node.edge.fromNode.getObjName()+","+node.edge.toNode.getObjName()+")");
    System.out.println();
    public Vector initializeTrees(Vector edges)
    Vector trees = new Vector();
    for(int i = 0;i < edges.size();i++)
    Vector temp = (Vector)edges.elementAt(i);
    for(int j = 0;j < temp.size();j++)
    Tree tree = new Tree();
    tree.insertNode((Edge)temp.elementAt(j));
    trees.add(tree);
    return trees;
    public synchronized void insertNode(Edge edge)
    if(rootNode == null)
    rootNode = new TreeNode(edge);
    else
    rootNode.insert(edge);
    EdgeGenerator class
    package SPO;
    import java.util.*;
    import k_means.*;
    public class EdgeGenerator
         public EdgeGenerator()
    public Vector createEdges(Vector dataPoints)
    //OrderPair orderPair = new OrderPair();
    Vector edges = new Vector();
    for(int i = 0;i < dataPoints.size()-1 ;i++)
    Vector temp = new Vector();
    for(int j = i+1;j < dataPoints.size();j++)
    //Create an order of edges
    Edge edge = new Edge((DataPoint)dataPoints.elementAt(i),(DataPoint)dataPoints.elementAt(j));
    temp.add(edge);
    edges.add(temp);
    return edges;
    Edge class
    package SPO;
    import k_means.*;
    public class Edge
    public DataPoint toNode;
    public DataPoint fromNode;
    public Edge(DataPoint x,DataPoint y)
    if (x.getX() > y.getX())
    this.fromNode = x;
    this.toNode = y;
    else
    this.fromNode=y;
    this.toNode = x;
    Entry Point
    package SPO;
    import java.util.*;
    import k_means.*;
    public class Tester {
         public static void main(String[] args)
              Vector dataPoints = new Vector();
              dataPoints.add(new DataPoint(140, "Orange"));
              dataPoints.add(new DataPoint(114.2, "Lemmon"));
              dataPoints.add(new DataPoint(111.5, "Coke"));
              dataPoints.add(new DataPoint(104.6, "Pine apple"));
              dataPoints.add(new DataPoint(94.1, "W grape"));
              dataPoints.add(new DataPoint(85.2, "Appletizer"));
              dataPoints.add(new DataPoint(84.8, "R Grape"));
              dataPoints.add(new DataPoint(74.2, "Sprite"));
              dataPoints.add(new DataPoint(69.2, "Granadilla"));
              dataPoints.add(new DataPoint(59, "Strawbery"));
              dataPoints.add(new DataPoint(45.5, "Stone"));
              dataPoints.add(new DataPoint(36.3, "Yam"));
              dataPoints.add(new DataPoint(27, "Cocoa"));
              dataPoints.add(new DataPoint(13.8, "Pawpaw"));
    EdgeGenerator eg = new EdgeGenerator();
    Vector edges = eg.createEdges(dataPoints);
    Tree treeMaker = new Tree();
    Vector partialTrees = treeMaker.initializeTrees(edges);
    Tree [] trees = treeMaker.createTrees(partialTrees,edges);
    for(int i = 0;i < trees.length;i++)
    treeMaker.printTree(trees[i]);
    The program output
    Each and every "@" symbol represents the start of a tree
    @(Orange,Lemmon)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)
    @(Orange,Coke)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)
    @(Orange,Pine apple)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)
    @(Orange,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Orange,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Orange,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Orange,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Orange,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Orange,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Orange,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Orange,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Orange,Cocoa)(Cocoa,Pawpaw)
    @(Orange,Pawpaw)
    @(Lemmon,Coke)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)
    @(Lemmon,Pine apple)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)
    @(Lemmon,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Lemmon,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Lemmon,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Lemmon,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Lemmon,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Lemmon,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Lemmon,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Lemmon,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Lemmon,Cocoa)(Cocoa,Pawpaw)
    @(Lemmon,Pawpaw)
    @(Coke,Pine apple)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)
    @(Coke,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Coke,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Coke,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Coke,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Coke,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Coke,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Coke,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Coke,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Coke,Cocoa)(Cocoa,Pawpaw)
    @(Coke,Pawpaw)
    @(Pine apple,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Pine apple,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Pine apple,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Pine apple,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Pine apple,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Pine apple,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Pine apple,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Pine apple,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Pine apple,Cocoa)(Cocoa,Pawpaw)
    @(Pine apple,Pawpaw)
    @(W grape,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(W grape,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(W grape,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(W grape,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(W grape,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(W grape,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(W grape,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(W grape,Cocoa)(Cocoa,Pawpaw)
    @(W grape,Pawpaw)
    @(Appletizer,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Appletizer,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Appletizer,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Appletizer,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Appletizer,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Appletizer,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Appletizer,Cocoa)(Cocoa,Pawpaw)
    @(Appletizer,Pawpaw)
    @(R Grape,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(R Grape,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(R Grape,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(R Grape,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(R Grape,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(R Grape,Cocoa)(Cocoa,Pawpaw)
    @(R Grape,Pawpaw)
    @(Sprite,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Sprite,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Sprite,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Sprite,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Sprite,Cocoa)(Cocoa,Pawpaw)
    @(Sprite,Pawpaw)
    @(Granadilla,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Granadilla,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Granadilla,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Granadilla,Cocoa)(Cocoa,Pawpaw)
    @(Granadilla,Pawpaw)
    @(Strawbery,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Strawbery,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Strawbery,Cocoa)(Cocoa,Pawpaw)
    @(Strawbery,Pawpaw)
    @(Stone,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Stone,Cocoa)(Cocoa,Pawpaw)
    @(Stone,Pawpaw)
    @(Yam,Cocoa)(Cocoa,Pawpaw)
    @(Yam,Pawpaw)
    @(Cocoa,Pawpaw)

    Your program description makes no sense. What exactly is it supposed to do?
    Your errors make no sense. What is it doing wrong?
    Your program output makes no sense. Look up pre-order, in-order, and post-order notation for representing trees. Pick one of those that you think would be best. I would go with pre-order. Because what you are doing isn't understandable.
    By the way, I think your concept of a tree is flawed. A node in a tree has 3 things. it has a reference to its parent, it has references to any of its children, and it has some key value that represents the node (if each node were represented by numbers, the value would be an integer or something). In the case of the root, its reference to its parent is null. I don't know what you are doing with your tree, but it is highly confusing.

  • Problem with addRow and MultiLine Cell renderer

    Hi ,
    Ive a problem with no solution to me .......
    Ive seen in the forum and Ivent found an answer.......
    The problem is this:
    Ive a JTable with a custom model and I use a custom multiline cell renderer.
    (becuse in the real application "way" hasnt static lenght)
    When I add the first row all seem to be ok.....
    when I try to add more row I obtain :
    java.lang.ArrayIndexOutOfBoundsException: 1
    at javax.swing.SizeSequence.insertEntries(SizeSequence.java:332)
    at javax.swing.JTable.tableRowsInserted(JTable.java:2926)
    at javax.swing.JTable.tableChanged(JTable.java:2858)
    at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableMo
    del.java:280)
    at javax.swing.table.AbstractTableModel.fireTableRowsInserted(AbstractTa
    bleModel.java:215)
    at TableDemo$MyTableModel.addRow(TableDemo.java:103)
    at TableDemo$2.actionPerformed(TableDemo.java:256)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    64)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5134)
    at java.awt.Component.processEvent(Component.java:4931)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java:1590)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    This seems to be caused by
    table.setRowHeight(row,(getPreferredSize().height+2)); (line 164 of my example code)
    About the model I think its ok.....but who knows :-(......
    Please HELP me in anyway!!!
    Example code :
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class TableDemo extends JFrame {
    private boolean DEBUG = true;
    MyTableModel myModel = new MyTableModel();
    MyTable table = new MyTable(myModel);
    int i=0;
    public TableDemo() {
    super("TableDemo");
    JButton bottone = new JButton("Aggiungi 1 elemento");
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    //table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(bottone,BorderLayout.NORTH);
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    bottone.addActionListener(Add_Action);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    class MyTable extends JTable {
    MultiLineCellRenderer multiRenderer=new MultiLineCellRenderer();
    MyTable(TableModel tm)
    super(tm);
    public TableCellRenderer getCellRenderer(int row,int col) {
              if (col==1) return multiRenderer;
              else return super.getCellRenderer(row,col);
    class MyTableModel extends AbstractTableModel {
    Vector data=new Vector();
    final String[] columnNames = {"Name",
    "Way",
    "DeadLine (ms)"
    public int getColumnCount() { return 3; }
    public int getRowCount() { return data.size(); }
    public Object getValueAt(int row, int col) {
    Vector rowdata=(Vector)data.get(row);
                                                                return rowdata.get(col); }
    public String getColumnName(int col) {
    return columnNames[col];
    public void setValueAt (Object value, int row,int col)
         //setto i dati della modifica
    Vector actrow=(Vector)data.get(row);
    actrow.set(col,value);
         this.fireTableCellUpdated(row,col);
         public Class getColumnClass(int c)
              return this.getValueAt(0,c).getClass();
         public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col == 1)
    return false;
    else
    return true;
    public void addRow (String name,ArrayList path,Double dead) {
         Vector row =new Vector();
         row.add(name);
         row.add(path);
         row.add(dead);
         row.add(name); //!!!Mi tengo questo dato da utilizzare come key per andare a
         //prendere il path nella lista dei paths di Project
         //(needed as key to retrive data if name in col. 1 is changed)
         data.add(row);
         //Inspector.inspect(this);
         System.out.println ("Before firing Adding row...."+this.getRowCount());
         this.fireTableRowsInserted(this.getRowCount(),this.getRowCount());
    public void delRow (String namekey)
    for (int i=0;i<this.getRowCount();i++)
    if (namekey.equals(this.getValueAt(i,3)))
    data.remove(i);
    this.fireTableRowsDeleted(i,i);
    //per uscire dal ciclo
    i=this.getRowCount();
    public void delAllRows()
    int i;
    int bound =this.getRowCount();     
    for (i=0;i<bound;i++)     
         {data.remove(0);
         System.out.println ("Deleting .."+data);
    this.fireTableRowsDeleted(0,i);          
    class MultiLineCellRenderer extends JTextArea implements TableCellRenderer {
    private Hashtable rowHeights=new Hashtable();
    public MultiLineCellRenderer() {
    setEditable(false);
    setLineWrap(true);
    setWrapStyleWord(true);
    //this.setBorder(new Border(
    public Component getTableCellRendererComponent(JTable table,Object value,                              boolean isSelected, boolean hasFocus, int row, int column) {
    //System.out.println ("Renderer called"+value.getClass());
    if (value instanceof ArrayList) {
    String way=new String     (value.toString());
    setText(way);
    TableColumn thiscol=table.getColumn("Way");
    //System.out.println ("thiscol :"+thiscol.getPreferredWidth());
    //setto il size della JTextarea sulle dimensioni della colonna
    //per quanto riguarda il widht e su quelle ottenute da screen per l'height
    this.setSize(thiscol.getPreferredWidth(),this.getPreferredSize().height);
    // set the table's row height, if necessary
    //System.out.println ("Valore getPreferred.height"+getPreferredSize().height);
         if (table.getRowHeight(row)!=(this.getPreferredSize().height+2))
         {System.out.println ("Setting Row :"+row);
             System.out.println ("Dimension"+(getPreferredSize().height+2));
             System.out.println ("There are "+table.getRowCount()+"rows in the table ");
             if (row<table.getRowCount())
             table.setRowHeight(row,(getPreferredSize().height+2));
    else
    setText("");
    return this;
    /**Custom JTextField Subclass che permette all'utente di immettere solo numeri
    class WholeNumberField extends JTextField {
    private Toolkit toolkit;
    private NumberFormat integerFormatter;
    public WholeNumberField(int value, int columns) {
    super(columns);
    toolkit = Toolkit.getDefaultToolkit();
    integerFormatter = NumberFormat.getNumberInstance(Locale.US);
    integerFormatter.setParseIntegerOnly(true);
    setValue(value);
    public int getValue() {
    int retVal = 0;
    try {
    retVal = integerFormatter.parse(getText()).intValue();
    } catch (ParseException e) {
    // This should never happen because insertString allows
    // only properly formatted data to get in the field.
    toolkit.beep();
    return retVal;
    public void setValue(int value) {
    setText(integerFormatter.format(value));
    protected Document createDefaultModel() {
    return new WholeNumberDocument();
    protected class WholeNumberDocument extends PlainDocument {
    public void insertString(int offs,
    String str,
    AttributeSet a)
    throws BadLocationException {
    char[] source = str.toCharArray();
    char[] result = new char[source.length];
    int j = 0;
    for (int i = 0; i < result.length; i++) {
    if (Character.isDigit(source))
    result[j++] = source[i];
    else {
    toolkit.beep();
    System.err.println("insertString: " + source[i]);
    super.insertString(offs, new String(result, 0, j), a);
    ActionListener Add_Action = new ActionListener() {
              public void actionPerformed (ActionEvent e)
              System.out.println ("Adding");
              ArrayList way =new ArrayList();
              way.add(new String("Uno"));
              way.add(new String("Due"));
              way.add(new String("Tre"));
              way.add(new String("Quattro"));
              myModel.addRow(new String("Nome"+i++),way,new Double(0));     
    public static void main(String[] args) {
    TableDemo frame = new TableDemo();
    frame.pack();
    frame.setVisible(true);

    In the addRow method, change the line
    this.fireTableRowsInserted(this.getRowCount(),this.getRowCount()); to
    this.fireTableRowsInserted(data.size() - 1, data.size() - 1);Sai Pullabhotla

  • Problem with Javascript in JSP

    Hi Guys,
    I have this problem with my JSP page. I am using a javascript function
    which calls a function within a bean. The problem that I have is that I get an error when trying to call the following function :
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    I get a runtime error at the line Vector empNames = DBQuery.getResult;
    Any ideas would be much appreciated.
    Below is the whole code:
    Thanks in advance
    FRank
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@ page import="java.util.*, java.lang.*" %>
    <%-- Declare the java bean for the countries to be queried --%>
    <jsp:useBean id="DBQuery" class="DBQuery" scope="page" />
    <%-- Bean property searchCondition is not set to query countries --%>
    <jsp:setProperty name="DBQuery" property="searchCondition" />
    <%
    Vector empNames = DBQuery.getResult();
    %>
    <HTML>
    <BODY BGCOLOR="GREY">
    <SCRIPT LANGUAGE="JavaScript1.1">
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    </SCRIPT>
    <FORM NAME = form1>
    Please enter in the following details
    <p>
    Reference Type :::====
    <select name="refDataTypes" onchange="refDataTypes_onchange()">
    <option value ="1"></option>
    <% for(Enumeration enum = empNames.elements();enum.hasMoreElements();)
    String nextEmpName = (String)enum.nextElement();
    %>
    <option value =<%=nextEmpName%>><%=nextEmpName%></option>
    <%
    %>
    </select>
    <BR>
    <BR>
    Emp No
    <INPUT TYPE="text" NAME=txtAge >
    <BR>
    <BR>
    <INPUT TYPE="button" VALUE="Check Details" NAME=butCheckForm >
    </FORM>
    </BODY>
    </HTML>

    Thanks dimadoo
    I need my JSP to do the following :
    When a user selects a option from a select list. There is a textfield which I want to populate based on the option that thas been selected from the list.
    I tried the following :
    <% Vector empNames = DBQuery.getResult(); %>
    and it does not even go into the bean.
    Will this work if I refresh the page?

  • Problem with JComboBox in aTable Cell

    I try to put JComboBox in JTableCell,
    what i want to do is something like this...
    Question | Answer |
    1. what is your favourite | a. Pizza |
    food? | b. Hot Dog |
    2. what is your favourite | a. red |
    color? | b. blue |
    Object[][] data = {
    {"1.What is your favourite food?", new AnswerChoices(new String[]{"a.Pizza","b.Hot Dog"})},
    {"2.What is your favourite color?", new AnswerChoices(new String[]{"a.red","b.blue"})}
    here my code;
    //class AnswerChoicesCellEditor
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.Component;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    import de.falcom.table.*;
    public class AnswerChoicesCellEditor extends AbstractCellEditor implements TableCellEditor{
         protected JComboBox mComboBox;
    public AnswerChoicesCellEditor(){
         mComboBox = new JComboBox();
         mComboBox.addActionListener(this);
         mComboBox.setEditable(false);
    public Component getTableCellEditorComponent(JTable table,Object value,boolean isSelected,int row,int column){
         if(value instanceof AnswerChoices){
              AnswerChoices a = (AnswerChoices)value;
              String[] c = a.getChoices();
              mComboBox.removeAllItems();
              for(int i=0; i < c.length; i++)
                   mComboBox.addItem(c);
                   mComboBox.setSelectedIndex(a.getAnswer());
         return mComboBox;
    public Object getCellEditorValue(){
         int nchoices = mComboBox.getItemCount();
         String[] c = new String[nchoices];
         for(int i = 0; i<nchoices; i++){
              c[i] = mComboBox.getItemAt(i).toString();
         return new AnswerChoices(c,mComboBox.getSelectedIndex());
         //return mComboBox.getSelectedItem(); //here i get but after selection there is no comboBox in tableCell
    //the Renderer class
    import javax.swing.table.TableCellRenderer;
    import javax.swing.*;
    import java.awt.Component;
    public class AnswerChoicesCellRenderer extends JComboBox implements TableCellRenderer {
         private Object curValue;
    /** Creates new AnswerChoiceCellRenderer */
    public AnswerChoicesCellRenderer() {
    setEditable(false);
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column) {
    if (value instanceof AnswerChoices) {
    AnswerChoices nl = (AnswerChoices)value;
    String[] tList = nl.getChoices();
    if (tList != null) {
    removeAllItems();
    for (int i=0; i<tList.length; i++)
    addItem(tList[i]);
         setSelectedIndex(AnswerChoices.getAnswer());
         //this.setSelectedItem();
    //return this;
    //this.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (table != null)
    if (table.isCellEditable(row, column))
    setForeground(CellRendererConstants.EDITABLE_COLOR);
    else
    setForeground(CellRendererConstants.UNEDITABLE_COLOR);
              setBackground(table.getBackground());
    return this;
    public class AnswerChoices {
         static int ans = 0;
         String[] choices ;
    public AnswerChoices(String[]c,int a){
              choices = c;
              ans          = a;
    public AnswerChoices(String[] c){
              this(c,0);
    public String[] getChoices(){
         return choices;
    public void setAnswer(int a){
         ans = a;
    public static int getAnswer(){
         return ans;
    //the TableModel i used in my app
    import java.awt.Color;
    import javax.swing.JTable;
    import javax.swing.ListSelectionModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    import javax.swing.*;
    public class FAL_Table extends JTable {
    /** Creates new FAL_Table */
    public FAL_Table(DefaultTableModel dtm) {
    super(dtm);
    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    setRowSelectionAllowed(false);
    setColumnSelectionAllowed(false);
    setBackground(java.awt.Color.white);
    setDefaultCellEditorRenderer();
    private void setDefaultCellEditorRenderer(Class forClass, TableCellEditor editor, TableCellRenderer renderer) {
         setDefaultEditor(forClass, editor);
         setDefaultRenderer(forClass, renderer);
         private void setDefaultCellEditorRenderer() {
              // Setting default editor&renderer of Boolean
              setDefaultCellEditorRenderer(Boolean.class, new BooleanCellEditor(), new BooleanCellRenderer());
              //Setting default editor&renderer of ComboBox
              setDefaultCellEditorRenderer(JComboBox.class, new ComboBoxCellEditor( ),new ComboBoxRenderer());
              // Number class
              // Setting default editor&renderer of java.math.BigDecimal
              setDefaultCellEditorRenderer(java.math.BigDecimal.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of java.math.BigInteger
              setDefaultCellEditorRenderer(java.math.BigInteger.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of java.lang.Byte
              setDefaultCellEditorRenderer(Byte.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Double
              setDefaultCellEditorRenderer(Double.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Float
              setDefaultCellEditorRenderer(Float.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Integer
              setDefaultCellEditorRenderer(Integer.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Long
              setDefaultCellEditorRenderer(Long.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Short
              setDefaultCellEditorRenderer(Short.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of String
              setDefaultCellEditorRenderer(String.class,new StringCellEditor(), new StringCellRenderer());
              // Setting default editor&renderer of FileName
              setDefaultCellEditorRenderer(FileName.class,new FileNameCellEditor(), new FileNameCellRenderer());
              // Setting default editor&renderer of Color
              setDefaultCellEditorRenderer(Color.class,new ColorCellEditor(), new ColorCellRenderer());
              setDefaultCellEditorRenderer(AnswerChoices.class, new AnswerChoicesCellEditor(), new AnswerChoicesCellRenderer());
              setDefaultCellEditorRenderer(JSpinner.class, new SpinnerCellEditor(), new SpinnerRenderer());
    public Class getCellClass(int row,int col) {
    TableModel model = getModel();
    if (model instanceof FAL_TableModel) {
    FAL_TableModel ptm = (FAL_TableModel)model;
    return ptm.getCellClass(row,convertColumnIndexToModel(col));
    return model.getColumnClass(convertColumnIndexToModel(col));
    public TableCellRenderer getCellRenderer(int row, int column) {
    TableColumn tableColumn = getColumnModel().getColumn(column);
    TableCellRenderer renderer = tableColumn.getCellRenderer();
    if (renderer == null) {
    renderer = getDefaultRenderer(getCellClass(row,column));
    return renderer;
    public TableCellEditor getCellEditor(int row, int column) {
    TableColumn tableColumn = getColumnModel().getColumn(column);
    TableCellEditor editor = tableColumn.getCellEditor();
    if (editor == null) {
    editor = getDefaultEditor(getCellClass(row,column));
    return editor;
    import javax.swing.table.*;
    import java.util.Vector;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    public class FAL_TableModel extends DefaultTableModel implements TableModel {
    public FAL_TableModel() {
    this((Vector)null, 0);
    public FAL_TableModel(int numRows, int numColumns) {
    super(numRows,numColumns);
    public FAL_TableModel(Vector columnNames, int numRows) {
    super(columnNames,numRows);
    public FAL_TableModel(Object[] columnNames, int numRows) {
    super(convertToVector(columnNames), numRows);
    public FAL_TableModel(Vector data, Vector columnNames) {
    setDataVector(data, columnNames);
    public FAL_TableModel(Object[][] data, Object[] columnNames) {
    setDataVector(data, columnNames);
         public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    Object obj = getValueAt(row,col);
    if (col != 1){
    return false;
         }else{
              return true;
    public Class getCellClass(int row,int col) {
    Object obj = getValueAt(row,col);
    if (obj != null)
         return obj.getClass();
         else
         return Object.class;
    public Object getCellValue(int row,int col) {
    Object obj = getValueAt(row,col);
              return obj;      
    my problem is, when i select an item from one of the comboBox in the table the value of the other cells changes too and i have the same problem with JSpinner.
    please help i am stuck
    Gebi

    and when i try to get the current value oa a cell it returns the Component class like this
    AnswerChoices@bf1f20 ...

  • [SOLVED?] Problem with nVidia card

    This is my first post, so; hello to everyone!! Thx in advance to this great community!!
    My problem is pretty strange and anoying. I have an nVidia 8600GT in a Abit AX78 MB running Arch with KDE. Anything is going right until logon process. I write the user and password in KDM screen and then, after de animation of init proces of KDE, all graphics displayed are corrupted (a rectangle in the upper left corner is showed) and that's it. Only work the mouse pointer.
    This malfunction its showed by the nouveau driver AND the proprietary driver... So i think the problem is it in other place than the driver of the card.
    The Xorg.0.log and dmesg.log files are atached at the end of this thread.
    I hope that annyone can help me.
    Thx in advance again.
    The Xorg.0.log file contains this:
    [ 15.809]
    X.Org X Server 1.10.3
    Release Date: 2011-07-08
    [ 15.814] X Protocol Version 11, Revision 0
    [ 15.814] Build Operating System: Linux 2.6.39-ARCH i686
    [ 15.814] Current Operating System: Linux hidramedia_host 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 15:31:04 CEST 2011 i686
    [ 15.815] Kernel command line: root=/dev/sda5 ro
    [ 15.815] Build Date: 09 July 2011 07:57:07AM
    [ 15.815]
    [ 15.815] Current version of pixman: 0.22.2
    [ 15.815] Before reporting problems, check [url]http://wiki.x.org[/url]
    to make sure that you have the latest version.
    [ 15.815] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 15.815] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug 1 14:13:23 2011
    [ 15.829] (==) Using config file: "/etc/X11/xorg.conf"
    [ 15.829] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 15.835] (==) ServerLayout "Layout0"
    [ 15.835] (**) |-->Screen "Screen0" (0)
    [ 15.835] (**) | |-->Monitor "Monitor0"
    [ 15.836] (**) | |-->Device "Device0"
    [ 15.836] (**) |-->Input Device "Keyboard0"
    [ 15.836] (**) |-->Input Device "Mouse0"
    [ 15.836] (==) Automatically adding devices
    [ 15.836] (==) Automatically enabling devices
    [ 15.859] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
    [ 15.859] Entry deleted from font path.
    [ 15.859] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 15.859] Entry deleted from font path.
    [ 15.859] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
    [ 15.859] Entry deleted from font path.
    [ 15.859] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 15.859] Entry deleted from font path.
    [ 15.859] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 15.859] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 15.859] Entry deleted from font path.
    [ 15.859] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 15.859] (==) FontPath set to:
    /usr/share/fonts/misc/
    [ 15.859] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 15.859] (**) Extension "Composite" is disabled
    [ 15.859] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 15.859] (WW) Disabling Keyboard0
    [ 15.859] (WW) Disabling Mouse0
    [ 15.859] (II) Loader magic: 0x822e1a0
    [ 15.859] (II) Module ABI versions:
    [ 15.859] X.Org ANSI C Emulation: 0.4
    [ 15.859] X.Org Video Driver: 10.0
    [ 15.859] X.Org XInput driver : 12.2
    [ 15.859] X.Org Server Extension : 5.0
    [ 15.860] (--) PCI:*(0:1:0:0) 10de:0402:0000:0000 rev 161, Mem @ 0xfa000000/16777216, 0xd0000000/268435456, 0xf8000000/33554432, I/O @ 0x0000df00/128, BIOS @ 0x????????/131072
    [ 15.860] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 15.860] (II) LoadModule: "extmod"
    [ 15.871] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 15.880] (II) Module extmod: vendor="X.Org Foundation"
    [ 15.880] compiled for 1.10.3, module version = 1.0.0
    [ 15.880] Module class: X.Org Server Extension
    [ 15.880] ABI class: X.Org Server Extension, version 5.0
    [ 15.880] (II) Loading extension MIT-SCREEN-SAVER
    [ 15.880] (II) Loading extension XFree86-VidModeExtension
    [ 15.880] (II) Loading extension XFree86-DGA
    [ 15.880] (II) Loading extension DPMS
    [ 15.880] (II) Loading extension XVideo
    [ 15.880] (II) Loading extension XVideo-MotionCompensation
    [ 15.880] (II) Loading extension X-Resource
    [ 15.880] (II) LoadModule: "dbe"
    [ 15.880] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 15.881] (II) Module dbe: vendor="X.Org Foundation"
    [ 15.881] compiled for 1.10.3, module version = 1.0.0
    [ 15.881] Module class: X.Org Server Extension
    [ 15.881] ABI class: X.Org Server Extension, version 5.0
    [ 15.881] (II) Loading extension DOUBLE-BUFFER
    [ 15.881] (II) LoadModule: "glx"
    [ 15.881] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 16.640] (II) Module glx: vendor="NVIDIA Corporation"
    [ 16.640] compiled for 4.0.2, module version = 1.0.0
    [ 16.640] Module class: X.Org Server Extension
    [ 16.640] (II) NVIDIA GLX Module 275.21 Mon Jul 18 14:55:52 PDT 2011
    [ 16.640] (II) Loading extension GLX
    [ 16.640] (II) LoadModule: "record"
    [ 16.641] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 16.645] (II) Module record: vendor="X.Org Foundation"
    [ 16.645] compiled for 1.10.3, module version = 1.13.0
    [ 16.645] Module class: X.Org Server Extension
    [ 16.645] ABI class: X.Org Server Extension, version 5.0
    [ 16.645] (II) Loading extension RECORD
    [ 16.645] (II) LoadModule: "dri"
    [ 16.645] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 16.661] (II) Module dri: vendor="X.Org Foundation"
    [ 16.661] compiled for 1.10.3, module version = 1.0.0
    [ 16.661] ABI class: X.Org Server Extension, version 5.0
    [ 16.661] (II) Loading extension XFree86-DRI
    [ 16.661] (II) LoadModule: "dri2"
    [ 16.661] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 16.662] (II) Module dri2: vendor="X.Org Foundation"
    [ 16.662] compiled for 1.10.3, module version = 1.2.0
    [ 16.662] ABI class: X.Org Server Extension, version 5.0
    [ 16.662] (II) Loading extension DRI2
    [ 16.662] (II) LoadModule: "nvidia"
    [ 16.662] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 16.709] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 16.709] compiled for 4.0.2, module version = 1.0.0
    [ 16.709] Module class: X.Org Video Driver
    [ 16.732] (II) NVIDIA dlloader X Driver 275.21 Mon Jul 18 14:38:30 PDT 2011
    [ 16.737] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 16.740] (++) using VT number 7
    [ 16.751] (II) Loading sub module "fb"
    [ 16.751] (II) LoadModule: "fb"
    [ 16.751] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 16.762] (II) Module fb: vendor="X.Org Foundation"
    [ 16.762] compiled for 1.10.3, module version = 1.0.0
    [ 16.762] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 16.762] (II) Loading sub module "wfb"
    [ 16.762] (II) LoadModule: "wfb"
    [ 16.763] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 16.769] (II) Module wfb: vendor="X.Org Foundation"
    [ 16.769] compiled for 1.10.3, module version = 1.0.0
    [ 16.769] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 16.769] (II) Loading sub module "ramdac"
    [ 16.769] (II) LoadModule: "ramdac"
    [ 16.769] (II) Module "ramdac" already built-in
    [ 16.771] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 16.771] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 16.771] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 16.780] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
    [ 16.780] (==) NVIDIA(0): RGB weight 888
    [ 16.780] (==) NVIDIA(0): Default visual is TrueColor
    [ 16.780] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 17.785] (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (CRT-0)) does not support NVIDIA
    [ 17.785] (II) NVIDIA(GPU-0): 3D Vision stereo.
    [ 17.789] (II) NVIDIA(0): NVIDIA GPU GeForce 8600 GT (G84) at PCI:1:0:0 (GPU-0)
    [ 17.789] (--) NVIDIA(0): Memory: 262144 kBytes
    [ 17.789] (--) NVIDIA(0): VideoBIOS: 60.84.35.00.00
    [ 17.789] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 17.789] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
    [ 17.789] (--) NVIDIA(0): Connected display device(s) on GeForce 8600 GT at PCI:1:0:0
    [ 17.789] (--) NVIDIA(0): Samsung SyncMaster (CRT-0)
    [ 17.789] (--) NVIDIA(0): Samsung SyncMaster (CRT-0): 400.0 MHz maximum pixel clock
    [ 17.859] (II) NVIDIA(0): Assigned Display Device: CRT-0
    [ 17.859] (==) NVIDIA(0):
    [ 17.859] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
    [ 17.859] (==) NVIDIA(0): will be used as the requested mode.
    [ 17.859] (==) NVIDIA(0):
    [ 17.859] (II) NVIDIA(0): Validated modes:
    [ 17.859] (II) NVIDIA(0): "nvidia-auto-select"
    [ 17.859] (II) NVIDIA(0): Virtual screen size determined to be 800 x 600
    [ 17.900] (--) NVIDIA(0): DPI set to (72, 72); computed from "UseEdidDpi" X config
    [ 17.900] (--) NVIDIA(0): option
    [ 17.900] (--) Depth 24 pixmap format is 32 bpp
    [ 17.901] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
    [ 17.905] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
    [ 17.905] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
    [ 17.905] (II) NVIDIA(0): configuration option may not be set correctly. When the
    [ 17.905] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
    [ 17.905] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
    [ 17.905] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
    [ 17.905] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
    [ 17.905] (II) NVIDIA(0): Config Options in the README.
    [ 17.908] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
    [ 17.946] (II) Loading extension NV-GLX
    [ 18.001] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 18.002] (==) NVIDIA(0): Backing store disabled
    [ 18.002] (==) NVIDIA(0): Silken mouse enabled
    [ 18.002] (**) NVIDIA(0): DPMS enabled
    [ 18.002] (II) Loading extension NV-CONTROL
    [ 18.003] (II) Loading extension XINERAMA
    [ 18.003] (II) Loading sub module "dri2"
    [ 18.003] (II) LoadModule: "dri2"
    [ 18.003] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 18.003] (II) Module dri2: vendor="X.Org Foundation"
    [ 18.003] compiled for 1.10.3, module version = 1.2.0
    [ 18.003] ABI class: X.Org Server Extension, version 5.0
    [ 18.003] (II) NVIDIA(0): [DRI2] Setup complete
    [ 18.003] (==) RandR enabled
    [ 18.003] (II) Initializing built-in extension Generic Event Extension
    [ 18.003] (II) Initializing built-in extension SHAPE
    [ 18.003] (II) Initializing built-in extension MIT-SHM
    [ 18.003] (II) Initializing built-in extension XInputExtension
    [ 18.003] (II) Initializing built-in extension XTEST
    [ 18.003] (II) Initializing built-in extension BIG-REQUESTS
    [ 18.003] (II) Initializing built-in extension SYNC
    [ 18.003] (II) Initializing built-in extension XKEYBOARD
    [ 18.003] (II) Initializing built-in extension XC-MISC
    [ 18.003] (II) Initializing built-in extension SECURITY
    [ 18.003] (II) Initializing built-in extension XINERAMA
    [ 18.003] (II) Initializing built-in extension XFIXES
    [ 18.003] (II) Initializing built-in extension RENDER
    [ 18.003] (II) Initializing built-in extension RANDR
    [ 18.003] (II) Initializing built-in extension COMPOSITE
    [ 18.003] (II) Initializing built-in extension DAMAGE
    [ 18.005] (II) Initializing extension GLX
    [ 18.213] (II) config/udev: Adding input device Power Button (/dev/input/event3)
    [ 18.213] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 18.213] (II) LoadModule: "evdev"
    [ 18.213] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 18.214] (II) Module evdev: vendor="X.Org Foundation"
    [ 18.214] compiled for 1.10.0, module version = 2.6.0
    [ 18.214] Module class: X.Org XInput Driver
    [ 18.214] ABI class: X.Org XInput driver, version 12.2
    [ 18.214] (II) Using input driver 'evdev' for 'Power Button'
    [ 18.214] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 18.214] (**) Power Button: always reports core events
    [ 18.214] (**) Power Button: Device: "/dev/input/event3"
    [ 18.226] (--) Power Button: Found keys
    [ 18.226] (II) Power Button: Configuring as keyboard
    [ 18.226] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
    [ 18.226] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    [ 18.226] (**) Option "xkb_rules" "evdev"
    [ 18.226] (**) Option "xkb_model" "evdev"
    [ 18.226] (**) Option "xkb_layout" "us"
    [ 18.252] (II) config/udev: Adding input device Power Button (/dev/input/event2)
    [ 18.252] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 18.252] (II) Using input driver 'evdev' for 'Power Button'
    [ 18.252] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 18.252] (**) Power Button: always reports core events
    [ 18.252] (**) Power Button: Device: "/dev/input/event2"
    [ 18.266] (--) Power Button: Found keys
    [ 18.266] (II) Power Button: Configuring as keyboard
    [ 18.266] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2/event2"
    [ 18.266] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    [ 18.266] (**) Option "xkb_rules" "evdev"
    [ 18.266] (**) Option "xkb_model" "evdev"
    [ 18.266] (**) Option "xkb_layout" "us"
    [ 18.271] (II) config/udev: Adding input device Primax Electronics Wireless Mouse (/dev/input/event1)
    [ 18.271] (**) Primax Electronics Wireless Mouse: Applying InputClass "evdev pointer catchall"
    [ 18.271] (II) Using input driver 'evdev' for 'Primax Electronics Wireless Mouse'
    [ 18.271] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 18.271] (**) Primax Electronics Wireless Mouse: always reports core events
    [ 18.271] (**) Primax Electronics Wireless Mouse: Device: "/dev/input/event1"
    [ 18.283] (--) Primax Electronics Wireless Mouse: Found 3 mouse buttons
    [ 18.283] (--) Primax Electronics Wireless Mouse: Found scroll wheel(s)
    [ 18.283] (--) Primax Electronics Wireless Mouse: Found relative axes
    [ 18.283] (--) Primax Electronics Wireless Mouse: Found x and y relative axes
    [ 18.283] (II) Primax Electronics Wireless Mouse: Configuring as mouse
    [ 18.283] (II) Primax Electronics Wireless Mouse: Adding scrollwheel support
    [ 18.283] (**) Primax Electronics Wireless Mouse: YAxisMapping: buttons 4 and 5
    [ 18.283] (**) Primax Electronics Wireless Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 18.283] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:13.4/usb6/6-2/6-2:1.0/input/input1/event1"
    [ 18.283] (II) XINPUT: Adding extended input device "Primax Electronics Wireless Mouse" (type: MOUSE)
    [ 18.283] (II) Primax Electronics Wireless Mouse: initialized for relative axes.
    [ 18.283] (**) Primax Electronics Wireless Mouse: (accel) keeping acceleration scheme 1
    [ 18.283] (**) Primax Electronics Wireless Mouse: (accel) acceleration profile 0
    [ 18.283] (**) Primax Electronics Wireless Mouse: (accel) acceleration factor: 2.000
    [ 18.283] (**) Primax Electronics Wireless Mouse: (accel) acceleration threshold: 4
    [ 18.283] (II) config/udev: Adding input device Primax Electronics Wireless Mouse (/dev/input/mouse0)
    [ 18.283] (II) No input driver/identifier specified (ignoring)
    [ 18.285] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event5)
    [ 18.285] (II) No input driver/identifier specified (ignoring)
    [ 18.285] (II) config/udev: Adding input device HDA ATI SB Headphone (/dev/input/event6)
    [ 18.285] (II) No input driver/identifier specified (ignoring)
    [ 18.286] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 18.286] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 18.286] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
    [ 18.286] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 18.286] (**) AT Translated Set 2 keyboard: always reports core events
    [ 18.286] (**) AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 18.300] (--) AT Translated Set 2 keyboard: Found keys
    [ 18.300] (II) AT Translated Set 2 keyboard: Configuring as keyboard
    [ 18.300] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
    [ 18.300] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
    [ 18.300] (**) Option "xkb_rules" "evdev"
    [ 18.300] (**) Option "xkb_model" "evdev"
    [ 18.300] (**) Option "xkb_layout" "us"
    [ 18.300] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
    [ 18.300] (II) No input driver/identifier specified (ignoring)
    [ 1563.531] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
    [ 1563.587] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
    [ 1563.587] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
    [ 1563.587] (II) NVIDIA(0): configuration option may not be set correctly. When the
    [ 1563.587] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
    [ 1563.587] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
    [ 1563.587] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
    [ 1563.587] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
    [ 1563.587] (II) NVIDIA(0): Config Options in the README.
    And the dmesg.log file contains this:
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Linux version 2.6.39-ARCH (thomas@evey) (gcc version 4.6.1 (GCC) ) #1 SMP PREEMPT Sat Jul 9 15:31:04 CEST 2011
    [ 0.000000] BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
    [ 0.000000] BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
    [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
    [ 0.000000] BIOS-e820: 0000000000100000 - 000000007fff0000 (usable)
    [ 0.000000] BIOS-e820: 000000007fff0000 - 000000007fff3000 (ACPI NVS)
    [ 0.000000] BIOS-e820: 000000007fff3000 - 0000000080000000 (ACPI data)
    [ 0.000000] BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
    [ 0.000000] BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
    [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
    [ 0.000000] DMI 2.5 present.
    [ 0.000000] DMI: . ./AX78(AMD770+SB600), BIOS 6.00 PG 01/17/2008
    [ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
    [ 0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
    [ 0.000000] last_pfn = 0x7fff0 max_arch_pfn = 0x100000
    [ 0.000000] MTRR default type: uncachable
    [ 0.000000] MTRR fixed ranges enabled:
    [ 0.000000] 00000-9FFFF write-back
    [ 0.000000] A0000-BFFFF uncachable
    [ 0.000000] C0000-C7FFF write-protect
    [ 0.000000] C8000-CFFFF uncachable
    [ 0.000000] D0000-D3FFF write-back
    [ 0.000000] D4000-FFFFF uncachable
    [ 0.000000] MTRR variable ranges enabled:
    [ 0.000000] 0 base 0000000000 mask FF80000000 write-back
    [ 0.000000] 1 disabled
    [ 0.000000] 2 disabled
    [ 0.000000] 3 disabled
    [ 0.000000] 4 disabled
    [ 0.000000] 5 disabled
    [ 0.000000] 6 disabled
    [ 0.000000] 7 disabled
    [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
    [ 0.000000] found SMP MP-table at [c00f41f0] f41f0
    [ 0.000000] initial memory mapped : 0 - 01c00000
    [ 0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
    [ 0.000000] init_memory_mapping: 0000000000000000-00000000377fe000
    [ 0.000000] 0000000000 - 0000400000 page 4k
    [ 0.000000] 0000400000 - 0037400000 page 2M
    [ 0.000000] 0037400000 - 00377fe000 page 4k
    [ 0.000000] kernel direct mapping tables up to 377fe000 @ 1bfb000-1c00000
    [ 0.000000] RAMDISK: 7fdc9000 - 7ffe0000
    [ 0.000000] Allocated new RAMDISK: 375e7000 - 377fd792
    [ 0.000000] Move RAMDISK from 000000007fdc9000 - 000000007ffdf791 to 375e7000 - 377fd791
    [ 0.000000] ACPI: RSDP 000f81d0 00024 (v02 AMD770)
    [ 0.000000] ACPI: RSDT 7fff3000 00038 (v01 AMD770 AWRDACPI 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: FACP 7fff3080 00074 (v01 AMD770 AWRDACPI 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: DSDT 7fff3100 051E2 (v01 AMD770 AWRDACPI 00001000 MSFT 03000000)
    [ 0.000000] ACPI: FACS 7fff0000 00040
    [ 0.000000] ACPI: SSDT 7fff83c0 002CC (v01 PTLTD POWERNOW 00000001 LTP 00000001)
    [ 0.000000] ACPI: HPET 7fff86c0 00038 (v01 AMD770 AWRDACPI 42302E31 AWRD 00000098)
    [ 0.000000] ACPI: MCFG 7fff8700 0003C (v01 AMD770 AWRDACPI 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: APIC 7fff8300 00084 (v01 AMD770 AWRDACPI 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] 1159MB HIGHMEM available.
    [ 0.000000] 887MB LOWMEM available.
    [ 0.000000] mapped low ram: 0 - 377fe000
    [ 0.000000] low ram: 0 - 377fe000
    [ 0.000000] Zone PFN ranges:
    [ 0.000000] DMA 0x00000010 -> 0x00001000
    [ 0.000000] Normal 0x00001000 -> 0x000377fe
    [ 0.000000] HighMem 0x000377fe -> 0x0007fff0
    [ 0.000000] Movable zone start PFN for each node
    [ 0.000000] early_node_map[2] active PFN ranges
    [ 0.000000] 0: 0x00000010 -> 0x0000009f
    [ 0.000000] 0: 0x00000100 -> 0x0007fff0
    [ 0.000000] On node 0 totalpages: 524159
    [ 0.000000] free_area_init_node: node 0, pgdat c14a1980, node_mem_map f65e6200
    [ 0.000000] DMA zone: 32 pages used for memmap
    [ 0.000000] DMA zone: 0 pages reserved
    [ 0.000000] DMA zone: 3951 pages, LIFO batch:0
    [ 0.000000] Normal zone: 1744 pages used for memmap
    [ 0.000000] Normal zone: 221486 pages, LIFO batch:31
    [ 0.000000] HighMem zone: 2320 pages used for memmap
    [ 0.000000] HighMem zone: 294626 pages, LIFO batch:31
    [ 0.000000] Using APIC driver default
    [ 0.000000] Detected use of extended apic ids on hypertransport bus
    [ 0.000000] ACPI: PM-Timer IO Port: 0x4008
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] disabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] disabled)
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])
    [ 0.000000] ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
    [ 0.000000] IOAPIC[0]: apic_id 4, version 33, address 0xfec00000, GSI 0-23
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
    [ 0.000000] ACPI: IRQ0 used by override.
    [ 0.000000] ACPI: IRQ2 used by override.
    [ 0.000000] ACPI: IRQ9 used by override.
    [ 0.000000] Using ACPI (MADT) for SMP configuration information
    [ 0.000000] ACPI: HPET id: 0x10b9a201 base: 0xfed00000
    [ 0.000000] SMP: Allowing 4 CPUs, 2 hotplug CPUs
    [ 0.000000] nr_irqs_gsi: 40
    [ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
    [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
    [ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
    [ 0.000000] Allocating PCI resources starting at 80000000 (gap: 80000000:60000000)
    [ 0.000000] Booting paravirtualized kernel on bare hardware
    [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:4 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 12 pages/cpu @f6000000 s27648 r0 d21504 u1048576
    [ 0.000000] pcpu-alloc: s27648 r0 d21504 u1048576 alloc=1*4194304
    [ 0.000000] pcpu-alloc: [0] 0 1 2 3
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520063
    [ 0.000000] Kernel command line: root=/dev/sda5 ro
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Initializing CPU#0
    [ 0.000000] allocated 8388096 bytes of page_cgroup
    [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [ 0.000000] Initializing HighMem for node 0 (000377fe:0007fff0)
    [ 0.000000] Memory: 2062632k/2097088k available (3376k kernel code, 34004k reserved, 1390k data, 512k init, 1187784k highmem)
    [ 0.000000] virtual kernel memory layout:
    [ 0.000000] fixmap : 0xfff16000 - 0xfffff000 ( 932 kB)
    [ 0.000000] pkmap : 0xff800000 - 0xffc00000 (4096 kB)
    [ 0.000000] vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB)
    [ 0.000000] .init : 0xc14a8000 - 0xc1528000 ( 512 kB)
    [ 0.000000] .data : 0xc134c3bf - 0xc14a7c00 (1390 kB)
    [ 0.000000] .text : 0xc1000000 - 0xc134c3bf (3376 kB)
    [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
    [ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Preemptable hierarchical RCU implementation.
    [ 0.000000] RCU-based detection of stalled CPUs is disabled.
    [ 0.000000] Verbose stalled-CPUs detection is disabled.
    [ 0.000000] NR_IRQS:512
    [ 0.000000] CPU 0 irqstacks, hard=f540c000 soft=f540e000
    [ 0.000000] Console: colour VGA+ 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] hpet clockevent registered
    [ 0.000000] Fast TSC calibration failed
    [ 0.000000] TSC: Unable to calibrate against PIT
    [ 0.000000] TSC: using HPET reference calibration
    [ 0.000000] Detected 2700.236 MHz processor.
    [ 0.000000] Marking TSC unstable due to TSCs unsynchronized
    [ 0.016736] Calibrating delay loop (skipped), value calculated using timer frequency.. 5402.49 BogoMIPS (lpj=9000786)
    [ 0.016870] pid_max: default: 32768 minimum: 301
    [ 0.016983] Security Framework initialized
    [ 0.017051] AppArmor: AppArmor disabled by boot time parameter
    [ 0.017144] Mount-cache hash table entries: 512
    [ 0.017404] Initializing cgroup subsys ns
    [ 0.017471] ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
    [ 0.017549] Initializing cgroup subsys cpuacct
    [ 0.017625] Initializing cgroup subsys memory
    [ 0.017701] Initializing cgroup subsys devices
    [ 0.017767] Initializing cgroup subsys freezer
    [ 0.017833] Initializing cgroup subsys net_cls
    [ 0.017899] Initializing cgroup subsys blkio
    [ 0.017995] CPU: Physical Processor ID: 0
    [ 0.018060] CPU: Processor Core ID: 0
    [ 0.018126] mce: CPU supports 5 MCE banks
    [ 0.018199] using C1E aware idle routine
    [ 0.019127] ACPI: Core revision 20110316
    [ 0.023362] ftrace: allocating 15225 entries in 30 pages
    [ 0.026734] Enabling APIC mode: Flat. Using 1 I/O APICs
    [ 0.027332] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
    [ 0.061631] CPU0: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ stepping 02
    [ 0.063329] Performance Events: AMD PMU driver.
    [ 0.063329] ... version: 0
    [ 0.063329] ... bit width: 48
    [ 0.063329] ... generic registers: 4
    [ 0.063329] ... value mask: 0000ffffffffffff
    [ 0.063329] ... max period: 00007fffffffffff
    [ 0.063329] ... fixed-purpose events: 0
    [ 0.063329] ... event mask: 000000000000000f
    [ 0.080086] NMI watchdog enabled, takes one hw-pmu counter.
    [ 0.106674] CPU 1 irqstacks, hard=f54b4000 soft=f54b6000
    [ 0.106676] Booting Node 0, Processors #1
    [ 0.106783] smpboot cpu 1: start_ip = 9b000
    [ 0.019998] Initializing CPU#1
    [ 0.200085] NMI watchdog enabled, takes one hw-pmu counter.
    [ 0.206657] Brought up 2 CPUs
    [ 0.206721] Total of 2 processors activated (10805.88 BogoMIPS).
    [ 0.207206] devtmpfs: initialized
    [ 0.207206] PM: Registering ACPI NVS region at 7fff0000 (12288 bytes)
    [ 0.207649] print_constraints: dummy:
    [ 0.207764] NET: Registered protocol family 16
    [ 0.207919] node 0 link 0: io port [c000, ffff]
    [ 0.207922] TOM: 0000000080000000 aka 2048M
    [ 0.207987] node 0 link 0: mmio [a0000, bffff]
    [ 0.207990] node 0 link 0: mmio [80000000, dfffffff]
    [ 0.207992] node 0 link 0: mmio [f0000000, fe02ffff]
    [ 0.207995] node 0 link 0: mmio [e0000000, e03fffff]
    [ 0.207997] bus: [00, 03] on node 0 link 0
    [ 0.208000] bus: 00 index 0 [io 0x0000-0xffff]
    [ 0.208002] bus: 00 index 1 [mem 0x000a0000-0x000bffff]
    [ 0.208003] bus: 00 index 2 [mem 0x80000000-0xefffffff]
    [ 0.208005] bus: 00 index 3 [mem 0xf0000000-0xffffffff]
    [ 0.208011] ACPI: bus type pci registered
    [ 0.208149] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
    [ 0.208227] PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in E820
    [ 0.208292] PCI: Using MMCONFIG for extended config space
    [ 0.208357] PCI: Using configuration type 1 for base access
    [ 0.208842] bio: create slab <bio-0> at 0
    [ 0.210574] ACPI: EC: Look up EC in DSDT
    [ 0.211181] ACPI: Executed 1 blocks of module-level executable AML code
    [ 0.214150] ACPI: Interpreter enabled
    [ 0.214220] ACPI: (supports S0 S3 S4 S5)
    [ 0.214501] ACPI: Using IOAPIC for interrupt routing
    [ 0.225790] ACPI: No dock devices found.
    [ 0.225854] HEST: Table not found.
    [ 0.225919] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
    [ 0.226037] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
    [ 0.226190] pci_root PNP0A03:00: host bridge window [io 0x0000-0x0cf7]
    [ 0.226257] pci_root PNP0A03:00: host bridge window [io 0x0d00-0xffff]
    [ 0.226324] pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff]
    [ 0.226399] pci_root PNP0A03:00: host bridge window [mem 0x000c0000-0x000dffff]
    [ 0.226474] pci_root PNP0A03:00: host bridge window [mem 0x80000000-0xffffffff]
    [ 0.226562] pci 0000:00:00.0: [1002:5957] type 0 class 0x000600
    [ 0.226576] pci 0000:00:00.0: reg 1c: [mem 0xe0000000-0xffffffff 64bit]
    [ 0.226609] pci 0000:00:02.0: [1002:5978] type 1 class 0x000604
    [ 0.226636] pci 0000:00:02.0: PME# supported from D0 D3hot D3cold
    [ 0.226639] pci 0000:00:02.0: PME# disabled
    [ 0.226667] pci 0000:00:0a.0: [1002:597f] type 1 class 0x000604
    [ 0.226693] pci 0000:00:0a.0: PME# supported from D0 D3hot D3cold
    [ 0.226696] pci 0000:00:0a.0: PME# disabled
    [ 0.226723] pci 0000:00:12.0: [1002:4380] type 0 class 0x000106
    [ 0.226742] pci 0000:00:12.0: reg 10: [io 0xff00-0xff07]
    [ 0.226752] pci 0000:00:12.0: reg 14: [io 0xfe00-0xfe03]
    [ 0.226763] pci 0000:00:12.0: reg 18: [io 0xfd00-0xfd07]
    [ 0.226773] pci 0000:00:12.0: reg 1c: [io 0xfc00-0xfc03]
    [ 0.226784] pci 0000:00:12.0: reg 20: [io 0xfb00-0xfb0f]
    [ 0.226794] pci 0000:00:12.0: reg 24: [mem 0xfe02f000-0xfe02f3ff]
    [ 0.226836] pci 0000:00:13.0: [1002:4387] type 0 class 0x000c03
    [ 0.226851] pci 0000:00:13.0: reg 10: [mem 0xfe02e000-0xfe02efff]
    [ 0.226919] pci 0000:00:13.1: [1002:4388] type 0 class 0x000c03
    [ 0.226933] pci 0000:00:13.1: reg 10: [mem 0xfe02d000-0xfe02dfff]
    [ 0.227002] pci 0000:00:13.2: [1002:4389] type 0 class 0x000c03
    [ 0.227016] pci 0000:00:13.2: reg 10: [mem 0xfe02c000-0xfe02cfff]
    [ 0.227084] pci 0000:00:13.3: [1002:438a] type 0 class 0x000c03
    [ 0.227099] pci 0000:00:13.3: reg 10: [mem 0xfe02b000-0xfe02bfff]
    [ 0.227166] pci 0000:00:13.4: [1002:438b] type 0 class 0x000c03
    [ 0.227181] pci 0000:00:13.4: reg 10: [mem 0xfe02a000-0xfe02afff]
    [ 0.227255] pci 0000:00:13.5: [1002:4386] type 0 class 0x000c03
    [ 0.227275] pci 0000:00:13.5: reg 10: [mem 0xfe029000-0xfe0290ff]
    [ 0.227351] pci 0000:00:13.5: supports D1 D2
    [ 0.227352] pci 0000:00:13.5: PME# supported from D0 D1 D2 D3hot
    [ 0.227357] pci 0000:00:13.5: PME# disabled
    [ 0.227379] pci 0000:00:14.0: [1002:4385] type 0 class 0x000c05
    [ 0.227402] pci 0000:00:14.0: reg 10: [io 0x0b00-0x0b0f]
    [ 0.227483] pci 0000:00:14.1: [1002:438c] type 0 class 0x000101
    [ 0.227497] pci 0000:00:14.1: reg 10: [io 0x0000-0x0007]
    [ 0.227507] pci 0000:00:14.1: reg 14: [io 0x0000-0x0003]
    [ 0.227518] pci 0000:00:14.1: reg 18: [io 0x0000-0x0007]
    [ 0.227528] pci 0000:00:14.1: reg 1c: [io 0x0000-0x0003]
    [ 0.227538] pci 0000:00:14.1: reg 20: [io 0xf900-0xf90f]
    [ 0.227577] pci 0000:00:14.2: [1002:4383] type 0 class 0x000403
    [ 0.227600] pci 0000:00:14.2: reg 10: [mem 0xfe024000-0xfe027fff 64bit]
    [ 0.227663] pci 0000:00:14.2: PME# supported from D0 D3hot D3cold
    [ 0.227667] pci 0000:00:14.2: PME# disabled
    [ 0.227681] pci 0000:00:14.3: [1002:438d] type 0 class 0x000601
    [ 0.227759] pci 0000:00:14.4: [1002:4384] type 1 class 0x000604
    [ 0.227808] pci 0000:00:18.0: [1022:1100] type 0 class 0x000600
    [ 0.227823] pci 0000:00:18.1: [1022:1101] type 0 class 0x000600
    [ 0.227835] pci 0000:00:18.2: [1022:1102] type 0 class 0x000600
    [ 0.227848] pci 0000:00:18.3: [1022:1103] type 0 class 0x000600
    [ 0.227903] pci 0000:01:00.0: [10de:0402] type 0 class 0x000300
    [ 0.227914] pci 0000:01:00.0: reg 10: [mem 0xfa000000-0xfaffffff]
    [ 0.227926] pci 0000:01:00.0: reg 14: [mem 0xd0000000-0xdfffffff 64bit pref]
    [ 0.227937] pci 0000:01:00.0: reg 1c: [mem 0xf8000000-0xf9ffffff 64bit]
    [ 0.227945] pci 0000:01:00.0: reg 24: [io 0xdf00-0xdf7f]
    [ 0.227953] pci 0000:01:00.0: reg 30: [mem 0x00000000-0x0001ffff pref]
    [ 0.233329] pci 0000:00:02.0: PCI bridge to [bus 01-01]
    [ 0.233396] pci 0000:00:02.0: bridge window [io 0xd000-0xdfff]
    [ 0.233399] pci 0000:00:02.0: bridge window [mem 0xf8000000-0xfbffffff]
    [ 0.233404] pci 0000:00:02.0: bridge window [mem 0xd0000000-0xdfffffff 64bit pref]
    [ 0.233444] pci 0000:02:00.0: [11ab:4364] type 0 class 0x000200
    [ 0.233462] pci 0000:02:00.0: reg 10: [mem 0xfdffc000-0xfdffffff 64bit]
    [ 0.233472] pci 0000:02:00.0: reg 18: [io 0xee00-0xeeff]
    [ 0.233505] pci 0000:02:00.0: reg 30: [mem 0x00000000-0x0001ffff pref]
    [ 0.233535] pci 0000:02:00.0: supports D1 D2
    [ 0.233537] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
    [ 0.233541] pci 0000:02:00.0: PME# disabled
    [ 0.239995] pci 0000:00:0a.0: PCI bridge to [bus 02-02]
    [ 0.240062] pci 0000:00:0a.0: bridge window [io 0xe000-0xefff]
    [ 0.240065] pci 0000:00:0a.0: bridge window [mem 0xfdf00000-0xfdffffff]
    [ 0.240069] pci 0000:00:0a.0: bridge window [mem 0xfde00000-0xfdefffff 64bit pref]
    [ 0.240134] pci 0000:00:14.4: PCI bridge to [bus 03-03] (subtractive decode)
    [ 0.240203] pci 0000:00:14.4: bridge window [io 0xc000-0xcfff]
    [ 0.240207] pci 0000:00:14.4: bridge window [mem 0xfdd00000-0xfddfffff]
    [ 0.240212] pci 0000:00:14.4: bridge window [mem 0xfdc00000-0xfdcfffff pref]
    [ 0.240214] pci 0000:00:14.4: bridge window [io 0x0000-0x0cf7] (subtractive decode)
    [ 0.240217] pci 0000:00:14.4: bridge window [io 0x0d00-0xffff] (subtractive decode)
    [ 0.240219] pci 0000:00:14.4: bridge window [mem 0x000a0000-0x000bffff] (subtractive decode)
    [ 0.240221] pci 0000:00:14.4: bridge window [mem 0x000c0000-0x000dffff] (subtractive decode)
    [ 0.240224] pci 0000:00:14.4: bridge window [mem 0x80000000-0xffffffff] (subtractive decode)
    [ 0.240236] pci_bus 0000:00: on NUMA node 0
    [ 0.240239] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
    [ 0.240363] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
    [ 0.240408] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCE2._PRT]
    [ 0.240440] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCEA._PRT]
    [ 0.240465] pci0000:00: Requesting ACPI _OSC control (0x1d)
    [ 0.240531] Unable to assume _OSC PCIe control. Disabling ASPM
    [ 0.251996] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.252665] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.253351] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.254017] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.254684] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.255350] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.257059] ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.257725] ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 10 11) *0, disabled.
    [ 0.258446] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.258522] vgaarb: loaded
    [ 0.258678] PCI: Using ACPI for IRQ routing
    [ 0.258742] PCI: pci_cache_line_size set to 64 bytes
    [ 0.258749] pci 0000:00:00.0: address space collision: [mem 0xe0000000-0xffffffff 64bit] conflicts with PCI Bus 0000:01 [mem 0xf8000000-0xfbffffff]
    [ 0.258890] reserve RAM buffer: 000000000009f400 - 000000000009ffff
    [ 0.258893] reserve RAM buffer: 000000007fff0000 - 000000007fffffff
    [ 0.259004] NetLabel: Initializing
    [ 0.259067] NetLabel: domain hash size = 128
    [ 0.259131] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.259205] NetLabel: unlabeled traffic allowed by default
    [ 0.259287] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0
    [ 0.259608] hpet0: 4 comparators, 32-bit 14.318180 MHz counter
    [ 0.261015] Switching to clocksource hpet
    [ 0.261499] Switched to NOHz mode on CPU #0
    [ 0.261582] Switched to NOHz mode on CPU #1
    [ 0.266362] pnp: PnP ACPI init
    [ 0.266443] ACPI: bus type pnp registered
    [ 0.266593] pnp 00:00: [bus 00-ff]
    [ 0.266598] pnp 00:00: [io 0x0cf8-0x0cff]
    [ 0.266600] pnp 00:00: [io 0x0000-0x0cf7 window]
    [ 0.266602] pnp 00:00: [io 0x0d00-0xffff window]
    [ 0.266604] pnp 00:00: [mem 0x000a0000-0x000bffff window]
    [ 0.266606] pnp 00:00: [mem 0x000c0000-0x000dffff window]
    [ 0.266609] pnp 00:00: [mem 0x80000000-0xffffffff window]
    [ 0.266662] pnp 00:00: Plug and Play ACPI device, IDs PNP0a03 (active)
    [ 0.266792] pnp 00:01: [io 0x4100-0x411f]
    [ 0.266794] pnp 00:01: [io 0x0228-0x022f]
    [ 0.266796] pnp 00:01: [io 0x040b]
    [ 0.266798] pnp 00:01: [io 0x04d6]
    [ 0.266799] pnp 00:01: [io 0x0c00-0x0c01]
    [ 0.266801] pnp 00:01: [io 0x0c14]
    [ 0.266803] pnp 00:01: [io 0x0c50-0x0c52]
    [ 0.266805] pnp 00:01: [io 0x0c6c-0x0c6d]
    [ 0.266807] pnp 00:01: [io 0x0c6f]
    [ 0.266808] pnp 00:01: [io 0x0cd0-0x0cd1]
    [ 0.266810] pnp 00:01: [io 0x0cd2-0x0cd3]
    [ 0.266812] pnp 00:01: [io 0x0cd4-0x0cdf]
    [ 0.266814] pnp 00:01: [io 0x4000-0x40fe]
    [ 0.266815] pnp 00:01: [io 0x4210-0x4217]
    [ 0.266817] pnp 00:01: [io 0x0b10-0x0b1f]
    [ 0.266819] pnp 00:01: [mem 0x00000000-0x00000fff window]
    [ 0.266822] pnp 00:01: [mem 0xfee00400-0xfee00fff window]
    [ 0.266828] pnp 00:01: disabling [mem 0x00000000-0x00000fff window] because it overlaps 0000:00:00.0 BAR 3 [mem 0x00000000-0x1fffffff 64bit]
    [ 0.266939] pnp 00:01: disabling [mem 0x00000000-0x00000fff window disabled] because it overlaps 0000:01:00.0 BAR 6 [mem 0x00000000-0x0001ffff pref]
    [ 0.267023] pnp 00:01: disabling [mem 0x00000000-0x00000fff window disabled] because it overlaps 0000:02:00.0 BAR 6 [mem 0x00000000-0x0001ffff pref]
    [ 0.267131] system 00:01: [io 0x4100-0x411f] has been reserved
    [ 0.267198] system 00:01: [io 0x0228-0x022f] has been reserved
    [ 0.267264] system 00:01: [io 0x040b] has been reserved
    [ 0.267330] system 00:01: [io 0x04d6] has been reserved
    [ 0.267395] system 00:01: [io 0x0c00-0x0c01] has been reserved
    [ 0.267461] system 00:01: [io 0x0c14] has been reserved
    [ 0.267530] system 00:01: [io 0x0c50-0x0c52] has been reserved
    [ 0.267596] system 00:01: [io 0x0c6c-0x0c6d] has been reserved
    [ 0.267662] system 00:01: [io 0x0c6f] has been reserved
    [ 0.267727] system 00:01: [io 0x0cd0-0x0cd1] has been reserved
    [ 0.267793] system 00:01: [io 0x0cd2-0x0cd3] has been reserved
    [ 0.267859] system 00:01: [io 0x0cd4-0x0cdf] has been reserved
    [ 0.267926] system 00:01: [io 0x4000-0x40fe] has been reserved
    [ 0.267992] system 00:01: [io 0x4210-0x4217] has been reserved
    [ 0.268058] system 00:01: [io 0x0b10-0x0b1f] has been reserved
    [ 0.268125] system 00:01: [mem 0xfee00400-0xfee00fff window] has been reserved
    [ 0.268201] system 00:01: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.268290] pnp 00:02: [dma 4]
    [ 0.268291] pnp 00:02: [io 0x0000-0x000f]
    [ 0.268293] pnp 00:02: [io 0x0080-0x0090]
    [ 0.268295] pnp 00:02: [io 0x0094-0x009f]
    [ 0.268297] pnp 00:02: [io 0x00c0-0x00df]
    [ 0.268326] pnp 00:02: Plug and Play ACPI device, IDs PNP0200 (active)
    [ 0.268366] pnp 00:03: [irq 0 disabled]
    [ 0.268380] pnp 00:03: [irq 8]
    [ 0.268382] pnp 00:03: [mem 0xfed00000-0xfed003ff]
    [ 0.268408] pnp 00:03: Plug and Play ACPI device, IDs PNP0103 (active)
    [ 0.268430] pnp 00:04: [io 0x0070-0x0073]
    [ 0.268456] pnp 00:04: Plug and Play ACPI device, IDs PNP0b00 (active)
    [ 0.268463] pnp 00:05: [io 0x0061]
    [ 0.268488] pnp 00:05: Plug and Play ACPI device, IDs PNP0800 (active)
    [ 0.268495] pnp 00:06: [io 0x00f0-0x00ff]
    [ 0.268504] pnp 00:06: [irq 13]
    [ 0.268535] pnp 00:06: Plug and Play ACPI device, IDs PNP0c04 (active)
    [ 0.268566] pnp 00:07: [io 0x0010-0x001f]
    [ 0.268567] pnp 00:07: [io 0x0022-0x003f]
    [ 0.268569] pnp 00:07: [io 0x0044-0x005f]
    [ 0.268571] pnp 00:07: [io 0x0062-0x0063]
    [ 0.268573] pnp 00:07: [io 0x0065-0x006f]
    [ 0.268575] pnp 00:07: [io 0x0074-0x007f]
    [ 0.268576] pnp 00:07: [io 0x0091-0x0093]
    [ 0.268578] pnp 00:07: [io 0x00a2-0x00bf]
    [ 0.268580] pnp 00:07: [io 0x00e0-0x00ef]
    [ 0.268582] pnp 00:07: [io 0x04d0-0x04d1]
    [ 0.268632] system 00:07: [io 0x04d0-0x04d1] has been reserved
    [ 0.268699] system 00:07: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.269033] pnp 00:08: [io 0x0060]
    [ 0.269034] pnp 00:08: [io 0x0064]
    [ 0.269043] pnp 00:08: [irq 1]
    [ 0.269080] pnp 00:08: Plug and Play ACPI device, IDs PNP0303 PNP030b (active)
    [ 0.269127] pnp 00:09: [mem 0x000f0000-0x000fffff]
    [ 0.269129] pnp 00:09: [mem 0x00000000-0x001fffff]
    [ 0.269131] pnp 00:09: [mem 0xfed00000-0xfed000ff]
    [ 0.269132] pnp 00:09: [mem 0x7fff0000-0x7fffffff]
    [ 0.269134] pnp 00:09: [mem 0xffff0000-0xffffffff]
    [ 0.269136] pnp 00:09: [mem 0x00000000-0x0009ffff]
    [ 0.269138] pnp 00:09: [mem 0x00100000-0x7ffeffff]
    [ 0.269140] pnp 00:09: [mem 0xfec00000-0xfec00fff]
    [ 0.269142] pnp 00:09: [mem 0xfee00000-0xfee00fff]
    [ 0.269144] pnp 00:09: [mem 0xfff80000-0xfffeffff]
    [ 0.269148] pnp 00:09: disabling [mem 0x000f0000-0x000fffff] because it overlaps 0000:00:00.0 BAR 3 [mem 0x00000000-0x1fffffff 64bit]
    [ 0.269229] pnp 00:09: disabling [mem 0x00000000-0x001fffff] because it overlaps 0000:00:00.0 BAR 3 [mem 0x00000000-0x1fffffff 64bit]
    [ 0.269309] pnp 00:09: disabling [mem 0x00000000-0x0009ffff] because it overlaps 0000:00:00.0 BAR 3 [mem 0x00000000-0x1fffffff 64bit]
    [ 0.269390] pnp 00:09: disabling [mem 0x00100000-0x7ffeffff] because it overlaps 0000:00:00.0 BAR 3 [mem 0x00000000-0x1fffffff 64bit]
    [ 0.269519] system 00:09: [mem 0xfed00000-0xfed000ff] has been reserved
    [ 0.269587] system 00:09: [mem 0x7fff0000-0x7fffffff] could not be reserved
    [ 0.269654] system 00:09: [mem 0xffff0000-0xffffffff] has been reserved
    [ 0.269721] system 00:09: [mem 0xfec00000-0xfec00fff] could not be reserved
    [ 0.269788] system 00:09: [mem 0xfee00000-0xfee00fff] could not be reserved
    [ 0.269855] system 00:09: [mem 0xfff80000-0xfffeffff] has been reserved
    [ 0.269922] system 00:09: Plug and Play ACPI device, IDs PNP0c01 (active)
    [ 0.269930] pnp: PnP ACPI: found 10 devices
    [ 0.269994] ACPI: ACPI bus type pnp unregistered
    [ 0.306168] pci 0000:01:00.0: BAR 6: assigned [mem 0xfb000000-0xfb01ffff pref]
    [ 0.306245] pci 0000:00:02.0: PCI bridge to [bus 01-01]
    [ 0.306311] pci 0000:00:02.0: bridge window [io 0xd000-0xdfff]
    [ 0.306378] pci 0000:00:02.0: bridge window [mem 0xf8000000-0xfbffffff]
    [ 0.306445] pci 0000:00:02.0: bridge window [mem 0xd0000000-0xdfffffff 64bit pref]
    [ 0.306523] pci 0000:02:00.0: BAR 6: assigned [mem 0xfde00000-0xfde1ffff pref]
    [ 0.306598] pci 0000:00:0a.0: PCI bridge to [bus 02-02]
    [ 0.306664] pci 0000:00:0a.0: bridge window [io 0xe000-0xefff]
    [ 0.306741] pci 0000:00:0a.0: bridge window [mem 0xfdf00000-0xfdffffff]
    [ 0.306809] pci 0000:00:0a.0: bridge window [mem 0xfde00000-0xfdefffff 64bit pref]
    [ 0.306886] pci 0000:00:14.4: PCI bridge to [bus 03-03]
    [ 0.306952] pci 0000:00:14.4: bridge window [io 0xc000-0xcfff]
    [ 0.307022] pci 0000:00:14.4: bridge window [mem 0xfdd00000-0xfddfffff]
    [ 0.307090] pci 0000:00:14.4: bridge window [mem 0xfdc00000-0xfdcfffff pref]
    [ 0.307175] pci 0000:00:02.0: setting latency timer to 64
    [ 0.307180] pci 0000:00:0a.0: setting latency timer to 64
    [ 0.307188] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7]
    [ 0.307190] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff]
    [ 0.307192] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff]
    [ 0.307194] pci_bus 0000:00: resource 7 [mem 0x000c0000-0x000dffff]
    [ 0.307197] pci_bus 0000:00: resource 8 [mem 0x80000000-0xffffffff]
    [ 0.307199] pci_bus 0000:01: resource 0 [io 0xd000-0xdfff]
    [ 0.307201] pci_bus 0000:01: resource 1 [mem 0xf8000000-0xfbffffff]
    [ 0.307203] pci_bus 0000:01: resource 2 [mem 0xd0000000-0xdfffffff 64bit pref]
    [ 0.307206] pci_bus 0000:02: resource 0 [io 0xe000-0xefff]
    [ 0.307208] pci_bus 0000:02: resource 1 [mem 0xfdf00000-0xfdffffff]
    [ 0.307210] pci_bus 0000:02: resource 2 [mem 0xfde00000-0xfdefffff 64bit pref]
    [ 0.307213] pci_bus 0000:03: resource 0 [io 0xc000-0xcfff]
    [ 0.307215] pci_bus 0000:03: resource 1 [mem 0xfdd00000-0xfddfffff]
    [ 0.307217] pci_bus 0000:03: resource 2 [mem 0xfdc00000-0xfdcfffff pref]
    [ 0.307219] pci_bus 0000:03: resource 4 [io 0x0000-0x0cf7]
    [ 0.307222] pci_bus 0000:03: resource 5 [io 0x0d00-0xffff]
    [ 0.307224] pci_bus 0000:03: resource 6 [mem 0x000a0000-0x000bffff]
    [ 0.307226] pci_bus 0000:03: resource 7 [mem 0x000c0000-0x000dffff]
    [ 0.307228] pci_bus 0000:03: resource 8 [mem 0x80000000-0xffffffff]
    [ 0.307274] NET: Registered protocol family 2
    [ 0.307398] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.307694] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
    [ 0.308325] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
    [ 0.308652] TCP: Hash tables configured (established 131072 bind 65536)
    [ 0.308719] TCP reno registered
    [ 0.308783] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.308856] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.309050] NET: Registered protocol family 1
    [ 0.426742] pci 0000:01:00.0: Boot video device
    [ 0.426749] PCI: CLS 64 bytes, default 64
    [ 0.426800] Unpacking initramfs...
    [ 0.460291] Freeing initrd memory: 2140k freed
    [ 0.461639] apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
    [ 0.461707] apm: disabled - APM is not SMP safe.
    [ 0.461884] audit: initializing netlink socket (disabled)
    [ 0.461957] type=2000 audit(1312207987.459:1): initialized
    [ 0.462290] highmem bounce pool size: 64 pages
    [ 0.462357] HugeTLB registered 4 MB page size, pre-allocated 0 pages
    [ 0.464180] VFS: Disk quotas dquot_6.5.2
    [ 0.464312] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.464469] msgmni has been set to 1712
    [ 0.464730] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    [ 0.464841] io scheduler noop registered
    [ 0.464907] io scheduler deadline registered
    [ 0.464983] io scheduler cfq registered (default)
    [ 0.465152] pcieport 0000:00:02.0: setting latency timer to 64
    [ 0.465180] pcieport 0000:00:02.0: irq 40 for MSI/MSI-X
    [ 0.465225] pcieport 0000:00:0a.0: setting latency timer to 64
    [ 0.465246] pcieport 0000:00:0a.0: irq 41 for MSI/MSI-X
    [ 0.465393] ERST: Table is not found!
    [ 0.465467] isapnp: Scanning for PnP cards...
    [ 0.822554] isapnp: No Plug & Play device found
    [ 0.822675] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 1.050031] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
    [ 1.050099] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
    [ 1.050669] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 1.050792] mousedev: PS/2 mouse device common for all mice
    [ 1.050892] rtc_cmos 00:04: RTC can wake from S4
    [ 1.074526] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    [ 1.076767] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
    [ 1.076869] rtc0: alarms up to one month, 242 bytes nvram, hpet irqs
    [ 1.076954] cpuidle: using governor ladder
    [ 1.077018] cpuidle: using governor menu
    [ 1.077281] TCP cubic registered
    [ 1.077345] NET: Registered protocol family 17
    [ 1.077415] Registering the dns_resolver key type
    [ 1.077492] Using IPI No-Shortcut mode
    [ 1.077626] PM: Hibernation image not present or could not be loaded.
    [ 1.077633] registered taskstats version 1
    [ 1.077987] rtc_cmos 00:04: setting system clock to 2011-08-01 14:13:08 UTC (1312207988)
    [ 1.078086] Initializing network drop monitor service
    [ 1.078222] Freeing unused kernel memory: 512k freed
    [ 1.078587] Write protecting the kernel text: 3380k
    [ 1.078672] Write protecting the kernel read-only data: 1028k
    [ 1.088713] udevd[47]: starting version 171
    [ 1.180160] SCSI subsystem initialized
    [ 1.197209] usbcore: registered new interface driver usbfs
    [ 1.197412] usbcore: registered new interface driver hub
    [ 1.197625] usbcore: registered new device driver usb
    [ 1.215729] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.215840] ehci_hcd 0000:00:13.5: PCI INT D -> GSI 19 (level, low) -> IRQ 19
    [ 1.215930] ehci_hcd 0000:00:13.5: EHCI Host Controller
    [ 1.216028] ehci_hcd 0000:00:13.5: new USB bus registered, assigned bus number 1
    [ 1.226748] ehci_hcd 0000:00:13.5: applying AMD SB600/SB700 USB freeze workaround
    [ 1.226842] ehci_hcd 0000:00:13.5: debug port 1
    [ 1.226937] ehci_hcd 0000:00:13.5: irq 19, io mem 0xfe029000
    [ 1.237087] libata version 3.00 loaded.
    [ 1.240040] ehci_hcd 0000:00:13.5: USB 2.0 started, EHCI 1.00
    [ 1.240292] hub 1-0:1.0: USB hub found
    [ 1.240359] hub 1-0:1.0: 10 ports detected
    [ 1.240733] pata_atiixp 0000:00:14.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    [ 1.241613] scsi0 : pata_atiixp
    [ 1.241804] scsi1 : pata_atiixp
    [ 1.242405] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xf900 irq 14
    [ 1.242472] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xf908 irq 15
    [ 1.244130] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 1.244228] ohci_hcd 0000:00:13.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    [ 1.244315] ohci_hcd 0000:00:13.0: OHCI Host Controller
    [ 1.244390] ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2
    [ 1.250091] ohci_hcd 0000:00:13.0: irq 16, io mem 0xfe02e000
    [ 1.307508] hub 2-0:1.0: USB hub found
    [ 1.307579] hub 2-0:1.0: 2 ports detected
    [ 1.307730] ohci_hcd 0000:00:13.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
    [ 1.307813] ohci_hcd 0000:00:13.1: OHCI Host Controller
    [ 1.307889] ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3
    [ 1.326729] ohci_hcd 0000:00:13.1: irq 17, io mem 0xfe02d000
    [ 1.384201] hub 3-0:1.0: USB hub found
    [ 1.384274] hub 3-0:1.0: 2 ports detected
    [ 1.384428] ohci_hcd 0000:00:13.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
    [ 1.384511] ohci_hcd 0000:00:13.2: OHCI Host Controller
    [ 1.384583] ohci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 4
    [ 1.405209] ohci_hcd 0000:00:13.2: irq 18, io mem 0xfe02c000
    [ 1.460849] hub 4-0:1.0: USB hub found
    [ 1.460923] hub 4-0:1.0: 2 ports detected
    [ 1.461068] ohci_hcd 0000:00:13.3: PCI INT B -> GSI 17 (level, low) -> IRQ 17
    [ 1.461149] ohci_hcd 0000:00:13.3: OHCI Host Controller
    [ 1.461220] ohci_hcd 0000:00:13.3: new USB bus registered, assigned bus number 5
    [ 1.480027] ohci_hcd 0000:00:13.3: irq 17, io mem 0xfe02b000
    [ 1.537463] hub 5-0:1.0: USB hub found
    [ 1.537533] hub 5-0:1.0: 2 ports detected
    [ 1.537661] ohci_hcd 0000:00:13.4: PCI INT C -> GSI 18 (level, low) -> IRQ 18
    [ 1.537735] ohci_hcd 0000:00:13.4: OHCI Host Controller
    [ 1.537805] ohci_hcd 0000:00:13.4: new USB bus registered, assigned bus number 6
    [ 1.553363] ohci_hcd 0000:00:13.4: irq 18, io mem 0xfe02a000
    [ 1.610820] hub 6-0:1.0: USB hub found
    [ 1.610890] hub 6-0:1.0: 2 ports detected
    [ 1.611025] ahci 0000:00:12.0: version 3.0
    [ 1.611043] ahci 0000:00:12.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
    [ 1.611127] ahci 0000:00:12.0: controller can't do 64bit DMA, forcing 32bit
    [ 1.611295] ahci 0000:00:12.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
    [ 1.611377] ahci 0000:00:12.0: flags: ncq sntf ilck led clo pmp pio ccc
    [ 1.612922] scsi2 : ahci
    [ 1.613831] scsi3 : ahci
    [ 1.614815] scsi4 : ahci
    [ 1.614997] scsi5 : ahci
    [ 1.615170] ata3: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f100 irq 22
    [ 1.615247] ata4: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f180 irq 22
    [ 1.615324] ata5: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f200 irq 22
    [ 1.615400] ata6: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f280 irq 22
    [ 1.933384] ata6: SATA link down (SStatus 0 SControl 300)
    [ 1.933527] ata5: SATA link down (SStatus 0 SControl 300)
    [ 2.063354] usb 6-2: new low speed USB device number 2 using ohci_hcd
    [ 2.106684] ata3: softreset failed (device not ready)
    [ 2.106751] ata3: applying SB600 PMP SRST workaround and retrying
    [ 2.106831] ata4: softreset failed (device not ready)
    [ 2.106897] ata4: applying SB600 PMP SRST workaround and retrying
    [ 2.273373] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    [ 2.273477] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 2.275971] ata4.00: ATAPI: HL-DT-ST DVDRAM GH20NS10, EL00, max UDMA/100
    [ 2.276040] ata4.00: SB600 AHCI: limiting to 255 sectors per cmd
    [ 2.278897] ata3.00: ATA-7: SAMSUNG HD161HJ, JF100-19, max UDMA7
    [ 2.278963] ata3.00: 312581808 sectors, multi 1: LBA48 NCQ (depth 31/32), AA
    [ 2.279030] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
    [ 2.279635] ata4.00: SB600 AHCI: limiting to 255 sectors per cmd
    [ 2.279701] ata4.00: configured for UDMA/100
    [ 2.284467] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
    [ 2.284533] ata3.00: configured for UDMA/133
    [ 2.284747] scsi 2:0:0:0: Direct-Access ATA SAMSUNG HD161HJ JF10 PQ: 0 ANSI: 5
    [ 2.397145] scsi 3:0:0:0: CD-ROM HL-DT-ST DVDRAM GH20NS10 EL00 PQ: 0 ANSI: 5
    [ 2.407639] sd 2:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
    [ 2.407755] sd 2:0:0:0: [sda] Write Protect is off
    [ 2.407821] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 2.407838] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 2.411375] input: Primax Electronics Wireless Mouse as /devices/pci0000:00/0000:00:13.4/usb6/6-2/6-2:1.0/input/input1
    [ 2.411568] generic-usb 0003:0461:4D25.0001: input,hiddev0,hidraw0: USB HID v1.10 Mouse [Primax Electronics Wireless Mouse] on usb-0000:00:13.4-2/input0
    [ 2.411669] usbcore: registered new interface driver usbhid
    [ 2.411745] usbhid: USB HID core driver
    [ 2.437927] sda: sda1 sda2 sda3 < sda5 >
    [ 2.438378] sd 2:0:0:0: [sda] Attached SCSI disk
    [ 2.518436] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
    [ 2.518516] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 2.518787] sr 3:0:0:0: Attached scsi CD-ROM sr0
    [ 2.959493] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
    [ 4.003984] udevd[255]: starting version 171
    [ 4.140765] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2
    [ 4.140858] ACPI: Power Button [PWRB]
    [ 4.140981] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
    [ 4.141058] ACPI: Power Button [PWRF]
    [ 4.154881] Linux agpgart interface v0.103
    [ 4.157785] ACPI: Fan [FAN] (on)
    [ 4.158635] SP5100 TCO timer: SP5100 TCO WatchDog Timer Driver v0.01
    [ 4.161972] ACPI: acpi_idle registered with cpuidle
    [ 4.162457] SP5100 TCO timer: mmio address 0xfec000f0 already in use
    [ 4.228336] sky2: driver version 1.28
    [ 4.228452] sky2 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
    [ 4.228527] sky2 0000:02:00.0: setting latency timer to 64
    [ 4.228555] sky2 0000:02:00.0: Yukon-2 EC Ultra chip revision 5
    [ 4.228709] sky2 0000:02:00.0: irq 42 for MSI/MSI-X
    [ 4.228991] sky2 0000:02:00.0: eth0: addr 00:50:8d:ba:48:da
    [ 4.232113] input: PC Speaker as /devices/platform/pcspkr/input/input4
    [ 4.250935] k8temp 0000:00:18.3: Temperature readouts might be wrong - check erratum #141
    [ 4.302867] piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
    [ 4.356767] ACPI Warning: For \_TZ_.THRM._PSL: Return Package type mismatch at index 0 - found [NULL Object Descriptor], expected Reference (20110316/nspredef-1059)
    [ 4.356967] ACPI: Expecting a [Reference] package element, found type 0
    [ 4.357033] ACPI: Invalid passive threshold
    [ 4.363965] sd 2:0:0:0: Attached scsi generic sg0 type 0
    [ 4.364111] sr 3:0:0:0: Attached scsi generic sg1 type 5
    [ 4.476288] nvidia: module license 'NVIDIA' taints kernel.
    [ 4.476360] Disabling lock debugging due to kernel taint
    [ 4.556743] thermal LNXTHERM:00: registered as thermal_zone0
    [ 4.556813] ACPI: Thermal Zone [THRM] (44 C)
    [ 4.691172] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    [ 4.775620] hda_codec: ALC888: BIOS auto-probing.
    [ 4.777062] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:14.2/input/input5
    [ 4.781547] input: HDA ATI SB Headphone as /devices/pci0000:00/0000:00:14.2/sound/card0/input6
    [ 5.638691] nvidia 0000:01:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
    [ 5.638769] nvidia 0000:01:00.0: setting latency timer to 64
    [ 5.638774] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
    [ 5.639105] NVRM: loading NVIDIA UNIX x86 Kernel Module 275.21 Mon Jul 18 14:37:03 PDT 2011
    [ 5.886530] EXT4-fs (sda5): re-mounted. Opts: (null)
    [ 5.965890] Adding 996024k swap on /dev/sda2. Priority:-1 extents:1 across:996024k
    Last edited by Fuentes (2011-08-16 22:44:13)

    the contents of /home/user/.xsession-errors
    startkde: Starting up...
    Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
    kbuildsycoca4 running...
    kded(920) LayoutMemoryPersister::restoreFromFile: Failed to open layout memory xml file for reading "/home/alvaro/.kde4/share/apps/kded/session/keyboard/layout_memory.xml" error: 5
    kded(920)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
    No outputs have backlight property
    QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.5'
    kded(920) PowerDevilUPowerBackend::brightness: org.kde.powerdevil.backlighthelper.brightness failed
    Object::connect: No such signal QDBusAbstractInterface::Changed()
    Invalid D-BUS member name 'idle-hint' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    Invalid D-BUS member name 'is-local' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    Invalid D-BUS member name 'x11-display-device' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    Invalid D-BUS member name 'x11-display' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    Invalid D-BUS member name 'display-device' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    Invalid D-BUS member name 'remote-host-name' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    Invalid D-BUS member name 'session-type' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    Invalid D-BUS member name 'unix-user' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection
    QDBusObjectPath: invalid path ""
    QDBusObjectPath: invalid path ""
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e00141
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0x8bf31cc
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e00141
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e00143
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0xb6d1bef4
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e00143
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e00145
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0xb6d1bef4
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e00145
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e00147
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0xb6d1bef4
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e00147
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e00149
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0xb6d1bef4
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e00149
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e0014b
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0xb6d1bef4
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e0014b
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e0014d
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0xb6d1bef4
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e0014d
    X Error: BadValue (integer parameter out of range for operation) 2
    Major opcode: 53 (X_CreatePixmap)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 14 (X_GetGeometry)
    Resource id: 0x1e0014f
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 3 (X_GetWindowAttributes)
    Resource id: 0xb6d1bef4
    QPainter::begin: Cannot paint on a null pixmap
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Extension: 152 (RENDER)
    Minor opcode: 4 (RenderCreatePicture)
    Resource id: 0x1e0014f
    Object::connect: No such signal QDBusAbstractInterface::Changed()
    Object::connect: No such signal KWindowSystem::windowChanged(WId,unsigned long*)
    kwin(977): Compositing is not possible
    kwin(977): Compositing is not possible
    kwin(977): Compositing is not possible
    kded(920) PowerDevilUPowerBackend::brightness: org.kde.powerdevil.backlighthelper.brightness failed
    kded(920) PowerDevilUPowerBackend::brightness: org.kde.powerdevil.backlighthelper.brightness failed
    kded(920) PowerDevilUPowerBackend::setBrightness: org.kde.powerdevil.backlighthelper.setbrightness failed
    kded(920) PowerDevilUPowerBackend::setBrightness: org.kde.powerdevil.backlighthelper.setbrightness failed
    QProcess: Destroyed while process is still running.
    plasma-desktop(1001): Communication problem with "plasma-desktop" , it probably crashed.
    Error message was: "org.freedesktop.DBus.Error.Disconnected" : " "Connection was disconnected before a reply was received" "
    kdeinit4: Fatal IO error: client killed
    kdeinit4: sending SIGHUP to children.
    klauncher: Exiting on signal 1
    kglobalaccel: Fatal IO error: client killed
    kdeinit4: Fatal IO error: client killed
    kdeinit4: sending SIGHUP to children.
    ksmserver: Fatal IO error: client killed
    kdeinit4: sending SIGTERM to children.
    kdeinit4: Exit.
    kded4: Fatal IO error: client killed
    kdeinit4: sending SIGTERM to children.
    kdeinit4: Exit.

  • Having problem with blending arcs together

    Hi Jochen!
      I'm developing a 3-axis plasma cutter software. It's uses g-codes for calculating the path of motions and using blend function for continous moves. Everything works fine including continously blending short straight line moves, but sometimes blending arcs resulting high following error. Mainly when i try to blend little arc segment with a big one. This problem doesn't occur when i set blend factor to 0. I tried many different trajectory and arc parameters with the "Sequence of Blended Lines and Arcs.vi" example, but it resulted the same effect. With some trajectory parameters i can blend the short arc segment with the big one without following errors, but i still don't know what causes this problem. This situation is same on two different cnc machine. One of them is using 1 servo and 2 stepper axis in closed loop with different encoder resolutions. The other one is using 3 stepper axis with different step/rev in open loop. The effect is the same. Blending little arc with a big one (approximately r1:r2=1:8), resulting following error and the motors jumps a little.
    - PCI-7340, umi-7774
    - LabView 8.5, Motion 7.6
    Waiting for hints! Thank you!

    Nandi,
    sorry for the late response, but I have had to gather some equipment first to reproduce this behavior. I have setup a very similar system with a servo and a closed loop stepper and I have used your code for a test.
    The bad news is, that I couldn't reproduce the problem. First I have worked with two servos but I couldn't see a significant following error with those, but in fact I wouldn't have expected a sustaining following error with a servo at all, as servos can compensate following errors during the moves.
    In a next step I have used a servo and a closed loop stepper but I have seen the same result. No significant following error during the move. I have also switched the X and Y axes, but there was no change. I have also played around with the other move parameters but again, no significant following error.
    With this said, I don't think that we are facing a general issue here that is related to 73xx motion control boards.
    To me this looks more like an issue that is related to problems with load inertia and high acceleration values. In fact if you reduce the radius of an arc but keep the vector speed, the forces become higher and in your case they seem to become too high for the stepper motors. A stepper motor can't compensate step loss during the move. That's why you see this constant following error.
    I hope this analysis hits the bull's eye.
    Kind regards,
    Jochen

Maybe you are looking for

  • Problem Connecting a Windows Computer to Our Domain

    I'm trying to connect a windows XP pro computer to a domain. There is an OD replica on the same subnet set as a Backup Domain Controller. The OD master is on a different subnet, it is set as a Primary Domain Controller. The error I'm getting is: The

  • How to convert pdf  to binary

    hi all,    how to convert pdf  to binary . regards, sheetal

  • Itunes / mybook world edition issues

    Hi All, I've recently purchased one of these http://www.amazon.co.uk/Western-Digital-World-Network-Storage/dp/B001RNNTVQ/ref= sr11?ie=UTF8&s=computers&qid=1284451478&sr=8-1 so I've moved all my music into it, and then imported it into itunes 10 - but

  • When i save session as in audition it saves as a cool edit file ...

    can any one help mike from fl ?

  • Wierd Query

    Hi, I have a problem regarding a query. In the query i want to get the values which are greater than some specific value. Its some thing like this.. SELECT blah..blah.. FROM X WHERE x.col1 > (SELECT blah1 FROM Y where someconditions) Since the sub qu