SG 300 Set-up

Hi,
I have recently purchased 2 SG 300 switches, 1 x SG 300 52 & 1 x SG 300 10, and I am hoping someone can help me in getting the following set-up working.
To assist I have drawn the following simple network diagram (below) which hopefully makes it a little clearer what I am trying to do:
I have 2 companies occupying a single office with the requirement to share printers/devices etc... so basically I am looking to set-up 2 VLANS (say VLAN 10 & VLAN 20) with inter-vlan routing. To add a little complexity the main comms area is located in the basement of the building, this houses the 2 DSL routers and 2 Servers, one for each company. I am proposing putting the SG 300 10 port switch in here and then use the 3 uplinks I have been given to connect back to the SG 300 52 which is in a patch cabinent 2 floors up. I want to use 2 uplinks (in a LAG) for Company A and 1 uplink for Company B. FYI. DHCP is being served out by each respective router.
Some things I am trying to understand are:
Should both switches be in Layer 3 mode or just one of them, if one which one?
What IP's should the switches have?
How do I get VLAN 10 & 20 to route to their respective DSL gateways for internet access?
Many thanks in advance for your help!
Colin.

Colin,
You're getting close,
The clients will keep their pervious setting, so you won’t have to make any changes to them.
One SG300 switch will be in layer 3 mode, this will route between both companies.
So in the layer 3 switch each vlan will have an address within it’s company’s subnet
Company A = Vlan1 10.0.2.254 (this can be any address you specify)
Company B = Vlan2 192.168.102.252 (“” “”)
Now you will need to create one static route in Company A router looking like this,
Destination IP = 192.168.102.0
Dest Netmask = 0.0.0.255 (reverse mask)
Gateway = 10.0.2.254
Now you will need to create a static route in Company B router
Destination IP = 10.0.2.0
Dest Netmask = 0.0.0.255 (reverse mask)
Gateway = 192.168.102.252 (this will be vlan on layer 3 switch within that segment)
After completing these few steps you now should be able to route between both companies’s
If you don’t want to allow all traffic, then you will have to create ACL’s to allow and deny specific traffic.
Really don't matter which switch you use a layer 3.
Thanks,
Jasbryan

Similar Messages

  • Authentucated smartcard user session is terminated immediatedly when card is removed, regardless of httpd SSLSessionCacheTimeout (default 300) setting. Why?

    I have installed security device in FF option/advanced tab. Then using smart card to log into my server. The smartcard user is authenticated and secure connection is going smoothly. When the card is removed from the card reader, the connection is immediately terminated, regardless of SSLSessionCacheTimeout settings. Mine is set to 300.
    I did same thing with IE, it keeps the connection until the SSLSessionCacheTimeout expires.
    It is FF-specific-designed feature? Or I need to do sth specific to FF browser to keep my secure connection based on SSLSessionCacheTimeout setting?
    Thanks

    Hey,
    To answer your question: [https://developer.mozilla.org/en-US/docs/JavaScript_crypto] this link includes how a developer can control the event handlers upon a smartcard removal. These will only work in FIrefox and may be changed in the furture, this only worked in Firefox 21, so this may not be ideal for you.
    <blockquote>
    Web sites can make themselves more SmartCard friendly by listening for SmartCard insertion and removal events. To enable your document to receive these events, you must first tell the crypto system you are interested by setting window.crypto.enableSmartCardEvents to true. You can then register event handlers for these events with the document.addEventListener() method.
    </blockquote>
    Old threads to where this code lives : [http://forums.mozillazine.org/viewtopic.php?f=42&t=2708147] I could not find any recent implementations though, it looks like this event is something that happens only serverside?

  • How do I set the frame size

    I am Making a program for purchasing games, with the basic layout alsot done, except on problem. When the purchase button is pressed, a dialog shows up but nothing is seen until i resize it. How would i set the frame size so that i do not need to resize it each time? below is the code for the files. Many thanks in advance.
    CreditDialog
    import java.awt.*;
    import java.awt.event.*;
    class CreditDialog extends Dialog implements ActionListener { // Begin Class
         private Label creditLabel = new Label("Message space here",Label.RIGHT);
         private String creditMessage;
         private TextField remove = new TextField(20);
         private Button okButton = new Button("OK");
         public CreditDialog(Frame frameIn, String message) { // Begin Public
              super(frameIn); // call the constructor of dialog
              creditLabel.setText(message);
              add("North",creditLabel);
              add("Center",remove);
              add("South",okButton);
              okButton.addActionListener(this);
              setLocation(150,150); // set the location of the dialog box
              setVisible(true); // make the dialog box visible
         } // End Public
         public void actionPerformed(ActionEvent e) { // Begin actionPerformed
    //          dispose(); // close dialog box
         } // End actionPerformed
    } // End Class
    MobileGame
    import java.awt.*;
    import java.awt.event.*;
    class MobileGame extends Panel implements ActionListener { // Begin Class
         The Buttons, Labels, TextFields, TextArea 
         and Panels will be created first.         
         private int noOfGames;
    //     private GameList list;
         private Panel topPanel = new Panel();
         private Panel middlePanel = new Panel();
         private Panel bottomPanel = new Panel();
         private Label saleLabel = new Label ("Java Games For Sale",Label.RIGHT);
         private TextArea saleArea = new TextArea(7, 25);
         private Button addButton = new Button("Add to Basket");
         private TextField add = new TextField(3);
         private Label currentLabel = new Label ("Java Games For Sale",Label.RIGHT);
         private TextArea currentArea = new TextArea(3, 25);
         private Button removeButton = new Button("Remove from Basket");
         private TextField remove = new TextField(3);
         private Button purchaseButton = new Button("Purchase");
         private ObjectList gameList = new ObjectList(20);
         Frame parentFrame; //needed to associate with dialog
         All the above will be added to the interface 
         so that they are visible to the user.        
         public MobileGame (Frame frameIn) { // Begin Constructor
              parentFrame = frameIn;
              topPanel.add(saleLabel);
              topPanel.add(saleArea);
              topPanel.add(addButton);
              topPanel.add(add);
              middlePanel.add(currentLabel);
              middlePanel.add(currentArea);
              bottomPanel.add(removeButton);
              bottomPanel.add(remove);
              bottomPanel.add(purchaseButton);
              this.add("North", topPanel);
              this.add("Center", middlePanel);
              this.add("South", bottomPanel);
              addButton.addActionListener(this);
              removeButton.addActionListener(this);
              purchaseButton.addActionListener(this);
              The following line of code below is 
              needed inorder for the games to be  
              loaded into the SaleArea            
         } // End Constructor
         All the operations which will be performed are  
         going to be written below. This includes the    
         Add, Remove and Purchase.                       
         public void actionPerformed (ActionEvent e) { // Begin actionPerformed
         If the Add to Basket Button is pressed, a       
         suitable message will appear to say if the game 
         was successfully added or not. If not, an       
         ErrorDialog box will appear stateing the error. 
              if(e.getSource() == addButton) { // Begin Add to Basket
    //          GameFileHandler.readRecords(list);
                   try { // Begin Try
                        String gameEntered = add.getText();
                        if (gameEntered.length() == 0 ) {
                             new ErrorDialog (parentFrame,"Feild Blank");
                        } else if (Integer.parseInt(gameEntered)< 0
                                  || Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
                             new ErrorDialog (parentFrame,"Invalid Game Number");
                        } else { // Begin Else If
                             //ADD GAME
                        } // End Else
                   } catch (NumberFormatException num) { // Begin Catch
                        new ErrorDialog(parentFrame,"Please enter an Integer only");
                   } // End Catch
              } // End Add to Basket
         If the Remove From Basket Button is pressed, a  
         a suitable message will appear to say if the    
         removal was successful or not. If not, an       
         ErrorDialog box will appear stateing the error. 
         if(e.getSource() == removeButton) { // Begin Remove from Basket
              try { // Begin Try
                        String gameEntered = remove.getText();
                        if (gameEntered.length() == 0 ) {
                             new ErrorDialog (parentFrame,"Feild Blank");
                        } else if (Integer.parseInt(gameEntered)< 1
                                  || Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
                             new ErrorDialog (parentFrame,"Invalid Game Number");
                        } else { // Begin Else If
                             //ADD GAME CODE
                        } // End Else
                   } catch (NumberFormatException num) { // Begin Catch
                        new ErrorDialog(parentFrame,"Please enter an Integer only");
                   } // End Catch
              } // End Remove from Basket
         If the purchase button is pressed, the          
         following is executed. NOTE: nothing is done    
         when the ok button is pressed, the window       
         just closes.                                    
              if(e.getSource() == purchaseButton) { // Begin Purchase
                   String gameEntered = currentArea.getText();
                   if (gameEntered.length() == 0 ) {
                        new ErrorDialog (parentFrame,"Nothing to Purchase");
                   } else { // Begin Else If
                        new CreditDialog(parentFrame,"Cost � 00.00. Please enter Credit Card Number");
                   } // End Else               
              } // End Purchase
         } // End actionPerformed
    } // End Class
    RunMobileGame
    import java.awt.*;
    public class RunMobileGame { // Begin Class
         public static void main (String[] args) { // Begin Main
              EasyFrame frame = new EasyFrame();
              frame.setTitle("Game Purchase for 3G Mobile Phone");
              MobileGame purchase = new MobileGame(frame); //need frame for dialog
              frame.setSize(500,300); // sets frame size
              frame.setBackground(Color.lightGray); // sets frame colour
              frame.add(purchase); // adds frame
              frame.setVisible(true); // makes the frame visible
         } // End Main
    } // End Class
    EasyFrame
    import java.awt.*;
    import java.awt.event.*;
    public class EasyFrame extends Frame implements WindowListener {
    public EasyFrame()
    addWindowListener(this);
    public EasyFrame(String msg)
    super(msg);
    addWindowListener(this);
    public void windowClosing(WindowEvent e)
    dispose();
    public void windowDeactivated(WindowEvent e)
    public void windowActivated(WindowEvent e)
    public void windowDeiconified(WindowEvent e)
    public void windowIconified(WindowEvent e)
    public void windowClosed(WindowEvent e)
    System.exit(0);
    public void windowOpened(WindowEvent e)
    } // end EasyFrame class
    ObjectList
    class ObjectList
    private Object[] object ;
    private int total ;
    public ObjectList(int sizeIn)
    object = new Object[sizeIn];
    total = 0;
    public boolean add(Object objectIn)
    if(!isFull())
    object[total] = objectIn;
    total++;
    return true;
    else
    return false;
    public boolean isEmpty()
    if(total==0)
    return true;
    else
    return false;
    public boolean isFull()
    if(total==object.length)
    return true;
    else
    return false;
    public Object getObject(int i)
    return object[i-1];
    public int getTotal()
    return total;
    public boolean remove(int numberIn)
    // check that a valid index has been supplied
    if(numberIn >= 1 && numberIn <= total)
    {   // overwrite object by shifting following objects along
    for(int i = numberIn-1; i <= total-2; i++)
    object[i] = object[i+1];
    total--; // Decrement total number of objects
    return true;
    else // remove was unsuccessful
    return false;
    ErrorDialog
    import java.awt.*;
    import java.awt.event.*;
    class ErrorDialog extends Dialog implements ActionListener {
    private Label errorLabel = new Label("Message space here",Label.CENTER);
    private String errorMessage;
    private Button okButton = new Button("OK");
    public ErrorDialog(Frame frameIn, String message) {
    /* call the constructor of Dialog with the associated
    frame as a parameter */
    super(frameIn);
    // add the components to the Dialog
              errorLabel.setText(message);
              add("North",errorLabel);
    add("South",okButton);
    // add the ActionListener
    okButton.addActionListener(this);
    /* set the location of the dialogue window, relative to the top
    left-hand corner of the frame */
    setLocation(100,100);
    // use the pack method to automatically size the dialogue window
    pack();
    // make the dialogue visible
    setVisible(true);
    /* the actionPerformed method determines what happens
    when the okButton is pressed */
    public void actionPerformed(ActionEvent e) {
    dispose(); // no other possible action!
    } // end class
    I Know there are alot of files. Any help will be much appreciated. Once again, Many thanks in advance

    setSize (600, 200);orpack ();Kind regards,
      Levi
    PS:
        int i;
    parses to
    int i;
    , but
    [code]    int i;[code[i]]
    parses to
        int i;

  • Set sidebar width of (Finder window 1) to 0 - (no longer working for me)

    on script_title()
    Filename : finderwindowprops.scpt (Script Debugger)
    Author : Bill Hernandez
    Version : 1.0.0
    Updated : Thursday, December 14, 2006 ( 6:01 PM )
    end script_title
    -- ---------+---------+---------+---------+---------
    on script_notes( )
    Setting the sidebar width for finder windows is not working consistently,
    nor correctly for me. I had written several scripts to standardize the
    display of windows on screen several months ago, and they have quit working
    during the last couple of versions of the OS, not sure what has happened ?
    end script_notes
    -- ---------+---------+---------+---------+---------
    on run
    tell me
    set this_folder to (path to current user folder)
    SetupWindow(this_folder)
    if (ChooseTest() = 1) then
    TestOne(this_folder)
    else
    TestTwo(this_folder)
    end if
    set str to ""
    set str to str & "The Sidebar Width Should be Zero" & return & return
    set str to str & "It had worked well several months ago when I was doing some "
    set str to str & "window stacking, but it seems to be broken for me..." & return & return
    set str to str & "iMacG5 running OSX 10.4.8" & return & return
    ShowMsg(str, 10)
    end tell
    end run
    -- ---------+---------+---------+---------+---------
    on SetupWindow(whichFolder)
    tell application "Finder"
    activate
    set counter to 1
    try
    open whichFolder
    select Finder window 1
    on error
    set win to make new Finder window
    end try
    set bounds of (Finder window counter) to {20, 60, 700, 700}
    set current view of (Finder window counter) to icon view
    set toolbar visible of (Finder window counter) to true
    set sidebar width of (Finder window counter) to 300
    set w_props to get properties of Finder window 1
    set str to ""
    set str to str & "The Sidebar Width Should be 300" & return & return
    set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
    my ShowMsg(str, 0)
    end tell
    end SetupWindow
    -- ---------+---------+---------+---------+---------
    on TestOne(whichFolder)
    tell application "Finder"
    activate
    set counter to 1
    try
    open whichFolder
    select Finder window 1
    on error
    set win to make new Finder window
    end try
    set bounds of (Finder window counter) to {20, 60, 600, 600}
    set current view of (Finder window counter) to list view
    set toolbar visible of (Finder window counter) to true
    set sidebar width of (Finder window counter) to 0
    set w_props to get properties of Finder window 1
    set str to ""
    set str to str & "The Sidebar Width Should be Zero" & return & return
    set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
    my ShowMsg(str, 0)
    end tell
    end TestOne
    -- ---------+---------+---------+---------+---------
    on TestTwo(whichFolder)
    tell application "Finder"
    activate
    set w_props to {}
    set w_props to w_props & {sidebar width:0}
    set w_props to w_props & {current view:list view}
    set w_props to w_props & {toolbar visible:true}
    set w_props to w_props & {statusbar visible:true}
    set w_props to w_props & {bounds:{20, 60, 400, 600}}
    try
    open whichFolder
    select Finder window 1
    on error
    set win to make new Finder window
    end try
    set w_ref to Finder window 1
    set properties of w_ref to w_props
    set w_props to get properties of Finder window 1
    set str to ""
    set str to str & "The Sidebar Width Should be Zero" & return & return
    set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
    my ShowMsg(str, 0)
    end tell
    end TestTwo
    -- ---------+---------+---------+---------+---------
    on ChooseTest()
    tell application "Finder"
    activate
    set s to ""
    set s to s & "The sidebar width is inconsistent no matter which method I use." & return & return
    set s to s & "Sometimes there is a sidebar, sometimes there is none, particularly "
    set s to s & "with a window that already exists." & return & return
    set s to s & "Method one seems to work better, but does not always hide the sidebar." & return & return
    set s to s & "Please select a choice..."
    set b1 to "TestOne"
    set b2 to "TestTwo"
    set aReturn to display dialog s buttons {b1, b2} default button {b2}
    if (button returned of aReturn = b1) then
    return 1
    else
    return 2
    end if
    end tell
    end Choose
    -- ---------+---------+---------+---------+---------
    on ShowMsg(s, howLong)
    tell application "Finder"
    activate
    if (howLong = 0) then
    set theTIme to 3
    else
    set theTIme to howLong
    end if
    set b1 to "OK"
    display dialog s buttons {b1} default button {b1} giving up after theTIme
    end tell
    end ShowMsg
    -- ---------+---------+---------+---------+---------

    This is a re-post since I learned how to format the output a little nicer...
    on script_title()
       Filename : finderwindowprops.scpt (Script Debugger)
       Author : Bill Hernandez
       Version : 1.0.0
       Updated : Thursday, December 14, 2006 ( 6:01 PM )
    end script_title
    -- ---------+---------+---------+---------+---------
    on script_notes()
       Setting the sidebar width for finder windows is not working consistently,
       nor correctly for me. I had written several scripts to standardize the
       display of windows on screen several months ago, and they have quit working
       during the last couple of versions of the OS, not sure what has happened ?
    end script_notes
    -- ---------+---------+---------+---------+---------
    on run
       tell me
          set this_folder to (path to current user folder)
          SetupWindow(this_folder)
          if (ChooseTest() = 1) then
             TestOne(this_folder)
          else
             TestTwo(this_folder)
          end if
          set str to ""
          set str to str & "The Sidebar Width Should be Zero" & return & return
          set str to str & "It had worked well several months ago when I was doing some "
          set str to str & "window stacking, but it seems to be broken for me..." & return & return
          set str to str & "iMacG5 running OSX 10.4.8" & return & return
          ShowMsg(str, 10)
       end tell
    end run
    -- ---------+---------+---------+---------+---------
    on SetupWindow(whichFolder)
       tell application "Finder"
          activate
          set counter to 1
          try
             open whichFolder
             select Finder window 1
          on error
             set win to make new Finder window
          end try
          set bounds of (Finder window counter) to {20, 60, 700, 700}
          set current view of (Finder window counter) to icon view
          set toolbar visible of (Finder window counter) to true
          set sidebar width of (Finder window counter) to 300
          set w_props to get properties of Finder window 1
          set str to ""
          set str to str & "The Sidebar Width Should be 300" & return & return
          set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
          my ShowMsg(str, 0)
       end tell
    end SetupWindow
    -- ---------+---------+---------+---------+---------
    on TestOne(whichFolder)
       tell application "Finder"
          activate
          set counter to 1
          try
             open whichFolder
             select Finder window 1
          on error
             set win to make new Finder window
          end try
          set bounds of (Finder window counter) to {20, 60, 600, 600}
          set current view of (Finder window counter) to list view
          set toolbar visible of (Finder window counter) to true
          set sidebar width of (Finder window counter) to 0
          set w_props to get properties of Finder window 1
          set str to ""
          set str to str & "The Sidebar Width Should be Zero" & return & return
          set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
          my ShowMsg(str, 0)
       end tell
    end TestOne
    -- ---------+---------+---------+---------+---------
    on TestTwo(whichFolder)
       tell application "Finder"
          activate
          set w_props to {}
          set w_props to w_props & {sidebar width:0}
          set w_props to w_props & {current view:list view}
          set w_props to w_props & {toolbar visible:true}
          set w_props to w_props & {statusbar visible:true}
          set w_props to w_props & {bounds:{20, 60, 400, 600}}
          try
             open whichFolder
             select Finder window 1
          on error
             set win to make new Finder window
          end try
          set w_ref to Finder window 1
          set properties of w_ref to w_props
          set w_props to get properties of Finder window 1
          set str to ""
          set str to str & "The Sidebar Width Should be Zero" & return & return
          set str to str & "Sidebar Width : " & ((sidebar width) of w_props)
          my ShowMsg(str, 0)
       end tell
    end TestTwo
    -- ---------+---------+---------+---------+---------
    on ChooseTest()
       tell application "Finder"
          activate
          set s to ""
          set s to s & "The sidebar width is inconsistent no matter which method I use." & return & return
          set s to s & "Sometimes there is a sidebar, sometimes there is none, particularly "
          set s to s & "with a window that already exists." & return & return
          set s to s & "Method one seems to work better, but does not always hide the sidebar." & return & return
          set s to s & "Please select a choice..."
          set b1 to "TestOne"
          set b2 to "TestTwo"
          set aReturn to display dialog s buttons {b1, b2} default button {b2}
          if (button returned of aReturn = b1) then
             return 1
          else
             return 2
          end if
       end tell
    end ChooseTest
    -- ---------+---------+---------+---------+---------
    on ShowMsg(s, howLong)
       tell application "Finder"
          activate
          if (howLong = 0) then
             set theTIme to 3
          else
             set theTIme to howLong
          end if
          set b1 to "OK"
          display dialog s buttons {b1} default button {b1} giving up after theTIme
       end tell
    end ShowMsg
    -- ---------+---------+---------+---------+---------

  • Problem setting focus

    I have used the following script:
    this.createEmptyMovieClip("image1_mc",99);
    //Image 1 Propertys
    setProperty(image1_mc,_xscale,33);
    setProperty(image1_mc,_yscale,33);
    image1_mc._x = 10;image1_mc._y = 57;
    loadMovie("1.jpg",image1_mc);
    this.image1_mc.focusEnabled = true;
    if (num <=1){image1_mc._alpha = 30;};
    however when i test the movie the image has no focus. if i
    create the movie on the stage and then load the image it has focus
    but then i cant swap the depth with an on(release) command.
    the script i have used for changing the depth is set on the
    movieclip actions pane and is as follows:
    on(release){
    if (_x >= 300){
    set ("num","3");
    this.image5_mc.setDepthTo(988);
    tween(["_x","_yscale"], [107,100], 1,easeInOutExpo);
    tween(["_y","_xscale"], [15,100], 1,easeInOutExpo);
    tween("_alpha",100,3);
    if (_x < 190){
    set ("num","0");
    image5_mc.swapDepths(getNextHighestDepth());
    tween(["_x","_yscale"], [340.4,33], 1,easeInOutExpo);
    tween(["_y","_xscale"], [57,33], 1,easeInOutExpo);
    tween("_alpha",30,3);
    Can anyone help?

    inputTextField.setRequestFocusEnabled(true);Not required, a text component is focusable by default
    inputTextField.requestFocus();According to the API you should be using requestFocusInWindow() (although I doubt it will fix your problem)
    Focus can only be given to a visible component. As you are making the panel visible, may it isn't visible when the focus request is made. Try wrapping the requestFocusInWindow() method in a SwingUtilities.invokeLater().

  • InternalFrame.setNorthPane(null) and JDesktopPane outline drag mode

    package components;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.plaf.basic.BasicInternalFrameUI;
    * InternalFrameDemo.java requires:
    *   MyInternalFrame.java
    public class InternalFrameDemo extends JFrame
                                   implements ActionListener {
        JDesktopPane desktop;
        Point mouseCoord, windowCoord = new Point();
        public InternalFrameDemo() {
            super("InternalFrameDemo");
            //Make the big window be indented 50 pixels from each edge
            //of the screen.
            int inset = 50;
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds(inset, inset,
                      screenSize.width  - inset*2,
                      screenSize.height - inset*2);
            //Set up the GUI.
            desktop = new JDesktopPane(); //a specialized layered pane
            createFrame(); //create first "window"
            setContentPane(desktop);
            setJMenuBar(createMenuBar());
            //Make dragging a little faster but perhaps uglier.
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        protected JMenuBar createMenuBar() {
            JMenuBar menuBar = new JMenuBar();
            //Set up the lone menu.
            JMenu menu = new JMenu("Document");
            menu.setMnemonic(KeyEvent.VK_D);
            menuBar.add(menu);
            //Set up the first menu item.
            JMenuItem menuItem = new JMenuItem("New");
            menuItem.setMnemonic(KeyEvent.VK_N);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(
                    KeyEvent.VK_N, ActionEvent.ALT_MASK));
            menuItem.setActionCommand("new");
            menuItem.addActionListener(this);
            menu.add(menuItem);
            //Set up the second menu item.
            menuItem = new JMenuItem("Quit");
            menuItem.setMnemonic(KeyEvent.VK_Q);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(
                    KeyEvent.VK_Q, ActionEvent.ALT_MASK));
            menuItem.setActionCommand("quit");
            menuItem.addActionListener(this);
            menu.add(menuItem);
            return menuBar;
        //React to menu selections.
        public void actionPerformed(ActionEvent e) {
            if ("new".equals(e.getActionCommand())) { //new
                createFrame();
            } else { //quit
                quit();
        //Create a new internal frame.
        protected void createFrame() {
            final MyInternalFrame frame = new MyInternalFrame();
            ((BasicInternalFrameUI) frame.getUI()).setNorthPane(null);   
            frame.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));   
            frame.addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseDragged(MouseEvent e) {  
                    isMouse2Move(frame, e);               
            frame.addMouseListener(new MouseAdapter() {          
                public void mousePressed(MouseEvent e) {                                                 
                    setWindowDragPoint(e);              
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            try {
                frame.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
        private void isMouse2Move(Component frame, MouseEvent e) {
            int cur_type = frame.getCursor().getType();   
            if (cur_type >= Cursor.DEFAULT_CURSOR) {
                if (cur_type == Cursor.MOVE_CURSOR) {
                    moveWindow(frame, e);                       
        private void moveWindow(Component frame, MouseEvent e) {
            int deltaX, deltaY;
            Point newMouseCoord = e.getPoint();
            deltaX = (int) (newMouseCoord.getX() - mouseCoord.getX());
            deltaY = (int) (newMouseCoord.getY() - mouseCoord.getY());
            frame.getLocation(windowCoord);
            windowCoord.translate(deltaX, deltaY);
            frame.setLocation(windowCoord);
        private void setWindowDragPoint(MouseEvent e) {
            mouseCoord = e.getPoint();
        //Quit the application.
        protected void quit() {
            System.exit(0);
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            InternalFrameDemo frame = new InternalFrameDemo();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Display the window.
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    package components;
    import javax.swing.JInternalFrame;
    import java.awt.event.*;
    import java.awt.*;
    /* Used by InternalFrameDemo.java. */
    public class MyInternalFrame extends JInternalFrame {
        static int openFrameCount = 0;
        static final int xOffset = 30, yOffset = 30;
        public MyInternalFrame() {
            super("Document #" + (++openFrameCount),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
            //...Create the GUI and put it in the window...
            //...Then set the window size or call pack...
            setSize(300,300);
            //Set the window's location.
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    }how to move frame (JDesktopPane) <desktop> can not enable drag outline mode..
    help me please!
    thank you.

    yes i want all the decorations.Then I have no idea what you are tying to do. Why are you getting rid of the title bar?
    Dragging is supported automatically by clicking on and then dragging the title bar. If you want to customize the behaviour then you would need to look at the UI. Good luck.

  • Urgent  help needed(java frames)

    Hi,
    I need urgent help for correcting a piece of code.
    I have written a piece of code for building a gui with some buttons, drawing some geometric shapes.The code consists of two files called Graph and Frame.
    The problem I suppose in the last part of the Graph file, which Rectangle and Circle are called together, the only shape that the program draws is rectangle.Here is the code:
    //Graph
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import java.util.*;
    public class Graph extends JPanel {
    LinkedList color;
    LinkedList figures;
    public Graph() {
    setBackground(Color.white);
    figures = new LinkedList();
    color = new LinkedList();
    int z;
    class Point {
    int x;
    int y;
    public Point(int x, int y) {
    this.x = x;
    this.y = y;
    public Point(Point p) {
    x = p.x;
    y = p.y;
    public String toString() {
    return "(" + x + ", " + y + ")";
    public void move(Point dist) {
    x += dist.x;
    y += dist.y;
    abstract class GeomFigur {
    public abstract void move(Point p);
    class Line extends GeomFigur {
    Point p1, p2;
    public Line(Point p1, Point p2) {
    this.p1 = new Point(p1);
    this.p2 = new Point(p2);
    public String toString() { return "Line from " + p1 + " to " + p2;  }
    public void move(Point dist) {
    p1.move(dist);
    p2.move(dist);
    class Rectangle extends Line {
    public Rectangle(Point p1, Point p2) {
    super(p1, p2);
    public String toString() { return "Rectangle from " + p1 + " to " + p2; }
    class Circle extends GeomFigur{
    Point centre;
    int radius;
    public Circle(Point centre, int radius) {
    this.centre = new Point(centre);
    this.radius = radius;
    public String toString() {
    return "Circle, centre " + centre + ", radius " + radius;
    public void move(Point dist) { centre.move(dist); }
    public void addRectangle(int x, int y, Color col) {
    Rectangle r =new Rectangle(new Point(x,y),new Point(x+20,y+20));
    figures.addLast(r);
    color.addLast(col);
    repaint();
    public void addCircle(int x, int y, Color col) {
    Circle c =new Circle(new Point(x,y), 1 );
    figures.addLast(c);
    color.addLast(col);
    repaint();
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    for (int i=0;i < figures.size();i++) {
    Rectangle rect = (Rectangle)figures.get(i);
    //Circle circ = (Circle)figures.get(i);
    g.setColor(Color.black);
    g.drawRect(rect.p1.x,rect.p1.y,20,20);
    g.setColor((Color)color.get(i));
    g.fillRect(rect.p1.x,rect.p1.y,20,20);
    //g.setColor(Color.black);
    // g.drawOval(circ.centre.x,circ.centre.y,20,20);
    // g.setColor((Color)color.get(i));
    // g.fillOval(circ.centre.x, circ.centre.y, 20, 20);
    //Frame
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class Frame extends JFrame implements ActionListener {
    JButton button1, button2, button3, button4, button5 ;
    Graph gr;
    JComboBox cbx;
    JComboBox cby;
    JComboBox col;
    JMenu filemenu;
    JMenuItem quit;
    JMenuBar menubar;
    int x=10;
    int y=10;
    Color color=Color.red;
    public Frame() {
    menubar = new JMenuBar();
    filemenu = new JMenu("File");
    filemenu.setMnemonic('F');
    quit = new JMenuItem("Quit");
    quit.addActionListener(this);
    quit.setMnemonic('Q');
    quit.setAccelerator(KeyStroke.getKeyStroke('Q',Event.CTRL_MASK,false));
    filemenu.add(quit);
    menubar.add(filemenu);
    setJMenuBar(menubar);
    button1 = new JButton("Rectangle");
    button1.addActionListener(this);
    button2 = new JButton("Circle");
    button2.addActionListener(this);
    button4 = new JButton("Ellipse");
    button4.addActionListener(this);
    button5 = new JButton("Triangle");
    button5.addActionListener(this);
    button3 = new JButton("Reset");
    button3.addActionListener(this);
    String[] elements_x= {"10","20","30","40","50","60","70"};
    cbx = new JComboBox(elements_x);
    cbx.addActionListener(this);
    cbx.setActionCommand("cbx");
    String[] elements_y= {"10","20","30","40","50","60","70"};
    cby = new JComboBox(elements_y);
    cby.addActionListener(this);
    cby.setActionCommand("cby");
    String[] elements_color = {"Red","Blue","Green","Orange","Yellow" };
    col = new JComboBox(elements_color);
    col.addActionListener(this);
    col.setActionCommand("col");
    gr = new Graph();
    JPanel top = new JPanel(new BorderLayout());
    JPanel inputs = new JPanel(new GridLayout(6,1));
    inputs.add(button1);
    inputs.add(button2);
    inputs.add(button3);
    inputs.add(button4);
    inputs.add(button5);
    inputs.add(cbx);
    inputs.add(cby);
    inputs.add(col);
    top.add(gr,BorderLayout.CENTER);
    top.add(inputs,BorderLayout.WEST);
    getContentPane().add(BorderLayout.CENTER, top);
    setSize(500,300);//set window size
    //take care of actions
    public void actionPerformed(ActionEvent e) {
    String command = e.getActionCommand();
    if (command.equals("Quit")){
    System.exit(0);//terminate program
    else if (command.equals("Rectangle")){
    //add Rectangle to graph at
    //position x,y and with certain color
    gr.addRectangle(x,y,color);
    else if (command.equals("Circle")){
    gr.addCircle(x,y,color);
    else if (command.equals("Reset")){
    else if (command.equals("Triangle")){
    else if (command.equals("Ellipse")){
    else if (command.equals("cbx")){
    x=Integer.valueOf((String)((JComboBox)e.getSource()).getSelectedItem()).intValue();
    else if (command.equals("cby")){
    y=Integer.valueOf((String)((JComboBox)e.getSource()).getSelectedItem()).intValue();
    else if (command.equals("col")){
    String temp=(String)((JComboBox)e.getSource()).getSelectedItem();
    if (temp=="Red") color=Color.red;
    else if (temp=="Blue") color=Color.blue;
    else if (temp=="Green") color=Color.green;
    else if (temp=="pink") color=Color.pink;
    else if (temp=="lightGray") color=Color.lightGray;
    //main program
    public static void main(String [] args) {
    Frame appl = new Frame();
    appl.setVisible(true);
    Thanks in advance
    Marina

    Hi,
    You are very lucky that I'm currently boored. You should never tag a question as urgent. It might be urgent to you, but not to us who answer. And you should also use code formatting when you post code (see the formatting tips, or use the code-button).
    I made some changes to your Graph class. The most important thing is the abstract draw method that I added to the GeomFigur class.
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class Graph extends JPanel {
        LinkedList figures;
        public Graph() {
            setBackground(Color.white);
            figures = new LinkedList();
        int z;
        abstract class GeomFigur {
            protected Color color;
            public GeomFigur(Color color) {
                this.color = color;
            public abstract void move(Point p);
            public abstract void draw(Graphics g);
        abstract class Line extends GeomFigur {
            Point p1, p2;
            public Line(Color c, Point p1, Point p2) {
                super(c);
                this.p1 = new Point(p1);
                this.p2 = new Point(p2);
            public String toString() {
                return "Line from " + p1 + " to " + p2;
            public void move(Point dist) {
                p1.move(dist.x, dist.y);
                p2.move(dist.x, dist.y);
        class Rectangle extends Line {
            public Rectangle(Color c, Point p1, Point p2) {
                super(c, p1, p2);
            public String toString() {
                return "Rectangle from " + p1 + " to " + p2;
            public void draw(Graphics g) {
                System.out.println("Draw rectangle at " + p1 + " with color " + color);
                g.setColor(Color.black);
                g.drawRect(p1.x, p1.y, 20, 20);
                g.setColor(color);
                g.fillRect(p1.x, p1.y, 20, 20);
        class Circle extends GeomFigur {
            Point centre;
            int radius;
            public Circle(Color c, Point centre, int radius) {
                super(c);
                this.centre = new Point(centre);
                this.radius = radius;
            public String toString() {
                return "Circle, centre " + centre + ", radius " + radius;
            public void move(Point dist) {
                centre.move(dist.x, dist.y);
            public void draw(Graphics g) {
                System.out.println("Draw circle at " + centre + " with color " + color);
                g.setColor(Color.black);
                g.drawOval(centre.x, centre.y, 20, 20);
                g.setColor(color);
                g.fillOval(centre.x, centre.y, 20, 20);
        public void addRectangle(int x, int y, Color col) {
            System.out.println("x,y,col " + x + ":" + y + ":" + col);
            Rectangle r = new Rectangle(col, new Point(x, y), new Point(x + 20, y + 20));
            figures.addLast(r);
            repaint();
        public void addCircle(int x, int y, Color col) {
            System.out.println("x,y,col" + x + ":" + y + ":" + col);
            Circle c = new Circle(col, new Point(x, y), 1);
            figures.addLast(c);
            repaint();
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            for (int i = 0; i < figures.size(); i++) {
                GeomFigur drawable = (GeomFigur)figures.get(i);
                drawable.draw(g);
    }/Kaj

  • Jdesktop pane is not working as desired

    I took code from sun tutorial and added few lines of code, I using Jdesktop and internal frame here. my requirement is that i need to add one panel on Jdesktop pane. however when i tried to add panel, entire code behaved tht is not desired. internal frame not minimized/maximized. please let me know your thoughts and suggestions.
    my changes with "My extra code" comment
    import javax.swing.JInternalFrame;
    public class MyInternalFrame extends JInternalFrame {
        static int openFrameCount = 0;
        static final int xOffset = 30, yOffset = 30;
        public MyInternalFrame() {
            super("Document #" + (++openFrameCount),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
            setSize(300,300);
            //Set the window's location.
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    import javax.swing.JDesktopPane;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.KeyStroke;
    import java.awt.event.*;
    import java.awt.*;
    public class InternalFrameDemo extends JFrame
                                   implements ActionListener {
        JDesktopPane desktop;
        public InternalFrameDemo() {
            super("InternalFrameDemo");
            int inset = 50;
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds(inset, inset,
                      screenSize.width  - inset*2,
                      screenSize.height - inset*2);
            desktop = new JDesktopPane(); //a specialized layered pane
            // My extra code
            desktop.setLayout(new BorderLayout());
            JPanel panel = new JPanel(new BorderLayout());
            panel.add(new JLabel("Dummy Label"),BorderLayout.CENTER);
            desktop.add(panel, BorderLayout.CENTER);
            // my extra code ended here
            createFrame(); //create first "window"
            setContentPane(desktop);
            setJMenuBar(createMenuBar());
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        protected JMenuBar createMenuBar() {
            JMenuBar menuBar = new JMenuBar();
            JMenu menu = new JMenu("Document");
            menu.setMnemonic(KeyEvent.VK_D);
            menuBar.add(menu);
            JMenuItem menuItem = new JMenuItem("New");
            menuItem.setMnemonic(KeyEvent.VK_N);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(
                    KeyEvent.VK_N, ActionEvent.ALT_MASK));
            menuItem.setActionCommand("new");
            menuItem.addActionListener(this);
            menu.add(menuItem);
            menuItem = new JMenuItem("Quit");
            menuItem.setMnemonic(KeyEvent.VK_Q);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(
                    KeyEvent.VK_Q, ActionEvent.ALT_MASK));
            menuItem.setActionCommand("quit");
            menuItem.addActionListener(this);
            menu.add(menuItem);
            return menuBar;
        public void actionPerformed(ActionEvent e) {
            if ("new".equals(e.getActionCommand())) { //new
                createFrame();
            } else { //quit
                quit();
        //Create a new internal frame.
        protected void createFrame() {
            MyInternalFrame frame = new MyInternalFrame();
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            try {
                frame.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
        protected void quit() {
            System.exit(0);
        private static void createAndShowGUI() {
            JFrame.setDefaultLookAndFeelDecorated(true);
            InternalFrameDemo frame = new InternalFrameDemo();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }Thanks,

    Please read the relevant parts of the APi for JDesktopPane, DesktopManager and JLayeredPane to understand the code.import java.awt.event.ComponentAdapter;
    import java.awt.event.ComponentEvent;
    import javax.swing.*;
    public class PanelAtBottom {
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new PanelAtBottom().makeUI();
      public void makeUI() {
        final JDesktopPane desktopPane = new JDesktopPane();
        for (int i = 0; i < 5; i++) {
          JInternalFrame internalFrame = new JInternalFrame("Frame " + i);
          internalFrame.setIconifiable(true);
          internalFrame.setBounds(i * 10, i * 10, 200, 200);
          internalFrame.setVisible(true);
          desktopPane.add(internalFrame);
        final JPanel panel = new JPanel();
        panel.add(new JLabel("Label"));
        panel.add(new JButton("Button"));
        desktopPane.add(panel, JLayeredPane.DEFAULT_LAYER, -1);
        desktopPane.addComponentListener(new ComponentAdapter() {
          @Override
          public void componentResized(ComponentEvent e) {
            panel.setSize(desktopPane.getSize());
        desktopPane.setDesktopManager(new DefaultDesktopManager() {
          @Override
          public void iconifyFrame(JInternalFrame f) {
            super.iconifyFrame(f);
            desktopPane.moveToBack(panel);
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(desktopPane);
        frame.setSize(600, 300);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }db

  • Problems getting data from JMenuBar to JInternalFrame

    I have modified an example to show my problem. I am trying to take text input from the menu bar and print it into a JTextArea. I don't know how to reference the data in my ActionListener.
    The ActionListener is incomplete, but this is basically what I am trying to do:
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    * InternalFrameDemo.java is a 1.4 application that requires:
    *   MyInternalFrame.java
    public class InternalFrameDemo extends JFrame
                                   implements ActionListener {
        JDesktopPane desktop;
        JTextField memAddrBox;
        JTextArea menuText;
        JTextArea frame;
        String textFieldString = " Input Text: ";
        ActionListener al;
        public InternalFrameDemo() {
            super("InternalFrameDemo");
            //Make the big window be indented 50 pixels from each edge
            //of the screen.
            int inset = 50;
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds(inset, inset,
                      screenSize.width  - inset*2,
                      screenSize.height - inset*2);
            //Set up the GUI.
            desktop = new JDesktopPane(); //a specialized layered pane
            frame = createFrame(); //create first "window"
            setContentPane(desktop);
            setJMenuBar(createMenuBar());
            //Make dragging a little faster but perhaps uglier.
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        protected JMenuBar createMenuBar() {
            JMenuBar menuBar = new JMenuBar();
            JLabel memAddrLabel = new JLabel(textFieldString);
            memAddrLabel.setLabelFor(memAddrBox);
            menuBar.add(memAddrLabel);
            JTextField memAddrBox = new JTextField();
            memAddrBox.addActionListener(this);
            memAddrBox.setActionCommand("chMemAddr");
            menuBar.add(memAddrBox);
            return menuBar;
        //React to menu selections.
        public void actionPerformed(ActionEvent e) {
            if ("chMemAddr".equals(e.getActionCommand())) 
                JMenuBar bar = getJMenuBar();
    //            JTextField memAddrBox = bar.getParent();
                String memStartString = memAddrBox.getText();
                update(memStartString);
        public void update(String temp)
            frame.setText(temp);
        //Create a new internal frame.
        protected JTextArea createFrame() {
            JInternalFrame frame = new JInternalFrame("Memory",true,true,true,true);      
            frame.setSize(650, 500);
            frame.setVisible(true);
            frame.setLocation(200, 0);
            desktop.add(frame);  
            JTextArea textArea = new JTextArea();
            frame.getContentPane().add("Center", textArea);
            textArea.setFont(new Font("SansSerif", Font.PLAIN, 12));
            textArea.setVisible(true);
            textArea.setText("Initial Text");
            return textArea;
        //Quit the application.
        protected void quit() {
            System.exit(0);
        public static void main(String[] args) {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            InternalFrameDemo frame = new InternalFrameDemo();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Display the window.
            frame.setVisible(true);
    class MyInternalFrame extends JInternalFrame {
        static int openFrameCount = 0;
        static final int xOffset = 30, yOffset = 30;
        public MyInternalFrame() {
            super("Document #" + (++openFrameCount),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
            //...Create the GUI and put it in the window...
            //...Then set the window size or call pack...
            setSize(300,300);
            //Set the window's location.
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    }I want to take the input from the "memAddrBox" and put it into the "frame" using the update() method. Probably a simple solution, but I have not found a similar problem in the Forums.

    I knew it had to be something simple, here is the fix I found:
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    * InternalFrameDemo.java is a 1.4 application that requires:
    *   MyInternalFrame.java
    public class InternalFrameDemo extends JFrame
                                   implements ActionListener {
        JDesktopPane desktop;
        JTextField memAddrBox;
        JTextArea menuText;
        JTextArea frame;
        String textFieldString = " Input Text: ";
        ActionListener al;
        public InternalFrameDemo() {
            super("InternalFrameDemo");
            //Make the big window be indented 50 pixels from each edge
            //of the screen.
            int inset = 50;
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds(inset, inset,
                      screenSize.width  - inset*2,
                      screenSize.height - inset*2);
            //Set up the GUI.
            desktop = new JDesktopPane(); //a specialized layered pane
            frame = createFrame(); //create first "window"
            setContentPane(desktop);
            setJMenuBar(createMenuBar());
            //Make dragging a little faster but perhaps uglier.
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        protected JMenuBar createMenuBar() {
            JMenuBar menuBar = new JMenuBar();
            JLabel memAddrLabel = new JLabel(textFieldString);
            memAddrLabel.setLabelFor(memAddrBox);
            menuBar.add(memAddrLabel);
            JTextField memAddrBox = new JTextField();
            memAddrBox.addActionListener(this);
            memAddrBox.setActionCommand("chMemAddr");
            menuBar.add(memAddrBox);
            return menuBar;
        //React to menu selections.
        public void actionPerformed(ActionEvent e) {
            if ("chMemAddr".equals(e.getActionCommand())) 
               JTextField textField =
                 (JTextField)e.getSource();
                String memStartString = textField.getText();
                update(memStartString);
        public void update(String temp)
            frame.setText(temp);
        //Create a new internal frame.
        protected JTextArea createFrame() {
            JInternalFrame frame = new JInternalFrame("Memory",true,true,true,true);      
            frame.setSize(650, 500);
            frame.setVisible(true);
            frame.setLocation(200, 0);
            desktop.add(frame);  
            JTextArea textArea = new JTextArea();
            frame.getContentPane().add("Center", textArea);
            textArea.setFont(new Font("SansSerif", Font.PLAIN, 12));
            textArea.setVisible(true);
            textArea.setText("Initial Text");
            return textArea;
        //Quit the application.
        protected void quit() {
            System.exit(0);
        public static void main(String[] args) {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            InternalFrameDemo frame = new InternalFrameDemo();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Display the window.
            frame.setVisible(true);
    class MyInternalFrame extends JInternalFrame {
        static int openFrameCount = 0;
        static final int xOffset = 30, yOffset = 30;
        public MyInternalFrame() {
            super("Document #" + (++openFrameCount),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
            //...Create the GUI and put it in the window...
            //...Then set the window size or call pack...
            setSize(300,300);
            //Set the window's location.
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    }Note the e.getSource() change in the ActionListener.

  • Exception Error   =/

    Hello, java newb here.
    I have been working on one of my assignments for school. Where as we haven't gotten into GUI yet ... the many required output options of the assignment make it seem almost crazy not to have an interface to navigate with. I have probably bitten off a lot more than I can chew by trying to use tools I'm not ready for yet. I'm trying to learn to create an interface at this time on my own, and when I can get that to work I will begin trying to integrate the actual inputs and outputs of the assignment.
    Anyways, I am getting the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: IntroTest3/java
    What I don't understand is the code compiles without errors. Its when I try to run the program that the message is displayed. Can anybody advise me as to perhaps what could be happening between compile time and run time? I don't expect anybody to give me any answers or fix my lousy code. Just trying to learn what to look for when it comes to identifying errors.I will paste the code below. By the way, yes I did insert/modify a lot of pieces from some of the tutorial codes or my textbook codes because I don't know enough to fill in the gaps on my own.
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import java.awt.event.*;
    import java.awt.*;
    public class IntroTest3 extends JFrame implements ActionListener
    {//BEGIN INTROTEST3 CLASS
    private JDesktopPane desktop;               // Declare a new desktop frame (Instance variable)
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    public IntroTest3()               // Constructor for IntroTest3 class
         {//BEGIN INTROTEST3 CONSTRUCTOR
         super( "Grade Calculator v1.3" );     // Title bar text
         int inset = 50; // This indents the window?
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         setBounds(inset, inset,
    screenSize.width - inset*2,
    screenSize.height - inset*2);
         desktop = new JDesktopPane();          // Make a new desktop frame
         getContentPane().add( desktop );     // Create the content pane for the desktop frame
         setJMenuBar(createMenuBar());          // Menu bar will be made in createMenuBar()
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE); // Faster dragging???
         }//END INTROTEST3 CONSTRUCTOR
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    protected JMenuBar createMenuBar()                
         {//BEGIN CREATEMENUBAR
    //- "menuBar" is the menu bar -
         JMenuBar menuBar = new JMenuBar();          // Create new menu BAR
    *     FIRST MENU - " ADD GRADES ". INCLUDES ITEMS: "REGISTER A NEW CLASS",     *
    *     AND "INSERT GRADES".                                   *
    //- "add_menu" is first option on menu bar -
         JMenu add_menu = new JMenu(" Add Grades ");     // Create the first menu on the bar
    add_menu.setMnemonic(KeyEvent.VK_A);          // Set mnemonic to keystroke A?
         menuBar.add( add_menu );               // Add the menu to the menu bar
    //- "reg_class" is first item under menu -
    //- option "add_menu"               -
         JMenuItem reg_class = new JMenuItem(" Register A New Class "); //New option under Add Grades menu
    reg_class.setMnemonic(KeyEvent.VK_R); // Set mnemonic to keystroke R
    reg_class.setAccelerator(KeyStroke.getKeyStroke(
    KeyEvent.VK_R, ActionEvent.ALT_MASK));     // Uh, whatever that is ;O
    reg_class.setActionCommand("reg"); // Assign command "reg" to initiate
    reg_class.addActionListener(this); // and add it to ActionListener
    add_menu.add(reg_class);
    //- "insert_g" is next item under menu -
    //- option "add_menu"               -
         JMenuItem insert_g = new JMenuItem(" Insert New Grades "); //2nd option under Add Grades menu
    insert_g.setMnemonic(KeyEvent.VK_I); // Set mnemonic to keystroke I
    insert_g.setAccelerator(KeyStroke.getKeyStroke(
    KeyEvent.VK_I, ActionEvent.ALT_MASK));     // ....
    insert_g.setActionCommand("ins"); // Assign command "ins" to initiate
    insert_g.addActionListener(this); // and add it to ActionListener
    add_menu.add(insert_g);
    return (menuBar);
         }//END CREATEMENUBAR
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // React to menu selection          -
    public void actionPerformed(ActionEvent e)
         {//BEGIN ACTIONPERFORMED
    if ("reg".equals(e.getActionCommand()))
              { //new
         createFrame1();
         else if ("ins".equals(e.getActionCommand()))
              { //new
         createFrame2();
         else
         quit();
         }//END ACTIONPERFORMED
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // Create frame for registering a new class          -
    protected void createFrame1()
    {//BEGIN CREATEFRAME1
    RegFrame frame = new RegFrame();          // New frame RegFrame
    frame.setVisible(true);
    desktop.add(frame);                    // Add new frame to desktop
    try
         {                              // What the fuck is THIS shit?
    frame.setSelected(true);
    } catch (java.beans.PropertyVetoException e) {}
    }//END CREATEFRAME1
    // Create frame for inserting new grades          -
    protected void createFrame2()
    {//BEGIN CREATEFRAME2
    InsFrame frame = new InsFrame();          // New frame InsFrame
    frame.setVisible(true);
    desktop.add(frame);                    // Add new frame to desktop
    try
         {                              // What the fuck is THIS shit too?
    frame.setSelected(true);
    } catch (java.beans.PropertyVetoException e) {}
    }//END CREATEFRAME2
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //Quit the application.
    protected void quit()
    System.exit(0);
    *     COPIED CREATE AND SHOW GUI PIECE FOR TESTING
    private static void createAndShowGUI()
         {//BEGIN CREATEANDSHOW
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    IntroTest3 frame = new IntroTest3();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Display the window.
    frame.setVisible(true);     
         }//END CREATEANDSHOW
    public static void main(String[] args)
         {//BEGIN MAIN
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable()
              {//BEGIN SOME SHIT
         public void run()
         createAndShowGUI();
    });//END SOME SHIT
    }//END MAIN
    // TEST TEST TEST
    class InsFrame extends JInternalFrame
    static final int xOffset = 40, yOffset = 40;
    public InsFrame() {       
         super(" Insert New Grades ",
    true, //resizable
    true, //closable
    true, //maximizable
    true);//iconifiable
    //...Create the GUI and put it in the window...
    //...Then set the window size or call pack...
    setSize(300,300); //Set the window's location.
    setLocation(xOffset, yOffset);
    // TEST TEST TEST
    class RegFrame extends JInternalFrame
    static final int xOffset = 30, yOffset = 30;
    public RegFrame() {       
    super(" Register a New Class ",
    true, //resizable
    true, //closable
    true, //maximizable
    true);//iconifiable
    //...Create the GUI and put it in the window...
    //...Then set the window size or call pack...
    setSize(300,300); //Set the window's location.
    setLocation(xOffset, yOffset);
    Something else that I don't really understand is when I had the classes RegFrame and InsFrame to create the frames, located in different files, I had problems. The end of the main file, IntroTest3 kept giving me errors saying " 'class' or 'interface' expected."
    My teacher gave us this command the other day: javac -classpath . <filename>.java
    He said that this tells the file that the public classes it is looking for will be at the same location (in the same directory). I tried this on some sample code in the lab and it worked with what I had, but I guess not here....
    However, when I was messing around trying different things, I pasted RegFrame and InsFrame into the same file at the bottom as it is in the above code. After removing "public", it compiled.
    So I'm not sure why it occured the way it did.
    Anyways if anybody has any advice I would really be grateful, and I promise I'm not one of those obnoxious people who expects somebody on a forum to do their homework for them! Thank you and I'm sorry if I ramble. =(

    Exception in thread "main" java.lang.NoClassDefFoundError: IntroTest3/javaYou're invoking it like this, aren't you:
    java IntroTest3.java
    That's wrong. The argument to java should be a class name, not the name of the source file or even the filename of the class.
    So what's happening is that the JVM thinks that you're telling it to execute the class called "java" in a package called "IntroTest3".
    You should be doing:
    java IntroTest3

  • Shell Script CONCSUB Utility Completion Status

    Hi All ,
    I'm trying to call a concurrent program from a shell script using CONCSUB utility. Is there a way to wait for the concurrent program to be completed in the shell script and get the RETCODE value which the concurrent program is returning?
    My Current Code is something like this:
         v_conc_request2=`CONCSUB XXCONC/xfunct1on '"'$APPL_SHORT_NAME'"' '"'$RESP_NAME'"' \
                             $userName WAIT=15 CONCURRENT XXXX XXCXXXXXX \
                             '"'$CURRDATE'"' '"'ALL-XXXPRD'"'`
         v_conc_id2=`echo $v_conc_request2 | cut -f3 -d" "`
         echo "v_conc_id2: "$v_conc_id2
    if [ $? -ne 0 ]; then
              errorMessage="Error while submitting the concurrent request for Downstream"
              echo $errorMessage
              echo $errorMessage | mailx -s "Automated Currency Rates Load Failure- DownStream" -n "$email"
              exit 1
    else
    echo "Concurrent Program Successfully submitted for ALL Downstream Environments"
         fi
    fi
    This is working fine but its only getting the request id i want to get the return status of the concurrent program. Since my logic is based on the return status of the concurrent program i need to do some logic.
    Appreciate your help on this one.
    Thanks in advance!

    for those who wanted the solution, here it is..
    v_conc_request1=`CONCSUB XXCONC/xfunct1on '"'$APPL_SHORT_NAME'"' '"'$RESP_NAME'"' \
    $userName WAIT=15 CONCURRENT XXXX XXXXGEDLRTLD \
    '"'$CURRDATE'"' '"'XXXXX'"'`
    v_conc_id1=`echo $v_conc_request1 | cut -f3 -d" "`
    echo "v_conc_id1: "$v_conc_id1
    CONC_STATUS=`sqlplus -s $1 <<!
    SET feedback OFF;
    SET head OFF;
    SET pages 0;
    SET lines 300;
    SET feedback OFF;
    SET term OFF;
    WHENEVER SQLERROR EXIT FAILURE;
    SELECT phase_code || ',' ||
    status_code
    FROM FND_CONCURRENT_REQUESTS fcr
    WHERE request_id = $v_conc_id1;
    exit
    !`
    export PHASE_CODE=`echo $CONC_STATUS | cut -d',' -f1`
    export STATUS_CODE=`echo $CONC_STATUS | cut -d',' -f2`
    echo phase_code : $PHASE_CODE
    echo status_code : $STATUS_CODE
    if [ "$PHASE_CODE" = 'C' ] && [ "$STATUS_CODE" = 'E' ]; then
    errorMessage="Error while submitting the concurrent request for XXXX"
    echo $errorMessage
    echo $errorMessage | mailx -s "Automated XXXCurrency Rates Load Failure- XXXX" -n "$email"
    exit 1
    else
    echo completed normally
    fi
    Edited by: 876473 on Sep 8, 2011 6:29 AM

  • Errors: can't find symbol, libraries Jung

    Hi, I was trying some graph libraries (Jung) when I got the following errors:
    line 43: cannot find symbol
    symbol : method setPreferredSize(java.awt.Dimension)
    location: class edu.uci.ics.jung.visualization.BasicVisualizationServer<java.lang.Integer,java.lang.String>
    vv.setPreferredSize(new Dimension(350,350)); //Sets the viewing area size
    line 47: cannot find symbol
    symbol : method add(edu.uci.ics.jung.visualization.BasicVisualizationServer<java.lang.Integer,java.lang.String>)
    location: class java.awt.Container
    frame.getContentPane().add(vv);
    I have all the packages that I need, and I copied the code from the official tutorial. How can I solve these problems?
    The code is the following:
    import edu.uci.ics.jung.algorithms.layout.CircleLayout;
    import edu.uci.ics.jung.algorithms.layout.Layout;
    import edu.uci.ics.jung.graph.Graph;
    import edu.uci.ics.jung.graph.SparseMultigraph;
    import edu.uci.ics.jung.visualization.BasicVisualizationServer;
    import java.awt.Dimension;
    import javax.swing.JFrame;
    public class SimpleGraphView {
        Graph<Integer, String> g;
        /** Creates a new instance of SimpleGraphView */
        public SimpleGraphView() {
            // Graph<V, E> where V is the type of the vertices and E is the type of the edges
            g = new SparseMultigraph<Integer, String>();
            // Add some vertices. From above we defined these to be type Integer.
            g.addVertex((Integer)1);
            g.addVertex((Integer)2);
            g.addVertex((Integer)3);
            // Note that the default is for undirected edges, our Edges are Strings.
            g.addEdge("Edge-A", 1, 2); // Note that Java 1.5 auto-boxes primitives
            g.addEdge("Edge-B", 2, 3); 
        public static void main(String[] args) {
            SimpleGraphView sgv = new SimpleGraphView(); //We create our graph in here
            // The Layout<V, E> is parameterized by the vertex and edge types
            Layout<Integer, String> layout = new CircleLayout(sgv.g);
            layout.setSize(new Dimension(300,300)); // sets the initial size of the layout space
            // The BasicVisualizationServer<V,E> is parameterized by the vertex and edge types
            BasicVisualizationServer<Integer,String> vv = new BasicVisualizationServer<Integer,String>(layout);      
            vv.setPreferredSize(new Dimension(350,350)); // <-- First Error
            JFrame frame = new JFrame("Simple Graph View");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(vv); // <-- Second Error
            frame.pack();
            frame.setVisible(true);      
    }

    There are a couple of things I would like to comment on,
    Firstly,
    LukeR. wrote:
    You said that this method is available since 1.5 for class Component, but isn't it called on class BasicVisualizationServer (variable vv)?Ya, you are right, setPreferredSize(Dimension preferredSize) is the method of class Component,
    LukeR. wrote:
    Also
    frame.getContentPane().add(vv), how can it work if the add method wants a Component but gets a BasicVisualizationServer object?If you look at the [JUNG 2.0 API|http://leda.science.uoit.ca/java-libraries/jung-2.0/apidocs/edu/uci/ics/jung/visualization/BasicVisualizationServer.html] BasicVisualizationServer class is inherited from java.awt.Component class, as a result BasicVisualizationServer inherits the properties/methods of its parent Component class!
    Second and more importantly,
    LukeR. wrote:
    I take a look on Jung API and this method doesn't exist.I get a feeling that you are using libraries of the [JUNG 2.0 API|http://leda.science.uoit.ca/java-libraries/jung-2.0/apidocs/overview-summary.html] while looking for the method in [JUNG 1.7.6|http://leda.science.uoit.ca/java-libraries/jung-1.7.6/doc/index.html] or lower API
    Edited by: anamupota on Jan 26, 2009 9:51 PM

  • CUPS: Printer always waits for more data, and finally times out.

    I apologise if this should be categorised as" system administration" rather than "installation". The reason why I chose this category was that the error happened right after installing and setting up cups, so it should not have to do with fine-tuning or be the result of a particularly specific situation.
    I have had a novel kind of problem with printing since I first installed Arch Linux:
    Whenever I print - regardless of application -, my OKI 431 printer will always wait for more data after having completed the print job (as shown in its small display, where it keeps saying 'DATA' even after the last printed page has come out). After 25 to 30 seconds of such waiting, it will print out two pages, the first one empty, the second one saying:
    ERROR:
    timeout
    OFFENDING COMMAND:
    timeout
    STACK:
    The printer display then goes back to saying 'ONLINE'. If I print several documents WITHIN this 25 to 30 sec delay, i.e. in fast succession, I only get the two pages once, i.e. after the last of these jobs has been printed.
    What seems to be related to that is the status message on the "Printers" page of CUPS' Web interface: It says
    Idle - "Sending data to printer."
    all the time, even though I am not printing anything. (And this was the same before the update.)
    Printing is otherwise completely fine - the one practical problem is I have an ever-growing pile of empty pages mixed with pages containing the above error message next to my printer, i.e. two extra pages after each printout. (The one workaround I have found so far is quickly switching off the printer after within the 25 - 30 secs time window.) I have tried to google this problem with various search term combinations, but have not been able to find pages specific to this problem anywhere.
    What I have tried out was wiping the /etc/cups directory, updating cups, adding the printer again using lpadmin, and setting it as the default printer with lpoptions (both as explained in the Arch Wiki page). This has not changed anything relevant about the behaviour.
    (The one effect this has had is that pointing some browsers (Opera, Dillo) to localhost:631 now gets a "Bad request" response from CUPS, but on most browsers (Mozilla, Qupzilla, Midori, Google Chrome, Lynx) it gets the normal Web interface. But this is probably not related to the problem.)
    I will try to give some basic context:
    > uname -a
    Linux bertrandrussell 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014 x86_64 GNU/Linux
    > pacman -Qi cups
    Version : 1.7.1-3
    > cat /etc/cups/printers.conf
    # Printer configuration file for CUPS v1.7.1
    # Written by cupsd on 2014-02-16 12:24
    # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
    <Printer OKI>
    UUID urn:uuid:6414e199-9c1c-3330-4b66-5311b2bff8e8
    Info OKI
    MakeModel OKI DATA CORP B431(PS)
    DeviceURI usb://OKI%20DATA%20CORP/B431?serial=AK17008654
    State Idle
    StateTime 1392549811
    Type 8425556
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy abort-job
    </Printer>
    Can anybody help me on where to start looking?
    Thank you very much for any help!
    Florian

    It seems I have lost my first error_log, but I have produced a fresh one. It contains precisely what was logged since the reboot (albeit not the marker of when exactly I printed the document):
    I'll try the wrapper - here goes:
    I [22/Feb/2014:18:13:07 +0100] Listening to [v1.::1]:631 (IPv6)
    I [22/Feb/2014:18:13:07 +0100] Listening to 127.0.0.1:631 (IPv4)
    I [22/Feb/2014:18:13:07 +0100] Listening to /run/cups/cups.sock (Domain)
    I [22/Feb/2014:18:13:07 +0100] Remote access is disabled.
    D [22/Feb/2014:18:13:07 +0100] Added auto ServerAlias bertrandrussell
    I [22/Feb/2014:18:13:07 +0100] Loaded configuration file "/etc/cups/cupsd.conf"
    D [22/Feb/2014:18:13:07 +0100] Repairing ownership of "/run/cups"
    D [22/Feb/2014:18:13:07 +0100] Creating missing directory "/run/cups/certs"
    D [22/Feb/2014:18:13:07 +0100] Repairing ownership of "/run/cups/certs"
    D [22/Feb/2014:18:13:07 +0100] Repairing access permissions of "/run/cups/certs"
    I [22/Feb/2014:18:13:07 +0100] Using default TempDir of /var/spool/cups/tmp...
    I [22/Feb/2014:18:13:07 +0100] Configured for up to 100 clients.
    I [22/Feb/2014:18:13:07 +0100] Allowing up to 100 client connections per host.
    I [22/Feb/2014:18:13:07 +0100] Using policy "default" as the default.
    I [22/Feb/2014:18:13:07 +0100] Full reload is required.
    I [22/Feb/2014:18:13:07 +0100] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 39 types, 52 filters...
    D [22/Feb/2014:18:13:07 +0100] Loading printer OKI...
    D [22/Feb/2014:18:13:07 +0100] load_ppd: Loading /var/cache/cups/OKI.data...
    D [22/Feb/2014:18:13:07 +0100] cupsdRegisterPrinter(p=0x7fa99aa6d130(OKI))
    I [22/Feb/2014:18:13:07 +0100] Loading job cache file "/var/cache/cups/job.cache"...
    D [22/Feb/2014:18:13:07 +0100] [Job 1] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 2] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 3] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 4] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 5] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 6] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 7] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 8] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 9] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 10] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 11] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 12] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 13] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 14] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 15] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 16] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 17] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 18] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 19] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 20] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 21] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 22] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 23] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 24] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 25] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 26] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 27] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 28] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 29] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 30] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 31] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 32] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 33] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 34] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 35] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 36] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 37] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 38] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 39] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 40] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 41] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 42] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 43] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 44] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 45] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 46] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 47] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 48] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 49] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 50] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 51] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 52] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 53] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 54] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 55] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 56] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 57] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 58] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 59] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 60] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 61] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 62] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 63] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 64] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 65] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 66] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 67] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 68] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 69] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 70] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 71] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 72] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 73] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 74] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 75] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 76] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 77] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 78] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 79] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 80] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 81] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 82] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 83] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 84] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 85] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 86] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 87] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 88] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 89] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 90] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 91] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 92] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 93] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 94] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 95] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 96] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 97] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 98] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 99] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 100] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 101] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 102] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 103] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 104] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 105] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 106] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 107] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 108] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 109] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 110] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 111] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 112] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 113] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 114] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 115] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 116] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 117] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 118] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 119] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 120] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 121] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 122] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 123] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 124] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 125] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 126] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 127] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 128] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 129] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 130] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 131] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 132] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 133] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 134] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 135] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 136] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 137] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 138] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 139] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 140] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 141] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 142] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 143] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 144] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 145] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 146] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 147] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 148] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 149] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 150] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 151] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 152] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 153] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 154] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 155] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 156] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 157] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 158] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 159] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 160] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 161] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 162] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 163] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 164] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 165] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 166] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 167] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 168] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 169] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 170] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 171] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 172] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 173] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 174] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 175] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 176] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 177] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 178] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 179] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 180] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 181] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 182] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 183] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 184] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 185] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 186] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 187] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 188] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 189] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 190] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 191] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 192] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 193] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 194] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 195] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 196] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 197] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 198] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 199] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 200] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 201] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 202] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 203] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 204] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 205] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 206] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 207] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 208] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 209] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 210] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 211] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 212] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 213] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 214] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 215] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 216] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 217] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 218] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 219] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 220] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 221] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 222] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 223] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 224] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 225] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 226] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 227] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 228] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 229] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 230] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 231] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 232] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 233] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 234] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 235] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 236] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 237] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 238] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 239] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 240] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 241] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 242] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 243] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 244] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 245] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 246] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 247] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 248] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 249] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 250] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 251] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 252] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 253] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 254] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 255] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 256] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 257] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 258] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 259] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 260] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 261] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 262] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 263] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 264] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 265] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 266] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 267] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 268] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 269] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 270] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 271] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 272] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 273] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 274] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 275] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 276] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 277] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 278] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 279] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 280] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 281] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 282] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 283] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 284] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 285] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 286] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 287] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 288] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 289] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 290] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 291] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 292] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 293] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 294] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 295] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 296] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 297] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 298] Loading from cache...
    D [22/Feb/2014:18:13:07 +0100] [Job 299] Loading from cache...
    I [22/Feb/2014:18:13:07 +0100] Full reload complete.
    D [22/Feb/2014:18:13:07 +0100] cupsdCleanFiles(path="/var/spool/cups/tmp", pattern="(null)")
    I [22/Feb/2014:18:13:07 +0100] Cleaning out old files in "/var/spool/cups/tmp".
    D [22/Feb/2014:18:13:07 +0100] cupsdCleanFiles(path="/var/cache/cups", pattern="*.ipp")
    I [22/Feb/2014:18:13:07 +0100] Cleaning out old files in "/var/cache/cups".
    D [22/Feb/2014:18:13:07 +0100] systemd_checkin: Matched existing listener /run/cups/cups.sock with fd 3...
    D [22/Feb/2014:18:13:07 +0100] systemd_checkin: Adding new listener [v1.::] with fd 4...
    D [22/Feb/2014:18:13:07 +0100] Calling FindDeviceById(cups-OKI)
    D [22/Feb/2014:18:13:08 +0100] FindDeviceById failed: org.freedesktop.ColorManager.NotFound:device id 'cups-OKI' does not exist
    D [22/Feb/2014:18:13:08 +0100] Using profile ID "OKI-Gray..".
    D [22/Feb/2014:18:13:08 +0100] Calling CreateProfile(OKI-Gray..,temp)
    D [22/Feb/2014:18:13:09 +0100] Created profile "/org/freedesktop/ColorManager/profiles/OKI_Gray__".
    I [22/Feb/2014:18:13:09 +0100] Registering ICC color profiles for "OKI".
    D [22/Feb/2014:18:13:09 +0100] Calling CreateDevice(cups-OKI,temp)
    D [22/Feb/2014:18:13:09 +0100] Created device "/org/freedesktop/ColorManager/devices/cups_OKI".
    D [22/Feb/2014:18:13:09 +0100] Calling /org/freedesktop/ColorManager/devices/cups_OKI:AddProfile(/org/freedesktop/ColorManager/profiles/OKI_Gray__) [soft]
    E [22/Feb/2014:18:13:09 +0100] Unable to bind socket for address [v1.::1]:631 - Address already in use.
    E [22/Feb/2014:18:13:09 +0100] Unable to bind socket for address 127.0.0.1:631 - Address already in use.
    I [22/Feb/2014:18:13:09 +0100] Listening to /run/cups/cups.sock:631 on fd 3...
    I [22/Feb/2014:18:13:09 +0100] Listening to [v1.::]:631 on fd 4...
    I [22/Feb/2014:18:13:09 +0100] Resuming new connection processing...
    D [22/Feb/2014:18:13:09 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:13:09 +0100] Discarding unused server-started event...
    D [22/Feb/2014:18:13:10 +0100] Report: clients=0
    D [22/Feb/2014:18:13:10 +0100] Report: jobs=299
    D [22/Feb/2014:18:13:10 +0100] Report: jobs-active=0
    D [22/Feb/2014:18:13:10 +0100] Report: printers=1
    D [22/Feb/2014:18:13:10 +0100] Report: stringpool-string-count=1578
    D [22/Feb/2014:18:13:10 +0100] Report: stringpool-alloc-bytes=8880
    D [22/Feb/2014:18:13:10 +0100] Report: stringpool-total-bytes=27352
    D [22/Feb/2014:18:13:56 +0100] [Client 13] Accepted from localhost:631 (IPv6)
    D [22/Feb/2014:18:13:56 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:13:59 +0100] [Client 13] GET / HTTP/1.1
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:13:59 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:13:59 +0100] [Client 13] GET /cups.css HTTP/1.1
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:13:59 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:13:59 +0100] [Client 13] GET /images/left.gif HTTP/1.1
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:13:59 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:13:59 +0100] [Client 14] Accepted from localhost:631 (IPv6)
    D [22/Feb/2014:18:13:59 +0100] [Client 14] Waiting for request.
    D [22/Feb/2014:18:13:59 +0100] [Client 15] Accepted from localhost:631 (IPv6)
    D [22/Feb/2014:18:13:59 +0100] [Client 15] Waiting for request.
    D [22/Feb/2014:18:13:59 +0100] [Client 14] GET /images/right.gif HTTP/1.1
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:13:59 +0100] [Client 14] No authentication data provided.
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:13:59 +0100] [Client 16] Accepted from localhost:631 (IPv6)
    D [22/Feb/2014:18:13:59 +0100] [Client 16] Waiting for request.
    D [22/Feb/2014:18:13:59 +0100] [Client 15] GET /images/cups-icon.png HTTP/1.1
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:13:59 +0100] [Client 15] No authentication data provided.
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:13:59 +0100] [Client 16] GET /images/sel.gif HTTP/1.1
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:13:59 +0100] [Client 16] No authentication data provided.
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:13:59 +0100] [Client 13] GET /images/unsel.gif HTTP/1.1
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:13:59 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:13:59 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:14:02 +0100] [Client 14] GET /printers/ HTTP/1.1
    D [22/Feb/2014:18:14:02 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:14:02 +0100] [Client 14] No authentication data provided.
    D [22/Feb/2014:18:14:02 +0100] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[7] = "CUPS_STATEDIR=/run/cups"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[10] = "SERVER_ADMIN=root@bertrandrussell"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[11] = "SOFTWARE=CUPS/1.7.1"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[13] = "USER=root"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[14] = "CUPS_MAX_MESSAGE=2047"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[15] = "CUPS_SERVER=/run/cups/cups.sock"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[17] = "IPP_PORT=631"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[18] = "LANG=en_US.UTF8"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[19] = "REDIRECT_STATUS=1"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[21] = "SERVER_NAME=localhost"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[22] = "SERVER_PORT=631"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[23] = "REMOTE_ADDR=[v1.::1]"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[24] = "REMOTE_HOST=localhost"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[25] = "SCRIPT_NAME=/printers/"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc/printers/"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[27] = "SERVER_PROTOCOL=HTTP/1.1"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[28] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[29] = "HTTP_REFERER=http://localhost:631/"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[30] = "REQUEST_METHOD=GET"
    D [22/Feb/2014:18:14:02 +0100] [CGI] envp[31] = "QUERY_STRING="
    D [22/Feb/2014:18:14:02 +0100] [CGI] Started /usr/lib/cups/cgi-bin/printers.cgi (PID 668)
    I [22/Feb/2014:18:14:02 +0100] [Client 14] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=668)
    D [22/Feb/2014:18:14:02 +0100] [Client 14] file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [CGI] org.cups.sid cookie not found, initializing!
    D [22/Feb/2014:18:14:02 +0100] [CGI] org.cups.sid cookie is "4d43abea28d1837cbb1175a07cd5bb45"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: SECTION="printers"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: REFRESH_PAGE=""
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Accepted from localhost (Domain)
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Waiting for request.
    D [22/Feb/2014:18:14:02 +0100] [Client 18] POST / HTTP/1.1
    D [22/Feb/2014:18:14:02 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
    D [22/Feb/2014:18:14:02 +0100] [Client 18] No authentication data provided.
    D [22/Feb/2014:18:14:02 +0100] [Client 18] 2.0 CUPS-Get-Default 1
    D [22/Feb/2014:18:14:02 +0100] CUPS-Get-Default
    D [22/Feb/2014:18:14:02 +0100] CUPS-Get-Default client-error-not-found: No default printer.
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Content-Length: 113
    D [22/Feb/2014:18:14:02 +0100] [Client 18] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=113, response=0x7fa99aaad580(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:02 +0100] [Client 18] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Waiting for request.
    D [22/Feb/2014:18:14:02 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
    D [22/Feb/2014:18:14:02 +0100] [CGI] show_all_printers(http=0x7f1162e63260, user="(null)")
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: TITLE="Printers"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: SERVER_NAME="localhost"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v1.7.1"
    D [22/Feb/2014:18:14:02 +0100] [Client 14] CGI data ready to be sent.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] Script header: Set-Cookie: org.cups.sid=4d43abea28d1837cbb1175a07cd5bb45; path=/;
    D [22/Feb/2014:18:14:02 +0100] Script header: Content-Type: text/html;charset=utf-8
    D [22/Feb/2014:18:14:02 +0100] Script header:
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] CGI data ready to be sent.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 18] POST / HTTP/1.1
    D [22/Feb/2014:18:14:02 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
    D [22/Feb/2014:18:14:02 +0100] [Client 18] No authentication data provided.
    D [22/Feb/2014:18:14:02 +0100] [Client 18] 2.0 CUPS-Get-Printers 2
    D [22/Feb/2014:18:14:02 +0100] CUPS-Get-Printers
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Content-Length: 292
    D [22/Feb/2014:18:14:02 +0100] [Client 18] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=292, response=0x7fa99aadf780(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:02 +0100] [Client 18] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Waiting for request.
    D [22/Feb/2014:18:14:02 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: TOTAL="1"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: SERVER_NAME="localhost"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v1.7.1"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: printer_state[0]="3"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: printer_state_message[0]=""
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: admin_uri[0]="/admin/"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: printer_uri_supported[0]="/printers/OKI"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: printer_name[0]="OKI"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: printer_location[0]=""
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: printer_info[0]="OKI"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetArray: printer_make_and_model[0]="OKI DATA CORP B431(PS)"
    D [22/Feb/2014:18:14:02 +0100] [CGI] cgiSetVariable: THISURL="/printers/"
    D [22/Feb/2014:18:14:02 +0100] [Client 14] CGI data ready to be sent.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] CGI data ready to be sent.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] CGI data ready to be sent.
    D [22/Feb/2014:18:14:02 +0100] [Client 18] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:02 +0100] [Client 18] Closing connection.
    D [22/Feb/2014:18:14:02 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] CGI data ready to be sent.
    D [22/Feb/2014:18:14:02 +0100] PID 668 (/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=668, file=17
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for CGI data.
    D [22/Feb/2014:18:14:02 +0100] [Client 14] Waiting for request.
    D [22/Feb/2014:18:14:02 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Accepted from localhost (Domain)
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Waiting for request.
    D [22/Feb/2014:18:14:21 +0100] Report: clients=5
    D [22/Feb/2014:18:14:21 +0100] Report: jobs=299
    D [22/Feb/2014:18:14:21 +0100] Report: jobs-active=0
    D [22/Feb/2014:18:14:21 +0100] Report: printers=1
    D [22/Feb/2014:18:14:21 +0100] Report: stringpool-string-count=1582
    D [22/Feb/2014:18:14:21 +0100] Report: stringpool-alloc-bytes=8904
    D [22/Feb/2014:18:14:21 +0100] Report: stringpool-total-bytes=27416
    D [22/Feb/2014:18:14:21 +0100] [Client 17] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Closing connection.
    D [22/Feb/2014:18:14:21 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Accepted from localhost (Domain)
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Waiting for request.
    D [22/Feb/2014:18:14:21 +0100] [Client 17] POST / HTTP/1.1
    D [22/Feb/2014:18:14:21 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:14:21 +0100] [Client 17] No authentication data provided.
    D [22/Feb/2014:18:14:21 +0100] [Client 17] 2.0 CUPS-Get-Printers 1
    D [22/Feb/2014:18:14:21 +0100] CUPS-Get-Printers
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Content-Length: 1073
    D [22/Feb/2014:18:14:21 +0100] [Client 17] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1073, response=0x7fa99aaad7c0(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:21 +0100] [Client 17] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Waiting for request.
    D [22/Feb/2014:18:14:21 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:14:21 +0100] [Client 17] POST / HTTP/1.1
    D [22/Feb/2014:18:14:21 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:14:21 +0100] [Client 17] No authentication data provided.
    D [22/Feb/2014:18:14:21 +0100] [Client 17] 2.0 CUPS-Get-Default 2
    D [22/Feb/2014:18:14:21 +0100] CUPS-Get-Default
    D [22/Feb/2014:18:14:21 +0100] CUPS-Get-Default client-error-not-found: No default printer.
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Content-Length: 113
    D [22/Feb/2014:18:14:21 +0100] [Client 17] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=113, response=0x7fa99aae73c0(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:21 +0100] [Client 17] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Waiting for request.
    D [22/Feb/2014:18:14:21 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:14:21 +0100] [Client 17] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:21 +0100] [Client 17] Closing connection.
    D [22/Feb/2014:18:14:21 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:14:30 +0100] [Client 16] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:30 +0100] [Client 16] Closing connection.
    D [22/Feb/2014:18:14:30 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:14:30 +0100] [Client 15] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:30 +0100] [Client 15] Closing connection.
    D [22/Feb/2014:18:14:30 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:14:30 +0100] [Client 13] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:30 +0100] [Client 13] Closing connection.
    D [22/Feb/2014:18:14:30 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Accepted from localhost (Domain)
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:14:32 +0100] [Client 13] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Closing connection.
    D [22/Feb/2014:18:14:32 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Accepted from localhost (Domain)
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:14:32 +0100] [Client 13] POST / HTTP/1.1
    D [22/Feb/2014:18:14:32 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:14:32 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:14:32 +0100] [Client 13] 2.0 CUPS-Get-Printers 3
    D [22/Feb/2014:18:14:32 +0100] CUPS-Get-Printers
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Content-Length: 1073
    D [22/Feb/2014:18:14:32 +0100] [Client 13] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1073, response=0x7fa99aaad750(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:32 +0100] [Client 13] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:14:32 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:14:32 +0100] [Client 13] POST / HTTP/1.1
    D [22/Feb/2014:18:14:32 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:14:32 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:14:32 +0100] [Client 13] 2.0 CUPS-Get-Default 4
    D [22/Feb/2014:18:14:32 +0100] CUPS-Get-Default
    D [22/Feb/2014:18:14:32 +0100] CUPS-Get-Default client-error-not-found: No default printer.
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Content-Length: 113
    D [22/Feb/2014:18:14:32 +0100] [Client 13] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=113, response=0x7fa99aaad7a0(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:32 +0100] [Client 13] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:32 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:14:32 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
    D [22/Feb/2014:18:14:33 +0100] [Client 14] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:14:33 +0100] [Client 14] Closing connection.
    D [22/Feb/2014:18:14:33 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:14:44 +0100] [Client 13] POST /printers/OKI HTTP/1.1
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:14:44 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:14:44 +0100] [Client 13] 2.0 Create-Job 5
    D [22/Feb/2014:18:14:44 +0100] Create-Job ipp://localhost:631/printers/OKI
    D [22/Feb/2014:18:14:44 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
    D [22/Feb/2014:18:14:44 +0100] add_job: requesting-user-name="lehrer"
    D [22/Feb/2014:18:14:44 +0100] Adding default job-sheets values "none,none"...
    I [22/Feb/2014:18:14:44 +0100] [Job 300] Adding start banner page "none".
    D [22/Feb/2014:18:14:44 +0100] Discarding unused job-created event...
    I [22/Feb/2014:18:14:44 +0100] [Job 300] Queued on "OKI" by "lehrer".
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Returning IPP successful-ok for Create-Job (ipp://localhost:631/printers/OKI) from localhost
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Content-Length: 183
    D [22/Feb/2014:18:14:44 +0100] [Client 13] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=183, response=0x7fa99aaad890(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:44 +0100] [Client 13] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
    D [22/Feb/2014:18:14:44 +0100] [Client 13] POST /printers/OKI HTTP/1.1
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
    D [22/Feb/2014:18:14:44 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:14:44 +0100] [Client 13] 2.0 Send-Document 6
    D [22/Feb/2014:18:14:44 +0100] Send-Document ipp://localhost:631/printers/OKI
    D [22/Feb/2014:18:14:44 +0100] cupsdIsAuthorized: requesting-user-name="lehrer"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Auto-typing file...
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Request file type is application/pdf.
    D [22/Feb/2014:18:14:44 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
    I [22/Feb/2014:18:14:44 +0100] [Job 300] File of type application/pdf queued by "lehrer".
    I [22/Feb/2014:18:14:44 +0100] [Job 300] Adding end banner page "none".
    D [22/Feb/2014:18:14:44 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] time-at-processing=1393089284
    D [22/Feb/2014:18:14:44 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
    D [22/Feb/2014:18:14:44 +0100] Discarding unused printer-state-changed event...
    D [22/Feb/2014:18:14:44 +0100] [Job 300] 3 filters for job:
    D [22/Feb/2014:18:14:44 +0100] [Job 300] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
    D [22/Feb/2014:18:14:44 +0100] [Job 300] pdftops (application/vnd.cups-pdf to application/vnd.cups-postscript, cost 100)
    D [22/Feb/2014:18:14:44 +0100] [Job 300] - (application/vnd.cups-postscript to printer/OKI, cost 0)
    D [22/Feb/2014:18:14:44 +0100] [Job 300] job-sheets=none,none
    D [22/Feb/2014:18:14:44 +0100] [Job 300] argv[0]="OKI"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] argv[1]="300"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] argv[2]="lehrer"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] argv[3]="32_noun_clauses"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] argv[4]="1"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] argv[5]="Duplex=None InputSlot=Upper PageSize=A4 job-uuid=urn:uuid:f6fd7095-afa2-3a84-4db2-7a65f497728a job-originating-host-name=localhost time-at-creation=1393089284 time-at-processing=1393089284"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] argv[6]="/var/spool/cups/d00300-001"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[1]="CUPS_DATADIR=/usr/share/cups"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[6]="CUPS_SERVERROOT=/etc/cups"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[7]="CUPS_STATEDIR=/run/cups"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[8]="HOME=/var/spool/cups/tmp"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[10]="SERVER_ADMIN=root@bertrandrussell"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[11]="SOFTWARE=CUPS/1.7.1"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[12]="TMPDIR=/var/spool/cups/tmp"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[13]="USER=root"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[14]="CUPS_MAX_MESSAGE=2047"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[16]="CUPS_ENCRYPTION=IfRequested"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[17]="IPP_PORT=631"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[18]="CHARSET=utf-8"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[19]="LANG=de_DE.UTF-8"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[20]="PPD=/etc/cups/ppd/OKI.ppd"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[21]="RIP_MAX_CACHE=128m"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[22]="CONTENT_TYPE=application/pdf"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[23]="DEVICE_URI=usb://OKI%20DATA%20CORP/B431?serial=AK17008654"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[24]="PRINTER_INFO=OKI"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[25]="PRINTER_LOCATION="
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[26]="PRINTER=OKI"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[27]="PRINTER_STATE_REASONS=none"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[28]="CUPS_FILETYPE=document"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[29]="FINAL_CONTENT_TYPE=printer/OKI"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] envp[30]="AUTH_I****"
    I [22/Feb/2014:18:14:44 +0100] [Job 300] Started filter /usr/lib/cups/filter/pdftopdf (PID 703)
    I [22/Feb/2014:18:14:44 +0100] [Job 300] Started filter /usr/lib/cups/filter/pdftops (PID 704)
    I [22/Feb/2014:18:14:44 +0100] [Job 300] Started backend /usr/lib/cups/backend/usb (PID 705)
    D [22/Feb/2014:18:14:44 +0100] Discarding unused job-state-changed event...
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Returning IPP successful-ok for Send-Document (ipp://localhost:631/printers/OKI) from localhost
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Content-Length: 175
    D [22/Feb/2014:18:14:44 +0100] [Client 13] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=175, response=0x7fa99aae6ec0(IPP_IDLE), pipe_pid=0, file=-1
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
    D [22/Feb/2014:18:14:44 +0100] [Client 13] bytes=0, http_state=0, data_remaining=0
    D [22/Feb/2014:18:14:44 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients and dirty files"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] pdftops - copying to temp print file "/var/spool/cups/tmp/002c0530d3451"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Loading USB quirks from "/usr/share/cups/usb".
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Loaded 67 quirks.
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Printing on printer with URI: usb://OKI%20DATA%20CORP/B431?serial=AK17008654
    D [22/Feb/2014:18:14:44 +0100] [Job 300] libusb_get_device_list=12
    I [22/Feb/2014:18:14:44 +0100] [Job 300] Waiting for printer to become available.
    D [22/Feb/2014:18:14:44 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:14:44 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:14:44 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Set job-printer-state-message to "Waiting for printer to become available.", current level=INFO
    D [22/Feb/2014:18:14:44 +0100] Discarding unused job-progress event...
    D [22/Feb/2014:18:14:44 +0100] Discarding unused printer-state-changed event...
    D [22/Feb/2014:18:14:44 +0100] [Job 300] PID 703 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Printer make and model: Oki B431
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Running command line for pstops: pstops 300 lehrer 32_noun_clauses 1 'Duplex=None InputSlot=Upper PageSize=A4 job-uuid=urn:uuid:f6fd7095-afa2-3a84-4db2-7a65f497728a job-originating-host-name=localhost time-at-creation=1393089284 time-at-processing=1393089284'
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Using image rendering resolution 600 dpi
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOUTPUTFILE=%stdout -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /var/spool/cups/tmp/002c0530d3451
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Started filter gs (PID 707)
    D [22/Feb/2014:18:14:44 +0100] [Job 300] Started filter pstops (PID 708)
    D [22/Feb/2014:18:14:45 +0100] [Job 300] Page = 595x842; 13,13 to 582,829
    D [22/Feb/2014:18:14:45 +0100] [Job 300] slow_collate=0, slow_duplex=0, slow_order=0
    D [22/Feb/2014:18:14:45 +0100] [Job 300] Before copy_comments - %!PS-Adobe-3.0
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %!PS-Adobe-3.0
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %%BoundingBox: 0 0 595 842
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %%HiResBoundingBox: 0 0 595.00 842.00
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %%Creator: GPL Ghostscript 910 (ps2write)
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %%LanguageLevel: 2
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %%CreationDate: D:20140222181445+01'00'
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %%Pages: 1
    D [22/Feb/2014:18:14:45 +0100] [Job 300] %%EndComments
    D [22/Feb/2014:18:14:45 +0100] [Job 300] Before copy_prolog - %%BeginProlog
    D [22/Feb/2014:18:14:49 +0100] [Job 300] libusb_get_device_list=12
    I [22/Feb/2014:18:14:49 +0100] [Job 300] Waiting for printer to become available.
    D [22/Feb/2014:18:14:54 +0100] [Job 300] libusb_get_device_list=12
    I [22/Feb/2014:18:14:54 +0100] [Job 300] Waiting for printer to become available.
    D [22/Feb/2014:18:14:59 +0100] [Job 300] libusb_get_device_list=12
    I [22/Feb/2014:18:14:59 +0100] [Job 300] Waiting for printer to become available.
    D [22/Feb/2014:18:15:04 +0100] [Job 300] libusb_get_device_list=12
    I [22/Feb/2014:18:15:04 +0100] [Job 300] Waiting for printer to become available.
    D [22/Feb/2014:18:15:09 +0100] [Job 300] libusb_get_device_list=13
    D [22/Feb/2014:18:15:09 +0100] [Job 300] STATE: +connecting-to-device
    D [22/Feb/2014:18:15:09 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:15:09 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:15:09 +0100] Discarding unused printer-state-changed event...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] STATE: -connecting-to-device
    D [22/Feb/2014:18:15:09 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:15:09 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Dirty files"
    D [22/Feb/2014:18:15:09 +0100] Discarding unused printer-state-changed event...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Device protocol: 2
    I [22/Feb/2014:18:15:09 +0100] [Job 300] Sending data to printer.
    D [22/Feb/2014:18:15:09 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:15:09 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Set job-printer-state-message to "Sending data to printer.", current level=INFO
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:09 +0100] Discarding unused job-progress event...
    D [22/Feb/2014:18:15:09 +0100] Discarding unused printer-state-changed event...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] PID 707 (gs) exited with no errors.
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Before copy_setup - %%Page: 1 1
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Before page loop - %%Page: 1 1
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Copying page 1...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] PAGE: 1 1
    D [22/Feb/2014:18:15:10 +0100] Discarding unused job-progress event...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] pagew = 569.0, pagel = 816.0
    D [22/Feb/2014:18:15:10 +0100] [Job 300] bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842
    D [22/Feb/2014:18:15:10 +0100] [Job 300] PageLeft = 13.0, PageRight = 582.0
    D [22/Feb/2014:18:15:10 +0100] [Job 300] PageTop = 829.0, PageBottom = 13.0
    D [22/Feb/2014:18:15:10 +0100] [Job 300] PageWidth = 595.0, PageLength = 842.0
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 1 pages...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] PID 708 (pstops) exited with no errors.
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] PID 704 (/usr/lib/cups/filter/pdftops) exited with no errors.
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:10 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Read 8192 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Wrote 8192 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Read 3272 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Wrote 3272 bytes of print data...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Sent 216264 bytes...
    D [22/Feb/2014:18:15:11 +0100] [Job 300] Waiting for read thread to exit...
    I [22/Feb/2014:18:15:15 +0100] Saving job.cache...
    D [22/Feb/2014:18:15:15 +0100] cupsdSetBusyState: newbusy="Printing jobs", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:15:18 +0100] [Job 300] Read thread still active, aborting the pending read...
    D [22/Feb/2014:18:15:19 +0100] [Job 300] PID 705 (/usr/lib/cups/backend/usb) exited with no errors.
    D [22/Feb/2014:18:15:19 +0100] [Job 300] time-at-completed=1393089319
    D [22/Feb/2014:18:15:19 +0100] Discarding unused job-completed event...
    I [22/Feb/2014:18:15:19 +0100] [Job 300] Job completed.
    D [22/Feb/2014:18:15:19 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:15:19 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs"
    D [22/Feb/2014:18:15:19 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:15:19 +0100] Discarding unused printer-state-changed event...
    D [22/Feb/2014:18:15:19 +0100] cupsdMarkDirty(---J-)
    D [22/Feb/2014:18:15:19 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:15:20 +0100] [Job 300] Unloading...
    I [22/Feb/2014:18:15:50 +0100] Saving job.cache...
    D [22/Feb/2014:18:15:50 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Printing jobs and dirty files"
    D [22/Feb/2014:18:15:50 +0100] Report: clients=1
    D [22/Feb/2014:18:15:50 +0100] Report: jobs=300
    D [22/Feb/2014:18:15:50 +0100] Report: jobs-active=0
    D [22/Feb/2014:18:15:50 +0100] Report: printers=1
    D [22/Feb/2014:18:15:50 +0100] Report: stringpool-string-count=1580
    D [22/Feb/2014:18:15:50 +0100] Report: stringpool-alloc-bytes=8880
    D [22/Feb/2014:18:15:50 +0100] Report: stringpool-total-bytes=27368
    D [22/Feb/2014:18:16:31 +0100] [Client 13] HTTP_STATE_WAITING Closing on EOF
    D [22/Feb/2014:18:16:31 +0100] [Client 13] Closing connection.
    D [22/Feb/2014:18:16:31 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
    D [22/Feb/2014:18:16:32 +0100] [Client 13] Accepted from localhost:631 (IPv6)
    D [22/Feb/2014:18:16:32 +0100] [Client 13] Waiting for request.
    D [22/Feb/2014:18:16:32 +0100] [Client 13] GET /printers/ HTTP/1.1
    D [22/Feb/2014:18:16:32 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
    D [22/Feb/2014:18:16:32 +0100] [Client 13] No authentication data provided.
    D [22/Feb/2014:18:16:32 +0100] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[7] = "CUPS_STATEDIR=/run/cups"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[10] = "SERVER_ADMIN=root@bertrandrussell"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[11] = "SOFTWARE=CUPS/1.7.1"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
    D [22/Feb/2014:18:16:32 +0100] [CGI] envp[13] = "USER=root"
    D [22/Feb/2014:

  • BCP is not working in when i am executing using xp_cmdshell

    Declare @cmd varchar(300)
    Set @cmd=
    'bcp "SELECT definition + char(13) + ''GO'' FROM test.sys.sql_modules s INNER JOIN test.sys.procedures p ON [s].[object_id] = [p].[object_id] 
     WHERE p.name LIKE ''create%''" queryout "V:\SQLBackups\SP_scripts.sql" -C -T -t -w'
     exec xp_cmdshell @cmd
    below is the result i am getting its not creating any sql script its working perfectly from cmd prompt
    usage: bcp {dbtable | query} {in | out | queryout | format} datafile
      [-m maxerrors]            [-f formatfile]          [-e errfile]
      [-F firstrow]             [-L lastrow]             [-b batchsize]
      [-n native type]          [-c character type]      [-w wide character type]
      [-N keep non-text native] [-V file format version] [-q quoted identifier]
      [-C code page specifier]  [-t field terminator]    [-r row terminator]
      [-i inputfile]            [-o outfile]             [-a packetsize]
      [-S server name]          [-U username]            [-P password]
      [-T trusted connection]   [-v version]             [-R regional enable]
      [-k keep null values]     [-E keep identity values]
      [-h "load hints"]         [-x generate xml format file]
      [-d database name]        [-K application intent]
    NULL
    any help is highly appreciated 
    Thanks
    AK

    issue got resolved sql command should be in single line :)

  • SQL query Output  exceeds 65000 rows in excel

    Hi,
    I have a SQL file attached to my concurrent program. The query in the SQL file returns tab separated output that i need to email as a csv through the same SQL file.
    The issue I am facing is that the query returns about 157000 records but only 65536 are being displayed in the excel worksheet.
    How can I get all the records by accommodating them in multiple worksheets of the same excel file?
    Please help!
    I am using EBS 11i.
    Code I am using in SQL file:
    set pages 3000
    set lines 300
    set heading off
    set term off
    set feedback off
    set verify off
    set echo off
    set serverout off
    spool /tmp/TEST.csv
    select 'Header'
    from dual
    SELECT column1||CHR(9)||column2
    FROM staging_table
    spool off
    set lines 1000 pages 40 head off echo off veri off
    select 'cd /tmp; cat $XX_TOP/install/sql/disclaimer.txt > x.dat; cat '||'/tmp/TEST.csv'||' | uuencode '||'/tmp/TEST.csv'
    ||' > '||substr('/tmp/TEST.csv',1,length('/tmp/TEST.csv')-4)||'.dat >> x.dat'
    ||' ; mail -s ''' ||'&1'||''' '||'&2'||' < x.dat'
    ||' ; rm '||substr('/tmp/TEST.csv',1,length('/tmp/TEST.csv')-4)||'.dat'||' ;'
    from dual
    list
    spool /tmp/email.txt
    spool off
    host chmod 777 /tmp/email.txt
    host /tmp/email.txt
    Thanks
    Edited by: user10648285 on May 13, 2011 5:27 AM

    open a blank Excel (2007 version), go to Data tab, then from External Data click From Text, select the CSV file (That having more than 65k records), click import, then from "start import at row" select 65001 and click next button, select delimiter as Comma, click Next button and filaly finish.
    In this way you will have the data after 65k rows in excel. Now you can simply open that cvs file in excel then you will have first 65k records (remening part will be discarded).
    So now you have two excel files and you can paste it in two diff tab.
    Note - you can repeate this activity if you have more than 130000 records...

Maybe you are looking for