Program Interaction

I'm looking for some programming advice from someone with a little more programming experience than I, and/or would know an applicable reference in the API documentation that could help me out.
Problem:
The goal of this project is to create a Java Application which "watches" another window (perhaps analogous to a Telnet client or a similar String-based I/O application) and is able to log the activiy of this window, and to respond to specific strings and input commands accordingly.
We are stuck in the design phase. More specifically, we cannot figure out how our program would interact with the already running program. How would it interact with this program's I/O streams? Is this possible while remaining a seperate entity?
All of the workings of the program are otherwise simplistic. Matching strings, outputting to text files...All very basic. But the premise of the program is proving quite problematic. If anyone has any suggestions for Java standard classes to investigate, or code to share, please do, as it would seem I have personally hit a creative wall.
Thanks,
CS

The program I'm running is a specific client designed for use connecting to a specific server using undocumented protocol. The reason I wanted to begin with telnet is because I believe the I/O behaves about the same. The client is running locally, logging into a server by itself, all self-contained.
A java app that logs in itself COULD be the answer, except I do not know how the data is handled when it is sent between the client and the server (no idea on the encoding).
An alternative would be to write a program that watches the port that the program is connected on, and returns the raw data to a log. Then I could figure out how to decode the data, and write my own client. However, I still don't know how the authentication is handled and such so that could be problematic.
Any ideas?

Similar Messages

  • Create a program interactif

    HelloFriends
    he objective is to create a program that displays the data headers and posts sales orders, respectively VBAK and VBAP.
    Fields to display are: Order Number (VBAK-VBELN) command post (VBAP-POSNR), number of Article (VBAP-MATNR), quantity ordered (VBAP-KWMENG), unit (VBAP-VRKME) customer number main contractor (VBAK-KUNNR).
    Create 3 buttons (COMMAND, items, customers)
    Several actions must be triggered:
    u2022 Double-click on order number (or COMMAND button) = triggering transaction display order (VA03).
    u2022 Double-click on item number (or button ARTICLE) = triggering transaction display section (MM03).
    u2022 Double-click on the customer number (or button client) = triggering transaction display customer data bases (FD03).
    Thanks en advance
    Regard
    Moderator message - Please do not post your requirements and ask the forum to do your work for you - post locked
    Edited by: Rob Burbank on Oct 29, 2009 12:21 PM

    You can simply use standard report VA05.
    You can also create your own program.
    I am sorry, i cannot give you a complete report but guide you through. Go to SE38 - search for demo programs which displays flight data. All you need to create a program and observe the demo program then implement your own program with sales order data.

  • Command line program: can it implement keyListener??

    Hello,
    before I take the trouble to learn keyListener implementation, I am wondering if my program could even implement it. It is just a small game that just plays in the command window. I would like it to respond to the user pressing up, down, left and right keys. Is this possible with a keyListener or is this only possible in a 'windowed' application?
    And if you cannot register keys this way from the command line, then how would I make my program interactive. Do you know a link to an API description that explains how to set the program up to give a prompt?
    Thank you very much!
    -Mike.

    guess not...

  • How can I interact with a Database?

    I've got a project I'm working on in my Java class, and I can't find out how to make the program interact with a database. I was wondering if anybody here could help me out at all? My partners and I have already gotten most of the program figured out (but not programmed), and this is giving us a little bit of trouble. Our books don't have this information, and our teacher told us to check here, so here I am. Any help would be appreciated. Thanks.

    You need to get a jdbc driver for your database. Your vendor should provide you with one. If not then you can try looking for free implementations of that particular database.
    This jdbc driver is used by your program to execute sql statements in the database itself, removing the need for you to handle all the nitty gritty stuff. Kind of like ODBC.
    Like the earlier post pointed out, the tutorials is a good place to look at code samples
    I've got a project I'm working on in my Java class,
    and I can't find out how to make the program interact
    with a database. I was wondering if anybody here
    could help me out at all? My partners and I have
    already gotten most of the program figured out (but
    not programmed), and this is giving us a little bit of
    trouble. Our books don't have this information, and
    our teacher told us to check here, so here I am. Any
    help would be appreciated. Thanks.

  • Using a swing program with a gui-based jdbc program

    hello.
    my name is james mcfadden and i am a final year computing student at letterkenny IT in ireland. i have 2 programs here that i want to make interact with each other. the first one is a jdbc demo and the second one is a login program that i'll be using with the first one. i was trying to get the 2 programs interacting with each other yesterday but i was unsuccessful. would you be able to look at it as soon as possible? i have to be able to use these programs next week. thank you very much.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JOptionPane;
    import java.sql.*;
    public class Demo extends JFrame {
    static String url = "jdbc:odbc:VideoLibrary";
    static Statement stmt;
    static Connection con;
         //declare member variables here
         JTextField hostField;
    JTextField queryField;
    QueryTableModel qtm;
    JComboBox comboBox;
    public static void main(String args[]){
         //new LogOn();     
    int choice=-1;
              do{
    choice=getChoice();
    if(choice!=0){
    getSelected(choice);
    }while(choice!=5);
    System.exit(0);
    public static int getChoice(){
    String choice;
    int ch;
    choice = JOptionPane.showInputDialog(null,"1. Maintain product details\n"+"2. Maintain member details\n"+"3. Maintain rental details\n"+"4. View product, member and rental details\n"+"5. Log Off\n\n"+"Enter your choice");
              ch = Integer.parseInt(choice);
    return ch;
    public static void getSelected(int choice){   
              if(choice==1){
    addProducts();
    if(choice==2){
    addMembers();
              if(choice==3){
    addRentals();
              if(choice==4){
              Demo test = new Demo();
    test.setVisible(true);
    public static Connection getConnection(){
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con=DriverManager.getConnection(url,"","");
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    return con;
    public static void addProducts(){
    Connection con = getConnection();
    String addProduct1, addProduct2, addProduct3, addProduct4, addProduct5, addProduct6, addProduct7, addProduct8, addProduct9, addProduct10, addProduct11, addProduct12, addProduct13, addProduct14, addProduct15, addProduct16, addProduct17, addProduct18, addProduct19, addProduct20, addProduct21, addProduct22, addProduct23, addProduct24, addProduct25, addProduct26, addProduct27, addProduct28, addProduct29, addProduct30, addProduct31, addProduct32, addProduct33, addProduct34, addProduct35, addProduct36, addProduct37, addProduct38, addProduct39, addProduct40, addProduct41, addProduct42, addProduct43, addProduct44, addProduct45, addProduct46, addProduct47, addProduct48, addProduct49, addProduct50, addProduct51, addProduct52, addProduct53, addProduct54, addProduct55, addProduct56, addProduct57, addProduct58, addProduct59, addProduct60, addProduct61, addProduct62, addProduct63, addProduct64, addProduct65, addProduct66, addProduct67, addProduct68, addProduct69, addProduct70, addProduct71, addProduct72, addProduct73, addProduct74, addProduct75, addProduct76, addProduct77, addProduct78, addProduct79, addProduct80, addProduct81, addProduct82, addProduct83, addProduct84, addProduct85, addProduct86, addProduct87, addProduct88, addProduct89, addProduct90, addProduct91, addProduct92, addProduct93;
    addProduct1 = "insert into Product values (110001, 'The Killers - Sams Town', 5.00, 'G', 'CD', 2006)";
    addProduct2 = "insert into Product values (110002, 'Robbie Williams - Rudebox', 5.00, 'G', 'CD', 2006)";
    addProduct3 = "insert into Product values (110003, 'Razorlight - Razorlight', 5.00, 'G', 'CD', 2006)";
    addProduct4 = "insert into Product values (110004, 'My Chemical Romance - The Black Parade', 5.00, 'G', 'CD', 2006)";
    addProduct5 = "insert into Product values (110005, 'Snow Patrol - Eyes Open', 5.00, 'G', 'CD', 2006)";
    addProduct6 = "insert into Product values (110006, 'Scissor Sisters - Ta-Dah!', 5.00, 'G', 'CD', 2006)";
              addProduct7 = "insert into Product values (110007, 'Lovesounds - Justin Timberlake', 5.00, 'G', 'CD', 2006)";
    addProduct8 = "insert into Product values (110008, 'Director - We thrive on big cities', 5.00, 'G', 'CD', 2006)";
    addProduct9 = "insert into Product values (110009, 'Roxette - Roxette hits', 5.00, 'G', 'CD', 2006)";
    addProduct10 = "insert into Product values (110010, 'Pussy Cat Dolls - PCD', 5.00, 'G', 'CD', 2006)";
    addProduct11 = "insert into Product values (110011, 'Evanescence - The Open Door', 5.00, 'G', 'CD', 2006)";
    addProduct12 = "insert into Product values (110012, 'Deacon Blue - The Singles', 5.00, 'G', 'CD', 2006)";
              addProduct13 = "insert into Product values (110013, 'Rod Stewart - The Best of Rod Stewart', 5.00, 'G', 'CD', 2006)";
              addProduct14 = "insert into Product values (110014, 'P Diddy - Press Play', 5.00, 'G', 'CD', 2006)";
    addProduct15 = "insert into Product values (110015, 'James Morrison - Undiscovered', 5.00, 'G', 'CD', 2006)";
    addProduct16 = "insert into Product values (110016, 'BDay - Beyonce', 5.00, 'G', 'CD', 2006)";
    addProduct17 = "insert into Product values (110017, 'John Legend - Once Again', 5.00, 'G', 'CD', 2006)";
              addProduct18 = "insert into Product values (110018, 'Luther Vandross - The Ultimate', 5.00, 'G', 'CD', 2006)";
              addProduct19 = "insert into Product values (110019, 'Fleetwood Mac - Greatest Hits', 5.00, 'G', 'CD', 2006)";
              addProduct20 = "insert into Product values (110020, 'Kooks - Inside In Inside Out', 5.00, 'G', 'CD', 2006)";
              addProduct21 = "insert into Product values (110021, 'Scooter - Mind the Gap', 5.00, 'G', 'CD', 2007)";
              addProduct22 = "insert into Product values (110022, 'Scooter - Whos Got the Last', 5.00, 'G', 'CD', 2007)";
              addProduct23 = "insert into Product values (110023, 'Scooter - Jigga Jigga', 5.00, 'G', 'CD', 2007)";
              addProduct24 = "insert into Product values (110024, 'Dr. Alban - Look Whos Talking', 5.00, 'G', 'CD', 2007)";
              addProduct25 = "insert into Product values (110025, 'Dr. Alban - Hello Afrika', 5.00, 'G', 'CD', 2007)";
              addProduct26 = "insert into Product values (110026, 'Dr. Alban - Born in Africa', 5.00, 'G', 'CD', 2007)";
              addProduct27 = "insert into Product values (110027, 'Bon Jovi - Crossroad', 5.00, 'G', 'CD', 2007)";
              addProduct28 = "insert into Product values (110028, 'Bon Jovi - Have a Nice Day', 5.00, 'G', 'CD', 2007)";
              addProduct29 = "insert into Product values (110029, 'Bon Jovi - These Days', 5.00, 'G', 'CD', 2007)";
              addProduct30 = "insert into Product values (120001, 'Mission Impossible 3', 5.00, '15', 'DVD', 2006)";
              addProduct31 = "insert into Product values (120002, 'The Wind that Shakes the Barley', 5.00, '12', 'DVD', 2006)";
              addProduct32 = "insert into Product values (120003, 'The Break Up', 5.00, '12', 'DVD', 2006)";
              addProduct33 = "insert into Product values (120004, 'The Da Vinci Code', 5.00, '15', 'DVD', 2006)";
              addProduct34 = "insert into Product values (120005, 'Ice Age 2', 5.00, 'G', 'DVD', 2006)";
              addProduct35 = "insert into Product values (120006, 'Just My Luck', 5.00, '12', 'DVD', 2006)";
              addProduct36 = "insert into Product values (120007, 'Stormbreaker', 5.00, '12', 'DVD', 2006)";
              addProduct37 = "insert into Product values (120008, 'X-Men 3', 5.00, 'PG', 'DVD', 2006)";
              addProduct38 = "insert into Product values (120009, 'Lake House', 5.00, '12', 'DVD', 2006)";
              addProduct39 = "insert into Product values (120010, 'Inside Man', 5.00, '15', 'DVD', 2006)";
              addProduct40 = "insert into Product values (120011, 'Ultraviolet', 5.00, '12', 'DVD', 2006)";
              addProduct41 = "insert into Product values (120012, 'Friends with Money', 5.00, '15', 'DVD', 2006)";
              addProduct42 = "insert into Product values (120013, 'Fearless', 5.00, 'PG', 'DVD', 2006)";
              addProduct43 = "insert into Product values (120014, 'When A Stranger Calls', 5.00, '15', 'DVD', 2006)";
              addProduct44 = "insert into Product values (120015, 'Prime', 5.00, '15', 'DVD', 2006)";
              addProduct45 = "insert into Product values (120016, 'Poseidon', 5.00, '12', 'DVD', 2006)";
              addProduct46 = "insert into Product values (120017, 'Tristan & Isolde', 5.00, '12', 'DVD', 2006)";
              addProduct47 = "insert into Product values (120018, 'Little Mermaid', 5.00, '12', 'DVD', 2006)";
              addProduct48 = "insert into Product values (120019, 'The Fast & The Furious 3', 5.00, '12', 'DVD', 2006)";
              addProduct49 = "insert into Product values (120020, 'The Omen', 5.00, '15', 'DVD', 2006)";
              addProduct50 = "insert into Product values (120021, 'Eragon', 5.00, '15', 'DVD', 2007)";
              addProduct51 = "insert into Product values (120022, 'Arthur and the Minimoys', 5.00, '15', 'DVD', 2007)";
              addProduct52 = "insert into Product values (120023, 'The Pursuit of Happyness', 5.00, 'G', 'DVD', 2007)";
              addProduct53 = "insert into Product values (120024, 'Van Wilder 2: The Rise of Taj', 5.00, '15', 'DVD', 2007)";
              addProduct54 = "insert into Product values (120025, 'Blood Diamond', 5.00, '15', 'DVD', 2007)";
              addProduct55 = "insert into Product values (120026, 'Deja Vu', 5.00, '15', 'DVD', 2007)";
              addProduct56 = "insert into Product values (120027, 'For Your Consideration', 5.00, '18', 'DVD', 2007)";
              addProduct57 = "insert into Product values (120028, 'The Fountain', 5.00, 'PG', 'DVD', 2007)";
              addProduct58 = "insert into Product values (120029, 'Bobby', 5.00, '15', 'DVD', 2007)";
              addProduct59 = "insert into Product values (130001, 'Need for Special Carbon', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct60 = "insert into Product values (130002, 'Need for Special Carbon', 5.00, '15', 'Nintendo DS Game', 2006)";
              addProduct61 = "insert into Product values (130003, 'Need for Special Carbon', 5.00, '15', 'PSP Game', 2006)";
              addProduct62 = "insert into Product values (130004, 'Need for Special Carbon', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct63 = "insert into Product values (130005, 'EYETOY Play SPORTS', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct64 = "insert into Product values (130006, 'Family Fun With Playstation 2', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct65 = "insert into Product values (130007, 'Smackdown v Raw 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct66 = "insert into Product values (130008, 'Smackdown v Raw 07', 5.00, '15', 'PSP Game', 2006)";
              addProduct67 = "insert into Product values (130009, 'Smackdown v Raw 07', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct68 = "insert into Product values (130010, 'Sinister Legends', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct69 = "insert into Product values (130011, 'Pro Evolution Soccer 6', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct70 = "insert into Product values (130012, 'Pro Evolution Soccer 6', 5.00, '15', 'PSP Game', 2006)";
              addProduct71 = "insert into Product values (130013, 'Pro Evolution Soccer 6', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct72 = "insert into Product values (130014, 'BUZZ Jungle Party', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct73 = "insert into Product values (130015, 'FIFA 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct74 = "insert into Product values (130016, 'Killzone Liberation', 5.00, '15', 'PSP Game', 2006)";
              addProduct75 = "insert into Product values (130017, 'Gangs of London', 5.00, '15', 'PSP Game', 2006)";
              addProduct76 = "insert into Product values (130018, 'FIFA 07', 5.00, '15', 'PSP Game', 2006)";
              addProduct77 = "insert into Product values (130019, 'Passport to Amsterdam', 5.00, '15', 'PSP Game', 2006)";
              addProduct78 = "insert into Product values (130020, 'Tiger Woods 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct79 = "insert into Product values (130021, 'Tiger Woods 07', 4.90, '15', 'PSP Game', 2006)";
              addProduct80 = "insert into Product values (130022, 'Tiger Woods 07', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct81 = "insert into Product values (130023, 'Madden NFL 07', 4.90, '15', 'Playstation 2 Game', 2006)";
              addProduct82 = "insert into Product values (130024, 'Madden NFL 07', 4.90, '15', 'Nintendo DS Game', 2006)";
              addProduct83 = "insert into Product values (130025, 'Madden NFL 07', 4.90, '15', 'PSP Game', 2006)";
              addProduct84 = "insert into Product values (130026, 'Madden NFL 07', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct85 = "insert into Product values (130027, 'Gears of War', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct86 = "insert into Product values (130028, 'Star Trek: Legacy', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct87 = "insert into Product values (130029, 'Tekken: Dark Ressurection', 4.90, '15', 'PSP Game', 2006)";
              addProduct88 = "insert into Product values (130030, 'GTA Vice city stories PSP', 4.90, '15', 'PSP Game', 2006)";
              addProduct89 = "insert into Product values (130031, 'Star Trek: Encounters', 5.00, '15', 'Playstation 2 Game', 2007)";
              addProduct90 = "insert into Product values (130032, 'Star Trek: Shattered Universe', 5.00, '15', 'Xbox 360 Game', 2007)";
              addProduct91 = "insert into Product values (130033, 'Star Trek Voyager: Elite Force', 5.00, '15', 'Playstation 2 Game', 2007)";
              addProduct92 = "insert into Product values (130034, 'Battlestar Galactica', 5.00, '15', 'Xbox 360 Game', 2007)";
              addProduct93 = "insert into Product values (130035, 'Battlestar Galactica', 5.00, '15', 'Playstation 2 Game', 2007)";
              try {
    stmt = con.createStatement();
    stmt.executeUpdate(addProduct1);
    stmt.executeUpdate(addProduct2);
    stmt.executeUpdate(addProduct3);
    stmt.executeUpdate(addProduct4);
                   stmt.executeUpdate(addProduct5);
    stmt.executeUpdate(addProduct6);
              stmt.executeUpdate(addProduct7);
    stmt.executeUpdate(addProduct8);
    stmt.executeUpdate(addProduct9);
    stmt.executeUpdate(addProduct10);
    stmt.executeUpdate(addProduct11);
    stmt.executeUpdate(addProduct12);
              stmt.executeUpdate(addProduct13);
              stmt.executeUpdate(addProduct14);
    stmt.executeUpdate(addProduct15);
    stmt.executeUpdate(addProduct16);
    stmt.executeUpdate(addProduct17);
              stmt.executeUpdate(addProduct18);
              stmt.executeUpdate(addProduct19);
              stmt.executeUpdate(addProduct20);
              stmt.executeUpdate(addProduct21);
              stmt.executeUpdate(addProduct22);
              stmt.executeUpdate(addProduct23);
              stmt.executeUpdate(addProduct24);
              stmt.executeUpdate(addProduct25);
              stmt.executeUpdate(addProduct26);
              stmt.executeUpdate(addProduct27);
              stmt.executeUpdate(addProduct28);
              stmt.executeUpdate(addProduct29);
              stmt.executeUpdate(addProduct30);
              stmt.executeUpdate(addProduct31);
              stmt.executeUpdate(addProduct32);
              stmt.executeUpdate(addProduct33);
              stmt.executeUpdate(addProduct34);
              stmt.executeUpdate(addProduct35);
              stmt.executeUpdate(addProduct36);
              stmt.executeUpdate(addProduct37);
              stmt.executeUpdate(addProduct38);
              stmt.executeUpdate(addProduct39);
              stmt.executeUpdate(addProduct40);
              stmt.executeUpdate(addProduct41);
              stmt.executeUpdate(addProduct42);
              stmt.executeUpdate(addProduct43);
              stmt.executeUpdate(addProduct44);
              stmt.executeUpdate(addProduct45);
              stmt.executeUpdate(addProduct46);
              stmt.executeUpdate(addProduct47);
              stmt.executeUpdate(addProduct48);
              stmt.executeUpdate(addProduct49);
              stmt.executeUpdate(addProduct50);
              stmt.executeUpdate(addProduct51);
              stmt.executeUpdate(addProduct52);
              stmt.executeUpdate(addProduct53);
              stmt.executeUpdate(addProduct54);
              stmt.executeUpdate(addProduct55);
              stmt.executeUpdate(addProduct56);
              stmt.executeUpdate(addProduct57);
              stmt.executeUpdate(addProduct58);
              stmt.executeUpdate(addProduct59);
              stmt.executeUpdate(addProduct60);
              stmt.executeUpdate(addProduct61);
              stmt.executeUpdate(addProduct62);
              stmt.executeUpdate(addProduct63);
              stmt.executeUpdate(addProduct64);
              stmt.executeUpdate(addProduct65);
              stmt.executeUpdate(addProduct66);
              stmt.executeUpdate(addProduct67);
              stmt.executeUpdate(addProduct68);
              stmt.executeUpdate(addProduct69);
              stmt.executeUpdate(addProduct70);
              stmt.executeUpdate(addProduct71);
              stmt.executeUpdate(addProduct72);
              stmt.executeUpdate(addProduct73);
              stmt.executeUpdate(addProduct74);
              stmt.executeUpdate(addProduct75);
              stmt.executeUpdate(addProduct76);
              stmt.executeUpdate(addProduct77);
              stmt.executeUpdate(addProduct78);
              stmt.executeUpdate(addProduct79);
              stmt.executeUpdate(addProduct80);
              stmt.executeUpdate(addProduct81);
              stmt.executeUpdate(addProduct82);
              stmt.executeUpdate(addProduct83);
              stmt.executeUpdate(addProduct84);
              stmt.executeUpdate(addProduct85);
              stmt.executeUpdate(addProduct86);
              stmt.executeUpdate(addProduct87);
              stmt.executeUpdate(addProduct88);
              stmt.executeUpdate(addProduct89);
              stmt.executeUpdate(addProduct90);
              stmt.executeUpdate(addProduct91);
              stmt.executeUpdate(addProduct92);
              stmt.executeUpdate(addProduct93);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public static void addMembers(){
    Connection con = getConnection();
    String addMember1, addMember2, addMember3, addMember4, addMember5, addMember6, addMember7, addMember8, addMember9, addMember10;
    addMember1 = "insert into Member values (1234, 'Ann', 'Smyth', 'Upper Killult, Falcarragh, Co. Donegal', '(074)-9135210', '(087)-2030172', #5/11/85#, #5/12/06#)";
    addMember2 = "insert into Member values (2345, 'John', 'Murphy', 'Lower Killult, Falcarragh, Co. Donegal', '(074)-9135211', '(087)-2030173', #4/12/85#, #6/13/06#)";
    addMember3 = "insert into Member values (1324, 'James', 'McFadden', 'Lower Ardsbeg, Gortahork, Co. Donegal', '(074)-9165314', '(087)-2030171', #4/11/85#, #6/14/06#)";
    addMember4 = "insert into Member values (1235, 'Frankie', 'Ferry', 'Ardsmore, Gortahork, Co. Donegal', '(074)-9165325', '(087)-2031234', #6/13/60#, #6/15/06#)";
    addMember5 = "insert into Member values (1236, 'Daniel', 'McKimm', 'Ballyness, Falcarragh, Co. Donegal', '(074)-9135212', '(087)-2030184', #5/14/73#, #6/16/06#)";
    addMember6 = "insert into Member values (2346, 'Stephen', 'Doohan', 'Ballyness, Falcarragh, Co. Donegal', '(074)-9135213', '(087)-2030185', #6/13/85#, #5/13/06#)";
    addMember7 = "insert into Member values (2347, 'James', 'Ferry', 'Meenlaragh, Gortahork, Co.Donegal', '(074)-9165360', '(087)-2031345', #9/12/85#, #5/14/06#)";
    addMember8 = "insert into Member values (2348, 'Liam', 'Cannon', 'Derryconner, Gortahork, Co.Donegal', '(074)-9165324', '(087)-2031456', #4/11/86#, #5/15/06#)";
    addMember9 = "insert into Member values (2401, 'Ciaran', 'Ferry', 'Brinalack, Gweedore, Co.Donegal', '(074)-9176425', '(087)-2030282', #9/12/85#, #5/16/06#)";
    addMember10 = "insert into Member values (2402, 'Ciaran', 'McGee', 'Derrybeg, Gweedore, Co.Donegal', '(074)-9176536', '(087)-2030393', #9/14/85#, #5/18/06#)";
    try {
    stmt = con.createStatement();
    stmt.executeUpdate(addMember1);
    stmt.executeUpdate(addMember2);
    stmt.executeUpdate(addMember3);
                   stmt.executeUpdate(addMember4);
                   stmt.executeUpdate(addMember5);
                   stmt.executeUpdate(addMember6);
                   stmt.executeUpdate(addMember7);
                   stmt.executeUpdate(addMember8);
                   stmt.executeUpdate(addMember9);
                   stmt.executeUpdate(addMember10);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
         public static void addRentals(){
    Connection con = getConnection();
    String addRental1, addRental2, addRental3, addRental4, addRental5, addRental6, addRental7, addRental8, addRental9, addRental10;
    addRental1 = "insert into Rental values (110001, 'The Killers - Sams Town', 1234, 'Ann', 'Smyth', #9/01/06#, #9/10/06#, 'Yes', 2.00)";
    addRental2 = "insert into Rental values (120001, 'Mission Impossible 3', 2345, 'John', 'Murphy', #9/02/06#, #9/09/06#, 'No', 0.00)";
    addRental3 = "insert into Rental values (130001, 'Need for Special Carbon', 1324, 'James', 'McFadden', #9/03/06#, #9/12/06#, 'Yes', 2.00)";
    addRental4 = "insert into Rental values (110002, 'Robbie Williams - Rudebox', 1235, 'Frankie', 'Ferry', #9/04/06#, #9/11/06#, 'No', 0.00)";
    addRental5 = "insert into Rental values (120015, 'Prime', 1236, 'Daniel', 'McKimm', #9/05/06#, #9/14/06#, 'Yes', 2.00)";
    addRental6 = "insert into Rental values (130015, 'FIFA 07', 2346, 'Stephen', 'Doohan', #9/06/06#, #9/13/06#, 'No', 0.00)";
    addRental7 = "insert into Rental values (110009, 'Roxette - Roxette hits', 2347, 'James', 'Ferry', #9/07/06#, #9/16/06#, 'Yes', 2.00)";
    addRental8 = "insert into Rental values (120003, 'The Break Up', 2348, 'Liam', 'Cannon', #9/08/06#, #9/15/06#, 'No', 0.00)";
    addRental9 = "insert into Rental values (130027, 'Gears of War', 2401, 'Ciaran', 'Ferry', #9/09/06#, #9/18/06#, 'Yes', 2.00)";
    addRental10 = "insert into Rental values (110021, 'Scooter - Mind the Gap', 2402, 'Ciaran', 'McGee', #9/10/06#, #9/17/06#, 'No', 0.00)";
    try {
    stmt = con.createStatement();
    stmt.executeUpdate(addRental1);
    stmt.executeUpdate(addRental2);
    stmt.executeUpdate(addRental3);
                   stmt.executeUpdate(addRental4);
                   stmt.executeUpdate(addRental5);
                   stmt.executeUpdate(addRental6);
                   stmt.executeUpdate(addRental7);
                   stmt.executeUpdate(addRental8);
                   stmt.executeUpdate(addRental9);
                   stmt.executeUpdate(addRental10);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public Demo(){
    super("Demo Test Frame");
    setSize(350, 200);
    comboBox = new JComboBox();
    comboBox.addItem("jdbc:odbc:VideoLibrary");
    qtm = new QueryTableModel();
    JTable table = new JTable(qtm);
    JScrollPane scrollpane = new JScrollPane(table);
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(3, 2));
    p1.add(comboBox);
    p1.add(new JLabel("Enter your query: "));
    p1.add(queryField = new JTextField());
    p1.add(new JLabel("Click here to send: "));
    JButton jb = new JButton("Search");
    jb.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    qtm.setHostURL();
    qtm.setQuery(queryField.getText().trim());
    p1.add(jb);
    getContentPane().add(p1, BorderLayout.NORTH);
    getContentPane().add(scrollpane, BorderLayout.CENTER);
    }//end class
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class LogOn extends JPanel{
         private static JTextField username=null;
         private static JPasswordField password=null;
         private static JButton button=null;
    public LogOn(){
              setSize(260,160);
              username=new JTextField(15);
         password=new JPasswordField(15);
              //JPanel pane=new JPanel();
              JLabel usernameLabel=new JLabel("Username: ");
              JLabel passwordLabel=new JLabel("Password: ");
              /*pane.*/add(usernameLabel);
              /*pane.*/add(username);
              /*pane.*/add(passwordLabel);
              /*pane.*/add(password);
              //setContentPane(pane);
              show();
              button=new JButton("Ok");
              add(button);
         button.addActionListener(new ButtonListener());
              JFrame frame=new JFrame("Welcome to Home Entertainment");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.getContentPane().add(new LogOn());
         frame.pack();
         frame.setVisible(true);
         private class ButtonListener implements ActionListener{
         public void actionPerformed(ActionEvent e){
              try{
                        new Demo();
                   catch(Exception ex){}     
    }

    here's the code (again, but it doesn't look as ugly as it did earlier on).
    i have three programs, only 2 of which can interact with each other. QueryTestTable.java is used with Demo.java to display data in a JTable. the third program is called LogOn.java. i want to use the LogOn.java (username and password for logging on to the system) program in order to be able to use the other 2 programs. i have to be able to use these programs next week. thank you very much.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JOptionPane;
    import java.sql.*;
    public class Demo extends JFrame {
       static String url = "jdbc:odbc:VideoLibrary";
       static Statement stmt;
       static Connection con;
       //declare member variables here
       JTextField hostField;
       JTextField queryField;
       QueryTableModel qtm;
       JComboBox comboBox;
       public static void main(String args[]){
          //new LogOn();
          int choice=-1;
          do{
             choice=getChoice();
             if(choice!=0){
                getSelected(choice);
          }while(choice!=5);
          System.exit(0);
       public static int getChoice(){
          String choice;
          int ch;
          choice = JOptionPane.showInputDialog(null,"1. Maintain product      
          details\n"+"2. Maintain member details\n"+"3. Maintain rental 
          details\n"+"4. View product, member and rental details\n"+"5. Log 
          Off\n\n"+"Enter your choice");
          ch = Integer.parseInt(choice);
          return ch;
       public static void getSelected(int choice){
          if(choice==1){
             addProducts();
          if(choice==2){
             addMembers();
          if(choice==3){
             addRentals();
          if(choice==4){
             Demo test = new Demo();
             test.setVisible(true);
       public static Connection getConnection(){
          try {
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          catch(java.lang.ClassNotFoundException e) {
             System.err.print("ClassNotFoundException: ");
             System.err.println(e.getMessage());
          try {
             con=DriverManager.getConnection(url,"","");
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
          return con;
       public static void addProducts(){
          Connection con = getConnection();
          String addProduct1, addProduct2;
          addProduct1 = "insert into Product values (110001, 'The Killers -  
          Sams Town', 5.00, 'G', 'CD', 2006)";
          addProduct2 = "insert into Product values (110002, 'Robbie
          Williams - Rudebox', 5.00, 'G', 'CD', 2006)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addProduct1);
             stmt.executeUpdate(addProduct2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public static void addMembers(){
          Connection con = getConnection();
          String addMember1, addMember2;
          addMember1 = "insert into Member values  
          (1234, 'Ann', 'Smyth', 'Upper Killult, Falcarragh, Co. Donegal', '(074)-
          9135210', '(087)-2030172', #5/11/85#, #5/12/06#)";
          addMember2 = "insert into Member values
          (2345, 'John', 'Murphy', 'Lower Killult, Falcarragh, Co.
          Donegal', '(074)-9135211', '(087)-2030173', #4/12/85#, #6/13/06#)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addMember1);
             stmt.executeUpdate(addMember2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public static void addRentals(){
          Connection con = getConnection();
          String addRental1, addRental2;
          addRental1 = "insert into Rental values (110001, 'The Killers - 
          Sams Town', 1234, 'Ann', 'Smyth', #9/01/06#, #9/10/06#, 'Yes', 2.00)";
          addRental2 = "insert into Rental values (120001, 'Mission
          Impossible 3', 2345, 'John', 'Murphy', #9/02/06#, #9/09/06#, 'No',
          0.00)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addRental1);
             stmt.executeUpdate(addRental2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public Demo(){
          super("Demo Test Frame");
          setSize(350, 200);
          comboBox = new JComboBox();
          comboBox.addItem("jdbc:odbc:VideoLibrary");
          qtm = new QueryTableModel();
          JTable table = new JTable(qtm);
          JScrollPane scrollpane = new JScrollPane(table);
          JPanel p1 = new JPanel();
          p1.setLayout(new GridLayout(3, 2));
          p1.add(comboBox);
          p1.add(new JLabel("Enter your query: "));
          p1.add(queryField = new JTextField());
          p1.add(new JLabel("Click here to send: "));
          JButton jb = new JButton("Search");
          jb.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                      qtm.setHostURL();
                      qtm.setQuery(queryField.getText().trim());
          p1.add(jb);
          getContentPane().add(p1, BorderLayout.NORTH);
          getContentPane().add(scrollpane, BorderLayout.CENTER);
    }//end class
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class LogOn extends JPanel{
       private static JTextField username=null;
       private static JPasswordField password=null;
       private static JButton button=null;
       public LogOn(){
          setSize(260,160);
          username=new JTextField(15);
          password=new JPasswordField(15);
          //JPanel pane=new JPanel();
          JLabel usernameLabel=new JLabel("Username: ");
          JLabel passwordLabel=new JLabel("Password: ");
          /*pane.*/add(usernameLabel);
          /*pane.*/add(username);
          /*pane.*/add(passwordLabel);
          /*pane.*/add(password);
          //setContentPane(pane);
          show();
          button=new JButton("Ok");
          add(button);
          button.addActionListener(new ButtonListener());
          JFrame frame=new JFrame("Welcome to Home Entertainment");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.getContentPane().add(new LogOn());
          frame.pack();
          frame.setVisible(true);
       private class ButtonListener implements ActionListener{
          public void actionPerformed(ActionEvent e){
             try{
                new Demo();
             catch(Exception ex){}
    import java.sql.*;
    import java.io.*;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.table.*;
    public class QueryTableModel extends AbstractTableModel{
       Vector cache; 
       int colCount;
       String[] headers;
       Connection db;
       Statement statement;
       String currentURL;
       public QueryTableModel(){
          cache=new Vector();
          try{
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          catch(Exception e){
             System.out.println("problem loading the driver ");
       public String getColumnName(int i){
          return headers;
    public int getColumnCount(){
    return colCount;
    public int getRowCount(){
    return cache.size();
    public Object getValueAt(int row, int col){
    return ((String[])cache.elementAt(row))[col];
    public void setHostURL(){
    String url = "jdbc:odbc:VideoLibrary";
    closeDB();
    try{
    db=DriverManager.getConnection(url,"","");
    statement=db.createStatement();
    catch(Exception e){
    System.out.println("Could not initialize the database.");
    e.printStackTrace();
    public void setQuery(String q){
    cache=new Vector();
    String s="select * from Product";
    try{
    ResultSet rs=statement.executeQuery(q);
    ResultSetMetaData meta=rs.getMetaData();
    colCount=meta.getColumnCount();
    headers=new String[colCount];
    for(int h=1;h<=colCount;h++){
    headers[h-1]=meta.getColumnName(h);
    while(rs.next()){
    String[] record=new String[colCount];
    for(int i=0;i<colCount;i++){
    record[i]=rs.getString(i+1);
    cache.addElement(record);
    fireTableChanged(null);
    catch(Exception e){
    cache=new Vector();
    e.printStackTrace();
    public void initDB(String url){
    try{
    db=DriverManager.getConnection(url);
    statement=db.createStatement();
    catch(Exception e){
    System.out.println("Could not initialize the database.");
    e.printStackTrace();
    public void closeDB(){
    try{
    if(statement!=null){
    statement.close();
    if(db!=null){
    db.close();
    catch(Exception e){
    System.out.println("Could not close the current connection.");
    e.printStackTrace();

  • Studying a Big LabVIEW program

    In the past, when I had a to modify a big and messy program (with only 2% of documentation), I will study it without a set method, and when I have an adaquate understanding of the program, I would re-code it from scartch, since the original program is messy.
    Right now, I am looking a piece of code that is big, but not too messy (just sort of messy and with ouly 2% of documentation).  I think I can understand the whole program if I have the right approach to it.  I need to come up with the right method to understand the program, so that I don't get too frustated and quit my job .  Below is my approach, please comment and also let me know what's your approach.
    1. Understand the flow of the program
    2. Clean up the block diagram.
    3. Go through each subvi and document each of them.
    4. Understand how the program interact with input and output
    Kudos and Accepted as Solution are welcome!

    jyang72211 wrote:
    I think I can understand the whole program if I have the right approach to it.  I need to come up with the right method to understand the program, so that I don't get too frustated and quit my job .  Below is my approach, please comment and also let me know what's your approach.
    1. Understand the flow of the program
    2. Clean up the block diagram.
    3. Go through each subvi and document each of them.
    4. Understand how the program interact with input and output
    This looks like a pretty good approach.
    I think there's actually a Refactoring Checklist in the LabVIEW Core 2 training materials.
    This webcast may be helpful too.
    NI Webcast on inheriting code

  • JSP Calling C Program Output

    Dear Sir,
    I am using JSP on Appache Web Server on Window 2000 machine . There is another unix machine having a C program for our legacy application and this C program interacts with ORACLE RDBMS and generate MIS Report as a ASCII File .
    To have WEB Enabled this MIS Report , I am looking for calling this C Program from a JSP program . A User can submit the request from Browser for this JSP and subsequently this JSP should call this C Program and ASCII output of this C Program then must be returned by JSP to the Browser Client .
    Please guide me , how to go for this .
    Regards
    B V Mittal

    My recent project did just exactly what you are doing now.
    You can follow these steps to implement a solution for you problem.
    1. modify the C program to become a server that listens on a particular port
    2. use XML as a transport layer. (you can use binary but in my case I prefer XML)
    3. your servlet invokes a java client that set an XML message to the C server.
    4. C server processes information and return output in XML back to the java client
    5. Finally your servlet will take that output send to the jsp
    in step 3
    writing a java client using Socket
    Good luck

  • Driver program question

    i am a student who is in an intro to java course. my question
    involves using a driver program. my assignment is to create a
    driver program that prints out 20 random playing cards. i wrote
    a card class that looks like this class Card
         private String suit;
         private String face;     
         public Card (String suit, String face)
         public String getSuit()
                   return suit;
         public String getFace()
                   return face;
         public String toString()
                   return (suit+" "+face);
    }first, is this the correct code will need for the driver class,
    and 2nd, if it is correct, how exactly would i set up the driver program.
    i know that i would use a for loop to get it to print 20 times, but im not
    exactly sure how the two programs interact with each other ( how info in
    one is passed to the other and vice versa) i also think i am goin to do 2
    switch statements to get the face(ie 2,5, king) and the suit( heart, club)
    and for each switch statement i am generating a random # (suit 0-3) and
    face(0-12). where would i need to put these switch statemetns in the
    driver program? i have some basic swtich statemetns i have written
    and if anyone would like to see what im talking about ill post them

    Make a Deck class which will hold 52 cards. Create the cards in the constructor of Deck. Add a shuffle() method to the Deck (See the Arrays class - hint, hint). Then your 'driver' becomesclass CardDriver {
        public static void main(String[] args) {
            Deck myDeck = new Deck();
            myDeck.shuffle();
            for (int i=0; i<20; i++) {
                System.out.println("Card "+i+" is "+myDeck.getCard(i));
    }

  • Making separate classes interact

    For an AI program I am making I need to get two programs interacting - I am doing this by using sockets and a threads.
    This program is a smaller version of th AI program. There are two of these programs - opposites i.e. where one says female the other says male and so on.
    Ok this is what should happen:
    -Program starts and background threads starts with it (always reading input).
    -Command is issued by the other program ("mate").
    -This triggers the connect() method which sends a command to the other program (action triggered) therefore they have interacted.
    Please give me any hints as to why this does not work.
    Thanks
    John
    import java.util.Scanner;
    import java.util.Vector;
    import java.util.Random;
    import java.io.*;
    import java.net.ConnectException;
    import java.net.ServerSocket;
    import java.net.Socket;
    //set path="C:\Program Files\Java\jdk1.5.0_08\bin"
    public class AIPetTest
         public Socket socket = null;
         public String command = "";
         public static Vector<String> commands = null;
         public String line = null;
         public String start()
              backgroundThread.start();
              Scanner command = new Scanner(System.in);
              String commandIssued = command.nextLine();
              if(commandIssued.equals("mate"))
                   try
                        connect("mate");
                   catch(Exception e)
                        System.err.println("Caught Exception: " + e.getMessage());
              return null;
         public void connect(String update) throws Exception
              System.out.println(update);
             try
                   System.out.println("Connection made");
                  socket = new Socket("localhost", 1977); // throws Exception below, if no connection is possible
             catch(ConnectException ce)
                  System.out.println("Connection lost");
                  socket = new ServerSocket(1977).accept();
                  // no connection was possible, so make app server
                  //socket = new ServerSocket(1977).accept();
                  // be aware that accept is blocking!
              command = commands.remove(0);  // Take the 1st object out
              System.out.println("Command: " + command);
              if(command.equals("updateMale")) // incoming
                   System.out.println("Mating");
              socket.getOutputStream().write(("updateFemale").getBytes());
              //socket.close();
        Thread backgroundThread = new Thread(new Runnable() // reads all incoming messages and stores them in a vector
             public void run()
                   System.out.println("Thread running");
                   commands = new Vector<String>();
                   try
                        BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                        while(true)
                              line = in.readLine();
                              if(line == null)
                                   break; // out of the while
                              commands.add(new String(line + '\n'));
                        in.close();
                   catch(IOException ioe)
                        System.err.println("Caught Exception: " + ioe.getMessage());
         public static void main(String[] args)
              AIPetTest pet = new AIPetTest();
              pet.start();
    }

    Both programs need to be a server and a client as
    they need to interact each way i.e. "mate" can be
    input in each program.
    A socket connection always has a server and a client. The client must always connect to the server.
    Once a connection exists you can send messages both ways.
    You could create two connections but that sounds like an unlikely scenario.
    I know a bit about socket programming in Java as I
    have made a remote admin tool before.
    I have to make each program always listen for
    commands - can you tell me if the thread does this?A socket either sends or gets messages. When it gets a message it does something. That has nothing to do with how the connection is established though.

  • Where is Bridge support in Dreamweaver 2014?

    Dreamweaver 2014 does not have Browse Bridge in File menu and you can't drag files from Bridge into Dreamweaver without being told the file is not in the root folder even though it is. Has Adobe removed Bridge support from Dreamweaver 2014? That is a core part of Adobe program interaction!.

    Dreamweaver 2014 does not have Browse Bridge in File menu
    Correct. In previous versions of Dreamweaver, this menu item only appeared when the complete Suite was installed; not in the standalone version.
    you can't drag files from Bridge into Dreamweaver without being told the file is not in the root folder even though it is
    You can drag files from Bridge into Dreamweaver Design View. You will not be told that the file is not in the root folder when you choose a file that is in the root folder. If the file is not in the root folder, it will be placed there if the answer to the alert message was in the affirmative.
    Has Adobe removed Bridge support from Dreamweaver 2014?
    No.
    That  (Bridge) is a core part of Adobe program interaction!.
    Correct.

  • Newbie:need help to use xml as database

    helo experts ,
    i am totally new to Xml/java api
    i need to develop a application in which my java program interact with a xml file
    which will contain product inventory of a online seller store(i means what goods they are selling their price and something) and i ll use this xml file to search by my java program to find a specified product and it's price range,
    now i want also a resource so that less educated person can enter their inventory information in xml file(i means less educated person here who have no knowledge about xml like if i use a databse like oracle or simple msaccess,
    for this purpose i ll simple provide an interface to the user to enter inforfation without let him knowing about any database detail)
    so is it possible what do i want and please give me some guidence to do this task..i am reading about xml but am not understanding is there any special software that provide interface to enter and delete elements in xml file or i have to create it with java language ....s

    hello exzperts
    any suggestion ..............

  • PO archiving

    My settings in config are Residence time 1 is 730 and residence time 2 is 365
    This means if there is no change in PO for 730 days then deletion indicator will be set.
    Then after 365 days , the PO will be deleted from the data base.
    1. I guess for residence time 2 period, we will not be able to do any changes in PO, is this correct?
       If yes, then why residence time2 is there?
    2. I manually deleted a PO line item. In next archival run (runs every month) this PO is marked as eligible for archival.Means I am not able to do any changes in this PO.
    Where I can find the settings for this?
    Please advice.

    a deletion indicator set manually or via the preproc program in archiving does not restrict the user from doing any changes.
    Please read OSS Note 948493 - Residence time in new reports RM06EV47, RM06BV47
    here SAP explains how the preproc and the write program interact with the residence time.

  • How do I manipulate a URL to download?

    I have a URL (http://www.SomeImportantURL.com/getInfo?param1="foo"&param2="bar"&param3="bat") which, when I enter it into a browser, returns a download dialog. Using this dialog, I can (optionally) name the file, specify its save location, and then download it. All I have to do is press "Finish" to download.
    Now, I want to do this 1000 times, modifying "foo", "bar", and "bat" each time. Obviously, I would rather not sit at my computer and manually name and press "Finish" a thousand times. This should be something easily automated, but I can't see how to use this URL in a Java program to do the download. I have gotten as far as creating a java.net.URL object to hold the URL and calling openConnection() on it, but I really have no idea what I'm doing. What I have done doesn't invoke a browser window or anything like that. I would appreciate someone helping me out with two goals:
    1. What specific code do I need to write in order to invoke this download, make the modifications to the filename that I want, and then do the equivalent of pressing "Finish"? I can take care of the obvious URL string concatenation and looping, but I am clueless as to how I actually make my program interact through the internet with the server and get a download going.
    2. What larger background pieces am I missing that would allow me to understand what I need to do without asking all of you how to do this?
    If it makes a difference, I'm trying to run this on a Windows Vista box.

    Stephen8 wrote:
    I have a URL (http://www.SomeImportantURL.com/getInfo?param1="foo"&param2="bar"&param3="bat") which, when I enter it into a browser, returns a download dialog.
    Its worth noting that this only brings up a form which in turn allows you to download. It does do the download itself.
    Using this dialog, I can (optionally) name the file, specify its save location, and then download it. All I have to do is press "Finish" to download.I suspect, yhe page the Finish submits to is the one which does the download.
    >
    Now, I want to do this 1000 times, modifying "foo", "bar", and "bat" each time. Obviously, I would rather not sit at my computer and manually name and press "Finish" a thousand times. This should be something easily automated, but I can't see how to use this URL in a Java program to do the download.I am pretty sure you are using the wrong URL.
    I have gotten as far as creating a java.net.URL object to hold the URL and calling openConnection() on it, but I really have no idea what I'm doing. What I have done doesn't invoke a browser window or anything like that. I would appreciate someone helping me out with two goals:
    1. What specific code do I need to write in order to invoke this download, You are submitting a form I guess so you need to get the right URL, and send to it the contents of what the form would send.
    make the modifications to the filename that I want, and then do the equivalent of pressing "Finish"? You would be past the point of pressing Finish.
    >
    2. What larger background pieces am I missing that would allow me to understand what I need to do without asking all of you how to do this?I suggest you search google for example code and turorials on this subject. A simple proxy server might be useful to be able to see the messages which are send and received from your server.

  • Need help: Unable to handle kernel paging request at virtual address; javac

    Hi
    we're working with apache tomcat under linux mandrake 10. (x86)
    when our webapp get recompiled the server stop responding
    (web server, telnet, etc... are down, but the server is pingable)
    after a hard reboot , we get this message in var/log/messages :
    Unable to handle kernel paging request at virtual address 02000064
    kernel: printing eip:
    kernel: c018e379
    kernel: *pde = 00000000
    kernel: Oops: 0000 [#1]
    kernel: CPU: 1
    kernel: EIP: 0060:[proc_pid_stat+137/928] Not tainted VLI
    kernel: EIP: 0060:[<c018e379>] Not tainted VLI
    kernel: EFLAGS: 00010286
    kernel: EIP is at proc_pid_stat+0x89/0x3a0
    kernel: eax: 00000000 ebx: 02000000 ecx: d85ac000 edx: 92960700
    kernel: esi: d11ea6f0 edi: ded440a0 ebp: cf0ddf44 esp: cf0ddee4
    kernel: ds: 007b es: 007b ss: 0068
    kernel: Process javac (pid: 2415, threadinfo=cf0dc000 task=d11ea6f0)
    kernel: Stack: c0143d5a c1259e78 00000000 c1259e78 c0343980 0000015b 00000000 cf0ddf40
    attached ther is kernel messages, pci , dmesg.
    Thanks
    Massimo TRENTO
    Apache Tomcat/4.1.30
    j2sdk1.4.2_01
    kernel 2.6.3-7mdksmp #1 SMP
    --- DMESG ---
    00100000 - 000000001f6f0000 (usable)
    BIOS-e820: 000000001f6f0000 - 000000001f6fb000 (ACPI data)
    BIOS-e820: 000000001f6fb000 - 000000001f700000 (ACPI NVS)
    BIOS-e820: 000000001f700000 - 000000001f780000 (usable)
    BIOS-e820: 000000001f780000 - 0000000020000000 (reserved)
    BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
    BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
    BIOS-e820: 00000000ffb80000 - 00000000ffc00000 (reserved)
    BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
    503MB LOWMEM available.
    found SMP MP-table at 000f7920
    hm, page 000f7000 reserved twice.
    hm, page 000f8000 reserved twice.
    hm, page 0009f000 reserved twice.
    hm, page 000a0000 reserved twice.
    On node 0 totalpages: 128896
    DMA zone: 4096 pages, LIFO batch:1
    Normal zone: 124800 pages, LIFO batch:16
    HighMem zone: 0 pages, LIFO batch:1
    DMI present.
    ACPI: RSDP (v000 PTLTD ) @ 0x000f7980
    ACPI: RSDT (v001 PTLTD RSDT 0x00050000 LTP 0x00000000) @ 0x1f6f74ed
    ACPI: FADT (v001 FSC D156x 0x00050000 0x000f4240) @ 0x1f6f751d
    ACPI: MADT (v001 FSC      APIC 0x00050000 CSF 0x00000000) @ 0x1f6faf76
    ACPI: BOOT (v001 PTLTD $SBFTBL$ 0x00050000 LTP 0x00000001) @ 0x1f6fafd8
    ACPI: DSDT (v001 FSC D156x 0x00050000 MSFT 0x0100000e) @ 0x00000000
    ACPI: PM-Timer IO Port: 0xf008
    ACPI: Local APIC address 0xfee00000
    ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
    Processor #0 15:2 APIC version 20
    ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
    Processor #1 15:2 APIC version 20
    ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
    Using ACPI for processor (LAPIC) configuration information
    Intel MultiProcessor Specification v1.1
    Virtual Wire compatibility mode.
    OEM ID: Product ID: APIC at: 0xFEE00000
    I/O APIC #2 Version 32 at 0xFEC00000.
    Enabling APIC mode: Flat. Using 1 I/O APICs
    Processors: 2
    Built 1 zonelists
    Kernel command line: auto BOOT_IMAGE=linux-nonfb ro root=301 noapic devfs=mount acpi=ht resume=/dev/hda5
    Initializing CPU#0
    PID hash table entries: 2048 (order 11: 16384 bytes)
    Detected 2793.223 MHz processor.
    Using pmtmr for high-res timesource
    Console: colour VGA+ 80x25
    Memory: 504916k/515584k available (1920k kernel code, 9820k reserved, 892k data, 288k init, 0k highmem)
    Checking if this processor honours the WP bit even in supervisor mode... Ok.
    Calibrating delay loop... 5537.79 BogoMIPS
    Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
    Freeing initrd memory: 225k freed
    CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
    CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000
    CPU: Trace cache: 12K uops, L1 D cache: 8K
    CPU: L2 cache: 512K
    CPU: Physical Processor ID: 0
    CPU: After all inits, caps: bfebfbff 00000000 00000000 00000080
    Intel machine check architecture supported.
    Intel machine check reporting enabled on CPU#0.
    CPU#0: Intel P4/Xeon Extended MCE MSRs (12) available
    CPU#0: Thermal monitoring enabled
    Enabling fast FPU save and restore... done.
    Enabling unmasked SIMD FPU exception support... done.
    Checking 'hlt' instruction... OK.
    POSIX conformance testing by UNIFIX
    CPU0: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
    per-CPU timeslice cutoff: 1462.56 usecs.
    task migration cache decay timeout: 2 msecs.
    enabled ExtINT on CPU#0
    ESR value before enabling vector: 00000000
    ESR value after enabling vector: 00000000
    Booting processor 1/1 eip 3000
    Initializing CPU#1
    masked ExtINT on CPU#1
    ESR value before enabling vector: 00000000
    ESR value after enabling vector: 00000000
    Calibrating delay loop... 5570.56 BogoMIPS
    CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
    CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000
    CPU: Trace cache: 12K uops, L1 D cache: 8K
    CPU: L2 cache: 512K
    CPU: Physical Processor ID: 0
    CPU: After all inits, caps: bfebfbff 00000000 00000000 00000080
    Intel machine check architecture supported.
    Intel machine check reporting enabled on CPU#1.
    CPU#1: Intel P4/Xeon Extended MCE MSRs (12) available
    CPU#1: Thermal monitoring enabled
    CPU1: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
    Total of 2 processors activated (11108.35 BogoMIPS).
    cpu_sibling_map[0] = 1
    cpu_sibling_map[1] = 0
    Using local APIC timer interrupts.
    calibrating APIC timer ...
    ..... CPU clock speed is 2792.0645 MHz.
    ..... host bus clock speed is 199.0474 MHz.
    checking TSC synchronization across 2 CPUs: passed.
    Starting migration thread for cpu 0
    Starting migration thread for cpu 1
    Brought up 1 CPUs
    NET: Registered protocol family 16
    EISA bus registered
    PCI: PCI BIOS revision 2.10 entry at 0xfd8cb, last bus=3
    PCI: Using configuration type 1
    mtrr: v2.0 (20020519)
    ACPI: Subsystem revision 20040211
    ACPI: Interpreter disabled.
    Linux Plug and Play Support v0.97 (c) Adam Belay
    PnPBIOS: Disabled
    PCI: Probing PCI hardware
    PCI: Probing PCI hardware (bus 00)
    PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
    Transparent bridge - 0000:00:1e.0
    PCI: Discovered primary peer bus 01 [IRQ]
    PCI: Using IRQ router PIIX/ICH [8086/24d0] at 0000:00:1f.0
    PCI: IRQ 0 for device 0000:00:1f.1 doesn't match PIRQ mask - try pci=usepirqmask
    PCI: Found IRQ 10 for device 0000:00:1f.1
    PCI: Sharing IRQ 10 with 0000:00:1d.2
    PCI: Sharing IRQ 10 with 0000:00:1f.2
    PCI: Sharing IRQ 10 with 0000:02:01.0
    SBF: Simple Boot Flag extension found and enabled.
    SBF: Setting boot flags 0x1
    apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
    apm: disabled - APM is not SMP safe.
    Starting balanced_irq
    ikconfig 0.7 with /proc/config*
    VFS: Disk quotas dquot_6.5.1
    devfs: 2004-01-31 Richard Gooch ([email protected])
    devfs: boot_options: 0x1
    Initializing Cryptographic API
    isapnp: Scanning for PnP cards...
    isapnp: No Plug & Play device found
    pty: 1024 Unix98 ptys configured
    Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
    ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
    Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    ICH5: IDE controller at PCI slot 0000:00:1f.1
    PCI: Found IRQ 10 for device 0000:00:1f.1
    PCI: Sharing IRQ 10 with 0000:00:1d.2
    PCI: Sharing IRQ 10 with 0000:00:1f.2
    PCI: Sharing IRQ 10 with 0000:02:01.0
    ICH5: chipset revision 2
    ICH5: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x3000-0x3007, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x3008-0x300f, BIOS settings: hdc:DMA, hdd:pio
    hda: WDC WD800LB-07DNA2, ATA DISK drive
    Using anticipatory io scheduler
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    hdc: LITE-ON COMBO LTC-48161H, ATAPI CD/DVD-ROM drive
    ide1 at 0x170-0x177,0x376 on irq 15
    ICH5-SATA: IDE controller at PCI slot 0000:00:1f.2
    PCI: Found IRQ 10 for device 0000:00:1f.2
    PCI: Sharing IRQ 10 with 0000:00:1d.2
    PCI: Sharing IRQ 10 with 0000:00:1f.1
    PCI: Sharing IRQ 10 with 0000:02:01.0
    ICH5-SATA: chipset revision 2
    ICH5-SATA: 100% native mode on irq 10
    ide2: BM-DMA at 0x3010-0x3017, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0x3018-0x301f, BIOS settings: hdg:pio, hdh:pio
    hda: max request size: 1024KiB
    hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(100)
    /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
    mice: PS/2 mouse device common for all mice
    serio: i8042 AUX port at 0x60,0x64 irq 12
    input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
    serio: i8042 KBD port at 0x60,0x64 irq 1
    input: AT Translated Set 2 keyboard on isa0060/serio0
    md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
    EISA: Probing bus 0 at eisa0
    NET: Registered protocol family 2
    IP: routing cache hash table of 4096 buckets, 32Kbytes
    TCP: Hash tables configured (established 32768 bind 32768)
    NET: Registered protocol family 1
    BIOS EDD facility v0.13 2004-Mar-09, 1 devices found
    Please report your BIOS at http://linux.dell.com/edd/results.html
    PM: Reading pmdisk image.
    PM: Resume from disk failed.
    md: Autodetecting RAID arrays.
    md: autorun ...
    md: ... autorun DONE.
    RAMDISK: Compressed image found at block 0
    VFS: Mounted root (ext2 filesystem).
    Mounted devfs on /dev
    SCSI subsystem initialized
    libata version 1.00 loaded.
    EXT3-fs: INFO: recovery required on readonly filesystem.
    EXT3-fs: write access will be enabled during recovery.
    kjournald starting. Commit interval 5 seconds
    EXT3-fs: hda1: orphan cleanup on readonly fs
    ext3_orphan_cleanup: deleting unreferenced inode 1038473
    ext3_orphan_cleanup: deleting unreferenced inode 1038472
    ext3_orphan_cleanup: deleting unreferenced inode 1038471
    ext3_orphan_cleanup: deleting unreferenced inode 1038470
    ext3_orphan_cleanup: deleting unreferenced inode 1038469
    ext3_orphan_cleanup: deleting unreferenced inode 1038467
    ext3_orphan_cleanup: deleting unreferenced inode 1038466
    ext3_orphan_cleanup: deleting unreferenced inode 1038464
    ext3_orphan_cleanup: deleting unreferenced inode 1038463
    ext3_orphan_cleanup: deleting unreferenced inode 1038462
    ext3_orphan_cleanup: deleting unreferenced inode 1038461
    ext3_orphan_cleanup: deleting unreferenced inode 1038460
    ext3_orphan_cleanup: deleting unreferenced inode 1038459
    ext3_orphan_cleanup: deleting unreferenced inode 1038458
    ext3_orphan_cleanup: deleting unreferenced inode 1038457
    ext3_orphan_cleanup: deleting unreferenced inode 1038456
    ext3_orphan_cleanup: deleting unreferenced inode 1038455
    ext3_orphan_cleanup: deleting unreferenced inode 1038454
    ext3_orphan_cleanup: deleting unreferenced inode 973782
    EXT3-fs: hda1: 19 orphan inodes deleted
    EXT3-fs: recovery complete.
    EXT3-fs: mounted filesystem with ordered data mode.
    Mounted devfs on /dev
    Freeing unused kernel memory: 288k freed
    Real Time Clock Driver v1.12
    drivers/usb/core/usb.c: registered new driver usbfs
    drivers/usb/core/usb.c: registered new driver hub
    drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
    PCI: Found IRQ 9 for device 0000:00:1d.0
    PCI: Sharing IRQ 9 with 0000:00:02.0
    PCI: Sharing IRQ 9 with 0000:00:1d.3
    uhci_hcd 0000:00:1d.0: UHCI Host Controller
    PCI: Setting latency timer of device 0000:00:1d.0 to 64
    uhci_hcd 0000:00:1d.0: irq 9, io base 00001400
    uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 2 ports detected
    PCI: Found IRQ 11 for device 0000:00:1d.1
    uhci_hcd 0000:00:1d.1: UHCI Host Controller
    PCI: Setting latency timer of device 0000:00:1d.1 to 64
    uhci_hcd 0000:00:1d.1: irq 11, io base 00001800
    uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 2 ports detected
    PCI: Found IRQ 10 for device 0000:00:1d.2
    PCI: Sharing IRQ 10 with 0000:00:1f.1
    PCI: Sharing IRQ 10 with 0000:00:1f.2
    PCI: Sharing IRQ 10 with 0000:02:01.0
    uhci_hcd 0000:00:1d.2: UHCI Host Controller
    PCI: Setting latency timer of device 0000:00:1d.2 to 64
    uhci_hcd 0000:00:1d.2: irq 10, io base 00001c00
    uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 2 ports detected
    PCI: Found IRQ 9 for device 0000:00:1d.3
    PCI: Sharing IRQ 9 with 0000:00:02.0
    PCI: Sharing IRQ 9 with 0000:00:1d.0
    uhci_hcd 0000:00:1d.3: UHCI Host Controller
    PCI: Setting latency timer of device 0000:00:1d.3 to 64
    uhci_hcd 0000:00:1d.3: irq 9, io base 00002000
    uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 4
    hub 4-0:1.0: USB hub found
    hub 4-0:1.0: 2 ports detected
    PCI: Found IRQ 9 for device 0000:00:1d.7
    ehci_hcd 0000:00:1d.7: EHCI Host Controller
    PCI: Setting latency timer of device 0000:00:1d.7 to 64
    ehci_hcd 0000:00:1d.7: irq 9, pci mem e0004000
    ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 5
    PCI: cache line size of 128 is not supported by device 0000:00:1d.7
    ehci_hcd 0000:00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
    hub 5-0:1.0: USB hub found
    hub 5-0:1.0: 8 ports detected
    EXT3 FS on hda1, internal journal
    Adding 522072k swap on /dev/hda5. Priority:-1 extents:1
    Linux agpgart interface v0.100 (c) Dave Jones
    agpgart: Detected an Intel 865 Chipset.
    agpgart: Maximum main memory to use for agp memory: 431M
    agpgart: Detected 8060K stolen memory.
    agpgart: AGP aperture is 128M @ 0xf0000000
    Supermount version 2.0.4 for kernel 2.6
    kjournald starting. Commit interval 5 seconds
    EXT3 FS on hda6, internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    Intel(R) PRO/1000 Network Driver - version 5.2.30.1-k2
    Copyright (c) 1999-2004 Intel Corporation.
    PCI: Found IRQ 10 for device 0000:02:01.0
    PCI: Sharing IRQ 10 with 0000:00:1d.2
    PCI: Sharing IRQ 10 with 0000:00:1f.1
    PCI: Sharing IRQ 10 with 0000:00:1f.2
    PCI: Setting latency timer of device 0000:02:01.0 to 64
    eth0: Intel(R) PRO/1000 Network Connection
    inserting floppy driver for 2.6.3-7mdksmp
    Floppy drive(s): fd0 is 1.44M
    FDC 0 is a post-1991 82077
    hdc: ATAPI 48X DVD-ROM CD-R/RW CD-MRW drive, 2048kB Cache, UDMA(33)
    Uniform CD-ROM driver Revision: 3.20
    ide-floppy driver 0.99.newide
    drivers/usb/core/usb.c: registered new driver hiddev
    drivers/usb/core/usb.c: registered new driver hid
    drivers/usb/input/hid-core.c: v2.0:USB HID core driver
    NET: Registered protocol family 17
    e1000: eth0 NIC Link is Up 100 Mbps Half Duplex
    PCI: Found IRQ 5 for device 0000:00:1f.5
    PCI: Sharing IRQ 5 with 0000:00:1f.3
    PCI: Setting latency timer of device 0000:00:1f.5 to 64
    intel8x0_measure_ac97_clock: measured 49851 usecs
    intel8x0: clocking to 48000
    NET: Registered protocol family 10
    Disabled Privacy Extensions on device c037da00(lo)
    IPv6 over IPv4 tunneling driver
    Installing knfsd (copyright (C) 1996 [email protected]).
    atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
    atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
    atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
    atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
    eth0: no IPv6 routers present
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    printk: 24045 messages suppressed.
    Neighbour table overflow.
    printk: 24276 messages suppressed.
    Neighbour table overflow.
    printk: 16555 messages suppressed.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    printk: 24221 messages suppressed.
    Neighbour table overflow.
    printk: 24272 messages suppressed.
    Neighbour table overflow.
    printk: 15931 messages suppressed.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    Neighbour table overflow.
    printk: 24289 messages suppressed.
    Neighbour table overflow.
    printk: 21235 messages suppressed.
    Neighbour table overflow.
    ---- LSPCI ---
    00:00.0 Host bridge: Intel Corp. 82865G/PE/P Processor to I/O Controller (rev 02)
    00:02.0 VGA compatible controller: Intel Corp. 82865G Integrated Graphics Device (rev 02)
    00:03.0 PCI bridge: Intel Corp. 82865G/PE/P Processor to PCI to CSA Bridge (rev 02)
    00:1d.0 USB Controller: Intel Corp. 82801EB USB (rev 02)
    00:1d.1 USB Controller: Intel Corp. 82801EB USB (rev 02)
    00:1d.2 USB Controller: Intel Corp. 82801EB USB (rev 02)
    00:1d.3 USB Controller: Intel Corp. 82801EB USB (rev 02)
    00:1d.7 USB Controller: Intel Corp. 82801EB USB2 (rev 02)
    00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev c2)
    00:1f.0 ISA bridge: Intel Corp. 82801EB LPC Interface Controller (rev 02)
    00:1f.1 IDE interface: Intel Corp. 82801EB Ultra ATA Storage Controller (rev 02)
    00:1f.2 IDE interface: Intel Corp. 82801EB Ultra ATA Storage Controller (rev 02)
    00:1f.3 SMBus: Intel Corp. 82801EB SMBus Controller (rev 02)
    00:1f.5 Multimedia audio controller: Intel Corp. 82801EB AC'97 Audio Controller (rev 02)
    02:01.0 Ethernet controller: Intel Corp.: Unknown device 1019
    -- LSMOD --
    Module Size Used by
    nfsd 175840 8
    exportfs 7552 1 nfsd
    md5 4864 1
    ipv6 251392 29
    snd-seq-oss 33568 0
    snd-seq-midi-event 8704 1 snd-seq-oss
    snd-seq 55696 4 snd-seq-oss,snd-seq-midi-event
    snd-pcm-oss 53316 0
    snd-mixer-oss 19008 1 snd-pcm-oss
    snd-intel8x0 34440 0
    snd-ac97-codec 59588 1 snd-intel8x0
    snd-pcm 97440 2 snd-pcm-oss,snd-intel8x0
    snd-timer 26660 2 snd-seq,snd-pcm
    gameport 5664 1 snd-intel8x0
    snd-page-alloc 12996 2 snd-intel8x0,snd-pcm
    snd-mpu401-uart 8320 1 snd-intel8x0
    snd-rawmidi 25248 1 snd-mpu401-uart
    snd-seq-device 9032 3 snd-seq-oss,snd-seq,snd-rawmidi
    snd 55492 12 snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-intel8x0,snd-ac97-codec,snd-pcm,snd-timer,snd-mpu401-uart,snd-rawmidi,snd-seq-device
    soundcore 10560 1 snd
    af_packet 22632 0
    hid 55360 0
    raw 8640 1
    ide-floppy 19776 0
    ide-tape 36752 0
    ide-cd 41764 0
    cdrom 38272 1 ide-cd
    floppy 61620 0
    e1000 83460 0
    supermount 39856 1
    intel-agp 18364 1
    agpgart 32460 2 intel-agp
    ehci-hcd 25572 0
    uhci-hcd 31856 0
    usbcore 103228 5 hid,ehci-hcd,uhci-hcd
    rtc 13640 0
    ext3 114216 2
    jbd 61976 1 ext3
    sd_mod 17696 0
    ata_piix 8836 0
    libata 40256 1 ata_piix,[permanent]
    scsi_mod 117104 2 sd_mod,libata
    ----- /var/log/kernel/warnings -------
    Oct 5 10:16:47 nsilaslin02 kernel: printing eip:
    Oct 5 10:16:47 nsilaslin02 kernel: c018e379
    Oct 5 10:16:47 nsilaslin02 kernel: Oops: 0000 [#1]
    Oct 5 10:16:47 nsilaslin02 kernel: CPU: 1
    Oct 5 10:16:47 nsilaslin02 kernel: EIP: 0060:[proc_pid_stat+137/928] Not tainted VLI
    Oct 5 10:16:47 nsilaslin02 kernel: EIP: 0060:[<c018e379>] Not tainted VLI
    Oct 5 10:16:47 nsilaslin02 kernel: EFLAGS: 00010286
    Oct 5 10:16:47 nsilaslin02 kernel: EIP is at proc_pid_stat+0x89/0x3a0
    Oct 5 10:16:47 nsilaslin02 kernel: eax: 00000000 ebx: 02000000 ecx: d85ac000 edx: 92960700
    Oct 5 10:16:47 nsilaslin02 kernel: esi: d11ea6f0 edi: ded440a0 ebp: cf0ddf44 esp: cf0ddee4
    Oct 5 10:16:47 nsilaslin02 kernel: ds: 007b es: 007b ss: 0068
    Oct 5 10:16:47 nsilaslin02 kernel: Process javac (pid: 2415, threadinfo=cf0dc000 task=d11ea6f0)
    Oct 5 10:16:47 nsilaslin02 kernel: Stack: c0143d5a c1259e78 00000000 c1259e78 c0343980 0000015b 00000000 cf0ddf40
    Oct 5 10:16:47 nsilaslin02 kernel: 52143e93 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    Oct 5 10:16:47 nsilaslin02 kernel: 00000000 00000000 000000d0 00001000 000000d0 d11ea6f0 00000400 de64f060
    Oct 5 10:16:47 nsilaslin02 kernel: Call Trace:
    Oct 5 10:16:47 nsilaslin02 kernel: [buffered_rmqueue+234/400] buffered_rmqueue+0xea/0x190
    Oct 5 10:16:47 nsilaslin02 kernel: [<c0143d5a>] buffered_rmqueue+0xea/0x190
    Oct 5 10:16:47 nsilaslin02 kernel: [proc_info_read+75/320] proc_info_read+0x4b/0x140
    Oct 5 10:16:47 nsilaslin02 kernel: [<c018b60b>] proc_info_read+0x4b/0x140
    Oct 5 10:16:47 nsilaslin02 kernel: [vfs_read+142/224] vfs_read+0x8e/0xe0
    Oct 5 10:16:47 nsilaslin02 kernel: [<c015bf2e>] vfs_read+0x8e/0xe0
    Oct 5 10:16:47 nsilaslin02 kernel: [sys_read+46/80] sys_read+0x2e/0x50
    Oct 5 10:16:47 nsilaslin02 kernel: [<c015c14e>] sys_read+0x2e/0x50
    Oct 5 10:16:47 nsilaslin02 kernel: [sysenter_past_esp+82/121] sysenter_past_esp+0x52/0x79
    Oct 5 10:16:47 nsilaslin02 kernel: [<c010b1b9>] sysenter_past_esp+0x52/0x79
    Oct 5 10:16:47 nsilaslin02 kernel:
    Oct 5 10:16:47 nsilaslin02 kernel: Code: 00 00 8b 7e 68 85 ff 74 09 57 e8 b3 5f f9 ff 59 89 c7 8b 8e 24 03 00 00 85 c9 74 38 8b 81 98 00 00 00 89 45 c8 8b 59 04 8b 51 08 <0f> bf 43 64 0f bf 5b 66 c1 e0 14 09 d8 01 d0 89 c1 c1 e9 14 0f
    Oct 5 10:30:32 nsilaslin02 kernel: Linux version 2.6.3-7mdksmp ([email protected]) (gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)) #1 SMP Wed Mar 17 14:24:28 CET 2004
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 0000000000100000 - 000000001f6f0000 (usable)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f6f0000 - 000000001f6fb000 (ACPI data)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f6fb000 - 000000001f700000 (ACPI NVS)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f700000 - 000000001f780000 (usable)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f780000 - 0000000020000000 (reserved)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000ffb80000 - 00000000ffc00000 (reserved)
    Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
    Oct 5 10:30:32 nsilaslin02 kernel: hm, page 000f7000 reserved twice.
    Oct 5 10:30:32 nsilaslin02 kernel: hm, page 000f8000 reserved twice.
    Oct 5 10:30:32 nsilaslin02 kernel: hm, page 0009f000 reserved twice.
    Oct 5 10:30:32 nsilaslin02 kernel: hm, page 000a0000 reserved twice.
    Oct 5 10:30:32 nsilaslin02 kernel: On node 0 totalpages: 128896
    Oct 5 10:30:32 nsilaslin02 kernel: DMA zone: 4096 pages, LIFO batch:1
    Oct 5 10:30:32 nsilaslin02 kernel: Normal zone: 124800 pages, LIFO batch:16
    Oct 5 10:30:32 nsilaslin02 kernel: HighMem zone: 0 pages, LIFO batch:1
    Oct 5 10:30:33 nsilaslin02 kernel: Processor #0 15:2 APIC version 20
    Oct 5 10:30:33 nsilaslin02 kernel: Processor #1 15:2 APIC version 20
    Oct 5 10:30:33 nsilaslin02 kernel: Enabling APIC mode: Flat. Using 1 I/O APICs
    Oct 5 10:30:33 nsilaslin02 kernel: Built 1 zonelists
    Oct 5 10:30:33 nsilaslin02 kernel: Kernel command line: auto BOOT_IMAGE=linux-nonfb ro root=301 noapic devfs=mount acpi=ht resume=/dev/hda5
    Oct 5 10:30:33 nsilaslin02 kernel: PID hash table entries: 2048 (order 11: 16384 bytes)
    Oct 5 10:30:33 nsilaslin02 kernel: Detected 2793.223 MHz processor.
    Oct 5 10:30:33 nsilaslin02 kernel: Console: colour VGA+ 80x25
    Oct 5 10:30:33 nsilaslin02 kernel: Checking if this processor honours the WP bit even in supervisor mode... Ok.
    Oct 5 10:30:33 nsilaslin02 kernel: Calibrating delay loop... 5537.79 BogoMIPS
    Oct 5 10:30:33 nsilaslin02 kernel: Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Oct 5 10:30:33 nsilaslin02 kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    Oct 5 10:30:33 nsilaslin02 kernel: POSIX conformance testing by UNIFIX
    Oct 5 10:30:33 nsilaslin02 kernel: CPU0: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
    Oct 5 10:30:33 nsilaslin02 kernel: per-CPU timeslice cutoff: 1462.56 usecs.
    Oct 5 10:30:33 nsilaslin02 kernel: task migration cache decay timeout: 2 msecs.
    Oct 5 10:30:33 nsilaslin02 kernel: enabled ExtINT on CPU#0
    Oct 5 10:30:33 nsilaslin02 kernel: ESR value before enabling vector: 00000000
    Oct 5 10:30:33 nsilaslin02 kernel: ESR value after enabling vector: 00000000
    Oct 5 10:30:33 nsilaslin02 kernel: Booting processor 1/1 eip 3000
    Oct 5 10:30:33 nsilaslin02 kernel: masked ExtINT on CPU#1
    Oct 5 10:30:33 nsilaslin02 kernel: ESR value before enabling vector: 00000000
    Oct 5 10:30:33 nsilaslin02 kernel: ESR value after enabling vector: 00000000
    Oct 5 10:30:33 nsilaslin02 kernel: Calibrating delay loop... 5570.56 BogoMIPS
    Oct 5 10:30:33 nsilaslin02 kernel: CPU1: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
    Oct 5 10:30:33 nsilaslin02 kernel: cpu_sibling_map[0] = 1
    Oct 5 10:30:33 nsilaslin02 kernel: cpu_sibling_map[1] = 0
    Oct 5 10:30:33 nsilaslin02 kernel: Using local APIC timer interrupts.
    Oct 5 10:30:33 nsilaslin02 kernel: calibrating APIC timer ...
    Oct 5 10:30:33 nsilaslin02 kernel: ..... CPU clock speed is 2792.0645 MHz.
    Oct 5 10:30:33 nsilaslin02 kernel: ..... host bus clock speed is 199.0474 MHz.
    Oct 5 10:30:33 nsilaslin02 kernel: checking TSC synchronization across 2 CPUs: passed.
    Oct 5 10:30:33 nsilaslin02 kernel: Starting migration thread for cpu 0
    Oct 5 10:30:33 nsilaslin02 kernel: Starting migration thread for cpu 1
    Oct 5 10:30:33 nsilaslin02 kernel: Brought up 1 CPUs
    Oct 5 10:30:33 nsilaslin02 kernel: PCI: Probing PCI hardware
    Oct 5 10:30:33 nsilaslin02 kernel: PCI: Probing PCI hardware (bus 00)
    Oct 5 10:30:33 nsilaslin02 kernel: Transparent bridge - 0000:00:1e.0
    Oct 5 10:30:33 nsilaslin02 kernel: PCI: IRQ 0 for device 0000:00:1f.1 doesn't match PIRQ mask - try pci=usepirqmask
    Oct 5 10:30:33 nsilaslin02 kernel: pty: 1024 Unix98 ptys configured
    Oct 5 10:30:33 nsilaslin02 kernel: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    Oct 5 10:30:33 nsilaslin02 kernel: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    Oct 5 10:30:33 nsilaslin02 kernel: RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
    Oct 5 10:30:33 nsilaslin02 kernel: hda: WDC WD800LB-07DNA2, ATA DISK drive
    Oct 5 10:30:33 nsilaslin02 kernel: Using anticipatory io scheduler
    Oct 5 10:30:33 nsilaslin02 kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    Oct 5 10:30:33 nsilaslin02 kernel: hdc: LITE-ON COMBO LTC-48161H, ATAPI CD/DVD-ROM drive
    Oct 5 10:30:33 nsilaslin02 kernel: ide1 at 0x170-0x177,0x376 on irq 15
    Oct 5 10:30:33 nsilaslin02 kernel: hda: max request size: 1024KiB
    Oct 5 10:30:33 nsilaslin02 kernel: VFS: Mounted root (ext2 filesystem).
    Oct 5 10:30:33 nsilaslin02 kernel: PCI: cache line size of 128 is not supported by device 0000:00:1d.7
    Oct 5 10:30:33 nsilaslin02 kernel: hdc: ATAPI 48X DVD-ROM CD-R/RW CD-MRW drive, 2048kB Cache, UDMA(33)
    Oct 5 10:30:33 nsilaslin02 kernel: ide-floppy driver 0.99.newide
    Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
    Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
    Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
    Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
    Oct 5 10:30:50 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:30:50 nsilaslin02 last message repeated 9 times
    Oct 5 10:30:55 nsilaslin02 kernel: printk: 24045 messages suppressed.
    Oct 5 10:30:55 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:31:00 nsilaslin02 kernel: printk: 24276 messages suppressed.
    Oct 5 10:31:00 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:36:06 nsilaslin02 kernel: printk: 16555 messages suppressed.
    Oct 5 10:36:06 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:36:06 nsilaslin02 last message repeated 9 times
    Oct 5 10:36:11 nsilaslin02 kernel: printk: 24221 messages suppressed.
    Oct 5 10:36:11 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:36:16 nsilaslin02 kernel: printk: 24272 messages suppressed.
    Oct 5 10:36:16 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:46:22 nsilaslin02 kernel: printk: 15931 messages suppressed.
    Oct 5 10:46:22 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:46:22 nsilaslin02 last message repeated 9 times
    Oct 5 10:46:27 nsilaslin02 kernel: printk: 24289 messages suppressed.
    Oct 5 10:46:27 nsilaslin02 kernel: Neighbour table overflow.
    Oct 5 10:46:32 nsilaslin02 kernel: printk: 21235 messages suppressed.
    Oct 5 10:46:32 nsilaslin02 kernel: Neighbour table overflow.

    Java programs are run by a virtual machine which is running in userland. They don't "mess" with the kernel.
    OTOH, each userland program interacts with the kernel through system calls, signals, pageing activity, ...
    My guess is that it's either broken hardware, or a fault in the linux kernel.
    Is the crash reproducible? Does ist always crash with the same error message, at the same "eip" location?
    If the crashes are sporadic and non deterministic, with different error messages each time, then I'd say it's
    a hardware problem. Otherwise, it could be a linux kernel software problem.

  • Installing an application through Powershell with SCCM 2012 r2 is not working as expected

    I am trying to install a VOIP client using a powershell script. When I run the powershell script on the client in a administrative powershell prompt the script runs fine and it installs the application as expected. When I try to do the same thing through
    the SCCM client using an application it does not install.
    I am not a Powershell Guru so the script below is my simple understanding of installations through powershell as of this moment
    <#
    Installatiescript CIC Client SU6 32 bit (kantoor)
    Versie 1.3
    17 april 2015 - Uitbreiding logfile. Fix opschonen startmenu
    16 april 2015 - Aanpassing verwijderen oude client, logfile aanmaken in TEMP
    13 maart 2015 - Eerste versie
    #>
    # Bepaal installatiebron
    $SourceDir = "\\VSC0501\SetupShare\APP_IC_Client_SU6\x86"
    # Bepaal logvariabelen
    $logfile = "$env:TEMP\cic_su6-install.txt"
    $Logdate = get-date -f yyyyMMdd-HHmm
    # Controleer of oude CIC client aanwezig is (versie 4.04.316) en deinstalleer deze indien nodig
    If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}")
    $val = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}").DisplayVersion
    if($val -eq "4.04.316") {
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed" | out-file $logfile -Append
    exit
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed - " $process.ExitCode | out-file $logfile -Append
    exit
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru).exitcode
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru).exitcode
    Get-ChildItem "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" | Remove-Item -Recurse
    Remove-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" -Recurse -Force
    else {
    Write-Output "$logdate - Client not present" | out-file $logfile -Append
    # Installeer CIC Client SU6
    $Arguments = "/i `"$SourceDir\ICUserApps_32bit.msi`" /l*vx `"$env:TEMP\cic_su6.log`" TRANSFORMS=`"$SourceDir\Kantoor.mst`" PATCH=`"$SourceDir\ICUserApps_32bit_SU6.msp`" ICSERVERNAME=cic.abvakabofnv.local /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 (kantoor) has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 (kantoor) cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit
    # Installeer CIC Client SU6 NL Language Plugin
    $Arguments = "/i `"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl.msi`" /l*vx `"$env:TEMP\cic_su6_nl.log`" PATCH=`"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl_SU6.msp`" /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit
    # Opschonen Desktop en Start menu
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Fax.lnk"
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Voicemail Player.lnk"
    Move-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Interactive Intelligence" "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV" -force
    The uninstall part works fine, but the installation (2 parts) do not. As I mentioned before... when I run the script manually it all works fine.
    The application is installed using a script. The commandline is
    powershell.exe -excecutionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1
    The application runs hidden in the context of the system wether or not the user is logged on. The maximum allowed run time is sufficient (30 minutes).
    There is no installation log from the msiexec command so the line were the application should be installed is not executed at all. There is also no mention in my own little log ($logfile = "$env:TEMP\cic_su6-install.txt") mentioning the result
    of the installation.
    The appenforce.log says...
    +++ Starting Install enforcement for App DT "Interaction Client - Standaard SU6" ApplicationDeliveryType - ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision - 7, ContentPath - C:\WINDOWS\ccmcache\13, Execution Context - System AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    A user is logged on to the system. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    App enforcement environment:
    Context: Machine
    Command line: Powershell.exe -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1
    Allow user interaction: No
    UI mode: 0
    User token: null
    Session Id: 1
    Content path: C:\WINDOWS\ccmcache\13
    Working directory: AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Prepared working directory: C:\WINDOWS\ccmcache\13 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Found executable file Powershell.exe with complete path C:\WINDOWS\System32\WindowsPowerShell\v1.0\Powershell.exe AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Prepared command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Executing Command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1 with user context AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Working directory C:\WINDOWS\ccmcache\13 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Post install behavior is BasedOnExitCode AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Waiting for process 2916 to finish. Timeout = 30 minutes. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Process 2916 terminated with exitcode: 0 AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Looking for exit code 0 in exit codes table... AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Matched exit code 0 to a Success entry in exit codes table. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    ++++++ App enforcement completed (3 seconds) for App DT "Interaction Client - Standaard SU6" [ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4], Revision: 7, User SID: ] ++++++ AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    I'm thinking of going back to a batchfile because that seems to do the job, but Powershell is much more powerfull.
    Anybody got any answers on what is going wrong are some suggestions for a better script? 

    You have a number of problems here.
    1.  As mentioned you have UNC paths ... which means there's no reason for a package at all.  f you want SCCM to use the package it just downloaded you should use $PSScriptRoot (PS equivelant of %~0dp).  If the client is using v2 or earlier
    ... fix that quick by starting your script with:
    If (!$PSScriptRoot) {
    $PSSCriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
    Now you can call your install easy enough with a $PSScriptRoot+"\app.exe"
    2.  your discovery is failing after install.  This will always make SCCM report an installation failed even when the exit code is 0.  You can see it at the end of your log:
    Matched exit code 0 to a Success entry in exit codes table. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    So either your installation script is spitting out a exit code 0 regardless of the event OR your detection is wrong.
    EDIT:  you have exit statemetns after failed installs ... but no exit code (simply exit).  Change those to exit 1 so sccm knows it's a failed exit and not just a generic exit.  That's probably your problem (unc can't be reached as system, you're
    getting an exit  .... not defining exit 1).
    Something like this (warning this is a fast change so review it):
    <#
    Installatiescript CIC Client SU6 32 bit (kantoor)
    Versie 1.3
    17 april 2015 - Uitbreiding logfile. Fix opschonen startmenu
    16 april 2015 - Aanpassing verwijderen oude client, logfile aanmaken in TEMP
    13 maart 2015 - Eerste versie
    #>
    If (!$PSScriptRoot) {
    $PSSCriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
    # Bepaal installatiebron
    #$SourceDir = "\\VSC0501\SetupShare\APP_IC_Client_SU6\x86"
    $SourceDir = $PSScriptRoot
    # Bepaal logvariabelen
    $logfile = "$env:TEMP\cic_su6-install.txt"
    $Logdate = get-date -f yyyyMMdd-HHmm
    # Controleer of oude CIC client aanwezig is (versie 4.04.316) en deinstalleer deze indien nodig
    If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}")
    $val = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}").DisplayVersion
    if($val -eq "4.04.316") {
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed" | out-file $logfile -Append
    exit 1
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru).exitcode
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru).exitcode
    Get-ChildItem "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" | Remove-Item -Recurse
    Remove-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" -Recurse -Force
    else {
    Write-Output "$logdate - Client not present" | out-file $logfile -Append
    # Installeer CIC Client SU6
    $Arguments = "/i `"$SourceDir\ICUserApps_32bit.msi`" /l*vx `"$env:TEMP\cic_su6.log`" TRANSFORMS=`"$SourceDir\Kantoor.mst`" PATCH=`"$SourceDir\ICUserApps_32bit_SU6.msp`" ICSERVERNAME=cic.abvakabofnv.local /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 (kantoor) has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 (kantoor) cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    # Installeer CIC Client SU6 NL Language Plugin
    $Arguments = "/i `"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl.msi`" /l*vx `"$env:TEMP\cic_su6_nl.log`" PATCH=`"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl_SU6.msp`" /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    # Opschonen Desktop en Start menu
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Fax.lnk"
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Voicemail Player.lnk"
    Move-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Interactive Intelligence" "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV" -force
    Exit 0

Maybe you are looking for

  • So many bugs (Iphone 6. IOS 8.0.2)

    I'd like to list the bugs I've faced, when used my iPhone 6: 1) Bluetooth isn't working 2) Wi Fi isn't working properly (wi fi button isn't working/cannot find any network/freezes after connecting/speed changes from fast to low) 3) Battery drain (tim

  • Base station causing interference with cable modem

    I have a late model apple airport extreme base station with time machine. The unit is placed next to the cable box (that provides phone service) that connects to the modem that connects to the base station. When the base station is turned on and work

  • Add Fields in VF01,VF02 and VF03.

    Hi everyone, I have to add some fields in the transactions VF01, VF02 and VF03 at Item level. I did not find any available SCREEN-EXIT or BADI. Actually I found a BADI "BADI_SD_CUST_ITEM", but it is only for internal use. Please advise. regards, Alex

  • QuickTime in Flash

    Hi, I've got a Quicktime movie file that requires being streamed within an SWF online. I wondered if this was possible and what other programs you might need to make this possible. I've read about using the QTSS and other programs are recomended but

  • Where is the good place for ejb3.0

    I am where is a good place to learn EJB3.0 step by step. I could not find a place from sun. THanks!