Logical error 2nd Edition... :~(

here is the 2nd edition of the program.
it runs wired, i can't exactly tell how, but the way it does just like lost-control.
copy it and give it a try see if you have any idea what's going on.
p.s. all called methods are sticked after the main program.
class DecodeDriver
     public static void main(String[] args)
          char keyin;
          do
               sop("**********************************************");
               sop("**********************************************");
               sop("**            M A I N   M E N U             **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** M) Morse Code                            **");
               sop("** C) Caesar Cipher                         **");
               sop("** V) Vignere Cipher                        **");
               sop("** P) Playfair Cipher                       **");
               sop("** ---------------------------------------- **");
               sop("** X) Exit Program                          **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select an encoding scheme: ");
               keyin = SavitchIn.readNonwhiteChar();
               switch(keyin)
               case'M':
               case'm': Morse();
                    break;
                    case'C':
               case'c': Caesar();
                    break;
                    case'V':
               case'v': Vignere();
                    break;
                    case'P':
               case'p': Playfair();
                    break;
                    case'X':
                    case'x': sop("Thanks for using! Bye!");
                    break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
                    break;
               } //switch
          } // do
          while(keyin != 'X' && keyin != 'x');
          System.exit(0);
     } // main
          public static void Morse()
               char subKeyin;
               sop("**********************************************");
               sop("**********************************************");
               sop("**            Morse Code Menu               **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               subKeyin = SavitchIn.readNonwhiteChar();
               switch(subKeyin)
                    case'E':
                    case'e': MorseCode.encode();
                    break;
                    case'D':
                    case'd': MorseCode.decode();
                    break;
                    case'X':
                    case'x': sop("Returning to main menu...");
                               break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
                                   break;
               } // switch
          } //Morse
          private static void Caesar()
               char subKeyin = SavitchIn.readNonwhiteChar();
               sop("**********************************************");
               sop("**********************************************");
               sop("**           Caesar Cipher Menu             **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               switch(subKeyin)
                    case'E':
                    case'e': CaesarCipher.encode();
                    case'D':
                    case'd': CaesarCipher.decode();
                    case'X':
                    case'x': sop("Returning to main menu...");
                               break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
               } // switch
          } //CaesarCipher
          private static void Vignere()
               char subKeyin = SavitchIn.readNonwhiteChar();
               sop("**********************************************");
               sop("**********************************************");
               sop("**           Vignere Cipher Menu             **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               switch(subKeyin)
                    case'E':
                    case'e': VignereCipher.encode();
                    case'D':
                    case'd': VignereCipher.decode();
                    case'X':
                    case'x': sop("Returning to main menu...");
                               break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
               } // switch
          } //VignereCipher          
          private static void Playfair()
               char subKeyin = SavitchIn.readNonwhiteChar();
               sop("**********************************************");
               sop("**********************************************");
               sop("**          Playfair Cipher Menu            **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               switch(subKeyin)
                    case'E':
                    case'e': PlayfairCipher.encode();
                    case'D':
                    case'd': PlayfairCipher.decode();
                    case'X':
                    case'x': sop("Returning to main menu...");
                               break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
               } // switch
          } //PlayfairCipher     
          private static void sop(String newString)
               System.out.println(newString);
          } // sop
} //class
(part of)the SavitchIn input stuff:
    public static char readNonwhiteChar( )
      char next;
      next = readChar( );
      while (Character.isWhitespace(next))
          next = readChar( );
      return next;
     The following methods are not used in the text, except
     for a brief reference in Chapter 2. No program code uses
     them. However, some programmers may want to use them.
     Precondition: The next input in the stream consists of
     an int value, possibly preceded by whitespace, but
     definitely followed by whitespace.
     Action: Reads the first string of nonwhitespace characters
     and returns the int value it represents. Discards the
     first whitespace character after the word. The next read
     takes place immediately after the discarded whitespace.
     In particular, if the word is at the end of a line, the
     next read will take place starting on the next line.
     If the next word does not represent an int value,
     a NumberFormatException is thrown.
MorseCode.java - for debugin' propose.
class MorseCode
   public MorseCode()
      sop("unfinished - const.");
     }//const.
     public static void encode()
          sop("unfinished - encode");
          char newchar;
          newchar = SavitchIn.readChar();
          System.out.println(newchar);
     public static void decode()
          sop("unfinished - decode");
     private static void sop(String newString)
          System.out.println(newString);
     } // sop
}//class

aside from the missing breaks?
encode OR decode
case'E':
case'e': CaesarCipher.encode();
break;
case'D':
case'd': CaesarCipher.decode();
break;looks better this time?
class DecodeDriver
     public static void main(String[] args)
          char keyin;
          do
               sop("**********************************************");
               sop("**********************************************");
               sop("**            M A I N   M E N U             **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** M) Morse Code                            **");
               sop("** C) Caesar Cipher                         **");
               sop("** V) Vignere Cipher                        **");
               sop("** P) Playfair Cipher                       **");
               sop("** ---------------------------------------- **");
               sop("** X) Exit Program                          **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select an encoding scheme: ");
               keyin = SavitchIn.readNonwhiteChar();
               switch(keyin)
               case'M':
               case'm': Morse();
                    break;
               case'C':
               case'c': Caesar();
                    break;
               case'V':
               case'v': Vignere();
                    break;
               case'P':
               case'p': Playfair();
                    break;
               case'X':
               case'x': sop("Thanks for using! Bye!");
                    break;
               default: sop("Invalid Key Entered. Please select one from the menu.");
                    break;
               } //switch
          } // do
          while(keyin != 'X' && keyin != 'x');
          System.exit(0);
     } // main
          public static void Morse()
               char subKeyin;
               sop("**********************************************");
               sop("**********************************************");
               sop("**            Morse Code Menu               **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               subKeyin = SavitchIn.readNonwhiteChar();
               switch(subKeyin)
                    case'E':
                    case'e': MorseCode.encode();
                    break;
                    case'D':
                    case'd': MorseCode.decode();
                    break;
                    case'X':
                    case'x': sop("Returning to main menu...");
                    break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
                    break;
               } // switch
          } //Morse
          private static void Caesar()
               char subKeyin;
               sop("**********************************************");
               sop("**********************************************");
               sop("**           Caesar Cipher Menu             **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               subKeyin =  SavitchIn.readNonwhiteChar();
               switch(subKeyin)
                    case'E':
                    case'e': CaesarCipher.encode();
                    break;
                    case'D':
                    case'd': CaesarCipher.decode();
                    break;
                    case'X':
                    case'x': sop("Returning to main menu...");
                               break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
                                   break;
               } // switch
          } //CaesarCipher
          private static void Vignere()
               char subKeyin;
               sop("**********************************************");
               sop("**********************************************");
               sop("**           Vignere Cipher Menu             **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               subKeyin  = SavitchIn.readNonwhiteChar();
               switch(subKeyin)
                    case'E':
                    case'e': VignereCipher.encode();
                    break;
                    case'D':
                    case'd': VignereCipher.decode();
                    break;
                    case'X':
                    case'x': sop("Returning to main menu...");
                    break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
                    break;
               } // switch
          } //VignereCipher          
          private static void Playfair()
               char subKeyin;
               sop("**********************************************");
               sop("**********************************************");
               sop("**          Playfair Cipher Menu            **");
               sop("**        ~~~~~~~~~~~~~~~~~~~~~~~~          **");
               sop("** ======================================== **");
               sop("** E) Encode                                **");
               sop("** D) Decode                                **");
               sop("** ---------------------------------------- **");
               sop("** X) Return to Main Program                **");
               sop("**                                          **");
               sop("**********************************************");
               sop("**********************************************");
               sop(" ");
               sop("Please select to encoding / decoding: ");
               subKeyin  = SavitchIn.readNonwhiteChar();
               switch(subKeyin)
                    case'E':
                    case'e': PlayfairCipher.encode();
                    break;
                    case'D':
                    case'd': PlayfairCipher.decode();
                    break;
                    case'X':
                    case'x': sop("Returning to main menu...");
                    break;
                    default: sop("Invalid Key Entered. Please select one from the menu.");
                    break;
               } // switch
          } //PlayfairCipher     
          private static void sop(String newString)
               System.out.println(newString);
          } // sop
} //class

Similar Messages

  • ABAP LOGICAL ERRORS

    Expalin about ABAP Logical errors?
    Help me sending appropriate link to understand more.
    Moderator Message: Read the Rules of Engagement of this forum.
    Edited by: kishan P on Dec 27, 2011 9:50 PM

    Hi Vinay,
         You can't delete the ABAP Runtime errors. But  you can catch the errors using catch exception Statement.
    For Example,
    Class-based exceptions are handled in the following control structure:
    TRY.
      ...                       " TRY block (application coding)
    CATCH cx_... cx_... ...
        ...                     " CATCH block (exception handler)
    CATCH cx_... cx_... ...
        ...                     " CATCH block (exception handler)
      CLEANUP.
        ...                     " CLEANUP block (cleanup context)
    ENDTRY.
    Try This Sample Code,
    *--EXAMPLE FOR RUNTIME ERROR--
    *DATA : VALUE1 TYPE I.
    *VALUE1 = 1 / 0.        -
    >>>>>> IT MAKES RUN TIME ERROR.
    *WRITE : VALUE1.
    *-EXAMPLE FOR HOW TO CATCH THE ARITHMETIC ERROR AT THE RUN TIME USING SUBRC----
    DATA : VALUE1 TYPE I.
    CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 1.
    VALUE1 = 1 / 0.
    WRITE : VALUE1.
    ENDCATCH.
    IF SY-SUBRC = 1.
    WRITE : ' IT MAKES ERROR'.
    ELSE.
    WRITE : VALUE1.
    ENDIF.
    Thanks,
    Reward If Helpful.

  • Newbie - JSP & bean shopping cart logic error?

    Hello,
    I am attempting to bulid a shopping cart facility on a JSP site that I am building.
    I am having difficulties adding an item to the basket.
    The page below (bookDetail.jsp) displays items for sale from a database. At the foot of the page, I have set up a hyperlink to add an item to a basket bean instance created in this page.
    What happens is the page will load correctly, when i hover the mouse over the hyperlink to add the item to the basket, the status bar shows the URL of the current page with the details of the book appended. This is what I want. But when I click the link, the page will only reload showing 20% of the content.
    Netbeans throws up no errors, neither does Tomcat, so I am assuming I have made a logical error somewhere.
    I have enclosed the Book class, and the ShoppingCart class for your reference.
    Any help would be really appreciated as I am at a loss here.
    Cheers.
    Edited highlights from bookDetail.jsp
    //page header importing 2 classes - Book and ShoppingCart
    <%@ page import="java.util.*, java.sql.*, com.shopengine.Book, com.shopengine.ShoppingCart" errorPage="errorpage.jsp" %>
    //declare variables to store data retrieved from database
    String rs_BookDetail_bookRef = null;
    String rs_BookDetail_bookTitle = null;
    String rs_BookDetail_author = null;
    String rs_BookDetail_price = null;
    //code that retrieves recordset data, displays it, and places it in variables shown above
    <%=(((rs_BookDetail_bookRef = rs_BookDetail.getString("book_ref"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_bookRef)%>
    <%=(((rs_BookDetail_author = rs_BookDetail.getString("author"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_author)%>
    <%=(((rs_BookDetail_bookTitle = rs_BookDetail.getString("book_title"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_bookTitle)%>
    <%=(((rs_BookDetail_price = rs_BookDetail.getString("price"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_price)%>
    //this link is to THIS PAGE to send data to server as request parameters in Key/Value pairs
    // this facilitates the add to basket function
    <a href="<%= response.encodeURL(bookDetail.jsp?title=
    "+rs_BookDetail_bookTitle+"
    &item_id=
    "+rs_BookDetail_bookRef +"
    &author="+rs_BookDetail_author +"
    &price=
    "+rs_BookDetail_price) %> ">
    <img src="images\addtobasket.gif" border="0" alt="Add To Basket"></a></td>
    // use a bean instance to store basket items
    <jsp:useBean id="basket" class="ShoppingCart" scope="session"/>
    <% String title = request.getParameter("title");
    if(title!=null)
    String item_id = request.getParameter("item_id");
    double price = Double.parseDouble(request.getParameter("price"));
    Book item = new Book(item_id, title, author, price);
    basket.addToBasket( item );
    %>
    ShoppingCart class that is used as a bean in bookDetail.jsp shown above
    package com.shopengine;
    //import packages
    import java.util.*;
    //does not declare explicit constructor which automatically creates a zero argument constructor
    //as this class will be instantiated as a bean
    public class ShoppingCart
    //using private instance variables as per JavaBean api
         private Vector basket;
         public ShoppingCart()
              basket = new Vector();
         }//close constructor
    //add object to vector
         public void addToBasket (Book book)
              basket.addElement(book);
         }//close addToBasket method
    //if strings are equal, delete object from vector
         public void deleteFromBasket (String foo)
    for(Enumeration enum = getBasketContents();
    enum.hasMoreElements();)
    //enumerate elements in vector
    Book item = (Book)enum.nextElement();
    //if BookRef is equal to Ref of item for deletion
    //then delete object from vector.
    if (item.getBookRef().equals(foo))
    basket.removeElement(item);
    break;
    }//close if statement
    }//close for loop
         }//close deleteFromBasket method
    //overwrite vector with new empty vector for next customer
         public void emptyBasket()
    basket = new Vector();
         }//close emptyBasket method
         //return size of vector to show how many items it contains
    public int getSizeOfBasket()
    return basket.size();
         }//close getSizeOfBasket method
    //return objects stored in Vector
         public Enumeration getBasketContents()
    return basket.elements();
         }//close getBasketContents method
         public double getTotalPrice()
    //collect book objects using getBasketContents method
    Enumeration enum = getBasketContents();
    //instantiate variable to accrue billng total for each enummeration
    double totalBillAmount;
    //instantiate object to store data for each enummeration
    Book item;
    //create a loop to add up the total cost of items in basket
    for (totalBillAmount=0.0D; enum.hasMoreElements(); totalBillAmount += item.getPrice())
    item = (Book)enum.nextElement();
    }//close for loop
    return totalBillAmount;
         }//close getTotalPrice method
    }//close shopping cart class
    Book Class that is used as an object model for items stored in basket
    package com.shopengine;
    import java.util.*;
    public class Book{
         //define variables
    private String bookRef, bookTitle, author;
         private double price;
    //define class
    public Book(String bookRef, String bookTitle, String author, double price)
    this.bookRef= bookRef;
    this.bookTitle=bookTitle;
    this.author=author;
    this.price=price;
    //create accessor methods
         public String getBookRef()
              return this.bookRef;
         public String getBookTitle()
              return this.bookTitle;
         public String getAuthor()
              return this.author;
         public double getPrice()
              return this.price;
    }//close class

    page will only reload showing 20% of the content.Im building some carts too and I had a similiar problem getting null values from the mysql database. Are you getting null values or are they just not showing up or what?
    On one of the carts I'm building I have a similiar class to yours called products that I cast onto a hashmap works alot better. Mine looks like this, maybe this is no help I don't know.......
    public class Product {
        /**An Item that is for sale.*/
          private String productID = "Missing";
          private String categoryID = "Missing";
          private String modelNumber = "Missing";
          private String modelName = "Missing";
          private String productImage = "Missing";
          private double unitCost;
          private String description = "Missing";
          public Product( 
                           String productID,
                           String categoryID,
                           String modelNumber,
                           String modelName,
                           String productImage,
                           double unitCost,
                           String description) {
                           setProductID(productID);
                           setCategoryID(categoryID);
                           setModelNumber(modelNumber);
                           setModelName(modelName);
                           setProductImage(productImage);
                           setUnitCost(unitCost);
                           setDescription(description);        
          public String getProductID(){
             return(productID);
          private void setProductID(String productID){
             this.productID = productID;
          public String getCategoryID(){
             return(categoryID);
          private void setCategoryID(String categoryID){
             this.categoryID = categoryID;
          public String getModelNumber(){
             return(modelNumber);
          private void setModelNumber(String modelNumber){
             this.modelNumber = modelNumber;
          public String getModelName(){
             return(modelName);
          private void setModelName(String modelName){
             this.modelName = modelName;
          public String getProductImage(){
             return(productImage);
          private void setProductImage(String productImage){
             this.productImage = productImage;
          public double getUnitCost(){
              return(unitCost);
          private void setUnitCost(double unitCost){
              this.unitCost = unitCost;
          public String getDescription(){
              return(description);
          private void setDescription(String description){
              this.description = description;

  • JFrames + Returning a Variable... Beginner's Logical Error

    Hi,
    I'm new to Java and programming in general. I'm trying to do something that seems pretty simple, but I'm making a logical error that is preventing my little program from working.
    All I'm trying to do is this... I've created a little JFrame that asks a user for a university's name, address, and the number of students in the university. All of this is within a class called InputWindowSmall. I just want to be able to return those Strings, univName, univAdress, univStudents, to my main program so I can put them into a different class.
    I've tried get methods, but that's silly, it doesn't work, it returns null because the program doesn't wait for the user's input.
    Does anyone have any suggestions?
    Also... I'm a terribly poor Object-Oriented-Thinker... If I'm doing anything that doesn't make sense in an Object-Oriented-Mindset, please point it out! I'd like to try and get better! Thanks!
    CODE
    InputWindowSmall
    package FinalProject;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import java.awt.GridLayout;
    import javax.swing.JTextField;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.JButton;
    /** Class Definition: Input Window - small input window that asks for University name and address*/
    public class InputWindowSmall extends JFrame
         private JLabel nameLabel;
         private JLabel addressLabel;
         private JLabel numberStudentsLabel;
         private JLabel whiteSpace;
         private JTextField nameField;
         private JTextField addressField;
         private JTextField numberStudentsField;
         private JButton okButton;
         private String univName;
         private String univAddress;
         private String univStudents;
         /** Constructor with extra parameters     */
         public InputWindowSmall(University univ)
              //Names title bar of window
              super("Welcome!");
              //Sets layout of window
              setLayout(new GridLayout(4,2));
              //Sets text for nameLabel and adds to window
              JLabel nameLabel = new JLabel("    University Name: ");
              add(nameLabel);
              //Sets and adds nameField to window
              nameField = new JTextField(10);
              add(nameField);
              //Sets text for addressLabel and adds to window
              JLabel addressLabel = new JLabel("    University Address: ");
              add(addressLabel);
              //Sets and adds addressField to window
              addressField = new JTextField(10);
              add(addressField);
              //Sets text for numberStudentsLabel and adds to window
              JLabel numberStudentsLabel = new JLabel("    Number of Students: ");
              add(numberStudentsLabel);
              //Sets and adds numberStudentsField to window
              numberStudentsField = new JTextField(10);
              add(numberStudentsField);
              //Sets and adds white space
              JLabel whiteSpace = new JLabel("         ");
              add(whiteSpace);
              //Sets and adds button
              okButton = new JButton("OK");
              add(okButton);
              //create new ButtonHandler for button event handling
              ButtonHandlerSmall handler = new ButtonHandlerSmall();
              okButton.addActionListener(handler);
         }//end InputWindowSmall
         private class ButtonHandlerSmall implements ActionListener
              public void actionPerformed(ActionEvent event)
                   String univName = nameField.getText();
                   String univAddress = addressField.getText();
                   String univStudents = numberStudentsField.getText();
              }//end actionPerformed
         }//end ButtonHandlerSmall
         public String getUniversityName()
              return univName;
         }//end getUniversityName
         public String getUniversityAddress()
              return univAddress;
         public String getUniversityNumberStudents()
              return univStudents;
    }//ProjectTest (contains main)
    /** Class Definition: ProjectTest - contains main*/
    package FinalProject;
    import javax.swing.JFrame;
    public class ProjectTest {
         public static void main(String args[])
              //Creates a new university
              University univ = new University();
              //Instantiates and sets up the initial small window which asks for university name, address, and # students
              InputWindowSmall inputWindowSmall = new InputWindowSmall(univ);
              inputWindowSmall.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              inputWindowSmall.setSize(350, 120);
              inputWindowSmall.setVisible(true);
              inputWindowSmall.setLocationRelativeTo(null);
              String univN = inputWindowSmall.getUniversityName();
              String univA = inputWindowSmall.getUniversityAddress();
              String univS = inputWindowSmall.getUniversityNumberStudents();
              System.out.println(univN);
              System.out.println(univA);
              System.out.println(univS);
         }//end main
    }Edited by: heathercmiller on Apr 28, 2008 5:57 AM
    Edited by: heathercmiller on Apr 28, 2008 5:58 AM

    Oh! ...Here is a somewhat important detail I forgot to mention...
    There's another class called University (I've included it below). The main part of the program instantiates an object of type University, and that object is passed to the InputWindowSmall class. In the end, I want those variables I mentioned above to be placed within the University object I created. ...And I've already passed a University object to InputWindowSmall... I'm just not entirely sure how to assign values to the variables within the University object while in a different class. ...Does that make any sense?
    University
    package FinalProject;
    import java.util.Arrays;
    /** Class Definition: University*/
    public class University extends ProjectTest implements TuitionGenerate 
         private String universityName;     /** refers to the name of the University     */
         private String address;               /** refers to the address of the University     */
         private Student studentList[];     /** an array of Student objects                    */
         /** Default Constructor */
         University()
              setuniversityName("University_of_Miami");
              setaddress("555_Coral_Gables_St.");               
         /** Constructor with parameters */
         University(String name,String add)
              setuniversityName(name);
              setaddress(add);
         /** Constructor with extra parameters */
         University(String name,String add, Student array[])
              setuniversityName(name);
              setaddress(add);
              setstudentList(array);
         /** method: gets universityName*/
         public String getuniversityName()
              return universityName;
         /** method: gets address*/
         public String getaddress()
              return address;
         /** method: gets studentList*/
         public Student[] getstudentList()
              return studentList;
         /** method: sets universityName*/
         public void setuniversityName(String name)
              universityName=name;
         /** method: sets address*/
         public void setaddress(String add)
              address=add;
         /** method: sets studentList*/
         public void setstudentList(Student array[])
              studentList=new Student[array.length];
              studentList=array;
         /** method: returns a string representation of universityName and address*/
         public String toString()
              String output="University Name: " + universityName + "\nAddress: " + address + "\n\n";
              return output;
         /** method: sorts the array of students alphbetically by last name*/
         public void studentSort()
              String temp[]=new String[studentList.length];
              for(int i=0;i<studentList.length;i++)
                   temp=studentList[i].getlastName();
              Arrays.sort(temp);
              Student temp2[]=new Student[studentList.length];
              for(int i=0;i<temp.length;i++)
                   for(int j=0;j<studentList.length;j++)
                        if(temp[i].equals(studentList[j].getlastName()))
                             temp2[i]=studentList[j];
                             break;
              studentList=temp2;               
         /** method: prints the list of students*/
         public void printStudentList()
              System.out.println("Students:\n");
              for(int i=0;i<studentList.length;i++)
                   System.out.println(studentList[i].toString());
         /** method: prints tuition from interface GenerateTuition*/
         public void printTuition()
              for(int i=0;i<studentList.length;i++)
                   System.out.println(studentList[i].toString());
                   System.out.println(" Tuition: $" + studentList[i].calTuition() + "0");
         /** method: gets tuition from calTuition method*/
         public double getTuition(Student x)
                   return x.calTuition();
    Edited by: heathercmiller on Apr 28, 2008 6:07 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Example of 'Java Servlet Programming, 2nd Edition' (O'reilly)

    Hi,
    I'm reading 'Java Servlet Programming, 2nd Edition' (O'reilly).
    I got a error "'.' expected" and "cannot resolve symbol"
    when trying JSP sample, hello3.jsp and HelloBean.java:
    I put hello3jsp to webapps/sample, and HelloBean.class
    to webapps/sample/WEB-INF/classes .
    Is this collect? If true, why I got the error?
    Could you give me any advices?
    hello3.jsp:
    (http://www.servlets.com/jservlet2/examples/ch18/hello3.jsp.txt)
    <%-- hello3.jsp --%>
    <%@ page import="HelloBean" %>
    <jsp:useBean id="hello" class="HelloBean">
      <jsp:setProperty name="hello" property="*" />
    </jsp:useBean>
    <HTML>
    <HEAD><TITLE>Hello</TITLE></HEAD>
    <BODY>
    <H1>
    Hello, <jsp:getProperty name="hello" property="name" />
    </H1>
    </BODY>
    </HTML>HelloBean.java:
    (http://www.servlets.com/jservlet2/examples/ch18/HelloBean.java)
    public class HelloBean {
      private String name = "World";
      public void setName(String name) {
        this.name = name;
      public String getName() {
        return name;
    }Error Message:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 4 in the jsp file: /hello3.jsp
    Generated servlet error:
        [javac] Compiling 1 source file
    /usr/local/java/jakarta-tomcat-4.1.18/work/Standalone/localhost/sample/hello3_jsp.java:7: '.' expected
    import HelloBean;
                    ^
    /usr/local/java/jakarta-tomcat-4.1.18/work/Standalone/localhost/sample/hello3_jsp.java:44: cannot resolve symbol
    symbol  : class HelloBean
    location: class org.apache.jsp.hello3_jsp
          HelloBean hello = null;
          ^regards
    maco

    I got succeeded!
    I changed the three point:
    * add 'package hoo;' in HelloBean.java
    * add '<%@ page import="my.HelloBean" %>' in hello3.jsp
    * change '<jsp:useBean id="hello" class="HelloBean">
    to '<jsp:useBean id="hello" class="my.HelloBean">
    Before posting, I searched google three times but couldn't get answer.
    I could not get well if you didn't give me help...
    Thank you very much.

  • Headphone/Microphone 2nd edition

    I have a 2nd edition iPod Touch 8Gb running 3.1.2. My headphone/microphone always worked perfectly. Last month I had my unit replaced under warranty and now whenever I use voice memos or another app that requires headset/microphone when I plug the SAME ones in that worked fine before, I keep getting an error message that says to plug them in when they already are.I tried starting the app againj but they are still not detected/
    Any ideas?

    Thanks Jono.
    Here's the officical page of the book.
    It includes some examples for download.
    http://www.smartdoctech.com/livecycle_es4_book.aspx

  • Essbase Internal Logic Error [7333]

    We have a "backup" application to which we copy all of our applications' databases to every night.
    However now when we try to start the backup application we get one or more of the following errors in the log, and the app won't start:
    Unable to Allocate Aligned Memory for [pMemByte] in [adIndInitFree].
    Unable to Allocate Aligned Memory for [pTct->pTctFXBuffer] in [adTmgAllocateFXBuffer].
    Essbase Internal Logic Error [7333]
    RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING
    The other live applications that I'm copying from all start correctly. There is plenty of disk space and free memory on the server.
    I've read about other people getting these errors and tried the following:
    - Recreated the backup application (which cleared out any temporary files that might have been hanging around)
    - Validated all the other applications that I'm copying from
    It does seem to be a capacity issue because when I remove some of the larger databases from the backup application it does start. However I can't attribute the problem to an individual large database because when I copy each of them to the application by themselves then they're fine.
    I'd appreciate any ideas on what to try next... could this suggest that something's wrong with the memory chips on the server?
    Thanks
    Mark
    Update: I have used a workaround by putting half of the databases in one backup application and the other half in another application. Both of these applications start without a problem. Is there a maximum size of databases in an app? I am trying to add 21 databases with a combined .PAG file size of only 2.4GB.
    Edited by: MatMark on Nov 22, 2010 2:46 PM

    Thank you John, yes it appears to be the 2GB limit, however I'm a bit confused as to what I should be measuring that exceeds 2GB, you mentioned index cache (I assume these are IND) which total to only 140MB.
    The PAG files total to 3.7GB but these would have been greater than 2GB for a long time, before this problem started occurring.
    Anyway, case closed, I have to split these up into separate applications. Thanks for your help.

  • SOME LOGICAL ERROR

    sir i write code for finding freuent pattern but it give some logical error plz see that and correct that
    i send the complete information to u my input file my project code my output file and my actual output that i need ......plz sir chek it where is he logical mistak in code i completely chek lots of time i m not able to find where is the logical mistak plz sir help me
    input file "transactions.xml"
    <?xml version="1.0" standalone="yes"?>
    <transactions>
    <transaction id="1">
    <items>
    <item>a</item>
    <item>d</item>
    <item>e</item>
    </items>
    </transaction>
    <transaction id="2">
    <items>
    <item>b</item>
    <item>c</item>
    <item>d</item>
    </items>
    </transaction>
    <transaction id="3">
    <items>
    <item>a</item>
    <item>c</item>
    <item>e</item>
    </items>
    </transaction>
    <transaction id="4">
    <items>
    <item>b</item>
    <item>c</item>
    <item>d</item>
    </items>
    </transaction>
    <transaction id="5">
    <items>
    <item>a</item>
    <item>b</item>
    </items>
    </transaction>
    </transactions>
    coding :=
    xquery version "1.0";
    declare namespace local = "http://www.w3.org/2003/11/xpath-local-functions";
    declare function local:join($X as element()*, $Y as element()*) as element()* {
    let $items := (for $item in $Y
    where every $i in $X satisfies
    $i != $item
    return $item)
    return $X union $items
    declare function local:commonIts($X as element()*, $Y as element()*) as element()* {
    for $item in $X
    where some $i in $Y satisfies $i = $item
    return $item
    declare function local:removeIts($X as element()*, $Y as element()*) as element()* {
    for $item in $X
    where every $i in $Y satisfies $i != $item
    return $item
    declare function local:candidateGen($l as element()*) as element()* {
    for $freqSet1 in $l
    let $items1 := $freqSet1//items/*
    for $freqSet2 in $l
    let $items2 := $freqSet2//items/*
    where $freqSet2 >> $freqSet1 and
    count($items1)+1 = count($items1 union $items2)
    and local:prune(local:join($items1,$items2), $l)
    return
    <items>{local:join($items1,$items2)}</items>
    declare function local:prune($X as element()*, $Y as element()*) as xs:boolean
    every $item in $X satisfies
    some $items in $Y//items satisfies
    count(local:commonIts(local:removeIts($X,$item),$items/*))
    = count($X) - 1
    declare function local:removeDuplicate($C as element()*) as element()*
    for $itemset1 in $C
    let $items1 := $itemset1/*
    let $items :=(for $itemset2 in $C
    let $items2 := $itemset2/*
    where $itemset2>>$itemset1 and
    count($items1) =
    count(local:commonIts($items1, $items2))
    return $items2)
    where count($items) = 0
    return $itemset1
    declare function local:getLargeItemsets($C as element()*, $minsup as xs:decimal, $total as xs:decimal, $src as element()*) as element()*
    for $items in $C
    let $trans := (for $tran in $src
    where every $item1 in $items/* satisfies
    some $item2 in $tran/*
    satisfies $item1 = $item2
    return $tran)
    let $sup := (count($trans) * 1.00) div $total
    where $sup >= $minsup
    return <largeItemset> {$items}
    <support> {$sup} </support>
    </largeItemset>
    declare function local:fp-growth($l as element()*, $L as element()*, $minsup as xs:decimal, $total as xs:decimal, $src as element()*) as element()*
    let $C := local:removeDuplicate(local:candidateGen($l))
    let $l := local:getLargeItemsets($C, $minsup, $total, $src)
    let $L := $l union $L
    return if (empty($l)) then
    $L
    else
    local:fp-growth($l, $L, $minsup, $total, $src)
    let $src := doc("transactions.xml")//items
    let $minsup := 0.5
    let $total := count($src) * 1.00
    let $C := distinct-values($src/*)
    let $l :=(for $itemset in $C
    let $items := (for $item in $src/*
    where $itemset = $item
    return $item)
    let $sup := (count($items) * 1.00) div $total
    where $sup >= $minsup
    return <largeItemset>
    <items> {$itemset} </items>
    <support> {$sup} </support>
    </largeItemset>)
    let $L := $l
    return <largeItemsets> { local:fp-growth($l, $L,$minsup, $total, $src) }
    </largeItemsets>
    output that is get for running the query:=
    <?xml version="1.0" encoding="UTF-8"?>
    <largeItemsets>
    <largeItemset>
    <items>a</items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <items>d</items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <items>b</items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <items>c</items>
    <support>0.6</support>
    </largeItemset>
    </largeItemsets>
    but sir i want my output like that:=
    <?xml version="1.0" standalone="yes"?>
    <largeItemsets>
    <largeItemset>
    <Items>
    <item>a</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>d</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>b</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>c</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>d</item>
    <item>b</item>
    </Items>
    <support>0.4</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>b</item>
    <item>c</item>
    </Items>
    <support>0.4</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>d</item>
    <item>c</item>
    <item>b</item>
    </Items>
    <support>0.4</support>
    </largeItemset>
    </largeItemsets>
    sir i want that output which i shown last help me sir how i sort out this problem
    thank i advance
    SIR PLZ HELP ME WHAT I DO HOW I SOLVE THAT PROBLEM PLZ ANY ONE HELP ME
    Edited by: MAXIMUM on Apr 9, 2012 10:43 PM

    The code is unreadable. It would be great if you can explain the problem statement.

  • Logical error in the query

    create table my_employee
    (id number(4)primary key,
    last_name varchar2(25),
    first_name varchar2(25),
    userid varchar2(8),
    salary number(9,2)
    I want to write an INSERT statement to MY_EMPLOYEE table . Concatenate the first letter of the first name and first seven characters of the last name to produce user ID using a single sql statement
    I wrote the query like this and i am getting logical error
    insert into my_employee
    values(&id,'&last_name','&first_name',substr('&&first_name',1,1)||substr('&last_name',1,7),&salary);
    SQL> insert into my_employee
    2 values(&id,'&last_name','&first_name',substr('&&first_name',1,1)||substr('&last_name',1,7),&sal
    ary);
    Enter value for id: 20
    Enter value for last_name: popopopp
    Enter value for last_name: qwertyyuu
    Enter value for salary: 300000
    old 2: values(&id,'&last_name','&first_name',substr('&&first_name',1,1)||substr('&last_name',1,7),
    new 2: values(20,'popopopp','o',substr('o',1,1)||substr('qwertyyuu',1,7),300000)
    1 row created.
    it is asking the last_name two times

    you can do it with a .sql script
    c:\my_emp.sql
    PROMPT
    PROMPT instering my_employees
    PROMPT
    ACCEPT ID NUMBER PROMPT 'ID ? : '
    ACCEPT FIRST_NAME CHAR PROMPT 'FIRST_NAME ?: '
    ACCEPT LAST_NAME CHAR PROMPT 'LAST_NAME ?: '
    ACCEPT SALARY NUMBER PROMPT 'SALARY ? : '
    insert into my_employee values(&id,'&last_name','&first_name',substr('&&first_name',1,1)||substr('&last_name',1,7),&salary);
    SELECT * FROM my_employee where id=&&id;
    and then from sqlplus @c:\my_emp.sql
    scott@ORCL> @C:\MY_EMP
    instering my_employees
    ID ? : 20
    FIRST_NAME ?: john
    LAST_NAME ?: papas
    SALARY ? : 1000
    old 1: insert into my_employee values(&id,'&last_name','&first_name',substr('&&first_name',1,1)||substr('&last_name',1,7),&salary)
    new 1: insert into my_employee values( 20,'papas','john',substr('john',1,1)||substr('papas',1,7), 1000)
    1 row created.
    old 1: SELECT * FROM my_employee where id=&&id
    new 1: SELECT * FROM my_employee where id= 20
    ID LAST_NAME FIRST_NAME USERID SALARY
    20 papas john jpapas 1000
    scott@ORCL>

  • ORA-29861 Error while editing or adding search keywords in a File Item

    Hi,
    We are getting the following error while editing or adding search keywords to a file item:
    ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
    DAD name: portal30 PROCEDURE : PORTAL30.wwv_edit_tab.edititem
    Can you please tell us what went wrong.
    Thanks

    Vikas,
    From the server error messages reference:
    Cause: An attempt has been made to access a domain index that is being built or is marked failed by an unsuccessful ODCIIndexCreate or is marked unusable by a DDL operation.
    Action: Wait if the specified index is marked LOADING Drop the specified index if it is marked FAILED Drop or rebuild the specified index if it is marked UNUSABLE.
    It's possible you were loading the document while the index was being rebuilt. Search all_indexes where DOMIDX_STATUS <> 'VALID' OR DOMIDX_OPSTATUS <> 'VALID' to find the offending index and rebuild it.
    Regards,
    Jerry
    null

  • Javascript error when editing an Event Template

    I'm currently evaluating Adobe Connect to determine if it will work well for our company's webinars. As part of the evaluation, I attempted to create a custom event template. The first thing I did was to apply a custom background (using an image) to the template. The next thing I did was attempt to change the time zone from U.S./Michigan to U.S./Eastern. When the page refreshed, I got the error message included below. After that, every time I attempted to edit any template, I got the sam error message. I am accessing Adobe Connect using the Google Chrome browser Version 32.0.1700.107 m. I tried loggin in with Internet Explorer 9 version 9.0.8112.16421. At first, it seemed to work, but then I went to edit something in the catalog (adding a graphic), and, suddenly, I got the error again.
    I tried to contact Support through chat, but they don't support trials. Can anyone help me with this issue?
    Error during include of component '/apps/connect/components/eventlandingpage'
    Error Message:
    org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.jsp
    Processing Info:
    Page
    =
    /content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing
    Resource Path
    =
    /content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing/jcr:content
    Cell
    =
    eventlandingpage
    Cell Search Path
    =
    eventlandingpage|page
    Component Path
    =
    /apps/connect/components/eventlandingpage
    Sling Request Progress:
          0 (2014-02-22 17:16:17) TIMER_START{Request Processing} 0 (2014-02-22 17:16:17) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message> 0 (2014-02-22 17:16:17) LOG Method=GET, PathInfo=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing.html 0 (2014-02-22 17:16:17) TIMER_START{ResourceResolution} 0 (2014-02-22 17:16:17) TIMER_END{0,ResourceResolution} URI=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing.html resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing 0 (2014-02-22 17:16:17) LOG Resource Path Info: SlingRequestPathInfo: path='/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing', selectorString='null', extension='html', suffix='null' 0 (2014-02-22 17:16:17) TIMER_START{ServletResolution} 0 (2014-02-22 17:16:17) TIMER_START{resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing)} 0 (2014-02-22 17:16:17) TIMER_END{0,resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing)} Using servlet /libs/foundation/components/primary/cq/Page/Page.jsp 0 (2014-02-22 17:16:17) TIMER_END{0,ServletResolution} URI=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing.html handled by Servlet=/libs/foundation/components/primary/cq/Page/Page.jsp 0 (2014-02-22 17:16:17) LOG Applying Requestfilters 0 (2014-02-22 17:16:17) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter 0 (2014-02-22 17:16:17) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter 0 (2014-02-22 17:16:17) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet 0 (2014-02-22 17:16:17) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter 0 (2014-02-22 17:16:17) LOG RedirectFilter did not redirect (MobileUtil.isMobileResource() returns false) 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter 0 (2014-02-22 17:16:17) LOG Applying Componentfilters 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 0 (2014-02-22 17:16:17) TIMER_START{/libs/foundation/components/primary/cq/Page/Page.jsp#0} 0 (2014-02-22 17:16:17) LOG Including resource JcrNodeResource, type=connect/components/eventlandingpage, superType=null, path=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing/jcr:content (SlingRequestPathInfo: path='/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing/jcr:content', selectorString='null', extension='html', suffix='null') 0 (2014-02-22 17:16:17) TIMER_START{resolveServlet(JcrNodeResource, type=connect/components/eventlandingpage, superType=null, path=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing/jcr:content)} 0 (2014-02-22 17:16:17) TIMER_END{0,resolveServlet(JcrNodeResource, type=connect/components/eventlandingpage, superType=null, path=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing/jcr:content)} Using servlet /libs/foundation/components/page/page.jsp 0 (2014-02-22 17:16:17) LOG Applying Includefilters 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter 0 (2014-02-22 17:16:17) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 0 (2014-02-22 17:16:17) TIMER_START{/libs/foundation/components/page/page.jsp#1} 0 (2014-02-22 17:16:17) LOG Including script head.jsp for path=/content/connect/c1/1127732221/en/events/event/shared/1127913809/event_landing/jcr:content, type=connect/components/eventlandingpage: /apps/connect/components/page/head.jsp 0 (2014-02-22 17:16:17) TIMER_START{/apps/connect/components/page/head.jsp} 16 (2014-02-22 17:16:17) LOG SCRIPT ERROR: javax.servlet.ServletException: java.lang.Exception: unable to initialize connect properties 16 (2014-02-22 17:16:17) LOG SCRIPT ERROR: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.jsp 16 (2014-02-22 17:16:17) TIMER_END{16,/libs/foundation/components/page/page.jsp#1} 16 (2014-02-22 17:16:17) LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html],order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=org.apache.sling.jcr.resource.JcrPropertyMap@139256bf), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@aa7fc53), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@36182d6f), serializer=Config(type=htmlwriter, config={}))} 16 (2014-02-22 17:16:17) TIMER_END{16,Request Processing} Dumping SlingRequestProgressTracker Entries
    Full Exception:
    org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.jsp at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:385) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170) at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:456) at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:500) at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:183) at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:150) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:219) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:257) at org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchRequest(SlingRequestProcessorImpl.java:297) at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatcher.java:216) at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatcher.java:103) at com.day.cq.wcm.core.impl.WCMComponentFilter$ForwardRequestDispatcher.include(WCMComponentFilter.java:381) at org.apache.jsp.libs.foundation.components.primary.cq.Page.Page_jsp._jspService(Page_jsp.java:106) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:420) at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:233) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:85) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:453) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170) at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:456) at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:500) at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308) at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:257) at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:296) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:220) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:89) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:153) at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206) at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96) at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79) at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33) at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117) at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88) at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33) at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179) at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88) at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33) at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238) at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88) at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33) at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75) at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88) at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33) at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48) at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39) at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:250) at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315) at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334) at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:377) at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351) at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.jsp at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:563) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:499) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:233) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:85) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:453) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358) ... 93 more Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: java.lang.Exception: unable to initialize connect properties at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:563) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:499) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:233) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:85) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:453) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170) at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:456) at com.day.cq.wcm.tags.IncludeTag.includeScript(IncludeTag.java:167) at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:87) at org.apache.jsp.libs.foundation.components.page.page_jsp._jspx_meth_cq_005finclude_005f0(page_jsp.java:178) at org.apache.jsp.libs.foundation.components.page.page_jsp._jspService(page_jsp.java:148) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:420) ... 98 more Caused by: java.lang.Exception: unable to initialize connect properties at org.apache.jsp.apps.connect.components.page.head_jsp._jspService(head_jsp.java:337) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:420) ... 112 more Caused by: javax.jcr.PathNotFoundException: /content/connect/connectinfo at org.apache.jackrabbit.core.session.SessionItemOperation.perform(SessionItemOperation.java:192) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361) at org.apache.jackrabbit.core.SessionImpl.getNode(SessionImpl.java:1109) at org.apache.jsp.apps.connect.components.page.head_jsp._jspService(head_jsp.java:328) ... 115 more
    Day Communique 5 WCM Core Implementation / 5.5.6 ( (c) Day Management AG ) running on ApacheSling/2.2 (Day-Servlet-Engine/4.1.24, Java HotSpot(TM) 64-Bit Server VM 1.6.0_37, Windows Server 2008 R2 6.1 amd64)

    Hi tonua.carano,
    As you mentioned that editing was working first time but after changing the template and then when you refreshed the page it shows error. So can you check the following steps and see if editing works -
    1. Please ensure that the user should be member of Event Magnager group to edit the template.If the user who is getting error while editing is not a member of that group then please add this role to the user.
    2. How are you changing the page background color ? There is component available in sidekick to change the page background. Are you using the same component ?
    If still you are getting the same erro while editing the template with this user, then create a new user and provide this user Event Manager and Event Adminitrator group membership and try to edit the template using this user.
    It should work fine and you should not get any error while editing. Please let me know if you face any issue.
    Thanks,
    Vikash Acharya

  • Error while editing 0585&0586 Infotypes in ess

    Hi Folks,
    I am getting an error while editing the 0585&0586 infotypes in ess.
    When i select the field edit it shows me the record with correct dates (Financial year dates) and when i start edidting the amounts and saving the data it was taking the current date as start date and throws an error saying
    Begin date and End date for the infotype must match financial year dates.
    A record already exists for the current financial year.
    Please help in this regard.
    Regards
    SIva

    Hi ,
    If you want to edit the Info types -0585&0586.The control reocrd and the info type start period should be in the same fincial year.
    Thanks,
    Bhaskar

  • Access Denied error while editing interactive forms in NWDS

    Hi,
    I am getting following error while editing the Adobe Interactive form in NWDS, I didnt understand why i am getting this error please help me in this issue
    the error i am getting is as follows
    java.io.FileNotFoundException: C:\Documents and Settings\my user\Application Data\Adobe\Designer\FormDesigner.ini (Access is denied)
         at java.io.RandomAccessFile.open(Native Method)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
         at com.sap.ide.webdynpro.adobetemplatedesigner.internalisation.AdobelanguageSettingService.setAdobeLanguage(AdobelanguageSettingService.java:43)
         at com.sap.ide.webdynpro.adobetemplatedesigner.AdobeDesignerEditorPart.createPartControl(AdobeDesignerEditorPart.java:123)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
         at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
         at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
         at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
         at com.sap.ide.webdynpro.adobetemplatedesigner.listener.ViewDesignerActionListener.launchAdobeDesigner(ViewDesignerActionListener.java:73)
         at com.sap.ide.webdynpro.adobetemplatedesigner.contentprovider.LaunchDesignerAction.run(LaunchDesignerAction.java:30)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    thanks
    Anu

    Hi Anu,
          Please check if you have permissions in C:\Documents and Settings\my user\Application Data\Adobe\Designer\FormDesigner.ini
          Change "my user" to the actual user.
    Best regards, Aldo.

  • Logical Error in Script Logic

    Hello Experts,
    Please provide your guidance for the following scenario.
    I need to calculate the 'Accumulated Depreciation' for every month, based on the amounts in the 'AccumDep' and the 'Depreciation' accounts.
    In other words, the value of the Accumulated Depreciation for the month of Feb should be equal to (Accumulated Depreciation in Jan + Depreciation in Jan), and so on.
    To accomplish this, I have written the following script logic.
    *WHEN ACCOUNT
    *IS AccumDep, Depreciation
         *FOR %MON% = 2009.FEB,2009.MAR,2009.APR
              *REC(FACTOR=1, ACCOUNT=AccumDep, TIME=%MON%)
         *NEXT
    *ENDWHEN
    *COMMIT
    The above logic was validated without any 'syntax' errors.  However, I do not see the desired results, as the Accumulated Depreciation is not getting updated every month.  The amount from FEB appears for MAR & APR also.
    Therefore, could you please review the above script and let me know if there are any 'logical' errors?
    All your guidance is greatly appreciated.  Thanks...

    Hi,
    You are not getting the desired result because you are trying to aggregate the depreciation and the accumulated depreciation of the same month and post the result again in the same month. Lets say the code is working for 2009.MAR. You are trying to add the depreciation and accumulated depreciation of 2009.MAR. However, you still dont have the acc depreciation of 2009.MAR. You basically need to take the acc depreciation of the previous month.
    You can try something like:
    *WHEN ACCOUNT
    *IS Depreciation
         *FOR %MON% = 2009.FEB,2009.MAR,2009.APR
              *REC(EXPRESSION = %VALUE% + ([ACCOUNT].[AccumDep],[TIME].Previous), ACCOUNT=AccumDep)
         *NEXT
    *ENDWHEN
    *COMMIT
    You can have a property called Previous to store the previous month of each period in the time dimension.
    Hope you got the idea.

  • Error in editing Object Form

    Hi,
    After submitting the request for an application when i click on edit to make some changes in web console the form for editing pops out. When i change the field values and again submit am getting an error like 'Error in editing Object Form .After request is submitted, data canot be added, updated or deleted any further by the requestor'. This happens only for applications which are having a child form. Please let me know the solution for this issue. Thanks in advance.
    Regards,
    Durgaprasad

    I have given permission to all users in the object from. This problem is not happening for all applications. Only for applications which are having child form the problem is there. When i debugged the custom UI code the error displayed in console is 'Error in editing Object Form .After request is submitted, data canot be added, updated or deleted any further by the requestor'. Thanks.

Maybe you are looking for

  • Prompt is not considered in Report

    Hi All, I am using OBIEE 10.1.3.4.0. Creating a following report report coulmns: week_no sales date location filter: location prompted week_no prompted date prompted Prompts: Week_no date location In my report the date values is not getting considere

  • Powerbook won't sleep after OS install and update

    I replaced the original hard drive with a new drive, installed OS 10.4 from the boot disk, updated to 10.4.11, replaced original apps and user folder via Carbon Copy Cloner. Machine runs great, but won't Sleep, either from Apple menu or closing the l

  • INVALID PLANNING VERSION error

    Dear All, When i try to log into planning book ,i am getting an error INVALID PLANNING VERSION(Time series still existing). What could be the problem ,can any one help me out. Regards, Chetan.

  • IOS 7 Apple Maps bookmarks - no addresses

    I type in an address in Apple Maps, a pin appears and I "Bookmark" the pin and give it a name. Then, once maps is quit and relaunched, I can find the new bookmark in the bookmarks list, but there is no address. It just says "Create New Contact, Add t

  • Need tutorial on how to draw old-fashioned sign

    I really like the effect shown in this tutorial: http://vector.tutsplus.com/tutorials/designing/make-an-old-style-sign-from-scratch-in-core ldraw/ But, I want to do this sort of thing in Illustrator. Most of the tutorial I can figure out how to do in