My main program no longer compiles/program terminates.

My main program (8.6.1 version) will no longer compile and provide the error listing.  The entire program just ends out of Labview completely.  First time it has occurred at our location in years of working with Labview.  I can't tell if it has something to do with the new laptop the program is hosted on or my code.  Any suggestions or solutions would be appreciated.
Nick Salemi
Teledyne Energy Systems, Inc.
[email protected]
410-891-2225

Thanks altenback.
I define compiling as clicking the blackened out run arrow and waiting for the error listing to identify coding errors.
Problem example:  I'll remove a single wire on the block diagram.  I select the blackened arrow and then the Error List window pops up
without any errors listed inside.  At the same time, layered over the Error List window I get the "famous"
"Labview 8.6 Development System" window indicating a problem has been encountered and the program must close - sorry etc."
The "Send Error Report" and "Dont Send Error Report" buttons are shown. It doesn't matter which one I choose; the program exits out of my
program and drags Labview 8.6 with it so I'm back at Bill Gates big blue screen (I haven't put up any nice wallpaper yet).
This is repeatable - I've done it about 6 times in a row on the "newer" laptop (bought ~2009; WinXP Prof 2002 service pack 3, 3.5 GB RAM ) and just repeated it on the 2 older laptops (Lenovos; junk, bought ~2006; WinXP Prof 2002 service pack 3, 504 MB and 1 GB RAM).
My main program is       ~ 1.5 Mb in size and has 126 files under it.  Its not being run as a project. Dah!  May be this has something to do with it; never did before, I'm not sure.  My code communicates to 3 pieces of hardware via Agilent's USB/GPIB cable (82357A).  Those 3 pieces are an Agilent 34970A data acq system, an Agilent 6060B electronic load, and a Sorenson power supply.
Strange thing is the program runs fine at my desk computer (WinXP Prof 2002 service pack 3, 504 MB RAM) - IT department maintained.
It's something in the laptops, because they all worked, then during development they stopped.  Only thing I can point a finger at is the program
kept growing in size over the last year.  A lot of information but I can't come up with a solution.
Any ideas?
Nick Salemi
Teledyne Energy Systems, Inc.
[email protected]
410-891-2225

Similar Messages

  • Message Include * is used in multiple main programs (210)

    Hi,
    I get the message:
    Select a main program in Properties View on tab "Source"
    Include /SAPDMC/SAP_LSMW_READ_FORMS is used in multiple main programs (210).
    when I want to modify an include in LSMW.
    The effect is for example that I cannot open the declaration of a data element.
    Is there something I can do?
    Best regards
    Volker

    Hi Michael,
    I have updated ADT to newest version (com.sap.adt.core is now 2.31.5).
    When I type something in that Include or save it, the error message is now displayed in status bar (which is of course much better, and I can at least edit the file):
    However, when I try to activate this Include, same popup comes as earlier with this error message. It is still not possible to edit the main program in properties.
    What I also found out:
    If I create new include, let's name it Z_INCL1, and use it in one program - Z_PROG1, include Z_INCL1 will have as main program Z_PROG1 and everything works fine. (of course).
    When I create Z_PROG2 which is including Z_INCL1, main program of Z_INCL1 will be Z_INCL1 and I can no longer compile Z_INCL1. (So far there was nothing new).
    Now when I remove Include statement from Z_PROG2, main program of Z_INCL1 will still be Z_INCL1 and I still cannot compile Z_INCL1 with the same error message even thougt it is now only included in 1 program again. I have to remove include statement also from Z_PROG1 and than I am able to compile Z_INCL1 again.
    Have a nice day!
    O.

  • How to generate a single output pulse on 64 different digital out lines (PCI-6513) each with a different start time relative to an event in a main program loop.

    Long question.
    I am running a main program loop of 60 msec. At one point in the loop I create a 64 element array of delay times. At that point I need to begin outputting a predefined single pulse to each of the 64 lines on my PCI-6513. Each line outputs the pulse with a starting delay set by the "delay time" in the array.
    Each delay time is such that the pulses will be done before the next loop commands another one.
    Thank You
    Roger

    Hi,
    You have multiple ways of doing this, since there is no timing engine on the 6513 your code is going to control the output of the card, which is what we called “software timed”.  If you take a look at the example called: “Write Dig Chan.vi”, you can individually control each line.
    So to change the state of the line; since you have an array of delays time you can aid yourself with “stacked sequence structure” where in each frame you control the time it takes to go to the next frame and the data been written to the card.
    Another option is using a state machine where each state write the data you want and you can also control the time between states. For further references take a look at this article Application Design Patterns: State Machines.
    I hope it helps
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

  • How do I get the methods to respond to my main program?

    I have created 3 classes,where class Kunde is my base class and class PudsPrAreal and PudsPrTid are derived classes from class Kunde.
    All my classes went through my compiler without error, but my main program is not able to read the methods from my classes.How do I fix that??
    my base class:
    navn = nyNavn;
    adresse = nyAdresse;
    rabat = nyRabat;
    public void readInput()
    System.out.println("Indtast kundens navn:");
    navn = SavitchIn.readLine();
    System.out.println("Indtast kundens adresse:");
    adresse = SavitchIn.readLine();
    System.out.println("Modtager " + navn + " en form for rabat?");
    System.out.println("(j/n):");
    char answer = SavitchIn.readNonwhiteChar();
    if (answer == 'j'||answer == 'J')
    System.out.println("Indtast den procentsats som " + navn + " modtager:");
    rabat = SavitchIn.readLineDouble();
    public void writeOutput()
    System.out.println("Navn: " + navn);
    System.out.println("Adresse: " + adresse);
    if (rabat > 0)
    System.out.println("Rabat: " + rabat);
    public Kunde()
    navn = "no record";
    adresse = "no record";
    rabat = 0;
    public String getNavn()
    return navn;
    public String getAdresse()
    return adresse;
    public double getRabat()
    return rabat;
    derived class # 1:
    public class PudsPrAreal extends Kunde
    private double areal; //i kvadratmeter
    private String kunde;
    private String pudsningsdato;
    private double kvadratmeterPris;
    private double pris;
    public PudsPrAreal()
    super();
    kunde = "no record";
    pudsningsdato = "no record";
    kvadratmeterPris = 0;
    pris = 0;
    areal = 0;
    public PudsPrAreal(String initialKunde, String initialPudsningsdato, double initialAreal,
    String initialNavn, String initialAdresse, double initialRabat)
    super(initialNavn, initialAdresse, initialRabat);
    set(initialKunde, initialPudsningsdato, initialAreal);
    public void set(String nyKunde, String nyPudsningsdato, double nyAreal)
    kunde = nyKunde;
    pudsningsdato = nyPudsningsdato;
    areal = nyAreal;
    public void readInputPrAreal()
    System.out.println("Indtast datoen hvor vinduespudsningen er blevet foretaget:");
    pudsningsdato = SavitchIn.readLine();
    System.out.println("Hvor mange kvadratmeter skal der afregnes for:");
    areal = SavitchIn.readLineDouble();
    public double pris(double areal)
    double pris;
    double kvadratmeterPris;
    if (areal > 100)
    kvadratmeterPris = 7.0;
    else if (areal >= 500)
    kvadratmeterPris = 6.5;
    else
    kvadratmeterPris = 6.0;
    double prisEks = areal * kvadratmeterPris; //pris eksclusiv rabat
    pris = prisEks * ((100 - getRabat())/100); //pris inclusiv rabat
    return pris;
    public void writeOutputPrAreal()
    System.out.println("Dato for vinduespudsning: " + pudsningsdato);
    System.out.println("Navn: " + getNavn());
    System.out.println("Adresse: " + getAdresse());
    System.out.println("Prisberegningsgrundlag: pr kvadratmeter");
    System.out.println("Antal kvadratmeter: " + areal);
    System.out.println("Pris pr kvadratmeter: " + kvadratmeterPris + " kr.");
    if (getRabat() > 0)
    System.out.println("Rabat: " + getRabat());
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    else
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    public String getkunde()
    return kunde;
    public String getPudsningsdato()
    return pudsningsdato;
    public double getAreal()
    return areal;
    derived class # 2:
    public class PudsPrTime extends Kunde
    private int minuter; //tid for vinduespudsningen angives i minuter
    private double tid; //tid for vinduespudsningen i timer
    private String kunde;
    private String pudsningsdato;
    private double pris;
    public PudsPrTime(String initialKunde, String initialPudsningsdato, int initialMinuter,
    String initialNavn, String initialAdresse, double initialRabat)
    super(initialNavn, initialAdresse, initialRabat);
    set(initialKunde, initialPudsningsdato, initialMinuter);
    public void set(String nyKunde, String nyPudsningsdato, int nyMinuter)
    kunde = nyKunde;
    pudsningsdato = nyPudsningsdato;
    minuter = nyMinuter;
    public void readInputPrTime()
    System.out.println("Indtast datoen hvor vinduespudsningen er blevet foretaget:");
    pudsningsdato = SavitchIn.readLine();
    System.out.println("Hvor mange minuter skal der afregnes for:");
    minuter = SavitchIn.readLineInt();
    public double pris(int minuter)
    int kvarter;
    int minuterTilOvers;
    double pris;
    kvarter = minuter / 15;
    minuterTilOvers = minuter % 15;
    if (minuterTilOvers > 0)
    kvarter++;
    tid = kvarter * 0.25;
    double prisEks = tid * 375; //pris eksclusiv rabat
    pris = prisEks * ((100 - getRabat())/100);
    return pris;
    public void writeOutputPrTime()
    System.out.println("Dato for vinduespudsning: " + pudsningsdato);
    System.out.println("Navn: " + getNavn());
    System.out.println("Adresse: " + getAdresse());
    System.out.println("Prisberegningsgrundlag: pr time");
    System.out.println("Antal timer: " + tid);
    System.out.println("Pris pr time: 375 kr.");
    System.out.println("Der afregnes pr p�begyndt 15 minuter.");
    if (getRabat() > 0)
    System.out.println("Rabat: " + getRabat());
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    else
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    public String getKunde()
    return kunde;
    public String getPudsningsdato()
    return pudsningsdato;
    public int getMinuter()
    return minuter;
    my main program:
    public class Glasklart
    public static void main(String[] args)
    Glasklart kunde = new Glasklart();
    System.out.println("Indtast datoen for idag:");
    String dato = SavitchIn.readLine();
    kunde.readInput();
    System.out.println("Hvad er prisberegningsgrundlaget?");
    System.out.println("Skriv 'k' for pr kvadratmeter eller 't' for pr time:");
    char svar = SavitchIn.readNonwhiteChar();
    if (svar == 'k'||svar == 'K')
    kunde.readInputPrAreal();
    System.out.println("Afregningsdato: " + dato);
    kunde.writeOutputPrAreal();
    else if (svar == 't'||svar == 'T')
    kunde.readInputPrTime();
    System.out.println("Afregningsdato: " + dato);
    kunde.writeOutputPrTime();
    else
    System.out.println("Forkert svar. Pr�v igen.");
    System.out.println("Skriv 'k' for pr kvadratmeter eller 't' for pr time:");
    svar = SavitchIn.readNonwhiteChar();
    error message for my main program:
    "Glasklart.java": Error #: 300 : method readInput() not found in class Glasklart at line 10, column 9
    "Glasklart.java": Error #: 300 : method readInputPrAreal() not found in class Glasklart at line 16, column 13
    "Glasklart.java": Error #: 300 : method writeOutputPrAreal() not found in class Glasklart at line 18, column 13
    "Glasklart.java": Error #: 300 : method readInputPrTime() not found in class Glasklart at line 22, column 13
    "Glasklart.java": Error #: 300 : method writeOutputPrTime() not found in class Glasklart at line 24, column 13

    The problem is that your main class isn't even trying to read the methods in your other classes. In your main() method in Glasklart.java, you do this:
    Glasklart kunde = new Glasklart();
    System.out.println("Indtast datoen for idag:");
    String dato = SavitchIn.readLine();
    kunde.readInput();But you didn't define readInput() in Glasklart, you defined it in your "base class" which you didn't quote enough of us to know the name for sure, but I presume is called Kunde.java.
    But I also see that you named the variable "kunde". It looks like maybe you're confusing the names of classes with the names of variables that happen to hold objects instantiated from those classes.
    If I define classes:
    public class Dog {
    public class Cat {
    }and later do this:
      Cat dog = new Cat();The methods defined in Dog cannot be invoked from from "dog", because "dog" is really a Cat. Just because you called it "dog", it doesn't necesarily mean it's an instance of Dog.

  • Need help on my main program

    I have created 3 classes,where class Kunde is my base class and class PudsPrAreal and PudsPrTid are derived classes from class Kunde.
    All my classes went through my compiler without error, but my main program is not able to read the methods from my classes.How do I fix that??
    my base class:
    navn = nyNavn;
    adresse = nyAdresse;
    rabat = nyRabat;
    public void readInput()
    System.out.println("Indtast kundens navn:");
    navn = SavitchIn.readLine();
    System.out.println("Indtast kundens adresse:");
    adresse = SavitchIn.readLine();
    System.out.println("Modtager " + navn + " en form for rabat?");
    System.out.println("(j/n):");
    char answer = SavitchIn.readNonwhiteChar();
    if (answer == 'j'||answer == 'J')
    System.out.println("Indtast den procentsats som " + navn + " modtager:");
    rabat = SavitchIn.readLineDouble();
    public void writeOutput()
    System.out.println("Navn: " + navn);
    System.out.println("Adresse: " + adresse);
    if (rabat > 0)
    System.out.println("Rabat: " + rabat);
    public Kunde()
    navn = "no record";
    adresse = "no record";
    rabat = 0;
    public String getNavn()
    return navn;
    public String getAdresse()
    return adresse;
    public double getRabat()
    return rabat;
    derived class # 1:
    public class PudsPrAreal extends Kunde
    private double areal; //i kvadratmeter
    private String kunde;
    private String pudsningsdato;
    private double kvadratmeterPris;
    private double pris;
    public PudsPrAreal()
    super();
    kunde = "no record";
    pudsningsdato = "no record";
    kvadratmeterPris = 0;
    pris = 0;
    areal = 0;
    public PudsPrAreal(String initialKunde, String initialPudsningsdato, double initialAreal,
    String initialNavn, String initialAdresse, double initialRabat)
    super(initialNavn, initialAdresse, initialRabat);
    set(initialKunde, initialPudsningsdato, initialAreal);
    public void set(String nyKunde, String nyPudsningsdato, double nyAreal)
    kunde = nyKunde;
    pudsningsdato = nyPudsningsdato;
    areal = nyAreal;
    public void readInputPrAreal()
    System.out.println("Indtast datoen hvor vinduespudsningen er blevet foretaget:");
    pudsningsdato = SavitchIn.readLine();
    System.out.println("Hvor mange kvadratmeter skal der afregnes for:");
    areal = SavitchIn.readLineDouble();
    public double pris(double areal)
    double pris;
    double kvadratmeterPris;
    if (areal > 100)
    kvadratmeterPris = 7.0;
    else if (areal >= 500)
    kvadratmeterPris = 6.5;
    else
    kvadratmeterPris = 6.0;
    double prisEks = areal * kvadratmeterPris; //pris eksclusiv rabat
    pris = prisEks * ((100 - getRabat())/100); //pris inclusiv rabat
    return pris;
    public void writeOutputPrAreal()
    System.out.println("Dato for vinduespudsning: " + pudsningsdato);
    System.out.println("Navn: " + getNavn());
    System.out.println("Adresse: " + getAdresse());
    System.out.println("Prisberegningsgrundlag: pr kvadratmeter");
    System.out.println("Antal kvadratmeter: " + areal);
    System.out.println("Pris pr kvadratmeter: " + kvadratmeterPris + " kr.");
    if (getRabat() > 0)
    System.out.println("Rabat: " + getRabat());
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    else
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    public String getkunde()
    return kunde;
    public String getPudsningsdato()
    return pudsningsdato;
    public double getAreal()
    return areal;
    derived class # 2:
    public class PudsPrTime extends Kunde
    private int minuter; //tid for vinduespudsningen angives i minuter
    private double tid; //tid for vinduespudsningen i timer
    private String kunde;
    private String pudsningsdato;
    private double pris;
    public PudsPrTime(String initialKunde, String initialPudsningsdato, int initialMinuter,
    String initialNavn, String initialAdresse, double initialRabat)
    super(initialNavn, initialAdresse, initialRabat);
    set(initialKunde, initialPudsningsdato, initialMinuter);
    public void set(String nyKunde, String nyPudsningsdato, int nyMinuter)
    kunde = nyKunde;
    pudsningsdato = nyPudsningsdato;
    minuter = nyMinuter;
    public void readInputPrTime()
    System.out.println("Indtast datoen hvor vinduespudsningen er blevet foretaget:");
    pudsningsdato = SavitchIn.readLine();
    System.out.println("Hvor mange minuter skal der afregnes for:");
    minuter = SavitchIn.readLineInt();
    public double pris(int minuter)
    int kvarter;
    int minuterTilOvers;
    double pris;
    kvarter = minuter / 15;
    minuterTilOvers = minuter % 15;
    if (minuterTilOvers > 0)
    kvarter++;
    tid = kvarter * 0.25;
    double prisEks = tid * 375; //pris eksclusiv rabat
    pris = prisEks * ((100 - getRabat())/100);
    return pris;
    public void writeOutputPrTime()
    System.out.println("Dato for vinduespudsning: " + pudsningsdato);
    System.out.println("Navn: " + getNavn());
    System.out.println("Adresse: " + getAdresse());
    System.out.println("Prisberegningsgrundlag: pr time");
    System.out.println("Antal timer: " + tid);
    System.out.println("Pris pr time: 375 kr.");
    System.out.println("Der afregnes pr p�begyndt 15 minuter.");
    if (getRabat() > 0)
    System.out.println("Rabat: " + getRabat());
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    else
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    public String getKunde()
    return kunde;
    public String getPudsningsdato()
    return pudsningsdato;
    public int getMinuter()
    return minuter;
    my main program:
    public class Glasklart
    public static void main(String[] args)
    Glasklart kunde = new Glasklart();
    System.out.println("Indtast datoen for idag:");
    String dato = SavitchIn.readLine();
    kunde.readInput();
    System.out.println("Hvad er prisberegningsgrundlaget?");
    System.out.println("Skriv 'k' for pr kvadratmeter eller 't' for pr time:");
    char svar = SavitchIn.readNonwhiteChar();
    if (svar == 'k'||svar == 'K')
    kunde.readInputPrAreal();
    System.out.println("Afregningsdato: " + dato);
    kunde.writeOutputPrAreal();
    else if (svar == 't'||svar == 'T')
    kunde.readInputPrTime();
    System.out.println("Afregningsdato: " + dato);
    kunde.writeOutputPrTime();
    else
    System.out.println("Forkert svar. Pr�v igen.");
    System.out.println("Skriv 'k' for pr kvadratmeter eller 't' for pr time:");
    svar = SavitchIn.readNonwhiteChar();
    error message for my main program:
    "Glasklart.java": Error #: 300 : method readInput() not found in class Glasklart at line 10, column 9
    "Glasklart.java": Error #: 300 : method readInputPrAreal() not found in class Glasklart at line 16, column 13
    "Glasklart.java": Error #: 300 : method writeOutputPrAreal() not found in class Glasklart at line 18, column 13
    "Glasklart.java": Error #: 300 : method readInputPrTime() not found in class Glasklart at line 22, column 13
    "Glasklart.java": Error #: 300 : method writeOutputPrTime() not found in class Glasklart at line 24, column 13

    This line:
    Glasklart kunde = new Glasklart();
    creates an instance of an Glasklart object, not a Kunde object. So when you use the line "kunde.readInput();" you are trying to use a method named readInput from the Glasklart class - there isn't one. Your other errors are related. Most likely, you meant
    Kunde kunde = new Kunde();

  • How to intimate to main program

    hi everybody,
    i have two programs. main.java and test.java
    in main.java i am using the command exec to run the batch file which contain the following statements
    javac test.java
    java test
    it is running nicely. but the problem is, how main program know that the test.java is compiled and run ?
    i mean how to intimate main program that the completion of process ???
    thanks in advance
    ramesh

    [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html#waitFor()]Process.waitFor()

  • How to get return values from a button to main program.

    hello,
    I have a main program which has a button Authenticate. On click of authenticate open a form for auth which has USERNAME FIELS AND PASSWORD.
    If entered fields are true then enable editing of jtable in main program..
    Basically something like this :
    //main program
    Authenticate.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    UpdateAuth ua=new UpdateAuth();// opens form which has username and pass for authentication
    ua.setVisible(true);
    //need code here for enabling table
    if(s=="mactus")
    enable table editing
    //table.repaint();
    // form open for auth..(class UpdateAuth )
    private String SigninMouseClicked(java.awt.event.MouseEvent evt) {
    String aname=Aname.getText();
    String apass=Apassword.getText();
    if(aname.equals("") && apass.equals(""))
    JOptionPane.showMessageDialog(null,"Enter login name or password","Error",JOptionPane.ERROR_MESSAGE);
    if(!(aname.equals("") && apass.equals("")))
    if(aname.equals("harshil") && apass.equals("harshil123"))
    String s="mactus"; /// if username and password is success enable table editing in main program
    return s;
    else if (!aname.equals("mactus") && !apass.equals("mactus123"))
    Aname.setText("");
    Apassword.setText("");     
    return null;
    }

    986154 wrote:
    hello,
    I have a main program which has a button Authenticate. On click of authenticate open a form for auth which has USERNAME FIELS AND PASSWORD.
    If entered fields are true then enable editing of jtable in main program..Well, you might be in over your head.
    //need code here for enabling table
    if(s=="mactus") If you don't know how to correctly test for String equality, you will have no chance of getting this to work.
    You need to hit the tutorials. First the basic one, then the Swing one.

  • Issue in connecting sub VI programs through the main program

    Sir/Madam,
                       I have made a few sub VI  programs of 'Keithley 2400', but I am having problem in connecting them together through the main program. Actually the created sub VI programs are not showing  any activation button when I connect 'action.vi' file in 'read.vi' file (attachted). 
    Please give suggestions.
    Regards
    Yachika Manglik
    Solved!
    Go to Solution.
    Attachments:
    action.vi ‏24 KB
    read.vi ‏14 KB
    write.vi ‏24 KB

    Hello
    Thanks for your suggestion.
    I have successfully implemented connections in my code according to your given suggestion .
    Now I am facing problem to link a file named 'control1.ctl'(attached) that I have made for selecting option 'select type of action' and need to add' control1.ctl' in  'read.vi' file. It is showing  following error( below).
    Error: " required input ' GPIB action' is not wired.
                     OR
               "Enumeric conflict"
    So can you please suggest how this error can be removed?
    Attachments:
    Control 1.ctl ‏5 KB
    read.vi ‏13 KB

  • Can't call or execute of different class files in a main program

    Hi, I got a main program which can call 3 different classes. The main program have an implicit-choice List as a starting menu. If one of the file is selected, the files will call out and display it. However, i managed to call the 1st 2 files, and the 3rd files can't display anything after selected.
    I enclosed my code as below:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class Catalogues extends Form implements CommandListener {
         private Displayable parent;
         private Display display;
         private List Cata;
         private Boots bo;
         private Higheels hHeels;
         private Sandals sand;
         private Slippers sp;
        private Command backCommand = new Command("Back", Command.BACK, 1);
        private Command viewCommand = new Command("View", Command.SCREEN, 1);
        private String[] options = {"Boots", "High Heels","Sandals", "Slippers"};
         public Catalogues(Display d, Displayable p) {
              super("Welcome to Footwear World");
              Cata = new List("Select Option", List.IMPLICIT, options, null);
              display = d;
            parent = p;
              addCommand(backCommand);
              addCommand(viewCommand);
              setCommandListener(this);
         public void commandAction(Command c, Displayable d) {
         if(d==parent && c==List.SELECT_COMMAND){
              switch(parent.getSelectedIndex()){
                   case 0:
                           if(bo==null){
                              bo = new Boots(display,parent);
                             display.setCurrent(bo);
                              break;
                   case 1:
                           if(hHeels==null){
                              hHeels = new Higheels(display,parent);
                             display.setCurrent(hHeels);
                              break;
                   case 2:
                           if(sand==null){
                              sand = new Sandals(display,parent);
                             display.setCurrent(sand);
                              break;
                   case 3:
                           if(sp==null){
                              sp = new Slippers(display,parent);
                             display.setCurrent(sp);
                              break;
                   default:
             else if (c==backCommand) {
                       display.setCurrent(parent);
    }If the 3rd option is selected, i'll display above mentioned layout which contain a list to select too.
    After build this project on WToolkit. It shown an error message which is as below:
    Project settings saved
    Building "SelectCustest"
    C:\WTK22\apps\SelectCustest\src\Catalogues.java:29: cannot resolve symbol
    symbol : method getSelectedIndex ()
    location: class javax.microedition.lcdui.Displayable
    switch(parent.getSelectedIndex()){
    ^
    1 error
    com.sun.kvem.ktools.ExecutionException
    Build failed
    May i know what is problem am i facing now? And how to solve it.
    Thanks.

    Thanks to all for your thoughts and replies. I liked the xargs suggestion, so I tried that first. I would have (may still) try the stdin suggestion, followed by writing the grep output to a file.
    xargs does work, in a way I didn't expect it to, but that could be due to my inexperience with the workings of the shell.
    here's a line from my test script
    cat file | grep foo | xargs java com.company.test.TEchoArghere's the contents of 'file'
    123foo
    abc
    qafoozv
    qaz
    wsx
    qwefoort
    zxcfooh
    sdfghhere's the output from the test class, which just echos any arguments
    ::number of args: 4
    ::args[0] 123foo
    ::args[1] qafoozv
    ::args[2] qwefoort
    ::args[3] zxcfoohso xargs appends all the values from grep into an argument list and call the java class once.
    when I took xargs out of the script, nothing was passed to the class:
    ::number of args: 0this was really interesting and something to keep in my back pocket for future use.
    Thanks again to all.
    Tom

  • How can I allow a sub-vi to run independent of the main program once it has been called while still sending data to the sub-vi

    I have a main program where I call a sub-vi. In this sub-vi, there is a while loop that is used to wait for commands in the sub-vi. While the while loop is running, I cannot continue with normal operation of the main program. I would like get the sub-vi to run independently once it has been called, but not hold up the main program. As well, I need to still be able to send data to the sub-vi

    One way is to use VI Server, which has been mentioned by others. This will allow you to start another VI (by name) and run it entirely independently of the calling VI. This is a good way to start various independent VIs from a main menu, for example. None of the VIs thus called need have any connection to the others.
    Another way it to have the SubVI in a separate while loop on the calling VI's BD. Then, use a local var to start this sub VI from the main loop. The calling VI sets a local START bit and continues running. The sub VI's while loop watches for this START bit to go true, and then runs the Sub VI. The advantage here is that one can more easily pass arguments to the SubVI when it is started, using local vars, which are preferable to globals. Once the Su
    bVI is running, however, you must use a global Stop Bit, set in the calling VI, to stop it when the calling VI exits, or the calling VI will hang up, waiting for the Sub VI to close and exit its while loop.
    If you need an example of this, email me. ([email protected]). I can also recommend Gary W. Johnson's excellent book which discusses this. ("LabVIEW Graphical Programming", 2nd Ed).
    Note: Where possible, I try to call a subvi from within the main VI, wait till it is done, then continue. It avoids the use of locals & globals, and results in cleaner code, with fewer "race" conditions. However, the main VI stops until the subVI is done, hence one should make the subVI modal.

  • How to apply security paramters in a main program to interact with webservi

    Hi ,
    I am working with weblogic 10.1.3 and running build.xml in eclipse for EE
    I would like to know the steps to include security parameters to authenticate with weblogic server and call webservice
    I have written a build.xml that takes input as wsdl , When I run the build.xml it generates
    all the necessary stubs and interfaces
    I have written a main program that imports generated classes and invoke the webservice method
    below are buidl.xml and two classes( main program and one java class) which I used to invoke webservice
    Build.xml
    =====
    <project name="webservices-simple_client" default="all">
         <!-- set global properties for this      -->
         <property name="wls.hostname" value="localhost" />
         <property name="wls.port" value="8002" />
         <property name="example-output" value="output" />
         <property name="clientclass-dir" value="${example-output}/srcclasses" />
         <property name="clientclassfiles-dir" value="${example-output}/classfiles" />
         <path id="client.class.path">
              <pathelement path="${clientclass-dir}" />
              <pathelement path="${java.class.path}" />
         </path>
         <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
         <target name="clean">
              <delete dir="${clientclass-dir}" />
              <delete dir="../src/com/bea/wlcp/wlng/ws/presence" />
              <delete dir="../src/org/csapi/schema/paralyx/common/v2_1" />
              <delete dir="../src/org/csapi/schema/paralyx/presence/consumer/v2_3/local" />
              <delete dir="../src/org/csapi/schema/parlayx/presence/v2_3" />
              <echo message="Cleaning Completed" />
         </target>
         <target name="build-client">
              <clientgen wsdl="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer?WSDL" destdir="${clientclass-dir}" generatepolicymethods="true" packageName="com.bea.wlcp.wlng.ws.presence" />
              <javac srcdir="${clientclass-dir}" destdir="${clientclassfiles-dir}" includes="**/*.java" />
              <copy overwrite="true" todir="../src">
                   <fileset dir="${clientclass-dir}" />
              </copy>
              <copy overwrite="true" todir="../src">
                   <fileset dir="${clientclassfiles-dir}" />
              </copy>
              <delete dir="${clientclass-dir}" />
              <delete dir="${clientclassfiles-dir}" />
              <echo message="Building Completed" />
         </target>
         <target name="all" depends="clean,build-client" />
    </project>
    ======================================================
    import java.net.URI;
    import javax.xml.rpc.Stub;
    import javax.xml.ws.BindingProvider;
    import java.net.Proxy;
    import java.net.InetSocketAddress;
    import java.util.ArrayList;
    import java.util.List;
    import weblogic.webservice.wsdl.WsdlPort;
    import weblogic.wsee.connection.transport.http.HttpTransportInfo;
    import weblogic.wsee.jaxrpc.ServiceImpl;
    import org.csapi.schema.parlayx.common.v2_1.PolicyException;
    import org.csapi.schema.parlayx.common.v2_1.SimpleReference;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresence;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresenceResponse;
    import com.bea.wlcp.wlng.et.core.module.session_manager.GTUsernameTokenPolicy;
    import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumer;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumerService_Impl;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import weblogic.xml.crypto.wss.WSSecurityContext;
    import weblogic.xml.crypto.wss.provider.CredentialProvider;
    @SuppressWarnings("deprecation")
    public class Main {
         @SuppressWarnings("unchecked")
         public static void main(String[] args) throws javax.xml.rpc.ServiceException,PolicyException{
         try{
         /*PresenceConsumerService_Impl pcs_impl = new PresenceConsumerService_Impl("http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL");
         PresenceConsumer pc = (PresenceConsumer) pcs_impl.getPresenceConsumer();
         UserCredentialsvalidation gt = new UserCredentialsvalidation("sdpai","sdp");*/
         SimpleReference rf = new SimpleReference();
         rf.setCorrelator("correlatorid");
         rf.setEndpoint(URI.create("http://localhost:8002/PresenceConsumerService/services/PresenceConsumer"));
         rf.setInterfaceName("PresenceConsumer");
         SubscribePresence sb = new SubscribePresence();
         sb.setApplication("sdp");
         sb.setPresentity(URI.create("tel:1234"));
         sb.setReference(rf);
         System.out.println(" Before calling subscribe presence ==" );
         //SubscribePresenceResponse spr = pc.subscribePresence(sb);
         System.out.println(" Hi There here 2226678565");
         System.out.println(" Hi There here 333");
         //raja
         String strUrl = "http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL";
         Stub objStub = (Stub) new PresenceConsumerService_Impl().getPresenceConsumer();
         objStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"sdpai");
         objStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"sdp");
         objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,strUrl);
         PresenceConsumer port = (PresenceConsumer) objStub;
         String returnVal = "";
         System.out.println(" Hi There here 77");
         SubscribePresenceResponse spr = port.subscribePresence(sb);
         System.out.println(spr);
         //ended here
              catch(Exception e)
                   e.printStackTrace();
    =======================================
    UserCredentialsvalidation.java
    import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
    import com.bea.wlcp.wlng.schema.ews.common.ServiceException;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import javax.xml.rpc.Stub;
    import java.util.ArrayList;
    import java.util.List;
    public class UserCredentialsvalidation implements PolicyBase {
         private String username;
         private String password;
         public UserCredentialsvalidation(String username, String password) {
              this.username = username;
              this.password = password;
              String sessionManagerURL="http://localhost:8002/session_manager/SessionManager";
              SessionManagerService accessservice = null;
              try {
              accessservice = (SessionManagerService) new SessionManagerService_Impl(sessionManagerURL+"?WSDL");
              SessionManager port = accessservice.getSessionManager();
              System.out.println(" port >>>>>");
              System.out.println(" port >>>>>" +port);
              UserCredentialsvalidation pbase = new UserCredentialsvalidation();
              pbase.prepareStub((Stub)port,username,password);
              } catch (Exception e) {
                   System.out.println(" helo helo");
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public UserCredentialsvalidation() {
              // TODO Auto-generated constructor stub
         public void prepareStub(Stub stub,String username,String password) throws Exception {
              List<ClientUNTCredentialProvider> credProviders = new ArrayList<ClientUNTCredentialProvider>();
              System.out.println(" username >>> " + username.getBytes());
              System.out.println(" password >>> " + password.getBytes());
              credProviders.add(new ClientUNTCredentialProvider(username.getBytes(),
                        password.getBytes()));
              System.out.println("setting standard wssec");
              stub._setProperty("weblogic.wsee.security.wss.CredentialProviderList",
                        credProviders);
              System.out.println("Getting property from stub== " + stub._getProperty("weblogic.wsee.security.wss.CredentialProviderList"));
         @Override
         public void prepareStub(Stub port) throws Exception {
              // TODO Auto-generated method stub
    =========================================
    When I run the main program I am getting below exception
    Before calling subscribe presence ==
    Hi There here 2226678565
    Hi There here 333
    Hi There here 77
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Unable to add security token for identity] FaultActor [null]No Detail; nested exception is:
         weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
         at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:37)
         at Main.main(Main.java:62)
    Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
         at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
         at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
         at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:32)
         ... 1 more
    Caused by: weblogic.xml.crypto.wss.WSSecurityException: Unable to add security token for identity
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processIdentity(SecurityPolicyDriver.java:175)
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:73)
         at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
         at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
         at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
         ... 4 more
    ==========================================================
    I am working for 3 days to solve this issue, but helpless :(
    Please tell me I am going in right way , I read many forums and implemented different ways , but getting same problem, that too before calling webservice method .
    Do i need to do anything more apart from adding username and password parameters
    Please tell me the exact steps how to perform authentication with webservices
    Your answer will help me a lot .
    Thanks in Advance
    Regards
    Rajasekhar

    Please ignore this thread

  • How to use dynamic selection screen inputs in main program

    hi all,
      its a report where in it calls one dynamic selection screen( user need to enter the parameters here) after that i need to use those inputs for some check, can any buddy help how to use/ get that input parameters into main program.
    regards,
    vara..

    Hi,
    i think u have created that dynamic selection screen in seperate program and calling to ur main program.instead of that u just create that synamic selection screen program as include program and include it in ur main program.
    or u need to use set/get parameter id concept.
    rgds,
    bharat.

  • Error in main program assignment of enhancement

    Hi all,
    I have to create an enhancement in an include RFITEM_INC for tcode FBL1n & FBL3N.
    The objective is to populate data in a newly added field to the output of above transactions.
    For the purpose, enhancement is to be written in same form statement for both the programs, also the code required is same.
    I have created it for one program (FBL3N : RFITEMGL); and now whenever i try to create another enhancement at same location for  other program (FBL1N : RFITEMAP)  the enhancement is created again for the previous program  (RFITEMGL) for which the enhancement alreasy exists.
    Therefore, is there any method to attach same enhancement to two main programs or to successfully create two enhancements at same location attached to two different programs.
    Please note taht I have been able to create it successfully on sandbox but the above problem is occuring on client's server...anything specific?
    Please Help.
    Thanks.
    Edited by: Rekha Singh on Mar 3, 2009 2:03 PM

    answered

  • How to pass the caught exception in Thread.run back to the main program?

    I have following three Java files (simplified from a real world application I am developing, see files at the end of this posting):
    1. ThreadTest.java: The main program that invokes the Manager.run()
    2. Manager.java: The manager that creates a thread to execute the Agent.run() for each agent
    3. Agnet.java: The run() method can throw Exception
    My goal is twofold:
    1. To execute the run() method of an Agent in a thread (the reason for this is there are many Agents all managed by a Manager)
    2. To catch the exception thrown by Agent.run() in the main program, ThreadTest.main() -- so the main program can alert the exceptions
    My problem:
    Bottomline: I cannot pass the exception thrown by Agent.run() in the Thread.run() back to the main program.
    Explanation:
    The signature of Thread.run() (or Runnable.run()) is
    public void run();
    Since it does not have a throws clause, so I have to try/catch the Agent.run(), and rethrow a RuntimeException or Error. However, this RuntimeException or Error will not be caught by the main program.
    One work-around:
    Subclass the ThreadGroup, override the ThreaGroup.uncaughtException() methods, and spawn the threads of this group. However, I have to duplicate the logging and exception alerts in the uncaughtException() in addition to those already in the main program. This makes the design a bit ugly.
    Any suggestions? Am I doing this right?
    Thanks,
    Xiao-Li "Lee" Yang
    Three Java Files:
    // Agent.java
    public class Agent {
    public void run() throws Exception {
    throw new Exception("Test Exception"); // Agent can throw execptions
    // Manager.java
    public class Manager {
    public void run() throws Exception {
    try {         // <===  This try/catch is virtually useless: it does not catch the RuntimeException
    int numberOfAgents = 1;
    for (int i = 0; i < numberOfAgents; i++) {
    Thread t = new
    Thread("" + i) {
    public void run() {
    try {
    new Agent().run();
    } catch (Exception e) {
    throw new RuntimeException(e); // <=== has to be RuntimeException or Error
    t.start();
    } catch (Exception e) {
    throw new Exception(e); // <== never got here
    // ThreadTest.java
    public class ThreadTest {
    public static void main(String[] args) {   
    try {
    Manager manager = new Manager();
    manager.run();
    } catch (Throwable t) {
    System.out.println("Caught!"); // <== never got here
    t.printStackTrace();

    The problem is, where could you catch it anyway?
    try {
    thread.start();
    catch(SomeException e) {
    A thread runs in a separate, er, thread, that the catch(SomeException) isn't running within. Get it?
    Actually the Thread class (or maybe ThreadGroup or whatever) is the one responsible for invoking the thread's run() method, within a new thread. It is the one that would have to catch and deal with the exception - but how would it? You can't tell it what to do with it, it (Thread/ThreadGroup) is not your code.

  • Runtime Errors SYSTEM_RUDI_INVALID main program /CRYSTAL/PUBLISHER

    Hello,
    we try to publish reports with transaction /CRYSTAL/RPTADMIN.
    If we publish only one report in dialog we don't have problem. Also if we publish a few report in background.
    But if we try to publish more than one report in dialog (publish (F8) or overwrite (F6) we get a runtime error SYSTEM_RUDI_INVALID.
    Extraction from the error:
    Short text
    Invalid addressig handle "RUDI_NULL".
    What happened?
    Error in the SAP kernel.
    The current ABAP "SAPLSH3A" program had to be terminated because the
    ABAP processor detected an internal system error.
    Error analysis
    Invalid runtime object addressed.
    How to correct the error
    The internal system error cannot be fixed by ABAP means only.
    You may be able to find a solution in the SAP note system. If you have
    access to the SAP note system, try searching for the following terms:
    "SYSTEM_RUDI_INVALID" " "
    "SAPLSH3A" or "LSH3AU06"
    "LOGONDATA_GET_A"
    Information on where terminated
    Termination occurred in the ABAP program "SAPLSH3A" - in "LOGONDATA_GET_A".
    The main program was "/CRYSTAL/PUBLISH_WORKER ".
    In the source code you have the termination point in line 1
    of the (Include) program "LSH3AU06".
    We've got a Netweaver 7.02 BW system with Kernel 7.20 PL 86
    We found several notes with the error SYSTEM_RUDI_INVALID, which all are related to kernel patches. But nothing which match to our problem.
    Any ideas?
    Best regards
    Petra Wöritz

    Hi,
    I would suggest you open a message with support so that they can take a look at the system.
    Ingo

Maybe you are looking for

  • Can Data Links be established between Data sets based on View Objects?

    Hi all, In the BI Publisher Documentation it's given that Datasets based on view object queries do not support Data Links / Group Links. We found out that only way to establish relationship between view object Datasets is to create a view link and th

  • Can I include editable PDFs in a WinForms application?

    I need to allow a user to load an editable PDF, to edit it, and to save the changes.  Is there information somewhere on how to do this?

  • How to get Panel coordinates

    Hi All,             i have a panel in canvas layout.            if want to add one more panel immediate  next to the first panel i need to know  x, y coordinate of the first panel.             How can i know i the coordinates. Can any help me? thanks

  • How does Roll up of cost of scrapped material to the product happens

    Dear Friends, We are using ECC6.00 (EHP4) with CO module also implemented. in QM module we use notification type Q3 to scrap material which is rejected in the production order. Using transaction CO11N, we book scrap in the order and using the functio

  • GDS without ECC at backend

    Hi GDS experts, 1. We are planning to implement SAP GDS solution but without ECC at backend. Is it possible to do that? 2. Do you have the import and export XSD structures that we can use to import and syndicate data to and from GDS repository? Regar