Jax-ws 2.1 - problems returning hashtable and hashmap

Hi,
We're developing a set of applications that communicate via web services.
The company decided that to do this we should use jax-ws 2.1.
Everything is going ok, its really easy to use, except for a web method that returns a java.util.Hashtable.
In the endpoint there's no problem, it compiles and deploys to a tomcat 5.5 without a problem.
The client can access the wsdl via url, download it and create the necessary files (we use netbeans 5.5 for this).
We can invoke the method getConfig without a problem, but the object returned only has the java.lang.Object 's methods, not the java.util.Hastable 's .
Endpoint:
package xxx.cdc_pm_i;
import java.util.Hashtable;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.bind.annotation.*;
@WebService()
public class cdc_pm_i{
@WebMethod
public Hashtable getConfig() {
Hashtable<String,String> config = new Hashtable<String,String>();
     config.put("1","1");
     config.put("2","2");
return config;
Client:
try { // Call Web Service Operation
xxx.CdcPmIService service = new xxx.cdc_pm_i.CdcPmIService();
xxx.cdc_pm_i.CdcPmI port = service.getCdcPmIPort();
// TODO process result here
xxx.cdc_pm_i.Hashtable result = port.getConfig();
} catch (Exception ex) {
     ex.printStackTrace();
I'm fairly unexperienced in Web Services and i have no idea why this works for any kind of return object (as long as its serializable) and has this problem with hashtables and hashmaps.
Any idea on how to solve this?
Thanks in advance,
Rui

Didn't find the solution for this, but any object that contains an Object in its methods / attributes had the same problems, so i just built my own table that only supports Strings and the problem was solved.
If anyone knows why i had this problem and wants to share a solution, please do so.

Similar Messages

  • JavaFX : How to call java function that returns hashtable and manipulate

    I have a requirement to {color:#0000ff}create a java object in JavaFX script code{color}. Then call a java function using the created java object. The java function returns hashtable. Then traverse through each element of hashtable. Finally I need to create a similar structure in JavaFX.

    If you need to use a Java class that uses generics you need to take special steps. Since JavaFX does not support generics you need to create a java wrapper to hide the calls that use generics and call the wrapper class from FX.

  • My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    Hello SamSax
    Check out the assist page below for troubleshooting call connectivity.
    Calls and connection issues
    http://www.apple.com/support/iphone/assistant/calls/
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Problem with JTextPane and StateInvariantError

    Hi. I am having a problem with JTextPanes and changing only certain text to bold. I am writing a chat program and would like to allow users to make certain text in their entries bold. The best way I can think of to do this is to add <b> and </b> tags to the beginning and end of any text that is to be bold. When the other client receives the message, the program will take out all of the <b> and </b> tags and display any text between them as bold (or italic with <i> and </i>). I've searched the forums a lot and figured out several ways to make the text bold, and several ways to determine which text is bold before sending the text, but none that work together. Currently, I add the bold tags with this code: (note: messageDoc is a StyledDocument and messageText is a JTextPane)
    public String getMessageText() {
              String text = null;
              boolean bold = false, italic = false;
              for (int i = 0; i < messageDoc.getLength(); i++) {
                   messageText.setCaretPosition(i);
                   if (StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && !bold) {
                        bold = true;
                        if (text != null) {
                             text = text + "<b>";
                        else {
                             text = "<b>";
                   else if (StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && bold) {
                        // Do nothing
                   else if (!StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && bold) {
                        bold = false;
                        if (text != null) {
                             text = text + "</b>";
                        else {
                             text = "</b>";
                   try {
                        if (text != null) {
                             text = text + messageDoc.getText(i,1);
                        else {
                             text = messageDoc.getText(i, 1);
                   catch (BadLocationException e) {
                        System.out.println("An error occurred while getting the text from the message document");
                        e.printStackTrace();
              return text;
         } // end getMessageText()When the message is sent to the other client, the program searches through the received message and changes the text between the bold tags to bold. This seems as if it should work, but as soon as I click on the bold button, I get a StateInvariantError. The code for my button is:
    public void actionPerformed(ActionEvent evt) {
              if (evt.getSource() == bold) {
                   MutableAttributeSet bold = new SimpleAttributeSet();
                   StyleConstants.setBold(bold, true);
                   messageText.getStyledDocument().setCharacterAttributes(messageText.getSelectionStart(), messageText.getSelectionStart() - messageText.getSelectionEnd() - 1, bold, false);
         } //end actionPerformed()Can anyone help me to figure out why this error is being thrown? I have searched for a while to figure out this way of doing what I'm trying to do and I've found out that a StateInvariantError has been reported as a bug in several different circumstances but not in relation to this. Or, if there is a better way to add and check the style of the text that would be great as well. Any help is much appreciated, thanks in advance.

    Swing related questions should be posted in the Swing forum.
    Can't tell from you code what the problem is because I don't know the context of how each method is invoked. But it would seem like you are trying to query the data in the Document while the Document is being updated. Try wrapping the getMessageText() method is a SwingUtilities.invokeLater().
    There is no need to write custom code for a Bold Action you can just use:
    JButton bold = new JButton( new StyledEditorKit.BoldAction() );Also your code to build the text String is not very efficient. You should not be using string concatenation to append text to the string. You should be using a StringBuffer or StringBuilder.

  • Problem with writing and reading using serialization

    I am having a problem with writing and reading an object that has another object in it. The purpose of the class is to write a order that has multiple items in it. And there will be several orders. This is for an IB project, where one of the requirements is to utilize a hierarchical composite data structure. That is, it is "one that contains more than one element and at least one of the elements is a composite data structure. Examples are, an array or linked list of records, a record that has one field that is another record, or an array". The code is shown below:
    The error produced is
    java.lang.NullPointerException
         at SamsonRubberIndustries.CustomerOrderDetails.createCustOrdDetailsScreen(CustomerOrderDetails.java:150)
         at SamsonRubberIndustries.CustomerOrderDetails$1.run(CustomerOrderDetails.java:78)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    public class CustOrdObject implements Serializable {
         public int CustID;
         public int CustOrderID;
         public Object OrderDate;
         public InnerCustOrdObject[] innerCustOrdObj;
         public float GrandTotal;
         public int MaxItems;
         public CustOrdObject() {}
         public CustOrdObject(InnerCustOrdObject[] innerCustOrdObj,
    int CustID, int CustOrderID, Object OrderDate,
    float GrandTotal, int innerarrlength, int innerarrpos, int MaxItems) {
              this.CustID = CustID;
              this.CustOrderID = CustOrderID;
              this.OrderDate = OrderDate;
              this.GrandTotal = GrandTotal;          
              this.MaxItems = MaxItems;
              this.innerCustOrdObj = new InnerCustOrdObject[MaxItems];
         public InnerCustOrdObject[] getInnerCustOrdObj() {
              return innerCustOrdObj;
         public void setInnerCustOrdObj(InnerCustOrdObject[] innerCustOrdObj) {
              this.innerCustOrdObj = innerCustOrdObj;
         public int getCustID() {
              return CustID;
         public void setCustID(int custID) {
              CustID = custID;
         public int getCustOrderID() {
              return CustOrderID;
         public void setCustOrderID(int custOrderID) {
              CustOrderID = custOrderID;
         public Object getOrderDate() {
              return OrderDate;
         public void setOrderDate(Object orderDate) {
              OrderDate = orderDate;
         public void setGrandTotal(float grandTotal) {
              GrandTotal = grandTotal;
         public float getGrandTotal() {
              return GrandTotal;
         public int getMaxItems() {
              return MaxItems;
         public void setMaxItems(int maxItems) {
              MaxItems = maxItems;
    public class InnerCustOrdObject implements Serializable{
         public int ItemNumber;
         public float UnitPrice;
         public int QuantityRequired;
         public float TotalPrice;
         public InnerCustOrdObject() {}
         public InnerCustOrdObject(int ItemNumber, float
    UnitPrice, int QuantityRequired, float TotalPrice){
              this.ItemNumber = ItemNumber;
              this.UnitPrice = UnitPrice;
              this.QuantityRequired = QuantityRequired;
              this.TotalPrice = TotalPrice;
         public int getItemNumber() {
              return ItemNumber;
         public void setItemNumber(int itemNumber) {
              ItemNumber = itemNumber;
         public int getQuantityRequired() {
              return QuantityRequired;
         public void setQuantityRequired(int quantityRequired) {
              QuantityRequired = quantityRequired;
         public float getTotalPrice() {
              return TotalPrice;
         public void setTotalPrice(float totalPrice) {
              TotalPrice = totalPrice;
         public float getUnitPrice() {
              return UnitPrice;
         public void setUnitPrice(float unitPrice) {
              UnitPrice = unitPrice;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import javax.swing.*;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    public class CustomerOrderDetails extends CommonFeatures{
         //TODO
         private static int MAX_ORDERS = 200;
         private static int MAX_ORDERITEMS = 100;
         private static int MaxRecord;
         private static int CurrentRecord = 1;
         private static int currentItem;
         private static int MaxItems;
         private static boolean FileExists, recFileExists;
         private static CustOrdObject[] orderDetails = new CustOrdObject[MAX_ORDERS];
         private static InnerCustOrdObject[] innerCustOrdObj = new InnerCustOrdObject[MAX_ORDERITEMS];     
         private static File OrderDetailsFile = new File("CustOrdDetails.dat");
         private static File OrdRecordNumStore = new File("OrdRecordNumStore.txt");
         private static PrintWriter writeFile;
         private static BufferedReader readFile;
         private static ObjectOutputStream objOut;
         private static ObjectInputStream objIn;
         //Set format for date
         SimpleDateFormat simpleDF = new SimpleDateFormat("dd MM yyyy");
         //--<BEGINNING>--Declaring Interface Variables------------------------------------------//
         private JPanel innertoppanel, innercenterpanel, innerbottompanel, innerrightpanel, innerleftpanel;
         private JLabel CustIDLbl, CustOrderIDLbl, OrderedDateLbl, GrandTotLbl, ItemNumberLbl,UnitPriceLbl, QuantityReqLbl, TotPriceLbl;
         private JTextField CustIDTxt, CustOrderIDTxt, OrderedDateTxt, GrandTotTxt, ItemNumberTxt, UnitPriceTxt, QuantityReqTxt, TotPriceTxt;
         private JButton addrecordbtn, savebtn, externalprevbtn, externalnextbtn, internalprevbtn, internalnextbtn, gotorecordbtn, additemreqbtn;
         //--<END>--Declaring Interface Variables------------------------------------------------//
         public static void main(String[] args) {
              final CustomerOrderDetails COD = new CustomerOrderDetails();
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                             COD.createCustOrdDetailsScreen();
                        } catch (Exception eb) {
                             eb.printStackTrace();
         //--<BEGINNING>--Creating CustomerOrderDetails Screen---------------------------------------//
         public JFrame createCustOrdDetailsScreen() {
              createDefaultFrame();
              mainframe.setSize(800,500);
              createContainerPanel();
              containerpanel.add(createCustOrdDetailsTitle(), BorderLayout.NORTH);
              containerpanel.add(createCustOrdDetailsMainPanel(), BorderLayout.CENTER);
              //containerpanel.add(createCustOrdDetailsLeftNavButtons(), BorderLayout.WEST);
              //containerpanel.add(createCustOrdDetailsRightNavButtons(), BorderLayout.EAST);
              containerpanel.add(createCustOrdDetailsButtons(), BorderLayout.SOUTH);
              mainframe.setContentPane(containerpanel);
              mainframe.setLocationRelativeTo(null);
              mainframe.setVisible(true);
              //--<BEGINNING>--Checks to see whether CRecordNumberStore file exists-------------------------------//
              if (OrdRecordNumStore.exists() == true) {
                   recFileExists = true;
              }else {
                   recFileExists = false;
              if (recFileExists == true) {
                   MaxRecord = readRecordNumber();
                   CurrentRecord = MaxRecord;
                   //readOrder();
                   //readInnerOrderRecord(CurrentRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              }else{
                   MaxRecord = 1;
                   writeRecordNumber(MaxRecord);
                   CustOrderIDTxt.setText(""+MaxRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              //--<END>--Checks to see whether CRecordNumberStore file exists--------------------------------------//
              if(readOrder() != null){
                   orderDetails = (CustOrdObject[]) readOrder();
                 innerCustOrdObj = orderDetails[CurrentRecord].getInnerCustOrdObj();
                   MaxItems = orderDetails[CurrentRecord].getMaxItems();
                   if(CurrentRecord > 1 && CurrentRecord < MaxRecord){
                        externalnextbtn.setEnabled(true);
                        externalprevbtn.setEnabled(true);
                   if(CurrentRecord >= MaxRecord){
                        externalnextbtn.setEnabled(false);
                   getFieldText(CurrentRecord-1);
              }else{
                   orderDetails[CurrentRecord] = new CustOrdObject();
                   currentItem = 1;
              return mainframe;
         //--<END>--Creating CustomerOrderDetails Screen---------------------------------------------//
         public JPanel createCustOrdDetailsTitle(){
              createTitlePanel();
              titlepanel.setBackground(TxtfontColor);
              label.setText("- Customer Order Details -");
              labelpanel.setBackground(TxtfontColor);
              label.setForeground(Color.white);
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor) ;
              buttonpanel.add(createReturnToMainMenuButton());
              titlepanel.add(labelpanel, BorderLayout.WEST);
              titlepanel.add(buttonpanel, BorderLayout.EAST);
              return titlepanel;
         public JPanel createCustOrdDetailsMainPanel(){
              createmainpanel();
              mainpanel.setBackground(TxtfontColor);
              mainpanel.setLayout(new BorderLayout());          
              mainpanel.setBorder(BorderFactory.createTitledBorder(""));
              mainpanel.add(createInnerTopPanel(), BorderLayout.NORTH);
              mainpanel.add(createInnerCenterPanel(), BorderLayout.CENTER);
              mainpanel.add(createInnerBottomPanel(), BorderLayout.SOUTH);
              mainpanel.add(createInnerRightPanel(), BorderLayout.EAST);
              mainpanel.add(createInnerLeftPanel(), BorderLayout.WEST);
              return mainpanel;
         public JPanel createInnerTopPanel(){
              innertoppanel = new JPanel(new GridBagLayout());
              innertoppanel.setBackground(TxtfontColor);
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              CustIDLbl = new JLabel("Customer ID");
              CustIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustIDLbl.setFont(font);
              CustIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innertoppanel.add(CustIDLbl, GBC);     
              CustIDTxt = new JTextField(20);
              CustIDTxt.setEditable(true);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innertoppanel.add(CustIDTxt, GBC);
              GBC.gridx = 3;
              GBC.gridy = 1;
              innertoppanel.add(Box.createHorizontalStrut(220), GBC);
              OrderedDateLbl = new JLabel("Order Date");
              OrderedDateLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              OrderedDateLbl.setFont(font);
              OrderedDateLbl.setForeground(LblfontColor);
              GBC.gridx = 4;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateLbl, GBC);     
              //Get today's date
              Date todaydate = new Date();
              OrderedDateTxt = new JTextField(simpleDF.format(todaydate), 20);
              OrderedDateTxt.setHorizontalAlignment(JTextField.CENTER);
              OrderedDateTxt.setEditable(false);
              GBC.gridx = 5;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateTxt, GBC);
              CustOrderIDLbl = new JLabel("Customer Order ID");
              CustOrderIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustOrderIDLbl.setFont(font);
              CustOrderIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDLbl, GBC);
              CustOrderIDTxt = new JTextField(20);
              CustOrderIDTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDTxt, GBC);
              return innertoppanel;
         public JPanel createInnerCenterPanel(){
              innercenterpanel = new JPanel(new GridBagLayout());
              innercenterpanel.setBackground(TxtfontColor);
              innercenterpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              ItemNumberLbl = new JLabel("Item Number");
              ItemNumberLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              ItemNumberLbl.setFont(font);
              ItemNumberLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberLbl, GBC);     
              ItemNumberTxt = new JTextField(20);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberTxt, GBC);
              UnitPriceLbl = new JLabel("Unit Price");
              UnitPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              UnitPriceLbl.setFont(font);
              UnitPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceLbl, GBC);     
              UnitPriceTxt = new JTextField(20);
              //UnitPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceTxt, GBC);
              QuantityReqLbl = new JLabel("Quantity Required");
              QuantityReqLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              QuantityReqLbl.setFont(font);
              QuantityReqLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqLbl, GBC);     
              QuantityReqTxt = new JTextField(20);
              //QuantityReqTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqTxt, GBC);
              TotPriceLbl = new JLabel("Total Price");
              TotPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              TotPriceLbl.setFont(font);
              TotPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceLbl, GBC);     
              TotPriceTxt = new JTextField(20);
              //TotPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceTxt, GBC);
              return innercenterpanel;
         public JPanel createInnerBottomPanel(){
              innerbottompanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              innerbottompanel.setBackground(TxtfontColor);
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              GrandTotLbl = new JLabel("Grand Total");
              GrandTotLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              GrandTotLbl.setFont(font);
              GrandTotLbl.setForeground(LblfontColor);
              innerbottompanel.add(GrandTotLbl);
              innerbottompanel.add(Box.createHorizontalStrut(30));
              GrandTotTxt = new JTextField(20);
              innerbottompanel.add(GrandTotTxt);
              return innerbottompanel;
         public JPanel createInnerRightPanel(){
              innerrightpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerrightpanel.setBackground(TxtfontColor);
              innerrightpanel.setLayout(new BoxLayout(navrightpanel, BoxLayout.Y_AXIS));
              innerrightpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerrightpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalnextbtn = new JButton(createNextButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        //getInnerFieldText(currentItem);
                        internalprevbtn.setEnabled(true);
                        if(currentItem < MaxItems){
                             ++CurrentRecord;
                             //readOrder();
                             //readInnerOrderRecord(CurrentRecord);
                             setInnerFieldText(currentItem);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(currentItem == MaxItems){
                             internalnextbtn.setEnabled(false);
              innerrightpanel.add(internalnextbtn, GBC);
              return innerrightpanel;
         public JPanel createInnerLeftPanel(){
              innerleftpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerleftpanel.setBackground(TxtfontColor);
              innerleftpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerleftpanel.setForeground(Color.BLACK);
              innerleftpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalprevbtn = new JButton(createPreviousButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        //getInnerFieldText(currentItem);
                        internalnextbtn.setEnabled(true);
                        if(currentItem == 1){
                             internalprevbtn.setEnabled(false);
                        if(currentItem > 0){
                             --currentItem;
                             //readOrder();
                             setInnerFieldText(currentItem);
              innerleftpanel.add(internalprevbtn, GBC);
              return innerleftpanel;
         public JPanel createCustOrdDetailsButtons(){
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor);
              externalprevbtn = new JButton(createPreviousButtonIcon());
              externalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalnextbtn.setEnabled(true);
                        if(CurrentRecord == 1){
                             externalprevbtn.setEnabled(false);
                        if(CurrentRecord > 0){
                             --CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
              buttonpanel.add(externalprevbtn);
              addrecordbtn = new JButton("Add Record", createAddButtonIcon());
              addrecordbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             MaxRecord = readRecordNumber();
                             MaxRecord++;
                             writeRecordNumber(MaxRecord);
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             CustIDTxt.setText("");
                             CustOrderIDTxt.setText(""+MaxRecord);
                             //Get today's date
                             Date todaydate = new Date();
                             OrderedDateTxt.setText(""+simpleDF.format(todaydate));
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             GrandTotTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             externalnextbtn.setEnabled(false);
                             externalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(addrecordbtn);
              savebtn = new JButton("Save Data", createSaveButtonIcon());
              savebtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        setFieldText(CurrentRecord);
                        writeOrder();
                        writeRecordNumber(MaxRecord);
                        System.out.println(CurrentRecord);
                        System.out.println(MaxRecord);
              buttonpanel.add(savebtn);
              java.net.URL imageURL_AddRowIcon = CommonFeatures.class.getResource("Icons/edit_add.png");
              ImageIcon AddRowIcon = new ImageIcon(imageURL_AddRowIcon);
              additemreqbtn = new JButton("Add Item", AddRowIcon);
              additemreqbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             //CurrentRecord = MaxRecord;
                             currentItem++;
                             setInnerFieldText(currentItem);
                             internalnextbtn.setEnabled(false);
                             internalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(additemreqbtn);
              externalnextbtn = new JButton(createNextButtonIcon());
              externalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalprevbtn.setEnabled(true);
                        if(CurrentRecord < MaxRecord){
                             ++CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(CurrentRecord == MaxRecord){
                             externalnextbtn.setEnabled(false);
              buttonpanel.add(externalnextbtn);
              return buttonpanel;
         //TODO
         public void setFieldText(int orderID){//TODO
              orderDetails[orderID].setCustID(Integer.parseInt(CustIDTxt.getText()));
              orderDetails[orderID].setCustOrderID(Integer.parseInt(CustOrderIDTxt.getText()));
              orderDetails[orderID].setOrderDate(OrderedDateTxt.getText());
              orderDetails[orderID].setInnerCustOrdObj(innerCustOrdObj);
              orderDetails[orderID].setMaxItems(MaxItems);
              setInnerFieldText(currentItem);
              orderDetails[orderID].setGrandTotal(Float.parseFloat(GrandTotTxt.getText()));
         public void setInnerFieldText(int currentItem){//TODO
              innerCustOrdObj[currentItem] = new InnerCustOrdObject();
              innerCustOrdObj[currentItem].setItemNumber(Integer.parseInt(ItemNumberTxt.getText()));
              innerCustOrdObj[currentItem].setUnitPrice(Float.parseFloat(UnitPriceTxt.getText()));
              innerCustOrdObj[currentItem].setQuantityRequired(Integer.parseInt(QuantityReqTxt.getText()));
              innerCustOrdObj[currentItem].setTotalPrice(Float.parseFloat(TotPriceTxt.getText()));
         public void getFieldText(int orderID){
              CustIDTxt.setText(Integer.toString(orderDetails[orderID].getCustID()));
              CustOrderIDTxt.setText(Integer.toString(orderDetails[orderID].getCustOrderID()));
              OrderedDateTxt.setText(""+orderDetails[orderID].getOrderDate());          
              currentItem = orderDetails[orderID].getMaxItems();
              System.err.println("currentItem" + currentItem);
              getInnerFieldText(currentItem);
              GrandTotTxt.setText(Float.toString(orderDetails[orderID].getGrandTotal()));
         public void getInnerFieldText(int currentItem){
              ItemNumberTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getItemNumber()));
              UnitPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getUnitPrice()));
              QuantityReqTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getQuantityRequired()));
              TotPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getTotalPrice()));
         public void writeOrder(){//TODO
              try {
                   objOut = new ObjectOutputStream(new FileOutputStream(OrderDetailsFile));
                   objOut.writeObject(orderDetails);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              } catch (IOException e) {
                   e.printStackTrace();
         public Object readOrder(){
              Object temporaryObj;
              try{
                   objIn = new ObjectInputStream(new FileInputStream(OrderDetailsFile));
                   temporaryObj = objIn.readObject();               
                   CustOrdObject[] blah = (CustOrdObject[]) temporaryObj;
                   System.out.println("Outer: "+blah[1].getCustID());
                   InnerCustOrdObject[] whee = blah[1].getInnerCustOrdObj();
                   System.out.println("Inner: "+whee[1].getItemNumber());
                   objIn.close();
                   System.out.println("Read Worky!");
                   return temporaryObj;
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println("Read No Worky!");
                   return null;
         public void writeRecordNumber(int MaxRecord){
              try{
                   objOut = new ObjectOutputStream(new FileOutputStream(OrdRecordNumStore));
                   objOut.writeObject(MaxRecord);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              }catch(Exception e){e.printStackTrace();}
         public int readRecordNumber() {
              try {
                   objIn = new ObjectInputStream(new FileInputStream(OrdRecordNumStore));
                   int temporaryObj = Integer.parseInt(objIn.readObject().toString());
                   objIn.close();
                   System.out.println("Read Number Worky!");
                   return temporaryObj;
              } catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("Read Number No Worky!");
                   return -1;
    }Message was edited by:
    Kilik07
    Message was edited by:
    Kilik07

    ok i got reading to work to a certain extent... but the prob is i cnt seem to save my innerCustOrdObj proprly...when ever i look for a record using the gotorecordbtn, the outerobject, which is the orderDetails, seems to change but the innerCustOrdObj remains the same... heres the new code..
    public class CustomerOrderDetails extends CommonFeatures{
         //TODO
         private static int MAX_ORDERS = 200;
         private static int MAX_ORDERITEMS = 100;
         private static int MaxRecord;
         private static int CurrentRecord = 1;
         private static int currentItem;
         private static int MaxItems = 1;
         private static boolean FileExists, recFileExists;
         private static boolean RecordExists;
         private static CustOrdObject[] orderDetails = new CustOrdObject[MAX_ORDERS];
         private static InnerCustOrdObject[] innerCustOrdObj = new InnerCustOrdObject[MAX_ORDERITEMS];     
         private static File OrderDetailsFile = new File("CustOrdDetails.ser");
         private static File OrdRecordNumStore = new File("OrdRecordNumStore.txt");
         private static PrintWriter writeFile;
         private static BufferedReader readFile;
         private static ObjectOutputStream objOut;
         private static ObjectInputStream objIn;
         //Set format for date
         SimpleDateFormat simpleDF = new SimpleDateFormat("dd MM yyyy");
         //--<BEGINNING>--Declaring Interface Variables------------------------------------------//
         private JPanel innertoppanel, innercenterpanel, innerbottompanel, innerrightpanel, innerleftpanel;
         private JLabel CustIDLbl, CustOrderIDLbl, OrderedDateLbl, GrandTotLbl, ItemNumberLbl,UnitPriceLbl, QuantityReqLbl, TotPriceLbl;
         private JTextField CustIDTxt, CustOrderIDTxt, OrderedDateTxt, GrandTotTxt, ItemNumberTxt, UnitPriceTxt, QuantityReqTxt, TotPriceTxt;
         private JButton addrecordbtn, savebtn, externalprevbtn, externalnextbtn, internalprevbtn, internalnextbtn, gotorecordbtn, additemreqbtn;
         //--<END>--Declaring Interface Variables------------------------------------------------//
         public static void main(String[] args) {
              final CustomerOrderDetails COD = new CustomerOrderDetails();
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                             COD.createCustOrdDetailsScreen();
                        } catch (Exception eb) {
                             eb.printStackTrace();
         //--<BEGINNING>--Creating CustomerOrderDetails Screen---------------------------------------//
         public JFrame createCustOrdDetailsScreen() {
              createDefaultFrame();
              mainframe.setSize(800,500);
              createContainerPanel();
              containerpanel.add(createCustOrdDetailsTitle(), BorderLayout.NORTH);
              containerpanel.add(createCustOrdDetailsMainPanel(), BorderLayout.CENTER);
              //containerpanel.add(createCustOrdDetailsLeftNavButtons(), BorderLayout.WEST);
              //containerpanel.add(createCustOrdDetailsRightNavButtons(), BorderLayout.EAST);
              containerpanel.add(createCustOrdDetailsButtons(), BorderLayout.SOUTH);
              mainframe.setContentPane(containerpanel);
              mainframe.setLocationRelativeTo(null);
              mainframe.setVisible(true);
              //--<BEGINNING>--Checks to see whether CRecordNumberStore file exists-------------------------------//
              if (OrdRecordNumStore.exists() == true) {
                   recFileExists = true;
              }else {
                   recFileExists = false;
              if (recFileExists == true) {
                   MaxRecord = readRecordNumber();
                   CurrentRecord = MaxRecord;
                   //readOrder();
                   //readInnerOrderRecord(CurrentRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              }else{
                   MaxRecord = 1;
                   writeRecordNumber(MaxRecord);
                   CustOrderIDTxt.setText(""+MaxRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              //--<END>--Checks to see whether CRecordNumberStore file exists--------------------------------------//
              if(readOrder() != null){
                   orderDetails = (CustOrdObject[]) readOrder();
                   //CurrentRecord--;
                   //System.out.println("Current Rec Here"+CurrentRecord);
                   if(orderDetails[CurrentRecord] == null){
                        System.err.println("CustomerOrderObj 1 is null !!");
                   }else{
                        System.err.println("CustomerOrderObj 1 is  not null !!");
                   if(orderDetails[CurrentRecord].getInnerCustOrdObj() == null){
                        System.err.println("InnerCustomerOrderObj is null !!");
                   }else{
                        System.err.println("InnerCustomerOrderObj is  not null !!");
                   innerCustOrdObj = orderDetails[CurrentRecord].getInnerCustOrdObj();
                   MaxItems = orderDetails[CurrentRecord].getMaxItems();
                   if(CurrentRecord > 1 && CurrentRecord < MaxRecord){
                        externalnextbtn.setEnabled(true);
                        externalprevbtn.setEnabled(true);
                   if(CurrentRecord >= MaxRecord){
                        externalnextbtn.setEnabled(false);
                   getFieldText(CurrentRecord);
                   getInnerFieldText(MaxItems);
              }else{
                   orderDetails[CurrentRecord] = new CustOrdObject();
                   currentItem = 1;
              return mainframe;
         //--<END>--Creating CustomerOrderDetails Screen---------------------------------------------//
         public JPanel createCustOrdDetailsTitle(){
              createTitlePanel();
              titlepanel.setBackground(TxtfontColor);
              label.setText("- Customer Order Details -");
              labelpanel.setBackground(TxtfontColor);
              label.setForeground(Color.white);
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor) ;
              buttonpanel.add(createReturnToMainMenuButton());
              titlepanel.add(labelpanel, BorderLayout.WEST);
              titlepanel.add(buttonpanel, BorderLayout.EAST);
              return titlepanel;
         public JPanel createCustOrdDetailsMainPanel(){
              createmainpanel();
              mainpanel.setBackground(TxtfontColor);
              mainpanel.setLayout(new BorderLayout());          
              mainpanel.setBorder(BorderFactory.createTitledBorder(""));
              mainpanel.add(createInnerTopPanel(), BorderLayout.NORTH);
              mainpanel.add(createInnerCenterPanel(), BorderLayout.CENTER);
              mainpanel.add(createInnerBottomPanel(), BorderLayout.SOUTH);
              mainpanel.add(createInnerRightPanel(), BorderLayout.EAST);
              mainpanel.add(createInnerLeftPanel(), BorderLayout.WEST);
              return mainpanel;
         public JPanel createInnerTopPanel(){
              innertoppanel = new JPanel(new GridBagLayout());
              innertoppanel.setBackground(TxtfontColor);
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              CustIDLbl = new JLabel("Customer ID");
              CustIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustIDLbl.setFont(font);
              CustIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innertoppanel.add(CustIDLbl, GBC);     
              CustIDTxt = new JTextField(20);
              CustIDTxt.setEditable(true);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innertoppanel.add(CustIDTxt, GBC);
              GBC.gridx = 3;
              GBC.gridy = 1;
              innertoppanel.add(Box.createHorizontalStrut(220), GBC);
              OrderedDateLbl = new JLabel("Order Date");
              OrderedDateLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              OrderedDateLbl.setFont(font);
              OrderedDateLbl.setForeground(LblfontColor);
              GBC.gridx = 4;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateLbl, GBC);     
              //Get today's date
              Date todaydate = new Date();
              OrderedDateTxt = new JTextField(simpleDF.format(todaydate), 20);
              OrderedDateTxt.setHorizontalAlignment(JTextField.CENTER);
              OrderedDateTxt.setEditable(false);
              GBC.gridx = 5;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateTxt, GBC);
              CustOrderIDLbl = new JLabel("Customer Order ID");
              CustOrderIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustOrderIDLbl.setFont(font);
              CustOrderIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDLbl, GBC);
              CustOrderIDTxt = new JTextField(20);
              //CustOrderIDTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDTxt, GBC);
              return innertoppanel;
         public JPanel createInnerCenterPanel(){
              innercenterpanel = new JPanel(new GridBagLayout());
              innercenterpanel.setBackground(TxtfontColor);
              innercenterpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              ItemNumberLbl = new JLabel("Item Number");
              ItemNumberLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              ItemNumberLbl.setFont(font);
              ItemNumberLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberLbl, GBC);     
              ItemNumberTxt = new JTextField(20);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberTxt, GBC);
              UnitPriceLbl = new JLabel("Unit Price");
              UnitPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              UnitPriceLbl.setFont(font);
              UnitPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceLbl, GBC);     
              UnitPriceTxt = new JTextField(20);
              //UnitPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceTxt, GBC);
              QuantityReqLbl = new JLabel("Quantity Required");
              QuantityReqLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              QuantityReqLbl.setFont(font);
              QuantityReqLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqLbl, GBC);     
              QuantityReqTxt = new JTextField(20);
              //QuantityReqTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqTxt, GBC);
              TotPriceLbl = new JLabel("Total Price");
              TotPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              TotPriceLbl.setFont(font);
              TotPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceLbl, GBC);     
              TotPriceTxt = new JTextField(20);
              TotPriceTxt.setEditable(false);
              TotPriceTxt.addFocusListener(new FocusAdapter(){
                   public void focusGained(FocusEvent evt){
                        TotPriceTxt.setText(""+Integer.parseInt(UnitPriceTxt.getText())*Integer.parseInt(QuantityReqTxt.getText()));
              GBC.gridx = 2;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceTxt, GBC);
              return innercenterpanel;
         public JPanel createInnerBottomPanel(){
              innerbottompanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              innerbottompanel.setBackground(TxtfontColor);
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              GrandTotLbl = new JLabel("Grand Total");
              GrandTotLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              GrandTotLbl.setFont(font);
              GrandTotLbl.setForeground(LblfontColor);
              innerbottompanel.add(GrandTotLbl);
              innerbottompanel.add(Box.createHorizontalStrut(30));
              GrandTotTxt = new JTextField(20);
              innerbottompanel.add(GrandTotTxt);
              return innerbottompanel;
         public JPanel createInnerRightPanel(){
              innerrightpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerrightpanel.setBackground(TxtfontColor);
              innerrightpanel.setLayout(new BoxLayout(navrightpanel, BoxLayout.Y_AXIS));
              innerrightpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerrightpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalnextbtn = new JButton(createNextButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getInnerFieldText(currentItem);
                        internalprevbtn.setEnabled(true);
                        if(currentItem < MaxItems){
                             ++currentItem;
                             orderDetails[CurrentRecord].getInnerCustOrdObj();
                             setInnerFieldText(currentItem);
                             System.out.println("Current Item" + currentItem);
                        if(currentItem == MaxItems){
                             internalnextbtn.setEnabled(false);
              innerrightpanel.add(internalnextbtn, GBC);
              return innerrightpanel;
         public JPanel createInnerLeftPanel(){
              innerleftpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerleftpanel.setBackground(TxtfontColor);
              innerleftpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerleftpanel.setForeground(Color.BLACK);
              innerleftpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalprevbtn = new JButton(createPreviousButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getInnerFieldText(currentItem);
                        internalnextbtn.setEnabled(true);
                        if(currentItem == 1){
                             internalprevbtn.setEnabled(false);
                        if(currentItem > 0){
                             --currentItem;
                             orderDetails[CurrentRecord].getInnerCustOrdObj();
                             setInnerFieldText(currentItem);
                             System.out.println("Current Item" + currentItem);
              innerleftpanel.add(internalprevbtn, GBC);
              return innerleftpanel;
         public JPanel createCustOrdDetailsButtons(){
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor);
              externalprevbtn = new JButton(createPreviousButtonIcon());
              externalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalnextbtn.setEnabled(true);
                        if(CurrentRecord == 1){
                             externalprevbtn.setEnabled(false);
                        if(CurrentRecord > 0){
                             --CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println("Current Record " + CurrentRecord);//Checking RECORD_NUM
              buttonpanel.add(externalprevbtn);
              addrecordbtn = new JButton("Add Record", createAddButtonIcon());
              addrecordbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             MaxRecord = readRecordNumber();
                             MaxRecord++;
                             CurrentRecord = MaxRecord;
                             orderDetails[CurrentRecord] = new CustOrdObject();
                             writeRecordNumber(MaxRecord);
                             MaxItems = 1;
                             innerCustOrdObj[MaxItems] = new InnerCustOrdObject();
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             CustIDTxt.setText("");
                             CustOrderIDTxt.setText(""+MaxRecord);
                             //Get today's date
                             Date todaydate = new Date();
                             OrderedDateTxt.setText(""+simpleDF.format(todaydate));
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             GrandTotTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             externalnextbtn.setEnabled(false);
                             externalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(addrecordbtn);
              savebtn = new JButton("Save Data", createSaveButtonIcon());
              savebtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        setFieldText(CurrentRecord);
                        setInnerFieldText(MaxItems);
                        writeOrder();
                        writeRecordNumber(MaxRecord);
                        System.out.println(CurrentRecord);
                        System.out.println(MaxRecord);
              buttonpanel.add(savebtn);
              java.net.URL imageURL_AddRowIcon = CommonFeatures.class.getResource("Icons/edit_add.png");
              ImageIcon AddRowIcon = new ImageIcon(imageURL_AddRowIcon);
              additemreqbtn = new JButton("Add Item", AddRowIcon);
              additemreqbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             //CurrentRecord = MaxRecord;
                             MaxItems++;
                             innerCustOrdObj[MaxItems] = new InnerCustOrdObject();
                             System.out.println("Max Items "+MaxItems);
                             currentItem = MaxItems;
                             orderDetails[CurrentRecord].setMaxItems(MaxItems);
                             ///setInnerFieldText(currentItem);
                             internalnextbtn.setEnabled(false);
                             internalprevbtn.setEnabled(true);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(additemreqbtn);
              externalnextbtn = new JButton(createNextButtonIcon());
              externalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalprevbtn.setEnabled(true);
                        if(CurrentRecord < MaxRecord){
                             ++CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(CurrentRecord == MaxRecord){
                             externalnextbtn.setEnabled(false);
              buttonpanel.add(externalnextbtn);
              gotorecordbtn = new JButton("Go To Record", createGotoButtonIcon());
              gotorecordbtn.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt){
                         * The text from the GotorecordTxt textfield will be taken and assigned
                         * to a temporary integer variable called Find. 
                        int Find = Integer.parseInt(CustOrderIDTxt.getText());
                        for(int j=1; j <= MaxRecord; j++){
                              * Using a for loop, each record can be read using the readCustRecord
                              * method.
                             getFieldText(j);
                              * An if condition is utilized to check whether the temporary stored variable, Find,
                              * matches a field in a record. If this record is found, then using the RecordExists
                              * which was declared at the top, either a true or false statement can be assigned
                              * If the record exists, then a true statement will be assigned, if not a false
                              * statement will be assigned.
                             if(orderDetails[j].getCustOrderID() == Find){
                                  RecordExists = true;
                                  break;
                             }else{
                                  RecordExists = false;
                        if(RecordExists == false){
                              * If the RecordExists is assigned a false statement, then a message will be
                              * displayed to show that the record does not exist.
                             JOptionPane.showMessageDialog(null, "Record Does Not Exist!", "Error Message", JOptionPane.ERROR_MESSAGE, createErrorIcon());
                        }else{
                             getFieldText(Find);
              buttonpanel.add(gotorecordbtn);
              return buttonpanel;
         //TODO
         public void setFieldText(int orderID){//TODO
              orderDetails[orderID].setCustID(Integer.parseInt(CustIDTxt.getText()));
              orderDetails[orderID].setCustOrderID(Integer.parseInt(CustOrderIDTxt.getText()));
              orderDetails[orderID].setOrderDate(OrderedDateTxt.getText());
              orderDetails[orderID].setInnerCustOrdObj(innerCustOrdObj);
              orderDetails[orderID].setMaxItems(MaxItems);
              setInnerFieldText(currentItem);
              orderDetails[orderID].setGrandTotal(Float.parseFloat(GrandTotTxt.getText()));
         public void setInnerFieldText(int currentItem){//TODO
              innerCustOrdObj[currentItem] = new InnerCustOrdObject();
              innerCustOrdObj[currentItem].setMaxItems(MaxItems);
              innerCustOrdObj[currentItem].setItemNumber(Integer.parseInt(ItemNumberTxt.getText()));
              innerCustOrdObj[currentItem].setUnitPrice(Float.parseFloat(UnitPriceTxt.getText()));
              innerCustOrdObj[currentItem].setQuantityRequired(Integer.parseInt(QuantityReqTxt.getText()));
              innerCustOrdObj[currentItem].setTotalPrice(Float.parseFloat(TotPriceTxt.getText()));
         public void getFieldText(int orderID){
              CustIDTxt.setText(Integer.toString(orderDetails[orderID].getCustID()));
              CustOrderIDTxt.setText(Integer.toString(orderDetails[orderID].getCustOrderID()));
              OrderedDateTxt.setText(""+orderDetails[orderID].getOrderDate());          
              currentItem = orderDetails[orderID].getMaxItems();
              orderDetails[orderID].getInnerCustOrdObj();
              System.err.println("currentItem" + currentItem);
              //getInnerFieldText(currentItem);
              GrandTotTxt.setText(Float.toString(orderDetails[orderID].getGrandTotal()));
         public void getInnerFieldText(int currentItem){
              ItemNumberTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getItemNumber()));
              UnitPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getUnitPrice()));
              QuantityReqTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getQuantityRequired()));
              TotPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getTotalPrice()));
         public void writeOrder(){//TODO
              try {
                   objOut = new ObjectOutputStream(new FileOutputStream(OrderDetailsFile));
                   objOut.writeObject(orderDetails);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              } catch (IOException e) {
                   e.printStackTrace();
         public Object readOrder(){
              Object temporaryObj;
              try{
                   objIn = new ObjectInputStream(new FileInputStream(OrderDetailsFile));
                   temporaryObj = objIn.readObject();               
                   CustOrdObject[] blah = (CustOrdObject[]) temporaryObj;
                   /*               System.out.println("Outer: "+blah[1].getCustID());
                   InnerCustOrdObject[] whee = blah[1].getInnerCustOrdObj();
                   System.out.println("Inner: "+whee[1].getItemNumber());*/
                   objIn.close();
                   System.out.println("Read Worky!");
                   return temporaryObj;
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println("Read No Worky!");
                   return null;
         public void writeRecordNumber(int MaxRecord){
              try{
                   objOut = new ObjectOutputStream(new FileOutputStream(OrdRecordNumStore));
                   objOut.writeObject(MaxRecord);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              }catch(Exception e){e.printStackTrace();}
         public int readRecordNumber() {
              try {
                   objIn = new ObjectInputStream(new FileInputStream(OrdRecordNumStore));
                   int temporaryObj = Integer.parseInt(objIn.readObject().toString());
                   objIn.close();
                   System.out.println("Read Number Worky!");
                   return temporaryObj;
              } catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("Read Number No Worky!");
                   return -1;
    }Message was edited by:
    Kilik07

  • Problem with HttpURLConnection and HttpSession.

    Hi,
    Problem with HttpURLConnection and HttpSession.
    I created a HttpSession object in my main class and then called a URL via HttpURLConnection.
    I tried to access the same session object from the servlet called by the URL . but the main session
    is not returned a new seperate session is created.let me know how can we continue the same session in
    the called URL also which is created in main class.
    Thanks
    Prasad

    You are not supported to create a HttpSession by java client. Only J2EE web container can create it.

  • Problem with tpcall and tpgetrply functions

    Hi,
    I have a problem with tpcall() and tpgetrply() functions.
    In this example (invoke tpcall()):
    FBFR32 *buf;
    FLDLEN32 buflen;
    buf = a_buffer.getBuffer(); /* getBuffer() returns FBFR32* */
    buflen = a_buffer.getLongitud();
    /* at this point: buf == a_buffer.getBuffer() */
    if (tpcall(a_contenedor.getServname(),
    (char*)a_contenedor.getBufferPeticion()->getBuffer(),
    a_contenedor.getBufferPeticion()->getLongitud(),
    (char**)&buf,
    (long*)&buflen,
    0) == -1)
    if (tperrno != TPESVCFAIL)
    LANZAR_EXCEPCION(CADENA_WHAT_SB,
    "Error en funcion Execute(), llamada tpcall()",
    tpstrerror(tperrno))
    /* at this point: buf != a_buffer.getBuffer() */
    tpcall() function change the memory address of buf. What is the problem? Is wrong my code? Is a problem with tuxedo version?
    My tuxedo version is:
    tmadmin -vINFO: BEA Tuxedo, Version 8.0, 32-bit, Patch Level 306
    INFO: Serial #: 650522264137-773290431251, Expiration NONE, Maxusers 150
    INFO: Licensed to: Telefonica Moviles Espa?a, S.A.
    INFO: 56-bit Encryption Package
    Thanks,
    ANTONIO.

    There's nothing wrong with your code or tuxedo. tpcall (and tpgetrply) can change the address of the return buffer if it needs to allocate more memory to hold the data. This is the reason why you pass a pointer to the buffer as the output buffer parameter to tpcall and tpreturn. Everything is working as expected.

  • Problem with XMLTABLE and LEFT OUTER JOIN

    Hi all.
    I have one problem with XMLTABLE and LEFT OUTER JOIN, in 11g it returns correct result but in 10g it doesn't, it is trated as INNER JOIN.
    SELECT * FROM v$version;
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE     11.2.0.1.0     Production"
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    --test for 11g
    CREATE TABLE XML_TEST(
         ID NUMBER(2,0),
         XML XMLTYPE
    INSERT INTO XML_TEST
    VALUES
         1,
         XMLTYPE
              <msg>
                   <data>
                        <fields>
                             <id>g1</id>
                             <dat>data1</dat>
                        </fields>
                   </data>
              </msg>
    INSERT INTO XML_TEST
    VALUES
         2,
         XMLTYPE
              <msg>
                   <data>
                        <fields>
                             <id>g2</id>
                             <dat>data2</dat>
                        </fields>
                   </data>
              </msg>
    INSERT INTO XML_TEST
    VALUES
         3,
         XMLTYPE
              <msg>
                   <data>
                        <fields>
                             <id>g3</id>
                             <dat>data3</dat>
                        </fields>
                        <fields>
                             <id>g4</id>
                             <dat>data4</dat>
                        </fields>
                        <fields>
                             <dat>data5</dat>
                        </fields>
                   </data>
              </msg>
    SELECT
         t.id,
         x.dat,
         y.seqno,
         y.id_real
    FROM
         xml_test t,
         XMLTABLE
              '/msg/data/fields'
              passing t.xml
              columns
                   dat VARCHAR2(10) path 'dat',
                   id XMLTYPE path 'id'
         )x LEFT OUTER JOIN
         XMLTABLE
              'id'
              passing x.id
              columns
                   seqno FOR ORDINALITY,
                   id_real VARCHAR2(30) PATH '.'
         )y ON 1=1
    ID     DAT     SEQNO     ID_REAL
    1     data1     1     g1
    2     data2     1     g2
    3     data3     1     g3
    3     data4     1     g4
    3     data5          Here's everything fine, now the problem:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for HPUX: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    --exactly the same environment as 11g (tables and rows)
    SELECT
         t.id,
         x.dat,
         y.seqno,
         y.id_real
    FROM
         xml_test t,
         XMLTABLE
              '/msg/data/fields'
              passing t.xml
              columns
                   dat VARCHAR2(10) path 'dat',
                   id XMLTYPE path 'id'
         )x LEFT OUTER JOIN
         XMLTABLE
              'id'
              passing x.id
              columns
                   seqno FOR ORDINALITY,
                   id_real VARCHAR2(30) PATH '.'
         )y ON 1=1
    ID     DAT     SEQNO     ID_REAL
    1     data1     1     g1
    2     data2     1     g2
    3     data3     1     g3
    3     data4     1     g4As you can see in 10g I don't have the last row, it seems that Oracle 10g doesn't recognize the LEFT OUTER JOIN.
    Is this a bug?, Metalink says that sometimes we can have an ORA-0600 but in this case there is no error returned, just incorrect results.
    Please help.
    Regards.

    Hi A_Non.
    Thanks a lot, I tried with this:
    SELECT
         t.id,
         x.dat,
         y.seqno,
         y.id_real
    FROM
         xml_test t,
         XMLTABLE
              '/msg/data/fields'
              passing t.xml
              columns
                   dat VARCHAR2(10) path 'dat',
                   id XMLTYPE path 'id'
         )x,
         XMLTABLE
              'id'
              passing x.id
              columns
                   seqno FOR ORDINALITY,
                   id_real VARCHAR2(30) PATH '.'
         )(+) y ;And is giving me the complete output.
    Thanks again.
    Regards.

  • Problem with JRE and Yahoo applets

    Hi, I couldn't find any answer for this anywhere else...
    Whenever I try to play a Yahoo game, certain windows will "shake". For example, if I log into yahoo, then go to play their spades game, the applet will load without any problem. The game room will appear and everything seems to be fine. But if I click on the Start Panel, the borders of the Start menu will "shake" If I right click on anything, that menu will also shake. This only occurs while JRE is running the yahoo applet. Once I leave the yahoo game, everything returns to normal. If I use IE and MSVM, this problem does not occur. This problem does not seem to occur with other instances of Java either. Only Yahoo games. I tried searching Yahoo for an answer to this, but didn't find anything. When I tried getting help from them, they replied with an email to update Java and/or my browsers. Well, I am using version 1.4.2_04 of java, and have IE6 updated as of today. Also, I am using Opera version 7.54 and Firefox 0.93. This problem with Java and Yahoo occurs no matter which browser I am using. The only way to keep this from happening seems to be to use IE with MSVM. Any ideas?

    That page does apply. Everything that you have written indicates conclusively that the Yahoo game you're playing is the source of the problem. The fact that it works with the MS jvm but not with the Sun jvm, that the Sun jvm works with other Java applets, etc all say the same thing - that Yahoo applets wer/are coded to work with the MS jvm, which uses MS extensions in violation of the Sun/MS licensing agreements. The statement at the bottom of the page is proof positive - your spades game is not listed by Yahoo as being fixed.
    "07/17/03 - From Yahoo! Customer Care:
    We have deployed a fix for the incompatibilities with the Sun JVM� in the following games:
    Chess Gin Cribbage Euchre Bridge
    Hearts Toki Toki Boom Graffiti Pool
    We plan to upgrade the rest of the games on an ongoing basis. "
    The Yahoo applet is the problem and requires repair...

  • Tp ended with error code 0247 - addtobuffer has problems with data- and/or

    Hello Experts,
    If you give some idea, it will be greatly appreciated.
    This transported issue started coming after power outage, sap system went hard shutdown.
    Then we brought up the system. Before that , we do not have this transport issue.
    our TMS landscape is
    DEV QA-PRD
    SED-SEQSEP
    DEV is having the TMS domain controller.
    FYI:
    *At OS level, when we do scp command using root user, it is fine for any TR.
    In STMS, while adding TR in SEQ(QA system), we  are getting error like this.
    Error:
    Transport control program tp ended with error code 0247
         Message no. XT200
    Diagnosis
         An error occurred when executing a tp command.
           Command:        ADDTOBUFFER SEDK906339 SEQ client010 pf=/us
           Return code:    0247
           Error text:     addtobuffer has problems with data- and/or
           Request:        SEDK906339
    System Response
         The function terminates.
    Procedure
         Correct the error and execute the command again if necessary.
    This is tp version 372.04.71 (release 700, unicode enabled)
    Addtobuffer failed for SEDK906339.
      Neither datafile nor cofile exist (cofile may also be corrupted).
    standard output from tp and from tools called by tp:
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0247

    when we do scp using sm69,
    SEDADM@DEVSYS:/usr/sap/trans/cofiles/K906339.SED SEQADM@QASYS:/usr/sap/trans/cofiles/.
    it throws the error like below,
    Host key verification failed.
                                                                                    External program terminated with exit code 1
    Thanks
    Praba

  • Problems with SwingWorker and classes in my new job, ;), can you help me?

    Hi all, ;)
    First of all, sorry about my poor English.
    I have a problem with Swing and Threads, I hope you help me (because I'm in the firsts two weeks in my new job)
    I have two classes:
    Form1: Its a JPanel class with JProgressBar and JLabel inside.
    FormularioApplet: (the main) Its a JPanel class with a form1 inside.
    I have to download a file from a server and show the progress of the download in the JProgressBar. To make it I do this:
    In Form1 I make a Thread that update the progress bar and gets the fole from the server.
    In FormularioApplet (the main) I call to the method getDownloadedFile from Form1 to get the File.
    THE PROBLEM:
    The execution of FormularioApplet finishes before the Thread of Form1 (with download the file) download the file. Then, when I call in FormularioApplet the variable with the file an Exception: Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException is generated.
    First main begins his execution, then call to Form1 (a thread) then continues his execution and when the execution is finished ends the execution os Form1 and his thread.
    How can I do for main class call the function and the Thread download his file after main class assign the file of return method?
    How can I pass information froma class include an a main class. Form1 can't send to main (because main class made a Form1 f1 = new Form1()) any information from his end of the execution. I think if Form1 can say to main class that he finishes is job, then main class can gets the file.
    I put in bold the important lines.
    Note: My level of JAVA, you can see, is not elevated.
    THANKS A LOT
    Form1 class:
    package es.cambrabcn.signer.gui;
    import java.awt.HeadlessException;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.swing.SwingUtilities;
    public class Form1 extends javax.swing.JPanel {
        //Variables relacionadas con la clase original DownloadProgressBar
        private InputStream file;
        private int totalCicles;
        private int totalFiles;
        private int currentProgress;
        private SwingWorker worker;
        private ByteArrayOutputStream byteArray;
        private boolean done;
        /** Creates new form prueba */
        public Form1() {
            initComponents();
            this.byteArray = new ByteArrayOutputStream();
            progressBar.setStringPainted(true);
            //this.totalFiles = totalFiles;
            currentProgress = 0;
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" C�digo Generado ">                         
        private void initComponents() {
            label1 = new javax.swing.JLabel();
            progressBar = new javax.swing.JProgressBar();
            statusLabel = new javax.swing.JLabel();
            setBackground(new java.awt.Color(255, 255, 255));
            setMaximumSize(new java.awt.Dimension(300, 150));
            setMinimumSize(new java.awt.Dimension(300, 150));
            setPreferredSize(new java.awt.Dimension(300, 150));
            label1.setFont(new java.awt.Font("Arial", 1, 18));
            label1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            label1.setText("Barra de progreso");
            statusLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            statusLabel.setText("Cargando");
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
            this.setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                    .addContainerGap()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, statusLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, progressBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, label1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(label1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(statusLabel)
                    .addContainerGap(73, Short.MAX_VALUE))
        }// </editor-fold>                       
        // Declaraci�n de variables - no modificar                    
        private javax.swing.JLabel label1;
        private javax.swing.JProgressBar progressBar;
        private javax.swing.JLabel statusLabel;
        // Fin de declaraci�n de variables                  
        public byte[] getDownloadedFile(String documentToSign){
             //Variables locales
             byte puente[] = null;
             try{
                //Leemos el documento a firmar
                StringTokenizer st = new StringTokenizer(documentToSign, ";");
                Vector<URL> fileURL = new Vector<URL>();
                HttpSender sender = new HttpSender(null);
                //Introducimos la lista de URLs de archivos a bajar en el objeto Vector
                for(; st.hasMoreTokens(); fileURL.add(new URL(st.nextToken())));
                //Para cada URL descargaremos un archivo
                for(int i = 0; i < fileURL.size(); i++) {
                    file = sender.getMethod((URL)fileURL.get(i));
                    if(file == null) {
                        Thread.sleep(1000L);
                        throw new RuntimeException("Error descarregant el document a signar.");
                    System.out.println("Form1 Dentro de getDownloadFile, Antes de startDownload()");
                    //Fijamos el valor del n�mero de ciclos que se har�n seg�n el tama�o del fichero
                    this.totalCicles = sender.returnCurrentContentLength() / 1024;
                    this.progressBar.setMaximum(totalCicles);
                    //Modificamos el texto del JLabel seg�n el n�mero de fichero que estemos descargando
                    this.statusLabel.setText((new StringBuilder("Descarregant document ")).append(i + 1).append(" de ").append(fileURL.size()).toString());
                    statusLabel.setAlignmentX(0.5F);
                    *//Iniciamos la descarga del fichero, este m�todo llama internamente a un Thread*
                    *this.startDownload();*
                    *System.out.println("Form1 Dentro de getDownloadFile, Despu�s de startDownload()");*
                    *//if (pane.showProgressDialog() == -1) {*
                    *while (!this.isDone()){*
                        *System.out.println("No est� acabada la descarga");*
                        *if (this.isDone()){*
                            *System.out.println("Thread ACABADO --> Enviamos a puente el archivo");*
                            *puente = this.byteArray.toByteArray();*
                            *System.out.println("Form1 getDownloadFile() tama�o puente: " + puente.length);*
                        *else{*
                            *Thread.sleep(5000L);*
    *//                        throw new RuntimeException("Proc�s de desc�rrega del document a signar cancel�lat.");*
            catch (HeadlessException e) {
                    //javascript("onSignError", new String[] {
                    //(new StringBuilder("UI: ")).append(e.getMessage()).toString()});
            e.printStackTrace();
            catch (MalformedURLException e) {
                    //javascript("onSignError", new String[] {
                    //(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
            e.printStackTrace();
            catch (HttpSenderException e) {
                    //javascript("onSignError", new String[] {
                    //(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
            e.printStackTrace();
            catch (InterruptedException e) {
                    //javascript("onSignError", new String[] {
                    //(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
            e.printStackTrace();
            //System.out.println("Form1 getDownloadFile() tama�o puente: " + puente.length);
            return puente;
        public void updateStatus(final int i){
            Runnable doSetProgressBarValue = new Runnable() {
                public void run() {
                    progressBar.setValue(i);
            SwingUtilities.invokeLater(doSetProgressBarValue);
        public void startDownload() {
            System.out.println("Form1 Inicio startDownload()");
            System.out.println("Form1 Dentro de startDownload, antes de definir la subclase SwingWorker");
            System.out.println(done);
            worker = new SwingWorker() {
                public Object construct() {
                    System.out.println("Form1 Dentro de startDownload, dentro de construct(), Antes de entrar en doWork()");
                    return doWork();
                public void finished() {
                    System.out.println("Form1 Dentro de startDownload, dentro de finished(), Antes de asignar done = true");
                    System.out.println(done);
                    done = true;
                    System.out.println("Form1 Dentro de startDownload, dentro de finished(), Despu�s de asignar done = true");
                    System.out.println(done);
                    statusLabel.setText("Completado, tama�o del archivo: " + (byteArray.size() / 1024) + "KB");
            System.out.println("Form1 Dentro de startDownload, antes de worker.start()");
            worker.start();
            System.out.println("Form1 Dentro de startDownload, antes de salir de startDownload");
            System.out.println(done);
            System.out.println("Form1 Dentro de startDownload, despu�s de worker.start()");
         * M�todo doWork()
         * Este m�todo descarga por partes el archivo que es necesario descargar, adem�s de actualizar
         * la barra de carga del proceso de carga de la GUI.
        public Object doWork() {
            System.out.println("Form1 doWork() this.byteArray.size(): " + this.byteArray.size());
            try {
                byte buffer[] = new byte[1024];
                for(int c = 0; (c = this.file.read(buffer)) > 0;) {
                    this.currentProgress++;
                    updateStatus(this.currentProgress);
                    this.byteArray.write(buffer, 0, c);
                this.byteArray.flush();
                this.file.close();
                this.currentProgress = totalCicles;
                updateStatus(this.currentProgress);
            } catch(IOException e) {
                e.printStackTrace();
            System.out.println("Form1 doWork() FINAL this.byteArray.size(): " + this.byteArray.size());
            //done = true;
            System.out.println("AHORA DONE = TRUE");
            return "Done";
        public boolean isDone() {
            return this.done;
    FormularioApplet class (main)
    package es.cambrabcn.signer.gui;
    import java.awt.Color;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.net.URL;
    import java.security.Security;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.swing.SwingUtilities;
    import netscape.javascript.JSObject;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    import sun.security.provider.Sun;
    import be.cardon.cryptoapi.provider.CryptoAPIProvider;
    public class FormularioApplet extends java.applet.Applet {
        //Variables globales
        int paso = 0;
        private static final String JS_ONLOAD = "onLoad";
        private static final String JS_ONLOADERROR = "onLoadError";
        private static final int SIGNATURE_PDF = 1;
        private static final int SIGNATURE_XML = 2;
        //private String signButtonValue;
        private int signatureType;
        private String documentToSign;
        private String pdfSignatureField;
        private Vector<String> outputFilename;
        private Color appletBackground = new Color(255, 255, 255);
        private Vector<byte[]> ftbsigned;
         * Initializes the applet FormularioApplet
        public void init(){
            try {
                SwingUtilities.invokeLater(new Runnable() {
                //SwingUtilities.invokeAndWait(new Runnable() {
                //java.awt.EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        try{
                            readParameters();
                            initComponents();
                        catch(FileNotFoundException e){
                            javascript(JS_ONLOADERROR, new String[] {
                                (new StringBuilder("Init: ")).append(e.getMessage()).toString()});
                            e.printStackTrace();                       
                        catch(IOException e) {
                            javascript(JS_ONLOADERROR, new String[] {
                                (new StringBuilder("Init: ")).append(e.getMessage()).toString()});
                            e.printStackTrace();
            catch (Exception e) {
                javascript(JS_ONLOADERROR, new String[] {
                    (new StringBuilder("Init: ")).append(e.getMessage()).toString()});
                e.printStackTrace();
            javascript(JS_ONLOAD, null);
        /** This method is called from within the init() method to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" C�digo Generado ">
        private void initComponents() {
            this.setSize(350, 450);
            appletPanel = new javax.swing.JPanel();
            jPanel1 = new javax.swing.JPanel();
            jTextField1 = new javax.swing.JLabel();
            jPanel2 = new javax.swing.JPanel();
            label = new javax.swing.JLabel();
            jPanel3 = new javax.swing.JPanel();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            setLayout(new java.awt.BorderLayout());
            appletPanel.setBackground(new java.awt.Color(255, 255, 255));
            appletPanel.setMaximumSize(new java.awt.Dimension(350, 430));
            appletPanel.setMinimumSize(new java.awt.Dimension(350, 430));
            appletPanel.setPreferredSize(new java.awt.Dimension(350, 430));
            jPanel1.setBackground(new java.awt.Color(255, 255, 255));
            jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
            jTextField1.setFont(new java.awt.Font("Arial", 1, 18));
            jTextField1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            jTextField1.setText("SIGNATURA ELECTRONICA");
            org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
                    .addContainerGap())
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
                    .addContainerGap())
            jPanel2.setBackground(new java.awt.Color(255, 255, 255));
            jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
            label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            label.setIcon(new javax.swing.ImageIcon("C:\\java\\workspaces\\cambrabcn\\firmasElectronicas\\logo.gif"));
            org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
            jPanel2.setLayout(jPanel2Layout);
            jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
                    .addContainerGap())
            jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(label)
                    .addContainerGap(229, Short.MAX_VALUE))
            jPanel3.setBackground(new java.awt.Color(255, 255, 255));
            jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
            //this.jButton1.setVisible(false);
            //this.jButton2.setVisible(false);
            jButton1.setText("Seg\u00fcent");
            jButton1.setAlignmentX(0.5F);
            //Cargamos el primer formulario en el JPanel2
            loadFirstForm();
            //Modificamos el texto del bot�n y el contador de pasos.
            //this.jButton1.setText("Siguiente");
            //this.jButton1.setVisible(true);
            //this.jButton2.setVisible(true);
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jButton2.setText("Cancel\u00b7lar");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
            jPanel3.setLayout(jPanel3Layout);
            jPanel3Layout.setHorizontalGroup(
                jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 94, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 112, Short.MAX_VALUE)
                    .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 102, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap())
            jPanel3Layout.setVerticalGroup(
                jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(jButton2)
                        .add(jButton1))
                    .addContainerGap())
            org.jdesktop.layout.GroupLayout appletPanelLayout = new org.jdesktop.layout.GroupLayout(appletPanel);
            appletPanel.setLayout(appletPanelLayout);
            appletPanelLayout.setHorizontalGroup(
                appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, appletPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .add(appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
            appletPanelLayout.setVerticalGroup(
                appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, appletPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap())
            add(appletPanel, java.awt.BorderLayout.CENTER);
        }// </editor-fold>
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
            this.destroy();
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            changeForms(this.paso);
        // Declaraci�n de variables - no modificar
        private javax.swing.JPanel appletPanel;
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel2;
        private javax.swing.JPanel jPanel3;
        private javax.swing.JLabel jTextField1;
        private javax.swing.JLabel label;
        // Fin de declaraci�n de variables
         * M�todo readParameters
         * M�todo que inicializa los valores de los par�metros internos, recibidos por par�metro.
        private void readParameters() throws FileNotFoundException, IOException {
             ???????????????? deleted for the forum
            addSecurityProviders();
         * M�tode loadFirstForm
         * Aquest m�tode carrega a jPanel2 el formulari que informa sobre la c�rrega dels arxius
        private void loadFirstForm(){
            //Form1 f1 = new Form1(stream, i + 1, fileURL.size(), sender.returnCurrentContentLength(), appletBackground);
            //Form1 f1 = new Form1(fileURL.size(), sender.returnCurrentContentLength());
            Form1 f1 = new Form1();
            //Lo dimensionamos y posicionamos
            f1.setSize(310, 150);
            f1.setLocation(10, 110);
            //A�adimos el formulario al JPanel que lo contendr�
            this.jPanel2.add(f1);
            //Validem i repintem el JPanel
            jPanel2.validate();
            jPanel2.repaint();
            //Descarreguem l'arxiu a signar
            *System.out.println("FormularioApplet Dentro de loadFirstForm(), antes de llamar a getDownloadFile()");*
            *byte obj[] = f1.getDownloadedFile(this.documentToSign);*
            if (obj == null){
                System.out.println("Lo que devuelve f1.getDownloadedFile(this.documentToSign) es NULL");
            else{
                System.out.println("Lo que devuelve f1.getDownloadedFile(this.documentToSign) NO es NULL");
                System.out.println("obj: " + obj.length);
            this.ftbsigned.add(obj);
            System.out.println("FormularioApplet Dentro de loadFirstForm(), despu�s de llamar a getDownloadFile()");
            //Indicamos que el primer paso ya se ha efectuado
            this.paso++;
         * M�tode changeForms
         * Aquest m�tode carrega a jPanel2 un formulari concret segons el valor de la variable global "paso"
        private void changeForms(int paso){
            /*A cada paso se cargar� en el JPanel y formulario diferente
             * Paso previo: Se realiza en la inicializaci�n, carga el formulario, descarga el archivo y muestra la barra de carga.
             * Case 1: Se carga el formulario de selecci�n de tipo de firma.
             * Case 2: Se carga el formulario de datos de la persona que firma.
            this.paso = paso;
            switch(paso){
                case 1:
                    //Creamos un objeto de formulario (seleccion de tipo de firma)
                    Form2 f2 = new Form2();
                    //Lo dimensionamos y posicionamos
                    f2.setSize(310, 185);
                    f2.setLocation(10, 110);
                    //Quitamos el formulario 1 y a�adimos el formulario 2 al JPanel
                    this.jPanel2.remove(1);
                    this.jPanel2.add(f2);
                    //Validem i repintem el JPanel
                    jPanel2.validate();
                    jPanel2.repaint();
                    //Modificamos el contador de pasos.
                    this.paso++;
                    break;
                case 2:
                    //Creamos un objeto de formulario (seleccion de tipo de firma)
                    Form3 f3 = new Form3();
                    //Lo dimensionamos y posicionamos
                    f3.setSize(310, 175);
                    f3.setLocation(15, 130);
                    //Quitamos el formulario 1 y a�adimos el formulario 3 al JPanel
                    this.jPanel2.remove(1);
                    this.jPanel2.add(f3);
                    //Validem i repintem el JPanel
                    jPanel2.validate();
                    jPanel2.repaint();
                    //Modificamos el texto del bot�n y el contador de pasos.
                    this.jButton1.setText("Finalizar");
                    this.paso++;
                    break;
                default:
                    //Finalizar el Applet
                    //C�digo que se encargue de guardar el archivo en el disco duro del usuario
                    break;
        private void addSecurityProviders() throws FileNotFoundException, IOException {
            Security.addProvider(new CryptoAPIProvider());
            if (signatureType == SIGNATURE_PDF) {
                Security.addProvider(new BouncyCastleProvider());
            else {
                Security.addProvider(new Sun());
        private File createOutputFile(String filename, int index) {
            return new File((String)outputFilename.get(index));
        protected Object javascript(String function, String args[]) throws RuntimeException {
            //Remove
            if (true) return null;
            try {
                Vector<String> list = new Vector<String>();
                if(args != null) {
                    for(int i = 0; i < args.length; i++) {
                        list.addElement(args);
    if(list.size() > 0) {
    Object objs[] = new Object[list.size()];
    list.copyInto(objs);
    return JSObject.getWindow(this).call(function, objs);
    } catch(UnsatisfiedLinkError e) {
    e.printStackTrace();
    throw new RuntimeException((new StringBuilder()).append(e).append("\nFunci�: ").append(function).toString());
    } catch(Throwable e) {
    e.printStackTrace();
    throw new RuntimeException((new StringBuilder()).append(e).append("\nFunci�: ").append(function).toString());
    return JSObject.getWindow(this).call(function, new Object[0]);
    Edited by: Kefalegereta on Oct 31, 2007 3:54 AM
    Edited by: Kefalegereta on Oct 31, 2007 4:00 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2

    Hi experts,
    I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
    I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these  documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
    I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
    "Tables
    data: it_doc like bapi_doc_draw2,
          it_return like bapiret2,
          it_files like bapi_doc_files2 occurs 0 with header line,
          it_objs like bapi_doc_drad occurs 0 with header line.
    "Variables
    data: wl_doctype like bapi_doc_draw2-documenttype,
          wl_docnumber like bapi_doc_draw2-documentnumber,
          wl_docpart like bapi_doc_draw2-documentpart,
          wl_docversion like bapi_doc_draw2-documentversion.
    it_doc-documenttype = 'ZC1'.
    it_doc-documentpart = '200'.
    it_doc-documentversion = '00'.
    it_doc-description = 'Test of documents creation via BAPI'.
    it_doc-username = sy-uname.
    it_doc-statusextern = 'FR'.
    it_doc-authoritygroup = '0002'.
    refresh it_files[].
    clear it_files.
    it_files-originaltype = '1'.
    it_files-storagecategory = 'Cofre DMS1'.
    it_files-wsapplication = 'PDF'.
    it_files-docfile = 'c:\110307.pdf'.
    it_files-description = 'Test file'.
    append it_files.
    refresh it_objs[].
    clear it_objs.
    it_objs-objecttype = 'EKPO'.
    it_objs-objectkey = '47000497600010'.
    append it_objs.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
        documentdata = it_doc
      IMPORTING
        documenttype = wl_doctype
        documentnumber = wl_docnumber
        documentpart = wl_docpart
        documentversion = wl_docversion
        return = it_return
      TABLES
        objectlinks = it_objs
        documentfiles = it_files.
    After execute the BAPI process I got the following error:
    E26 087 - Data carrier COFRE DMS1 not defined
    Does anybody have a sugestion to help me, please?
    Thks
    David
    Edited by: David Tsutsui on Mar 18, 2010 10:52 AM

    Please refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
    Data Carriers for Storage the Originals of DMS

  • Problems with nouveau and KMS

    Hi guys,
    tl;dr: Want to have a GUI, tried to get it on my own, got stuck at
    (EE) [drm] KMS not enabled
    (though it should be enabled) and no GUI
    It would be nice if someone little bit more expirienced could help (and perhaps explain) a little bit...
    So here's the long version (In case I messed things up without noticing):
    I installed arch on an old machine. After first reboot screen hung at
    root: clean, 53232/1310720 files, 906718/5242880 blocks
    Got past that installing proprietary nvidia drivers (nvidia-304xx for the GeForce 7500 LE).
    Testing X failed. Got X working with nouveau driver.
    Rebooted and again hung at
    root: clean, 53232/1310720 files, 906718/5242880 blocks
    (So proprietary: terminal, but no X - nouveau: No terminal, but X)
    Tried autologin and start X at login: Same result.
    According to the wiki, KMS
    is required by the Nouveau driver
    and according to http://nouveau.freedesktop.org/wiki/KernelModeSetting/
    KMS is on by default
    But according to
    /var/log/Xorg.0.log
    (EE) [drm] KMS not enabled
    Did some more reading (especially http://nouveau.freedesktop.org/wiki/TroubleShooting/ was helpful) but found no useful information (eg. on how to enable KMS), so I decided to ask for help...
    Here's the full Xorg.0.log (What else would be useful?):
    [ 26.378]
    X.Org X Server 1.15.0
    Release Date: 2013-12-27
    [ 26.378] X Protocol Version 11, Revision 0
    [ 26.378] Build Operating System: Linux 3.12.5-1-ARCH x86_64
    [ 26.378] Current Operating System: Linux plaything 3.12.9-1-ARCH #1 SMP PREEMPT Sun Jan 26 09:01:37 CET 2014 x86_64
    [ 26.378] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=a37b4e97-dcfd-40be-a0eb-9307e545ff61 rw quiet
    [ 26.378] Build Date: 09 January 2014 08:47:24AM
    [ 26.379]
    [ 26.379] Current version of pixman: 0.32.4
    [ 26.379] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 26.379] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 26.379] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 30 23:02:22 2014
    [ 26.421] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 26.437] (==) No Layout section. Using the first Screen section.
    [ 26.437] (==) No screen section available. Using defaults.
    [ 26.437] (**) |-->Screen "Default Screen Section" (0)
    [ 26.437] (**) | |-->Monitor "<default monitor>"
    [ 26.446] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
    [ 26.446] (**) | |-->Device "n"
    [ 26.446] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 26.446] (==) Automatically adding devices
    [ 26.446] (==) Automatically enabling devices
    [ 26.446] (==) Automatically adding GPU devices
    [ 26.466] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 26.466] Entry deleted from font path.
    [ 26.466] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
    [ 26.466] Entry deleted from font path.
    [ 26.466] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 26.466] Entry deleted from font path.
    [ 26.466] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 26.467] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 26.467] Entry deleted from font path.
    [ 26.467] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 26.467] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/
    [ 26.467] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 26.467] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 26.467] (II) Loader magic: 0x804c80
    [ 26.467] (II) Module ABI versions:
    [ 26.467] X.Org ANSI C Emulation: 0.4
    [ 26.467] X.Org Video Driver: 15.0
    [ 26.467] X.Org XInput driver : 20.0
    [ 26.467] X.Org Server Extension : 8.0
    [ 26.470] (--) PCI:*(0:2:0:0) 10de:01dd:174b:2510 rev 161, Mem @ 0xdc000000/16777216, 0xc0000000/268435456, 0xdd000000/16777216, BIOS @ 0x????????/131072
    [ 26.471] (II) Open ACPI successful (/var/run/acpid.socket)
    [ 26.472] Initializing built-in extension Generic Event Extension
    [ 26.472] Initializing built-in extension SHAPE
    [ 26.472] Initializing built-in extension MIT-SHM
    [ 26.472] Initializing built-in extension XInputExtension
    [ 26.472] Initializing built-in extension XTEST
    [ 26.472] Initializing built-in extension BIG-REQUESTS
    [ 26.472] Initializing built-in extension SYNC
    [ 26.472] Initializing built-in extension XKEYBOARD
    [ 26.472] Initializing built-in extension XC-MISC
    [ 26.472] Initializing built-in extension SECURITY
    [ 26.472] Initializing built-in extension XINERAMA
    [ 26.472] Initializing built-in extension XFIXES
    [ 26.472] Initializing built-in extension RENDER
    [ 26.472] Initializing built-in extension RANDR
    [ 26.472] Initializing built-in extension COMPOSITE
    [ 26.472] Initializing built-in extension DAMAGE
    [ 26.472] Initializing built-in extension MIT-SCREEN-SAVER
    [ 26.472] Initializing built-in extension DOUBLE-BUFFER
    [ 26.472] Initializing built-in extension RECORD
    [ 26.472] Initializing built-in extension DPMS
    [ 26.472] Initializing built-in extension Present
    [ 26.472] Initializing built-in extension DRI3
    [ 26.472] Initializing built-in extension X-Resource
    [ 26.472] Initializing built-in extension XVideo
    [ 26.472] Initializing built-in extension XVideo-MotionCompensation
    [ 26.472] Initializing built-in extension XFree86-VidModeExtension
    [ 26.472] Initializing built-in extension XFree86-DGA
    [ 26.472] Initializing built-in extension XFree86-DRI
    [ 26.472] Initializing built-in extension DRI2
    [ 26.472] (II) LoadModule: "glx"
    [ 26.482] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 26.719] (II) Module glx: vendor="X.Org Foundation"
    [ 26.719] compiled for 1.15.0, module version = 1.0.0
    [ 26.719] ABI class: X.Org Server Extension, version 8.0
    [ 26.719] (==) AIGLX enabled
    [ 26.719] Loading extension GLX
    [ 26.719] (II) LoadModule: "nouveau"
    [ 26.720] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
    [ 26.781] (II) Module nouveau: vendor="X.Org Foundation"
    [ 26.781] compiled for 1.15.0, module version = 1.0.10
    [ 26.781] Module class: X.Org Video Driver
    [ 26.781] ABI class: X.Org Video Driver, version 15.0
    [ 26.781] (II) NOUVEAU driver
    [ 26.782] (II) NOUVEAU driver for NVIDIA chipset families :
    [ 26.782] RIVA TNT (NV04)
    [ 26.782] RIVA TNT2 (NV05)
    [ 26.782] GeForce 256 (NV10)
    [ 26.782] GeForce 2 (NV11, NV15)
    [ 26.782] GeForce 4MX (NV17, NV18)
    [ 26.782] GeForce 3 (NV20)
    [ 26.782] GeForce 4Ti (NV25, NV28)
    [ 26.782] GeForce FX (NV3x)
    [ 26.782] GeForce 6 (NV4x)
    [ 26.782] GeForce 7 (G7x)
    [ 26.782] GeForce 8 (G8x)
    [ 26.782] GeForce GTX 200 (NVA0)
    [ 26.782] GeForce GTX 400 (NVC0)
    [ 26.782] (++) using VT number 1
    [ 26.783] (EE) [drm] KMS not enabled
    [ 26.783] (EE) No devices detected.
    [ 26.783] (EE)
    Fatal server error:
    [ 26.783] (EE) no screens found(EE)
    [ 26.783] (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 26.783] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 26.783] (EE)

    First thanks for answering
    Checked dmesg but it does not mention KMS (dmesg | grep KMS returns nothing)
    and I was not able to find a virtualisation option in my BIOS.
    Also I didn't find something similar looking over dmesg...
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 3.12.9-1-ARCH (tobias@T-POWA-LX) (gcc version 4.8.2 20131219 (prerelease) (GCC) ) #1 SMP PREEMPT Sun Jan 26 09:01:37 CET 2014
    [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=a37b4e97-dcfd-40be-a0eb-9307e545ff61 rw quiet
    [ 0.000000] e820: BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f3ff] usable
    [ 0.000000] BIOS-e820: [mem 0x000000000009f400-0x000000000009ffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000005fedffff] usable
    [ 0.000000] BIOS-e820: [mem 0x000000005fee0000-0x000000005fee2fff] ACPI NVS
    [ 0.000000] BIOS-e820: [mem 0x000000005fee3000-0x000000005feeffff] ACPI data
    [ 0.000000] BIOS-e820: [mem 0x000000005fef0000-0x000000005fefffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000ffffffff] reserved
    [ 0.000000] NX (Execute Disable) protection: active
    [ 0.000000] SMBIOS 2.4 present.
    [ 0.000000] DMI: Packard Bell BV IMEDIA MC 9745/Cuba MS-7301, BIOS W7301VP2.027 10/27/2006
    [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
    [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
    [ 0.000000] AGP bridge at 00:00:00
    [ 0.000000] Aperture from AGP @ d0000000 old size 32 MB
    [ 0.000000] Aperture from AGP @ d0000000 size 128 MB (APSIZE f20)
    [ 0.000000] e820: last_pfn = 0x5fee0 max_arch_pfn = 0x400000000
    [ 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-CDFFF write-protect
    [ 0.000000] CE000-EFFFF uncachable
    [ 0.000000] F0000-F7FFF write-through
    [ 0.000000] F8000-F8FFF uncachable
    [ 0.000000] F9000-FFFFF write-through
    [ 0.000000] MTRR variable ranges enabled:
    [ 0.000000] 0 base 000000000 mask FC0000000 write-back
    [ 0.000000] 1 base 040000000 mask FE0000000 write-back
    [ 0.000000] 2 base 0D0000000 mask FF8000000 write-combining
    [ 0.000000] 3 base 05FF00000 mask FFFF00000 uncachable
    [ 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 [mem 0x000f46e0-0x000f46ef] mapped at [ffff8800000f46e0]
    [ 0.000000] Scanning 1 areas for low memory corruption
    [ 0.000000] Base memory trampoline at [ffff880000099000] 99000 size 24576
    [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
    [ 0.000000] [mem 0x00000000-0x000fffff] page 4k
    [ 0.000000] BRK [0x01b32000, 0x01b32fff] PGTABLE
    [ 0.000000] BRK [0x01b33000, 0x01b33fff] PGTABLE
    [ 0.000000] BRK [0x01b34000, 0x01b34fff] PGTABLE
    [ 0.000000] init_memory_mapping: [mem 0x5fc00000-0x5fdfffff]
    [ 0.000000] [mem 0x5fc00000-0x5fdfffff] page 2M
    [ 0.000000] BRK [0x01b35000, 0x01b35fff] PGTABLE
    [ 0.000000] init_memory_mapping: [mem 0x5c000000-0x5fbfffff]
    [ 0.000000] [mem 0x5c000000-0x5fbfffff] page 2M
    [ 0.000000] init_memory_mapping: [mem 0x00100000-0x5bffffff]
    [ 0.000000] [mem 0x00100000-0x001fffff] page 4k
    [ 0.000000] [mem 0x00200000-0x5bffffff] page 2M
    [ 0.000000] init_memory_mapping: [mem 0x5fe00000-0x5fedffff]
    [ 0.000000] [mem 0x5fe00000-0x5fedffff] page 4k
    [ 0.000000] BRK [0x01b36000, 0x01b36fff] PGTABLE
    [ 0.000000] RAMDISK: [mem 0x37a02000-0x37cf8fff]
    [ 0.000000] ACPI: RSDP 00000000000f8ae0 00014 (v00 PacBel)
    [ 0.000000] ACPI: RSDT 000000005fee3040 0003C (v01 PacBel PackBell 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: FACP 000000005fee30c0 00074 (v01 PacBel PackBell 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: DSDT 000000005fee3180 06523 (v01 PACBEL AWRDACPI 00001000 MSFT 0100000E)
    [ 0.000000] ACPI: FACS 000000005fee0000 00040
    [ 0.000000] ACPI: SLIC 000000005fee9800 00176 (v01 PacBel PackBell 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: MCFG 000000005fee99c0 0003C (v01 PacBel PackBell 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: APIC 000000005fee9700 00090 (v01 PacBel PackBell 42302E31 AWRD 00000000)
    [ 0.000000] ACPI: SSDT 000000005fee9a40 0015C (v01 PmRef Cpu0Ist 00003000 INTL 20040311)
    [ 0.000000] ACPI: SSDT 000000005fee9ed0 002F1 (v01 PmRef CpuPm 00003000 INTL 20040311)
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] No NUMA configuration found
    [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000005fedffff]
    [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x5fedffff]
    [ 0.000000] NODE_DATA [mem 0x5fedb000-0x5fedffff]
    [ 0.000000] [ffffea0000000000-ffffea00017fffff] PMD -> [ffff88005de00000-ffff88005f5fffff] on node 0
    [ 0.000000] Zone ranges:
    [ 0.000000] DMA [mem 0x00001000-0x00ffffff]
    [ 0.000000] DMA32 [mem 0x01000000-0xffffffff]
    [ 0.000000] Normal empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x00001000-0x0009efff]
    [ 0.000000] node 0: [mem 0x00100000-0x5fedffff]
    [ 0.000000] On node 0 totalpages: 392830
    [ 0.000000] DMA zone: 64 pages used for memmap
    [ 0.000000] DMA zone: 21 pages reserved
    [ 0.000000] DMA zone: 3998 pages, LIFO batch:0
    [ 0.000000] DMA32 zone: 6076 pages used for memmap
    [ 0.000000] DMA32 zone: 388832 pages, LIFO batch:31
    [ 0.000000] ACPI: PM-Timer IO Port: 0x408
    [ 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 3, address 0xfec00000, GSI 0-23
    [ 0.000000] ACPI: IOAPIC (id[0x05] address[0xfecc0000] gsi_base[24])
    [ 0.000000] IOAPIC[1]: apic_id 5, version 3, address 0xfecc0000, GSI 24-47
    [ 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] smpboot: Allowing 4 CPUs, 2 hotplug CPUs
    [ 0.000000] nr_irqs_gsi: 64
    [ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
    [ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
    [ 0.000000] e820: [mem 0x5ff00000-0xdfffffff] available for PCI devices
    [ 0.000000] Booting paravirtualized kernel on bare hardware
    [ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:4 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 29 pages/cpu @ffff88005fc00000 s86464 r8192 d24128 u524288
    [ 0.000000] pcpu-alloc: s86464 r8192 d24128 u524288 alloc=1*2097152
    [ 0.000000] pcpu-alloc: [0] 0 1 2 3
    [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 386669
    [ 0.000000] Policy zone: DMA32
    [ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=a37b4e97-dcfd-40be-a0eb-9307e545ff61 rw quiet
    [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.000000] Checking aperture...
    [ 0.000000] AGP bridge at 00:00:00
    [ 0.000000] Aperture from AGP @ d0000000 old size 32 MB
    [ 0.000000] Aperture from AGP @ d0000000 size 128 MB (APSIZE f20)
    [ 0.000000] Calgary: detecting Calgary via BIOS EBDA area
    [ 0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
    [ 0.000000] Memory: 1531400K/1571320K available (5119K kernel code, 807K rwdata, 1628K rodata, 1144K init, 1288K bss, 39920K reserved)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
    [ 0.000000] Dump stacks of tasks blocking RCU-preempt GP.
    [ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=4.
    [ 0.000000] NR_IRQS:8448 nr_irqs:1024 16
    [ 0.000000] Console: colour dummy device 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] allocated 6291456 bytes of page_cgroup
    [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [ 0.000000] tsc: Fast TSC calibration using PIT
    [ 0.000000] tsc: Detected 2792.957 MHz processor
    [ 0.006674] Calibrating delay loop (skipped), value calculated using timer frequency.. 5588.66 BogoMIPS (lpj=9309856)
    [ 0.011289] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
    [ 0.012344] Mount-cache hash table entries: 256
    [ 0.012786] Initializing cgroup subsys memory
    [ 0.012820] Initializing cgroup subsys devices
    [ 0.012825] Initializing cgroup subsys freezer
    [ 0.012829] Initializing cgroup subsys net_cls
    [ 0.012833] Initializing cgroup subsys blkio
    [ 0.012883] CPU: Physical Processor ID: 0
    [ 0.012887] CPU: Processor Core ID: 0
    [ 0.012891] mce: CPU supports 4 MCE banks
    [ 0.012913] CPU0: Thermal monitoring enabled (TM1)
    [ 0.012928] Last level iTLB entries: 4KB 128, 2MB 128, 4MB 128
    Last level dTLB entries: 4KB 64, 2MB 0, 4MB 64
    tlb_flushall_shift: 6
    [ 0.013032] Freeing SMP alternatives memory: 20K (ffffffff819e9000 - ffffffff819ee000)
    [ 0.014523] ACPI: Core revision 20130725
    [ 0.020923] ACPI: All ACPI Tables successfully acquired
    [ 0.021923] ftrace: allocating 20320 entries in 80 pages
    [ 0.030837] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
    [ 0.066011] smpboot: CPU0: Intel(R) Pentium(R) D CPU 2.80GHz (fam: 0f, model: 06, stepping: 04)
    [ 0.066666] Performance Events: Netburst events, Netburst P4/Xeon PMU driver.
    [ 0.066666] ... version: 0
    [ 0.066666] ... bit width: 40
    [ 0.066666] ... generic registers: 18
    [ 0.066666] ... value mask: 000000ffffffffff
    [ 0.066666] ... max period: 0000007fffffffff
    [ 0.066666] ... fixed-purpose events: 0
    [ 0.066666] ... event mask: 000000000003ffff
    [ 0.083426] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
    [ 0.090131] smpboot: Booting Node 0, Processors # 1 OK
    [ 0.103307] Brought up 2 CPUs
    [ 0.103313] smpboot: Total of 2 processors activated (11176.32 BogoMIPS)
    [ 0.105254] devtmpfs: initialized
    [ 0.109408] PM: Registering ACPI NVS region [mem 0x5fee0000-0x5fee2fff] (12288 bytes)
    [ 0.110866] RTC time: 8:14:47, date: 02/01/14
    [ 0.110947] NET: Registered protocol family 16
    [ 0.111163] cpuidle: using governor ladder
    [ 0.111167] cpuidle: using governor menu
    [ 0.111208] ACPI: bus type PCI registered
    [ 0.111213] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
    [ 0.111319] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
    [ 0.111324] PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in E820
    [ 0.135738] PCI: Using configuration type 1 for base access
    [ 0.135903] mtrr: your CPUs had inconsistent fixed MTRR settings
    [ 0.135906] mtrr: your CPUs had inconsistent variable MTRR settings
    [ 0.135908] mtrr: probably your BIOS does not setup all CPUs.
    [ 0.135909] mtrr: corrected configuration.
    [ 0.136817] bio: create slab <bio-0> at 0
    [ 0.136843] ACPI: Added _OSI(Module Device)
    [ 0.136843] ACPI: Added _OSI(Processor Device)
    [ 0.136843] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.136843] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.138901] ACPI: EC: Look up EC in DSDT
    [ 0.147446] ACPI: SSDT 000000005fee9e40 00087 (v01 PmRef Cpu1Ist 00003000 INTL 20040311)
    [ 0.147946] ACPI: Dynamic OEM Table Load:
    [ 0.147951] ACPI: SSDT (null) 00087 (v01 PmRef Cpu1Ist 00003000 INTL 20040311)
    [ 0.148273] ACPI: Interpreter enabled
    [ 0.148286] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20130725/hwxface-571)
    [ 0.148294] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20130725/hwxface-571)
    [ 0.148318] ACPI: (supports S0 S3 S4 S5)
    [ 0.148322] ACPI: Using IOAPIC for interrupt routing
    [ 0.148365] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug
    [ 0.148649] ACPI: No dock devices found.
    [ 0.160204] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
    [ 0.160216] acpi PNP0A08:00: ACPI _OSC support notification failed, disabling PCIe ASPM
    [ 0.160220] acpi PNP0A08:00: Unable to request _OSC control (_OSC support mask: 0x08)
    [ 0.160356] acpi PNP0A08:00: host bridge window [io 0x0000-0x0cf7] (ignored)
    [ 0.160362] acpi PNP0A08:00: host bridge window [io 0x0d00-0xffff] (ignored)
    [ 0.160367] acpi PNP0A08:00: host bridge window [mem 0x000a0000-0x000bffff] (ignored)
    [ 0.160371] acpi PNP0A08:00: host bridge window [mem 0x000c0000-0x000dffff] (ignored)
    [ 0.160375] acpi PNP0A08:00: host bridge window [mem 0x5ff00000-0xfebfffff] (ignored)
    [ 0.160379] PCI: root bus 00: using default resources
    [ 0.160821] PCI host bridge to bus 0000:00
    [ 0.160829] pci_bus 0000:00: root bus resource [bus 00-ff]
    [ 0.161397] pci 0000:00:00.2: [1106:2327] type 00 class 0x060000
    [ 0.161635] pci 0000:00:00.3: [1106:3327] type 00 class 0x060000
    [ 0.161871] pci 0000:00:00.4: [1106:4327] type 00 class 0x060000
    [ 0.162115] pci 0000:00:00.5: [1106:5327] type 00 class 0x080020
    [ 0.162387] pci 0000:00:00.6: [1106:6327] type 00 class 0x060000
    [ 0.162628] pci 0000:00:00.7: [1106:7327] type 00 class 0x060000
    [ 0.162869] pci 0000:00:01.0: [1106:b999] type 01 class 0x060400
    [ 0.163124] pci 0000:00:02.0: [1106:a327] type 01 class 0x060400
    [ 0.163236] pci 0000:00:02.0: PME# supported from D0 D3hot D3cold
    [ 0.163399] pci 0000:00:02.0: System wakeup disabled by ACPI
    [ 0.163475] pci 0000:00:03.0: [1106:c327] type 01 class 0x060400
    [ 0.163602] pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
    [ 0.163765] pci 0000:00:03.0: System wakeup disabled by ACPI
    [ 0.163857] pci 0000:00:08.0: [1106:3044] type 00 class 0x0c0010
    [ 0.163883] pci 0000:00:08.0: reg 0x10: [mem 0xdffff000-0xdffff7ff]
    [ 0.163897] pci 0000:00:08.0: reg 0x14: [io 0xfc00-0xfc7f]
    [ 0.163988] pci 0000:00:08.0: supports D2
    [ 0.163992] pci 0000:00:08.0: PME# supported from D2 D3hot D3cold
    [ 0.164200] pci 0000:00:0a.0: [13f6:0111] type 00 class 0x040100
    [ 0.164226] pci 0000:00:0a.0: reg 0x10: [io 0xf800-0xf8ff]
    [ 0.164326] pci 0000:00:0a.0: supports D1 D2
    [ 0.164520] pci 0000:00:0f.0: [1106:0591] type 00 class 0x01018f
    [ 0.164545] pci 0000:00:0f.0: reg 0x10: [io 0xf400-0xf407]
    [ 0.164560] pci 0000:00:0f.0: reg 0x14: [io 0xf000-0xf003]
    [ 0.164574] pci 0000:00:0f.0: reg 0x18: [io 0xec00-0xec07]
    [ 0.164587] pci 0000:00:0f.0: reg 0x1c: [io 0xe800-0xe803]
    [ 0.164601] pci 0000:00:0f.0: reg 0x20: [io 0xe400-0xe40f]
    [ 0.164615] pci 0000:00:0f.0: reg 0x24: [io 0xe000-0xe0ff]
    [ 0.164857] pci 0000:00:0f.1: [1106:0571] type 00 class 0x01018a
    [ 0.164923] pci 0000:00:0f.1: reg 0x20: [io 0xdc00-0xdc0f]
    [ 0.165186] pci 0000:00:10.0: [1106:3038] type 00 class 0x0c0300
    [ 0.165250] pci 0000:00:10.0: reg 0x20: [io 0xd800-0xd81f]
    [ 0.165308] pci 0000:00:10.0: supports D1 D2
    [ 0.165311] pci 0000:00:10.0: PME# supported from D0 D1 D2 D3hot D3cold
    [ 0.165456] pci 0000:00:10.0: System wakeup disabled by ACPI
    [ 0.165531] pci 0000:00:10.1: [1106:3038] type 00 class 0x0c0300
    [ 0.165596] pci 0000:00:10.1: reg 0x20: [io 0xd400-0xd41f]
    [ 0.165653] pci 0000:00:10.1: supports D1 D2
    [ 0.165656] pci 0000:00:10.1: PME# supported from D0 D1 D2 D3hot D3cold
    [ 0.165803] pci 0000:00:10.1: System wakeup disabled by ACPI
    [ 0.165873] pci 0000:00:10.2: [1106:3038] type 00 class 0x0c0300
    [ 0.165937] pci 0000:00:10.2: reg 0x20: [io 0xd000-0xd01f]
    [ 0.165995] pci 0000:00:10.2: supports D1 D2
    [ 0.165998] pci 0000:00:10.2: PME# supported from D0 D1 D2 D3hot D3cold
    [ 0.166146] pci 0000:00:10.2: System wakeup disabled by ACPI
    [ 0.166218] pci 0000:00:10.3: [1106:3038] type 00 class 0x0c0300
    [ 0.166282] pci 0000:00:10.3: reg 0x20: [io 0xcc00-0xcc1f]
    [ 0.166339] pci 0000:00:10.3: supports D1 D2
    [ 0.166343] pci 0000:00:10.3: PME# supported from D0 D1 D2 D3hot D3cold
    [ 0.166497] pci 0000:00:10.3: System wakeup disabled by ACPI
    [ 0.166567] pci 0000:00:10.4: [1106:3104] type 00 class 0x0c0320
    [ 0.166592] pci 0000:00:10.4: reg 0x10: [mem 0xdfffe000-0xdfffe0ff]
    [ 0.166691] pci 0000:00:10.4: supports D1 D2
    [ 0.166695] pci 0000:00:10.4: PME# supported from D0 D1 D2 D3hot D3cold
    [ 0.166839] pci 0000:00:10.4: System wakeup disabled by ACPI
    [ 0.166918] pci 0000:00:11.0: [1106:3337] type 00 class 0x060100
    [ 0.167234] pci 0000:00:11.7: [1106:287e] type 00 class 0x060000
    [ 0.167490] pci 0000:00:12.0: [1106:3065] type 00 class 0x020000
    [ 0.167515] pci 0000:00:12.0: reg 0x10: [io 0xc800-0xc8ff]
    [ 0.167529] pci 0000:00:12.0: reg 0x14: [mem 0xdfffd000-0xdfffd0ff]
    [ 0.168244] pci 0000:00:01.0: bridge window [io 0xa000-0xafff]
    [ 0.168251] pci 0000:00:01.0: bridge window [mem 0xdfd00000-0xdfdfffff]
    [ 0.168257] pci 0000:00:01.0: bridge window [mem 0xdfc00000-0xdfcfffff pref]
    [ 0.168528] pci 0000:02:00.0: [10de:01dd] type 00 class 0x030000
    [ 0.168547] pci 0000:02:00.0: reg 0x10: [mem 0xdc000000-0xdcffffff]
    [ 0.168565] pci 0000:02:00.0: reg 0x14: [mem 0xc0000000-0xcfffffff 64bit pref]
    [ 0.168583] pci 0000:02:00.0: reg 0x1c: [mem 0xdd000000-0xddffffff 64bit]
    [ 0.168606] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0001ffff pref]
    [ 0.168753] pci 0000:02:00.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'
    [ 0.168767] pci 0000:00:02.0: PCI bridge to [bus 02]
    [ 0.168773] pci 0000:00:02.0: bridge window [io 0x9000-0x9fff]
    [ 0.168779] pci 0000:00:02.0: bridge window [mem 0xdc000000-0xdeffffff]
    [ 0.168788] pci 0000:00:02.0: bridge window [mem 0xc0000000-0xcfffffff 64bit pref]
    [ 0.169037] pci 0000:00:03.0: PCI bridge to [bus 03]
    [ 0.169045] pci 0000:00:03.0: bridge window [io 0xb000-0xbfff]
    [ 0.169052] pci 0000:00:03.0: bridge window [mem 0xdfb00000-0xdfbfffff]
    [ 0.169062] pci 0000:00:03.0: bridge window [mem 0xdfe00000-0xdfefffff 64bit pref]
    [ 0.169210] pci 0000:04:01.0: [1106:3288] type 00 class 0x040300
    [ 0.169234] pci 0000:04:01.0: reg 0x10: [mem 0xdfafc000-0xdfafffff 64bit]
    [ 0.169331] pci 0000:04:01.0: PME# supported from D0 D3hot D3cold
    [ 0.169374] pci 0000:04:01.0: System wakeup disabled by ACPI
    [ 0.169432] pci 0000:04:01.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'
    [ 0.169487] pci 0000:00:13.0: PCI bridge to [bus 04]
    [ 0.169493] pci 0000:00:13.0: bridge window [io 0x8000-0x8fff]
    [ 0.169499] pci 0000:00:13.0: bridge window [mem 0xdfa00000-0xdfafffff]
    [ 0.169508] pci 0000:00:13.0: bridge window [mem 0xdf900000-0xdf9fffff 64bit pref]
    [ 0.170765] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 6 7 *10 11 12)
    [ 0.170957] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 6 7 10 *11 12)
    [ 0.171149] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 6 7 *10 11 12)
    [ 0.171343] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 6 7 10 11 12) *5
    [ 0.171497] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 6 7 10 11 12) *0, disabled.
    [ 0.171661] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 6 7 10 11 12) *0
    [ 0.171808] ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 6 7 10 11 12) *0, disabled.
    [ 0.171970] ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 6 7 10 11 12) *5
    [ 0.172930] ACPI: Enabled 1 GPEs in block 10 to 1F
    [ 0.172944] ACPI: \_SB_.PCI0: notify handler is installed
    [ 0.173038] Found 1 acpi root devices
    [ 0.173158] vgaarb: device added: PCI:0000:02:00.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.173158] vgaarb: loaded
    [ 0.173158] vgaarb: bridge control possible 0000:02:00.0
    [ 0.173158] PCI: Using ACPI for IRQ routing
    [ 0.184737] PCI: pci_cache_line_size set to 64 bytes
    [ 0.184836] e820: reserve RAM buffer [mem 0x0009f400-0x0009ffff]
    [ 0.184839] e820: reserve RAM buffer [mem 0x5fee0000-0x5fffffff]
    [ 0.185030] NetLabel: Initializing
    [ 0.185034] NetLabel: domain hash size = 128
    [ 0.185036] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.185059] NetLabel: unlabeled traffic allowed by default
    [ 0.185120] Switched to clocksource refined-jiffies
    [ 0.195680] pnp: PnP ACPI init
    [ 0.195708] ACPI: bus type PNP registered
    [ 0.195924] system 00:00: [io 0x0400-0x047f] has been reserved
    [ 0.195930] system 00:00: [io 0x0500-0x050f] has been reserved
    [ 0.195937] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.196555] system 00:01: [mem 0xf0001000-0xf0001fff] has been reserved
    [ 0.196562] system 00:01: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.196653] system 00:02: [mem 0xf0002000-0xf0002fff] has been reserved
    [ 0.196660] system 00:02: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.196995] system 00:03: [mem 0xf0000000-0xf0000fff] has been reserved
    [ 0.197002] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.197450] system 00:04: [io 0x04d0-0x04d1] has been reserved
    [ 0.197455] system 00:04: [io 0x0290-0x0297] has been reserved
    [ 0.197459] system 00:04: [io 0x0880-0x088f] has been reserved
    [ 0.197464] system 00:04: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.197486] pnp 00:05: [dma 4]
    [ 0.197536] pnp 00:05: Plug and Play ACPI device, IDs PNP0200 (active)
    [ 0.197617] pnp 00:06: Plug and Play ACPI device, IDs PNP0b00 (active)
    [ 0.197674] pnp 00:07: Plug and Play ACPI device, IDs PNP0800 (active)
    [ 0.197741] pnp 00:08: Plug and Play ACPI device, IDs PNP0c04 (active)
    [ 0.198390] pnp 00:09: Plug and Play ACPI device, IDs PNP0303 PNP030b (active)
    [ 0.198508] system 00:0a: [mem 0xe0000000-0xefffffff] has been reserved
    [ 0.198515] system 00:0a: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.198791] system 00:0b: [mem 0x000ce200-0x000cffff] has been reserved
    [ 0.198796] system 00:0b: [mem 0x000f0000-0x000f7fff] could not be reserved
    [ 0.198800] system 00:0b: [mem 0x000f8000-0x000fbfff] could not be reserved
    [ 0.198804] system 00:0b: [mem 0x000fc000-0x000fffff] could not be reserved
    [ 0.198808] system 00:0b: [mem 0x5fee0000-0x5fefffff] could not be reserved
    [ 0.198812] system 00:0b: [mem 0xffff0000-0xffffffff] has been reserved
    [ 0.198816] system 00:0b: [mem 0x00000000-0x0009ffff] could not be reserved
    [ 0.198820] system 00:0b: [mem 0x00100000-0x5fedffff] could not be reserved
    [ 0.198824] system 00:0b: [mem 0xfec00000-0xfec00fff] could not be reserved
    [ 0.198828] system 00:0b: [mem 0xfee00000-0xfee00fff] has been reserved
    [ 0.198832] system 00:0b: [mem 0xfff80000-0xfffeffff] has been reserved
    [ 0.198837] system 00:0b: Plug and Play ACPI device, IDs PNP0c01 (active)
    [ 0.198848] pnp: PnP ACPI: found 12 devices
    [ 0.198850] ACPI: bus type PNP unregistered
    [ 0.207458] Switched to clocksource acpi_pm
    [ 0.207509] pci 0000:00:01.0: PCI bridge to [bus 01]
    [ 0.207515] pci 0000:00:01.0: bridge window [io 0xa000-0xafff]
    [ 0.207523] pci 0000:00:01.0: bridge window [mem 0xdfd00000-0xdfdfffff]
    [ 0.207530] pci 0000:00:01.0: bridge window [mem 0xdfc00000-0xdfcfffff pref]
    [ 0.207544] pci 0000:02:00.0: BAR 6: assigned [mem 0xde000000-0xde01ffff pref]
    [ 0.207548] pci 0000:00:02.0: PCI bridge to [bus 02]
    [ 0.207554] pci 0000:00:02.0: bridge window [io 0x9000-0x9fff]
    [ 0.207561] pci 0000:00:02.0: bridge window [mem 0xdc000000-0xdeffffff]
    [ 0.207567] pci 0000:00:02.0: bridge window [mem 0xc0000000-0xcfffffff 64bit pref]
    [ 0.207577] pci 0000:00:03.0: PCI bridge to [bus 03]
    [ 0.207582] pci 0000:00:03.0: bridge window [io 0xb000-0xbfff]
    [ 0.207590] pci 0000:00:03.0: bridge window [mem 0xdfb00000-0xdfbfffff]
    [ 0.207596] pci 0000:00:03.0: bridge window [mem 0xdfe00000-0xdfefffff 64bit pref]
    [ 0.207606] pci 0000:00:13.0: PCI bridge to [bus 04]
    [ 0.207611] pci 0000:00:13.0: bridge window [io 0x8000-0x8fff]
    [ 0.207619] pci 0000:00:13.0: bridge window [mem 0xdfa00000-0xdfafffff]
    [ 0.207625] pci 0000:00:13.0: bridge window [mem 0xdf900000-0xdf9fffff 64bit pref]
    [ 0.207634] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
    [ 0.207638] pci_bus 0000:00: resource 5 [mem 0x00000000-0xfffffffff]
    [ 0.207642] pci_bus 0000:01: resource 0 [io 0xa000-0xafff]
    [ 0.207645] pci_bus 0000:01: resource 1 [mem 0xdfd00000-0xdfdfffff]
    [ 0.207648] pci_bus 0000:01: resource 2 [mem 0xdfc00000-0xdfcfffff pref]
    [ 0.207652] pci_bus 0000:02: resource 0 [io 0x9000-0x9fff]
    [ 0.207655] pci_bus 0000:02: resource 1 [mem 0xdc000000-0xdeffffff]
    [ 0.207659] pci_bus 0000:02: resource 2 [mem 0xc0000000-0xcfffffff 64bit pref]
    [ 0.207662] pci_bus 0000:03: resource 0 [io 0xb000-0xbfff]
    [ 0.207666] pci_bus 0000:03: resource 1 [mem 0xdfb00000-0xdfbfffff]
    [ 0.207669] pci_bus 0000:03: resource 2 [mem 0xdfe00000-0xdfefffff 64bit pref]
    [ 0.207673] pci_bus 0000:04: resource 0 [io 0x8000-0x8fff]
    [ 0.207676] pci_bus 0000:04: resource 1 [mem 0xdfa00000-0xdfafffff]
    [ 0.207679] pci_bus 0000:04: resource 2 [mem 0xdf900000-0xdf9fffff 64bit pref]
    [ 0.207741] NET: Registered protocol family 2
    [ 0.208099] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
    [ 0.208319] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
    [ 0.208486] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.208581] TCP: reno registered
    [ 0.208594] UDP hash table entries: 1024 (order: 3, 32768 bytes)
    [ 0.208624] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
    [ 0.208735] NET: Registered protocol family 1
    [ 0.208786] pci 0000:00:01.0: disabling DAC on VIA PCI bridge
    [ 0.209588] pci 0000:02:00.0: Boot video device
    [ 0.209597] PCI: CLS 4 bytes, default 64
    [ 0.209685] Unpacking initramfs...
    [ 0.304628] Freeing initrd memory: 3036K (ffff880037a02000 - ffff880037cf9000)
    [ 0.304834] Scanning for low memory corruption every 60 seconds
    [ 0.305383] audit: initializing netlink socket (disabled)
    [ 0.305409] type=2000 audit(1391242487.303:1): initialized
    [ 0.322282] HugeTLB registered 2 MB page size, pre-allocated 0 pages
    [ 0.324824] zbud: loaded
    [ 0.325131] VFS: Disk quotas dquot_6.5.2
    [ 0.325218] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [ 0.325540] msgmni has been set to 2996
    [ 0.326126] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [ 0.326203] io scheduler noop registered
    [ 0.326208] io scheduler deadline registered
    [ 0.326278] io scheduler cfq registered (default)
    [ 0.326706] pcieport 0000:00:02.0: irq 64 for MSI/MSI-X
    [ 0.326982] pcieport 0000:00:03.0: irq 65 for MSI/MSI-X
    [ 0.327123] ioapic: probe of 0000:00:00.5 failed with error -22
    [ 0.327140] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    [ 0.327169] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
    [ 0.327258] vesafb: mode is 640x480x32, linelength=2560, pages=0
    [ 0.327262] vesafb: scrolling: redraw
    [ 0.327265] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
    [ 0.327408] vesafb: framebuffer at 0xc0000000, mapped to 0xffffc90010400000, using 1216k, total 1216k
    [ 0.343291] Console: switching to colour frame buffer device 80x30
    [ 0.359018] fb0: VESA VGA frame buffer device
    [ 0.359078] GHES: HEST is not enabled!
    [ 0.359194] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.359929] Linux agpgart interface v0.103
    [ 0.360069] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
    [ 0.360073] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
    [ 0.360253] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 0.360472] mousedev: PS/2 mouse device common for all mice
    [ 0.360603] rtc_cmos 00:06: RTC can wake from S4
    [ 0.360821] rtc_cmos 00:06: rtc core: registered rtc_cmos as rtc0
    [ 0.360856] rtc_cmos 00:06: alarms up to one year, y3k, 242 bytes nvram
    [ 0.360973] drop_monitor: Initializing network drop monitor service
    [ 0.361073] TCP: cubic registered
    [ 0.361298] NET: Registered protocol family 10
    [ 0.361617] NET: Registered protocol family 17
    [ 0.361632] Key type dns_resolver registered
    [ 0.362117] registered taskstats version 1
    [ 0.362862] Magic number: 2:64:219
    [ 0.362974] rtc_cmos 00:06: setting system clock to 2014-02-01 08:14:48 UTC (1391242488)
    [ 0.363051] PM: Hibernation image not present or could not be loaded.
    [ 0.364957] Freeing unused kernel memory: 1144K (ffffffff818cb000 - ffffffff819e9000)
    [ 0.364962] Write protecting the kernel read-only data: 8192k
    [ 0.369593] Freeing unused kernel memory: 1012K (ffff880001503000 - ffff880001600000)
    [ 0.371463] Freeing unused kernel memory: 420K (ffff880001797000 - ffff880001800000)
    [ 0.380885] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    [ 0.386910] systemd-udevd[47]: starting version 208
    [ 0.445525] SCSI subsystem initialized
    [ 0.461329] ACPI: bus type USB registered
    [ 0.461417] usbcore: registered new interface driver usbfs
    [ 0.461440] usbcore: registered new interface driver hub
    [ 0.462121] libata version 3.00 loaded.
    [ 0.462864] usbcore: registered new device driver usb
    [ 0.464698] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 0.465272] uhci_hcd: USB Universal Host Controller Interface driver
    [ 0.465512] ehci-pci: EHCI PCI platform driver
    [ 0.526805] firewire_ohci 0000:00:08.0: added OHCI v1.10 device as card 0, 4 IR + 8 IT contexts, quirks 0x11
    [ 0.526880] pata_via 0000:00:0f.1: version 0.3.4
    [ 0.528738] scsi0 : pata_via
    [ 0.528910] scsi1 : pata_via
    [ 0.529015] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xdc00 irq 14
    [ 0.529019] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xdc08 irq 15
    [ 0.529056] sata_via 0000:00:0f.0: version 2.6
    [ 0.529269] sata_via 0000:00:0f.0: routed to hard irq line 11
    [ 0.530888] scsi2 : sata_via
    [ 0.531015] scsi3 : sata_via
    [ 0.531085] ata3: SATA max UDMA/133 cmd 0xf400 ctl 0xf000 bmdma 0xe400 irq 21
    [ 0.531089] ata4: SATA max UDMA/133 cmd 0xec00 ctl 0xe800 bmdma 0xe408 irq 21
    [ 0.531315] uhci_hcd 0000:00:10.0: UHCI Host Controller
    [ 0.531328] uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
    [ 0.531400] uhci_hcd 0000:00:10.0: irq 20, io base 0x0000d800
    [ 0.531711] hub 1-0:1.0: USB hub found
    [ 0.531726] hub 1-0:1.0: 2 ports detected
    [ 0.532106] uhci_hcd 0000:00:10.1: UHCI Host Controller
    [ 0.532117] uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
    [ 0.532157] uhci_hcd 0000:00:10.1: irq 22, io base 0x0000d400
    [ 0.532422] hub 2-0:1.0: USB hub found
    [ 0.532437] hub 2-0:1.0: 2 ports detected
    [ 0.532771] uhci_hcd 0000:00:10.2: UHCI Host Controller
    [ 0.532785] uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
    [ 0.532838] uhci_hcd 0000:00:10.2: irq 21, io base 0x0000d000
    [ 0.533101] hub 3-0:1.0: USB hub found
    [ 0.533115] hub 3-0:1.0: 2 ports detected
    [ 0.533501] uhci_hcd 0000:00:10.3: UHCI Host Controller
    [ 0.533511] uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
    [ 0.533551] uhci_hcd 0000:00:10.3: irq 23, io base 0x0000cc00
    [ 0.533809] hub 4-0:1.0: USB hub found
    [ 0.533824] hub 4-0:1.0: 2 ports detected
    [ 0.534774] ehci-pci 0000:00:10.4: EHCI Host Controller
    [ 0.534784] ehci-pci 0000:00:10.4: new USB bus registered, assigned bus number 5
    [ 0.534832] ehci-pci 0000:00:10.4: irq 21, io mem 0xdfffe000
    [ 0.543378] ehci-pci 0000:00:10.4: USB 2.0 started, EHCI 1.00
    [ 0.543662] hub 5-0:1.0: USB hub found
    [ 0.543678] hub 5-0:1.0: 8 ports detected
    [ 0.566765] hub 1-0:1.0: USB hub found
    [ 0.566782] hub 1-0:1.0: 2 ports detected
    [ 0.590105] hub 2-0:1.0: USB hub found
    [ 0.590121] hub 2-0:1.0: 2 ports detected
    [ 0.613435] hub 3-0:1.0: USB hub found
    [ 0.613452] hub 3-0:1.0: 2 ports detected
    [ 0.636783] hub 4-0:1.0: USB hub found
    [ 0.636802] hub 4-0:1.0: 2 ports detected
    [ 0.733360] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    [ 0.867324] ata2.00: ATAPI: PHILIPS DVD8801, NW02, max UDMA/33
    [ 0.880533] ata2.00: configured for UDMA/33
    [ 0.884513] scsi 1:0:0:0: CD-ROM PHILIPS DVD8801 NW02 PQ: 0 ANSI: 5
    [ 0.938113] ata3.00: ATA-7: ST3250820AS, 3.AAD, max UDMA/133
    [ 0.938119] ata3.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
    [ 1.004743] ata3.00: configured for UDMA/133
    [ 1.004864] scsi 2:0:0:0: Direct-Access ATA ST3250820AS 3.AA PQ: 0 ANSI: 5
    [ 1.026833] firewire_core 0000:00:08.0: created device fw0: GUID 0010dc00010d6a99, S400
    [ 1.206692] ata4: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
    [ 1.238301] sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
    [ 1.238309] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 1.238691] sr 1:0:0:0: Attached scsi CD-ROM sr0
    [ 1.239015] sd 2:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
    [ 1.239111] sd 2:0:0:0: [sda] Write Protect is off
    [ 1.239117] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 1.239158] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 1.287635] sda: sda1 sda2 sda3 sda4 sda5
    [ 1.288484] sd 2:0:0:0: [sda] Attached SCSI disk
    [ 1.306711] tsc: Refined TSC clocksource calibration: 2793.000 MHz
    [ 1.723377] usb 3-2: new full-speed USB device number 2 using uhci_hcd
    [ 1.886359] usb-storage 3-2:1.0: USB Mass Storage device detected
    [ 1.886541] scsi4 : usb-storage 3-2:1.0
    [ 1.886673] usbcore: registered new interface driver usb-storage
    [ 2.090192] EXT4-fs (sda3): mounting ext3 file system using the ext4 subsystem
    [ 2.106588] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.110265] usb 4-1: new full-speed USB device number 2 using uhci_hcd
    [ 2.306777] Switched to clocksource tsc
    [ 2.891527] scsi 4:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0
    [ 2.894524] scsi 4:0:0:1: Direct-Access Generic USB CF Reader 1.01 PQ: 0 ANSI: 0
    [ 2.897522] scsi 4:0:0:2: Direct-Access Generic USB SM Reader 1.02 PQ: 0 ANSI: 0
    [ 2.900490] scsi 4:0:0:3: Direct-Access Generic USB MS Reader 1.03 PQ: 0 ANSI: 0
    [ 2.902787] systemd[1]: systemd 208 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
    [ 2.903423] systemd[1]: Set hostname to <plaything>.
    [ 2.945523] sd 4:0:0:0: [sdb] Attached SCSI removable disk
    [ 2.950494] sd 4:0:0:1: [sdc] Attached SCSI removable disk
    [ 2.955519] sd 4:0:0:2: [sdd] Attached SCSI removable disk
    [ 2.960568] sd 4:0:0:3: [sde] Attached SCSI removable disk
    [ 3.591733] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
    [ 3.592144] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    [ 3.592244] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ 3.592267] systemd[1]: Starting Remote File Systems.
    [ 3.592290] systemd[1]: Reached target Remote File Systems.
    [ 3.592308] systemd[1]: Starting LVM2 metadata daemon socket.
    [ 3.592374] systemd[1]: Listening on LVM2 metadata daemon socket.
    [ 3.592391] systemd[1]: Starting Device-mapper event daemon FIFOs.
    [ 3.592444] systemd[1]: Listening on Device-mapper event daemon FIFOs.
    [ 3.592461] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
    [ 3.592497] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [ 3.592514] systemd[1]: Starting Delayed Shutdown Socket.
    [ 3.592552] systemd[1]: Listening on Delayed Shutdown Socket.
    [ 3.592576] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
    [ 3.592645] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [ 3.592662] systemd[1]: Starting Paths.
    [ 3.592680] systemd[1]: Reached target Paths.
    [ 3.592696] systemd[1]: Starting Encrypted Volumes.
    [ 3.592715] systemd[1]: Reached target Encrypted Volumes.
    [ 3.592763] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
    [ 3.592939] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    [ 3.592965] systemd[1]: Starting udev Kernel Socket.
    [ 3.593003] systemd[1]: Listening on udev Kernel Socket.
    [ 3.593023] systemd[1]: Starting udev Control Socket.
    [ 3.593063] systemd[1]: Listening on udev Control Socket.
    [ 3.593084] systemd[1]: Starting Journal Socket.
    [ 3.593166] systemd[1]: Listening on Journal Socket.
    [ 3.615844] systemd[1]: Started Set Up Additional Binary Formats.
    [ 3.615867] systemd[1]: Starting udev Coldplug all Devices...
    [ 3.617490] systemd[1]: Starting Apply Kernel Variables...
    [ 3.619270] systemd[1]: Started Load Kernel Modules.
    [ 3.619320] systemd[1]: Starting Setup Virtual Console...
    [ 3.620083] systemd[1]: Mounting Huge Pages File System...
    [ 3.620744] systemd[1]: Mounted FUSE Control File System.
    [ 3.655735] systemd[1]: Starting Create list of required static device nodes for the current kernel...
    [ 3.656418] systemd[1]: Mounting POSIX Message Queue File System...
    [ 3.657491] systemd[1]: Mounting Debug File System...
    [ 3.658329] systemd[1]: Starting Journal Service...
    [ 3.659162] systemd[1]: Started Journal Service.
    [ 4.168803] systemd-journald[115]: Vacuuming done, freed 0 bytes
    [ 4.317710] EXT4-fs (sda3): re-mounted. Opts: data=ordered
    [ 4.587408] systemd-udevd[138]: starting version 208
    [ 5.127819] ACPI: Requesting acpi_cpufreq
    [ 5.335569] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
    [ 5.335582] ACPI: Power Button [PWRB]
    [ 5.335669] input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2
    [ 5.335678] ACPI: Sleep Button [SLPB]
    [ 5.335779] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
    [ 5.335787] ACPI: Power Button [PWRF]
    [ 5.568863] thermal LNXTHERM:00: registered as thermal_zone0
    [ 5.568869] ACPI: Thermal Zone [THRM] (40 C)
    [ 5.822184] agpgart: Detected VIA P4M890 chipset
    [ 5.830806] agpgart-via 0000:00:00.0: AGP aperture is 128M @ 0xd0000000
    [ 5.887988] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
    [ 6.546795] input: PC Speaker as /devices/platform/pcspkr/input/input4
    [ 6.546838] via_rhine: v1.10-LK1.5.1 2010-10-09 Written by Donald Becker
    [ 6.551408] via-rhine 0000:00:12.0 eth0: VIA Rhine II at 0x1c800, 00:19:db:37:46:0d, IRQ 23
    [ 6.552220] via-rhine 0000:00:12.0 eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1
    [ 6.619182] microcode: CPU0 sig=0xf64, pf=0x4, revision=0x4
    [ 6.620850] pci 0000:00:13.0: setting latency timer to 64
    [ 6.621044] snd_hda_intel 0000:04:01.0: irq 66 for MSI/MSI-X
    [ 6.621102] snd_hda_intel 0000:04:01.0: PCI: Disallowing DAC for device
    [ 6.661358] ACPI Warning: 0x0000000000000500-0x0000000000000507 SystemIO conflicts with Region \SM06 1 (20130725/utaddress-251)
    [ 6.661372] ACPI Warning: 0x0000000000000500-0x0000000000000507 SystemIO conflicts with Region \SM05 2 (20130725/utaddress-251)
    [ 6.661379] ACPI Warning: 0x0000000000000500-0x0000000000000507 SystemIO conflicts with Region \SM04 3 (20130725/utaddress-251)
    [ 6.661385] ACPI Warning: 0x0000000000000500-0x0000000000000507 SystemIO conflicts with Region \SM03 4 (20130725/utaddress-251)
    [ 6.661391] ACPI Warning: 0x0000000000000500-0x0000000000000507 SystemIO conflicts with Region \SM02 5 (20130725/utaddress-251)
    [ 6.661397] ACPI Warning: 0x0000000000000500-0x0000000000000507 SystemIO conflicts with Region \SM00 6 (20130725/utaddress-251)
    [ 6.661404] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
    [ 6.795628] [drm] Initialized drm 1.1.0 20060810
    [ 6.801263] hidraw: raw HID events driver (C) Jiri Kosina
    [ 6.829208] usbcore: registered new interface driver usbhid
    [ 6.829216] usbhid: USB HID core driver
    [ 6.835393] microcode: CPU1 sig=0xf64, pf=0x4, revision=0x4
    [ 6.860307] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
    [ 6.904649] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/input/input5
    [ 6.932606] input: HDA VIA VT82xx Front Headphone as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input13
    [ 6.932897] input: HDA VIA VT82xx Line Out Side as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input12
    [ 6.933135] input: HDA VIA VT82xx Line Out CLFE as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input11
    [ 6.933566] input: HDA VIA VT82xx Line Out Surround as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input10
    [ 6.933804] input: HDA VIA VT82xx Line Out Front as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input9
    [ 6.934030] input: HDA VIA VT82xx Line as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input8
    [ 6.934277] input: HDA VIA VT82xx Front Mic as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input7
    [ 6.934506] input: HDA VIA VT82xx Rear Mic as /devices/pci0000:00/0000:00:13.0/0000:04:01.0/sound/card0/input6
    [ 6.952171] input: Tempest Habu Mouse as /devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1:1.0/input/input14
    [ 6.956646] hid-generic 0003:1532:0009.0001: input,hidraw0: USB HID v10.01 Mouse [Tempest Habu Mouse] on usb-0000:00:10.3-1/input0
    [ 6.959162] input: Tempest Habu Mouse as /devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1:1.1/input/input15
    [ 6.959476] hid-generic 0003:1532:0009.0002: input,hidraw1: USB HID v10.01 Keyboard [Tempest Habu Mouse] on usb-0000:00:10.3-1/input1
    [ 7.031600] wmi: Mapper loaded
    [ 7.080209] systemd-udevd[144]: renamed network interface eth0 to enp0s18
    [ 7.437383] Adding 2097148k swap on /swapfile. Priority:-1 extents:27 across:3813440k FS
    [ 7.629458] checking generic (c0000000 130000) vs hw (c0000000 10000000)
    [ 7.629466] fb: conflicting fb hw usage nouveaufb vs VESA VGA - removing generic driver
    [ 7.629495] Console: switching to colour dummy device 80x25
    [ 7.630443] [drm] hdmi device not found 2 0 1
    [ 7.630619] nouveau [ DEVICE][0000:02:00.0] BOOT0 : 0x046d00a3
    [ 7.630624] nouveau [ DEVICE][0000:02:00.0] Chipset: G72 (NV46)
    [ 7.630628] nouveau [ DEVICE][0000:02:00.0] Family : NV40
    [ 7.632676] nouveau [ VBIOS][0000:02:00.0] checking PRAMIN for image...
    [ 7.716068] nouveau [ VBIOS][0000:02:00.0] ... appears to be valid
    [ 7.716075] nouveau [ VBIOS][0000:02:00.0] using image from PRAMIN
    [ 7.716221] nouveau [ VBIOS][0000:02:00.0] BIT signature found
    [ 7.716227] nouveau [ VBIOS][0000:02:00.0] version 8a.66.51.c3.34
    [ 7.716307] nouveau W[ VBIOS][0000:02:00.0] unknown i2c type 64
    [ 7.716312] nouveau W[ VBIOS][0000:02:00.0] unknown i2c type 64
    [ 7.716331] nouveau W[ VBIOS][0000:02:00.0] 0xd250[ ]: unknown bits in register 0x40600858
    [ 7.716348] nouveau W[ VBIOS][0000:02:00.0] 0xd2b0[ ]: unknown bits in register 0x40101000
    [ 7.716355] nouveau W[ VBIOS][0000:02:00.0] 0xd319[ ]: unknown bits in register 0x03594e04
    [ 7.716362] nouveau W[ VBIOS][0000:02:00.0] 0xd3b4[ ]: unknown bits in register 0x40682608
    [ 7.716367] nouveau W[ VBIOS][0000:02:00.0] 0xd3f0[ ]: unknown bits in register 0x40100220
    [ 7.716373] nouveau E[ VBIOS][0000:02:00.0] 0xd510[ ]: unknown opcode 0x14
    [ 7.716424] nouveau [ PFB][0000:02:00.0] RAM type: DDR2
    [ 7.716428] nouveau [ PFB][0000:02:00.0] RAM size: 128 MiB
    [ 7.716432] nouveau [ PFB][0000:02:00.0] ZCOMP: 0 tags
    [ 7.733640] nouveau [ PTHERM][0000:02:00.0] FAN control: none / external
    [ 7.733664] nouveau [ PTHERM][0000:02:00.0] fan management: disabled
    [ 7.733670] nouveau [ PTHERM][0000:02:00.0] internal sensor: no
    [ 7.753883] nouveau 0000:02:00.0: PCI: Disallowing DAC for device
    [ 7.754021] [TTM] Zone kernel: Available graphics memory: 768516 kiB
    [ 7.754025] [TTM] Initializing pool allocator
    [ 7.754034] [TTM] Initializing DMA pool allocator
    [ 7.754055] nouveau [ DRM] VRAM: 124 MiB
    [ 7.754061] nouveau [ DRM] GART: 512 MiB
    [ 7.754067] nouveau W[ DRM] DAC load detection comparison table version 9.5 not known
    [ 7.754079] [TTM] Finalizing pool allocator
    [ 7.754087] [TTM] Finalizing DMA pool allocator
    [ 7.754150] [TTM] Zone kernel: Used memory at exit: 0 kiB
    [ 8.676606] EXT4-fs (sda4): mounting ext3 file system using the ext4 subsystem
    [ 8.678259] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: data=ordered
    [ 8.794000] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: data=ordered
    [ 9.118951] EXT4-fs (sda5): mounting ext3 file system using the ext4 subsystem
    [ 9.173867] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: data=ordered
    [ 9.243828] systemd-journald[115]: Received request to flush runtime journal from PID 1

  • Potential Problems with Airplay and Mountain Lion

    Hey Everyone,
    I recently purchased an Apple TV, and I tried to use Airplay with our Macbook Pros. Airplay would work with all of the iOS Devices, but when it came to using with the MBP, it would either show a black screen, or a frozen image of my screen. I called AppleCare, and the rep told me it was a problem with the AppleTV, so I returned it and bought a new one, and it did the same thing. I found out that the problem was occuring because of the type of router I was using. I have a dualband router, and I set everything on one band of the router. I decided to try to place the laptops on a different band, and that's all it took. My airplay now works flawlessly.
    So, if you're having a problem with airplay, and you have a dualband router, try placing your computer & iOS devices on the opposite band, and it should work perfectly.
    Hope this helps.
    - Kaytie Walters

    The VPN log looks like:
    1      13:34:36.904  09/11/12  Sev=Warning/3
    CM/0xA3100027
    Adapter address 10.211.55.6 has changed or not detected.  Current address(es): 10.98.70.169.
    2      13:34:52.044  09/11/12  Sev=Warning/2
    CVPND/0xA340000E
    Failed to get adapter index.
    3      13:35:07.044  09/11/12  Sev=Warning/2
    CVPND/0xA340000E
    Failed to get adapter index.
    4      13:35:07.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CheckUpVASettings: Found IPADDR entry addr=10.98.70.169, error 0
    5      13:35:08.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CheckUpVASettings: Found IPADDR entry addr=10.98.70.169, error 0
    6      13:35:09.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CheckUpVASettings: Found IPADDR entry addr=10.98.70.169, error 0
    7      13:35:10.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CleanUpVASettings: Was able to delete all VA settings after all, error 0
    8      13:35:11.861  09/11/12  Sev=Warning/2
    IKE/0xA3000067
    Received an IPC message during invalid state (IKE_MAIN:512)
    9      13:35:12.407  09/11/12  Sev=Warning/2
    IKE/0xA3000067
    Received an IPC message during invalid state (IKE_MAIN:512)

  • Problem returning a two-dimensional array in web service

    Hello. I'm having problems returning a two dimensional array in my web service. The service returns a MyClass[][] correctly, but the client receives a different one.
    I've done a test that returns a MyClass[1][1] an the client shows a MyClass[1][20]. All the MyClass objects returned in the array are the same and all it's fields are null. There's even an element of the array containing null instead of the object. As I say, the service creates the array ok, but the client gets other thing.
    I have other methods returning one-dimensional arrays MyClass[] and I have no problem.
    My system:
    WindowsXP
    Tomcat 5.5 (Axis 1.3?)
    JDK 1.5
    Eclipse 3.3
    My wsdl is generated with eclipse, although I've had to update my wsdd manually.
    Any Ideas?
    Thanks.

    Does it have to be stored in an array?
    Because you could use the java.awt.Point class, and a
    java.util.Set to create random points until you have
    the correct number of unique points.Of course it is no must to store it in an array. it was just my first thought of approaching the problem. I will try the Point.class. Thanks for that hint.

Maybe you are looking for

  • Not able to connect to a queue under a foreign server.

    Not able to connect to a queue under a foreign server. I'm using WebLogic Server Version: 10.3.3.0. The foreign server is running, and can be pinged from this local server. Also the port where queue resides on foreign server, can be accessed through

  • IOS 6 wont download

    I keep trying to install iOS 6 on my iPod but everytime I hit install an error message comes up. I just want to know how to get it to install on my iPod?

  • Best way to sillo objects?

    I have to sillo jewelry, so it's very hard to use the Magic Wand since there are varying colors and brightness amongst all the silver/reflective surfaces. I have always used the Pen tool to make Paths but hate that hard edge it has. What is the ultim

  • FMRP_RW_BUDCON Report

    Hi, I required information about FMRP_RW_BUDCON report. How it should be checked in case of PO - Year 2010, MIGO/Service Entry sheet - 2010, MIRO -2011 and also in nomal PO case. Please guide me on this report Moderator: Please, avoid asking basic qu

  • How can i Change the currency symbols for swiss francs?

    Hi, i use Numbers '09. How can i change the  currency symbol for swiss franks from SFr to CHF. Because the international ISO abbreviation is CHF and not SFr. Thanks, Bye