Funny Problem with method GET_GROUPED_COLUMNS

Hi All,
I am encountering a funny problem. I need to provide all Grouped Columns of my Web Dynpro Table. I used the following coding to do this:
lt_col_grp = lo_table->get_grouped_columns( ).
Now, for one table this methode return all Grouped Columns and for another table it returns not only the Grouped Columns, but also the NON Grouped Columns!!!
In the debugger this looks as follows:
1     *->{O:1752*\CLASS=CL_WD_TABLE_COLUMN}*
2     ->{O:1755*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
3     ->{O:1757*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
4     ->{O:1759*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
5     ->{O:1761*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
6     ->{O:1763*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
7     ->{O:1765*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
Why is that??
Does anybody know how to delete the lines that are not of type CL_WD_TABLE_COLUMN_GROUP?
Thanks,
Johannes

Hi Maik
It seems you have solved your problem. There are some actions clearing all selection and scrolling info. And since you every time create a new instance or call some method which clears your selections your selections table is lost.
For a screen session, you should use "set_table_for_first_display" for just once and for next PBO triggers you should execute the method "refresh_table_display".
*--Serdar

Similar Messages

  • UNIX Problem with method Runtime exec(String[],String[],File)

    Hello !!
    i'm french
    scuse my english
    I got a probleme with method exec(String[],String[],File) of Runtime Class
    i don't have any probleme when my program runs on Windows NT but the same program on UNIX doesnt execute my command..
    When i use exec(String[]) methode i dont have this problem ...but i need the second one methode because i have to execute my command in a different directory than the JAVA program.
    I need that results of this command are placed in this drectory so that i can't use an exex() like that :
    exemple with a perl :
    "perl /toto/titi/hello.pl"
    I want to execute this :
    "perl hello.pl" (and hello.pl is placed in /toto/titi)
    Conclusion :
    the exec(String[],String[],File) solution is ok with NT ...
    but with UNIX ????
    Is there other solution ??
    Should i do a "cd" command before my execution ? how can i do this ??
    Thanks !!!!

    Could you post your source code (only relevant part)
    Raghu

  • Funny problem with the mapping

    Dear All,
    I am facing with a funny problem with the mapping.
    I am working on a scenario in which Invoice IDOC created in R/3 will be posted to XI and then in XI, mapping are done to create an XML file out of that IDOC.
    In the Idoc, there is a segment E1EDKA1 which is getting created multiple times for different partners alongwith their details. The fields in E1EDKA1 segment are: PARVW,PARTN LIFNR etc.
    In the output I just want LIFNR number where PARVW = RE or RS.
    I have done the required mapping and when I am testing the mapping its giving me the required results correctly but when I make this scenario live then in real-time, the output XML file has no value for LIFNR.
    Can anybody guide me out why is it happening tht during mapping testing its giving the correct result but at real time the mapping is returing no value.
    Warm Regards,
    N.Jain

    Hi Nishant,
    Are you sure the test data which you are using while testing the mapping in IR and the one which comes when you test real time is the same?
    The data which comes real time. Copy the source payload and then test in mapping. See if you get the right data which you expect. If you do then theres some problem.
    Now also go to the same message and in trace you can find out the GUID of the mapping program which is used.
    Go to RWB - Last button..not sure what the name is .. something similar to Cache.. Find your mapping program and see if the GUID Matches. If the GUID matches then it is okay.
    Also try to do the following..
    Reactive the MM/IM.
    Go to ID. Make some dummy change in Interface determination and then activate it.
    Check the cache notification to make sure if the cache is updated.
    If the above doesnt help you let us know.
    Regards,
    Sumit

  • Problem with Method environment_get_variable (Windows GUI)

    Hello,
    I want to use the Method "cl_gui_frontend_services=>environment_get_variable".
    I try this coding with same keywords ('%TMP%', 'TMP', ...), but the result is ever sy-subrc = 0 und s_path is initial.
    DATA s_path TYPE string.
          CALL METHOD cl_gui_frontend_services=>environment_get_variable
            EXPORTING
              variable             = 'USERPROFILE'
            CHANGING
              value                = s_path
            EXCEPTIONS
              cntl_error           = 1
              error_no_gui         = 2
              not_supported_by_gui = 3
              OTHERS               = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    Please, can every body tell what is wrong.
    Thanks

    hi,
    seems to be a problem with java environment...
    see link and note
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_fes/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31303237303133%7d]
    take a look at the env-variable:
    QTJAVA=d:Javajre1.5.0_11libextQTJava.zip
    and try to change it to older relase (1.4!)
    Bye

  • Problem with method action after migrating from TP2 to TP4

    Hi,
    we are migrating our application (ADF Faces, ADF BC) from TP2 to TP4. We have encountered several problems.
    The biggest that we could not solve is as following:
    In our View Object's RowImpl.java classes we have method void refreshLOVAccessorQueries(). In a number of View Objects that method is placed in client interface. In pageDefs of jspx pages that are bound to that View Objects we have method action like
    <methodAction IterBinding="TeeCronTtVOIterator"
    id="refreshLOVAccessorQueriesCron"
    InstanceName="bindings.TeeCronTtVOIterator.currentRow"
    DataControl="TradingAppModuleDataControl"
    RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="refreshLOVAccessorQueries"
    IsViewObjectMethod="false" IsLocalObjectReference="true"/>
    and invoke action like
    <invokeAction id="refreshCronLOVs" Binds="refreshLOVAccessorQueriesCron"
    Refresh="prepareModel"
    RefreshCondition="#{!requestContext.postback and empty bindings.exceptionList}"/>
    When we are accessing such a jspx page the application rases error:
    "Method bindings.TeeCronTtVOIterator.currentRow.refreshLOVAccessorQueries() not supported "
    In TP2 everything worked fine. Now in TP4 for some VO that refresh is OK and for others just mentioned error is thrown. Confusing is that all View Objects and their java classes are created in the same manner and they are almost identical, and this counts for pageDefs too.
    What could be the reason of all this?
    Second thing is that in adfc-config.xml in backing bean defs we have managed-property like:
    <managed-bean>
    <managed-bean-name>regionBacking</managed-bean-name>
    <managed-bean-class>app.view.backing.RegionBacking</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    JDeveloper warn us about that with: ' EL token bindings" is unknown '. Why is that? It looks that everything connected with that managed property works fine.
    Another problem is not severe but unpleasant
    After migration to TP4 nothing (not one element) is visible (shown) in the design view.
    The structure of the pages is similar as in the StoreFrontDemo and it shows just fine in TP2.
    Thanks!!!

    Thanks Frank,
    but working from beginning is to much work so, we have solved it in another way.
    Regard to first problem we discovered that it is happening only when there is no Rows in iterator for which we are invoking action. In invoke action we have changed refresh property to default value and the problem is solved.
    Second thing is warning that has no other effect so we will ignore it.
    About third problem, when we create new working copy of application in JDeveloper without system11.1..... directory, JDev works fine and all jspx pages are shown in design view. After some work, due to undiscovered reason design view is lost... What could cause this?
    Maxa

  • Problem with method "write" in POI Library.

    Best regards, I have the following problem: I have a application in Oracle BPM 10g, that generates a file in Excel. First it upload a template, then query the data base, and storage this data in "POI Object" of type "XSSFWorkbook"; all of the this, at memory.
    The problem is when I try to write this object  "XSSFWorkbook", in the file(generate a Physical File), the file size is about 35 MB, usgin the method wb.write(out) of the "POI Library", my server spend about 15  minutes, generating blocks.
    I' like that some help me to solve this problem, maybe making any setting in my server.
    My Servers are:
    Application Server: Oracle WebLogic 10.3.1
    and File Server: Oracle Linux. Memoy: 32GB
    I show you the code in java:
                rsQuery = generarTablas(sStoredProcedure,xmlTableroControl);
                InputStream inp = JExcel.cargarPlantillaLectura(sRutaOrigen + sNombreOrigen + ".bck");
               XSSFWorkbook  wb = new XSSFWorkbook(inp);  //DESCOMENTAR
              wb.setForceFormulaRecalculation(true);
                int vnHoja = 0;
                String vsTabla = "";
                while(rsQuery.next()){
                    vnHoja  = rsQuery.getInt(1);
                    vsTabla = rsQuery.getString(2);
                    outResultado = new BufferedWriter (new FileWriter("/tmp/"+String.valueOf(nOrden)+vsTabla+".txt"));
                    outResultado.write("vsTabla: "+vsTabla+" Hoja : "+String.valueOf(vnHoja)+  "\n"+String.valueOf(Util.getTodayTime()));
                    outResultado.close();
                  nOrden ++;
                    this.rsConsulta = consultar(vsTabla);
                  if(_getRowCount(this.rsConsulta)>0)
                        generarHoja(wb, 6, vnHoja);
                        this.rsConsulta = null;//agregado 12/06/2013
                 File tempFileXLS = File.createTempFile(sNombreDestino + this.sFechaFin + "_", ".xlsx");
                ruta = sRutaDestino + tempFileXLS.getName();
                OutputStream out = new FileOutputStream(ruta);
                inp.close();
                wb.write(out);//---------------------> PROBLEM

    Best regards, I have the following problem: I have a application in Oracle BPM 10g, that generates a file in Excel. First it upload a template, then query the data base, and storage this data in "POI Object" of type "XSSFWorkbook"; all of the this, at memory.
    The problem is when I try to write this object  "XSSFWorkbook", in the file(generate a Physical File), the file size is about 35 MB, usgin the method wb.write(out) of the "POI Library", my server spend about 15  minutes, generating blocks.
    I' like that some help me to solve this problem, maybe making any setting in my server.
    My Servers are:
    Application Server: Oracle WebLogic 10.3.1
    and File Server: Oracle Linux. Memoy: 32GB
    I show you the code in java:
                rsQuery = generarTablas(sStoredProcedure,xmlTableroControl);
                InputStream inp = JExcel.cargarPlantillaLectura(sRutaOrigen + sNombreOrigen + ".bck");
               XSSFWorkbook  wb = new XSSFWorkbook(inp);  //DESCOMENTAR
              wb.setForceFormulaRecalculation(true);
                int vnHoja = 0;
                String vsTabla = "";
                while(rsQuery.next()){
                    vnHoja  = rsQuery.getInt(1);
                    vsTabla = rsQuery.getString(2);
                    outResultado = new BufferedWriter (new FileWriter("/tmp/"+String.valueOf(nOrden)+vsTabla+".txt"));
                    outResultado.write("vsTabla: "+vsTabla+" Hoja : "+String.valueOf(vnHoja)+  "\n"+String.valueOf(Util.getTodayTime()));
                    outResultado.close();
                  nOrden ++;
                    this.rsConsulta = consultar(vsTabla);
                  if(_getRowCount(this.rsConsulta)>0)
                        generarHoja(wb, 6, vnHoja);
                        this.rsConsulta = null;//agregado 12/06/2013
                 File tempFileXLS = File.createTempFile(sNombreDestino + this.sFechaFin + "_", ".xlsx");
                ruta = sRutaDestino + tempFileXLS.getName();
                OutputStream out = new FileOutputStream(ruta);
                inp.close();
                wb.write(out);//---------------------> PROBLEM

  • Problem with method just cannot get it to work

    hi. i got a problem in this part of my program. i am to read in a text file and store it in the arrys before printing it out.but i cannot get the file to be read into the array and to be printed out correctly.
    my text file to be read in is something like this:
    Question0
    what is your name
    a: nick
    b: john
    c: peter
    d: jane
    c
    Question1
    what is your most prefered colour
    a: red
    b: blue
    c: green
    d: yellow
    a
    but when i run the code i have written it keeps printing out like this:(excally what is printed out). the entire order is being messes but with no "questionO" which there should be and the "what is your name question being repeated twice, and the second time without the answer.
    what is your name
    a: nick
    b: john
    c: peter
    d: jane
    c
    what is your name
    a: nick
    b: john
    c: peter
    d: jane
    Question1
    what is your most prefered colour
    a: red
    b: blue
    c: green
    d: yellow
    a
    please can you advice me if in any part of this i have gone wrong, and what should i do to solve the probelm. i really need this help thanks.
    my code is:
    static int questionIndex = 0;
    static int mainMenuOption = 0;
    static String []question = new String[20];
    static String []answer = new String[20];
              do {
                   mainMenu();
                   mainMenuOption = Console.readInt("Enter Choice(1-3) :");
                        if (mainMenuOption==2)
                             takeTestOption();
              } while (mainMenuOption!=3);
              public static void mainMenu() {
                   System.out.println("2.Take Test");
                   System.out.println("3.Quit");
                   System.out.println("");
    public static void takeTestOption(){
                        readInQuestion();               
                   public static void takeTestOption(){
                   //     mainMenu();//prints out the menu options to be entered by the users
                        readInQuestion();
                        //printingOutQuestion();               
                   public static void readInQuestion() {
                        String fileName = "apple.txt";
                        FileIn readInFile = new FileIn(fileName);
                        String readInFileText = readInFile.readString();
                        String finalText= "";
                             if(readInFile.getReadStatus() != readInFile.FILE_NOT_FOUND){
                                   while (readInFile.getReadStatus() != readInFile.EOF ){
                                        while (readInFileText.length() !=2) {
                                            finalText = finalText+readInFileText;
                                            readInFileText = readInFile.readString();
                                       question[questionIndex]=finalText;
                                       if (readInFileText.length()==2) {
                                            answer[questionIndex] = readInFileText;
                                       questionIndex++;
                                       readInFileText = readInFile.readString();
                                        printingOutQuestion();
                   public static void printingOutQuestion() {
                        for (int index=0;index<questionIndex; index++){
                             System.out.println(question[index]);
                             System.out.println(answer[index]);
                   }

    You are using a class that was supplied by the teacher (FileIn). This is a class that none of us knows about. If it is small, it would be useful to post that as well.

  • Funny problem with Netscape

    I am having an applet. When I removed all class files and place JAR file, Netscape started giving problem.
    Please note following
    1)On local intranet both IE / Netscape applet is running properly. (With Jar and with classfiles.)
    For LIVE :
    2)If I try to connect through direct dial-up connection to Live server, again both IE / Netscape are ok (With Jar and with classfiles.)
    3)If I connect through local intranet to LIVE server (my computer is behind the firewall) and put the class files then also for both IE / Netscape it is ok
    4)If I connect through local intranet to LIVE server (my computer is behind the firewall) AND WHEN I REMOVE ALL CLASS FILES AND REPLACE WITH JAR FILE, IE is still ok, Netscape is giving following error :
    java.lang.NullPointerException
    at java.lang.StringBuffer.append(Compiled Code)
    * at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    It is very obvious, problem is because of Firewall and Netscape security, but how to get around this problem ?
    manisha

    Hi,
    I don't know whether it is exactly a same problem or not, but, my applet had received the same error message at start time . What I did in previous revision is System.getProperty("user.dir") as applet's instance variable.
    class myApplet extends JApplet {
    private String currDir = System.getProperty("user.dir");
    //Other code goes here......
    Since my applet does some local file access, security code is already there in init(), so I moved getProperty() to the inside of the init(), like:
    class myApplet extends JApplet {
    private String currDir = null;
    public void init() {
    //Security permissions are here
    currDir = System.getProperty("user.dir");
    //Other codes goed here...
    Then problem gone.
    Because Netscape message does not indicate that this is a security related problem nor, problem is related to applet initialization, so I really think finding resolution is very much difficult.
    I believe other people who have this problem may have some security-related code in their applet...
    Worse, this problem does not happen in Internet Explorer (MSVM).
    If getting "user.dir" at initialization of the applet is a security violation, those VMs should report it so, I think...
    Anyway, this is my case. I hope this information will make any sense in your case as well.
    Regards,
    M.H.

  • Very funny problem, with Swing, please tell me WHY

    Hi, guys ,
    It seems very funny to me when developog a chat application.
    when every time, user enter the text and hit the Enter (through a listener), the text shows up at the screen, and if more texts than the screen, the screen will always focus at the bottom line.
    Hwoever, if you do the same but not via a actionPerformed method,(i.e. a for loop in the main metho) the screen will always focus on the first line of the jTextPane.
    have a try:
    this code will make the focus on the first line, but if you uncomment the thing in the actionPerformed method, and comment one in the main method, if will be totally different
    Please tell me WHY
    import javax.swing.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    public class Pane extends JFrame {
    JTextPane txtOutput ;
    StyledDocument document;
    Style normalStyle;
    JTextField jf;
    public Pane()
    Container cont = getContentPane();
    cont.setLayout(new BorderLayout());
    txtOutput = new JTextPane();
    jf = new JTextField(80);
    document = txtOutput.getStyledDocument();
    // Define style for outputStyle
    normalStyle = document.addStyle("Normal", null);
    StyleConstants.setItalic(normalStyle, false);
    StyleConstants.setFontFamily(normalStyle, "Courier");
    StyleConstants.setFontSize(normalStyle, 14);
    StyleConstants.setForeground(normalStyle, Color.red);
    // Now to insert string at end
    txtOutput.setEditable(false);
    cont.add(new JScrollPane(txtOutput),BorderLayout.CENTER);
    cont.add(jf,BorderLayout.SOUTH);
    cont.setVisible(true);
    cont.setBounds(100,300,400,500);
    jf.addActionListener(
    new ActionListener() {
    public void actionPerformed (ActionEvent event)
    //int i = 50;
    //while(i>0){
    //setText1("gegegeg");
    //i--;
    public void setText1(String event) {
    String s= event;
    //s = jf.getText();
    try{
    document.insertString(document.getLength(), s+"\n\n" , normalStyle );
    catch (Exception e) {
    System.out.println("askdf "+e);
    public static void main(String args[])
    Pane p = new Pane();
    p.show();
    System.out.println("I am finish");
    int i = 50;
    while(i>0){
    setText1("gegegeg");
    i--;
    }

    I dunno why, why is it important? if you want it to focus on the last line, just always put a code that makes it focus on the last line, and that's it

  • Funny problem with schema pattern regular expression

    I have following element in my schema:
    <xsd:element name="lD">
         <xsd:simpleType>
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="\d{5,8}" />
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:element>then in the XML, I have:
    <ID>
    123456789
    </ID>funny thing is the schema validates the value successfully. seems the upper bound of 8 the in the regular expression does not have any effect. however, 1234 would fail.
    i looked up the schema prime on W3C, it specifies that {n,m} means at least n and at most m.
    any idea anyone?
    I have using Xerces 1.4.4.
    Thanks

    I tried the example you mentioned and it seemed to
    work for me. It validated both the upper bound and
    the lower bound. Looking at the Manifest file in
    xerces jar, it looks like I have version 2.5.0yes, I know. Xerces 2 works, but Xerces 1 has the above problem. If you get Xerces 1.4.4 from xml.apache.org, you will see the problem.
    I can not use Xerces 2 in our production environment yet.

  • OpenGL wired problem with method "glWindowPos2d"

    Hi,
    I'm trying to write text on canvas according to
    link
    but I get this strange exception:
    Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Method "glWindowPos2d" not available
         at com.sun.opengl.impl.GLImpl.glWindowPos2d(GLImpl.java:29148)
         at Display.Renderer.renderText(Renderer.java:100)
         at Display.Renderer.renderLives(Renderer.java:78)
         at Controller.Main.display(Main.java:358)
         at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
         at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)
         at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
         at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
         at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
         at javax.media.opengl.GLCanvas.paint(GLCanvas.java:277)
         at sun.awt.RepaintArea.paintComponent(Unknown Source)
         at sun.awt.RepaintArea.paint(Unknown Source)
         at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)I tried this code at another computer, it works perfect.
    I added to openGL jars to the path of the projects exactly the same.
    Anybody? :)
    Thanks

    I think so.
    We downloaded the same JOGL (the other computer works with Vista)
    we downloaded and install according to here:
    here
    -- under section "Resources" the installation guide.
    Thanks

  • I hava problem with method boolean

    The following method boolean controls if the Point is in the rectangle,which is correct...
    but the next method, which should show minimal rectangle, if the point is in it,shows an error..
    X cannot be resolved
    Y cannot be resolved
    I tried r.istPunktEnthalten(),but the same ...
    public boolean istPunktEnthalten(int X,int Y){
    if (X>=x1 && X<=x2 && Y>=y1 && Y<=y2 ){
    return true;
    return false;
    Rechteck vereinigung(Rechteck r){
    if (istPunktEnthalten(X,Y)){
    r.x2=X;
    r.y2=Y;
    return r;
    else return null;
    Edited by: baddalgazi on Mar 29, 2008 1:57 PM

    of course....
    here is the full class rectangle...
    I think i understand the problem, but i dont't know how to solve it
    public class Rechteck {
         int x1,x2,y1,y2;
         public Rechteck(int x1, int y1, int x2, int y2){
                   this.x1=x1;
                   this.x2=x2;
                   this.y1=y1;
                   this.y2=y2;
         public void bewegeUm(int x,int y){
              x1=x1+x;
              x2=x2+x;
              y1=y1+y;
              y2=y2+y;
         public boolean istPunktEnthalten(int X,int Y){
              if (X>=x1 && X<=x2 && Y>=y1 && Y<=y2 ){
                    return true;
              return false;
         Rechteck vereinigung(Rechteck r){
              if (istPunktEnthalten(X,Y)){
                   r.x2=X;
                   r.y2=Y;
                   return r;
         //Rechteck ueberlappung(Rechteck r){
         public String toString(){
              return "["+x1+","+y1+";"+x2+","+y2+"]";
    }Edited by: baddalgazi on Mar 29, 2008 3:29 PM

  • Problem with Method

    This code results is a number of syntax errors which I can't solve. Can anyone see where I'm going wrong?
    import neiPack.*;
    public class Class1
         public static void main (String[] args)
              int salary, annualSalary;
              String name;
              neInOut.println("Please enter the Name.");
              name=neInOut.readLine();
              neInOut.println("Please enter the Monthly Salary.");
              salary=neInOut.readInt();
              annualSalary=calcSal(salary);
              printResults();
              int calcSal(int salary)
                   int res;
                   res=salary*12;
                   return res;
              void printResults()
                   neInOut.println("Employee: "+name+" has an annual salary of: "+annualSalary);
              neInOut.readLine();

    what about posting the error message??
    this might be more helpful - especially cause I don't know the package "neiPack"...
    when will the exceptions be thrown? while compilation (if the code sample is your original there the source won't compile without error messages) or while execution ouf your app?
    please have a look at the "special tokens" page (http://forum.java.sun.com/faq.jsp#format) before posting further code examples...
    import neiPack.*;
    public class Class1 {
       public static void main (String[] args) {
          int salary, annualSalary;
          String name;
          neInOut.println("Please enter the Name.");
          name=neInOut.readLine();
          neInOut.println("Please enter the Monthly Salary.");
          salary=neInOut.readInt();
          annualSalary=calcSal(salary);
          printResults();
       } // ? you forgot this - you cannot define methods inside another method
       int calcSal(int salary) { // should be static int calcSal(int salary) to be available in the static main method!
          int res;
          res=salary*12;
          return res;
          // what about: return salary*12 ?
       void printResults() { // should be static int printResults() to be available in the static main method!
          neInOut.println("Employee: "+name+" has an annual salary of: "+annualSalary);
       // neInOut.readLine(); ??
    }ok... what happens when?

  • Funny problem with getting Priner code

    Hello, I got the Deskjet 1510 as a gift, I want to add my printer to ePrinter account, but I don't know where to find the priner code. In support is written that I must press a "ePrint button" or go to the control panel and press Configuration, then Network Services, but this printer doesn't have a "ePrint button" and control panel. How can I print sheet of network services with printer code?

    Hello szkielol07,
    Welcome to the HP Support Forums!
    Have some good news bad news for you regarding your Deskjet 1510 and ePrint. Good news, you can stop looking for a code. Bad news, this printer is not ePrint enabled, nor is it wireless.
    For more specifications on the printer, click here: Printer Specifications for the HP Deskjet 1510 and Deskjet Ink Advantage 1510 All-in-One Printer Ser...
    Regards,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Problem with method Runtime.exec()

    i wrote this simple line, in a servlet:
    Runtime.getRuntime().exec(myCommand);
    if i run this servlet in the OC4j included whith jdeveloper all works well...but if i run the same servlet in the Application server, the command is not executed...why????
    is it a security issue?
    please help me..

    Stefano, can you take a look at the application server log files to see if there is any related information that tells what was happening? What is better, can you try catching the standout and standerr of your command as what is done in the following message?
       Re: javac not found on UNIX AIX runnig Oracle AS 9.0.4
    Please tell me if you have any new findings then.

Maybe you are looking for

  • Aperture not working after 10.6.5 update

    Hi - i cant start Aperture efter the latest 10.6.5 update from Apple. I get this error message: Process: Aperture [754] Path: /Applications/Aperture.app/Contents/MacOS/Aperture Identifier: com.apple.Aperture Version: ??? (???) Build Info: Aperture-12

  • Can't add funds to wallet

    Hey all, so amidst some talk of servers/connection for ps4 being currently down, I've been desperately trying to add funds to my wallet as to buy batman arkham knight (oh my god i'm desperate) Is this an issue anyone else is having? I've been trying

  • Travel Priviliges - Info type

    Hi, Could any one let me know if there is a BAPI to load info type 0017(Travel privilges). Thanks, Vivek.T

  • ACE HTTP prove get - not able to contain '?' in URL?

    Trying to put a probe together.. probe http probeElvis interval 5 passdetect interval 10 request method get url 8888/livelink/llisapi.dll?func=LL.getlogin&NextURL=%2Flivelink%2Fllisapi%2Edll%3FRedirect%3D1 expect status 100 404 connection term forced

  • User logon alert

    Hi, i want to setup alert for folowing event: Each user has one machine assigned like pc123, If user connect E-business suite application from another PC like pc980 , there should be alert sent to system/secuirty that user is logon from another machi