Java:9: '(' expected  error

could someone please tell me what the problemis and how to fix it
this is my code and i get this error
java:9: '(' expected
import java.io.*;
import java.text.DecimalFormat;
public class Grades2
public void Grades2
int ai1[] = new int[10];
float f = 0.0F;
float f1 = 0.0F;
String s1 = null;
BufferedReader bufferedreader = new BufferedReader(new FileReader("grades.dat"));
DecimalFormat decimalformat = new DecimalFormat("##0.00%");
System.out.println("Scores Read from the Input File");
System.out.println("-------------------------------");
s1 = bufferedreader.readLine();
int i = Integer.parseInt(s1.substring(0, s1.indexOf(" ")));
String s = s1.substring(s1.indexOf(" ") + 1);
s1 = null;
for(String s2 = bufferedreader.readLine(); s2 != null; s2 = bufferedreader.readLine())
System.out.println(s2);
if(s1 == null)
s1 = s2;
else
s1 = (new StringBuilder()).append(s1).append(" ").append(s2).toString();
System.out.println("");
String args1[] = s1.split(" ");
int ai[] = new int;
for(int j = 0; j < i; j++)
ai[j] = Integer.parseInt(args1[j]);
for(int k = 0; k < i; k++)
f = f += (float)ai[k] / (float)i;
for(int l = 0; l < i; l++)
f1 = (float)((double)f1 + Math.pow((float)ai[l] - f, 2D));
f1 = (float)Math.sqrt(f1 / (float)(i - 1));
for(int i1 = 0; i1 < 10; i1++)
ai1[i1] = 0;
for(int j1 = 0; j1 < i; j1++)
if(ai[j1] == 100)
ai1[ai[j1] / 10 - 1]++;
else
ai1[ai[j1] / 10]++;
public class output
public static void main(String args[]) throws IOExcetption
System.out.println(s);
for(int k1 = 0; k1 < s.length(); k1++)
System.out.print("-");
System.out.println("");
System.out.println((new StringBuilder()).append("Number of scores: ").append(i).toString());
System.out.println((new StringBuilder()).append("Mean Score: ").append(f).toString());
System.out.println((new StringBuilder()).append("Standard Deviation: ").append(f1).toString());
System.out.println("");
System.out.println("Histogram");
System.out.println("---------");
for(int l1 = 0; l1 < 10; l1++)
System.out.print((new StringBuilder()).append(l1 * 10).append("-").append((l1 + 1) * 10 - 1).append("\t").toString());
for(int i2 = 0; i2 < ai1[l1]; i2++)
System.out.print("*");
System.out.println((new StringBuilder()).append(" (").append(decimalformat.format((float)ai1[l1] / (float)i)).append(")").toString());

there are many many things wrong.
To start with:
public void Grades{
should be
public Grades(){
int ai[] = new int;
should be
int ai[] = new int[someSize];
And you eitehr have to deal with the exceptions or throw them. There are a lot of other problems, but start with those.

Similar Messages

  • Java Identifer Expected Error

    Hi - I'm getting an error saying that an identifier is expected for the line d.addShare(s1);
    I don't see why I need an identifier here - I've looked in all the classes to see if its linked to them but I can't find anything wrong. Maybe it will be clear to you- I've copied and pasted all my classes here (they are not very big). Been trying to debug this for ages but to no avail.
    class Population {
    Database d = new Database();
    Random rand = new Random();
    ArrayList population = new ArrayList();
    ArrayList parents = new ArrayList();
    ArrayList contenders = new ArrayList();
    double[] reuters = {
    8.0, 9.0, 12.5, 11.5, 6, 7, 4, 2, 3, 4, 3, 5, 5.5};
    Share s1 = new Share(reuters);
    d.addShare(s1); // Error: Identifier expected
    public void initialPopulation() {
    for (int i = 0; i < 10; i++) {
    Chromosome c = new Chromosome(rand);
    c.setDatabase(d);
    population.add(c);
    System.out.println("Chromosome Weights are: " + c);
    System.out.println("Chromosome Fitness Value is: " + c.fitness(0));
    //System.out.println();
    System.out.println(population.size());
    System.out.println(population.toString());
    System.out.println();
    System.out.println(d);
    public ArrayList selectParents(int tournamentSize) {
    // Get as many chromosomes as specified by tournament size
    for (int i = 0; i < (tournamentSize); i++) {
    contenders.add(i, population.get(i));
    // Sort the sub-population in order of fitness
    // contenders.sort;
    // Return the best two
    parents.add(contenders.get(0));
    parents.add(contenders.get(1));
    //System.out.println(parents.toString());
    //System.out.println(contenders.toString());
    return parents;
    public static void main(String args[]) {
    Population p = new Population();
    p.initialPopulation();
    p.selectParents(5);
    import java.util.ArrayList;
    class Database
    { ArrayList sharedata = new ArrayList();
    public void addShare(Share s)
    { sharedata.add(s); }
    public Share getShare(int i)
    { return (Share) sharedata.get(i); }
    import java.util.ArrayList;
    import java.util.Random;
    class Chromosome
    { int[] bit = new int[12];
    Database db;
    Chromosome(Random rand)
    { for (int i = 0; i < 12; i++)
    { bit[i] = rand.nextInt(6); }
    public String toString()
    { String res = "";
    for (int i = 0; i < 12; i++)
    { res = res + bit[i] + ","; }
    return res;
    public void setDatabase(Database d)
    { db = d; }
    public double fitness(int share)
    { double prediction = 0;
    int divisor = 0;
    Share sh = db.getShare(share);
    for (int i = 0; i < 12; i++)
    { prediction = prediction + bit[i]*sh.getPrice(i);
    divisor = divisor + bit;
    if (divisor != 0)
    { prediction = prediction/divisor; }
    else
    { prediction = 0; }
    System.out.println("Prediction Value is: " + prediction);
    double actualPrice = sh.getPrice(12);
    return Math.abs(prediction - actualPrice);
    class Share
    { double[] prices = new double[13];
    Share(double[] p)
    { prices = p; }
    double getPrice(int i)
    { return prices[i]; }
    Thanks

    Thanks for that - I'm now stuck on how exactly to define the selectParent() method because I have to take out samples of size 5 (the tournament size) from the population and then order those chromosomes ( in the contenders ArrayList) in order of fitness (the lower the fitness the better). But since I'm working with ArrayLists and since I have to extract each Chromosome object from the contender Arraylist, somehow call the fitness() method on each Chromosome, and then sort in order of fitness (lowest first), I'm kind of lost with how to do this. Any ideas on this? What's the simplest way of doing it? Thanks

  • Object expected error in java script...

    Dear All,
    we have Java Struts 1.1...
    I am getting "Object Expected" error while processing jsp page.
    I want to modify the text field so that only number and one dot(.) should be entered.
    I have one function and i am calling it as "onkeypress" event.
    Below is the function....
    function isNumberKey(evt)
    alert("here");
    var charCode;
    clearerror();
    charCode = (evt.which) ? evt.which : event.keyCode
    alert("here");
    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
    return false;
    return true;
    and below are html tags...
    <td>Total No Of Customers  *</td>
    <td><html:text property="noOfCustomersUnit" onkeypress="return isNumberKey(event)" style="width:160px"/></td> Please suggest how to solve the issue....

    Why? This is not a javascript forum.
    In any case, run it in firefox which has decent Javascript error handling functionality, then do some Google searches on Javascript event handling to try and figure out what you're doing wrong. It might be something browser specific and I suggest you look into using something like JQuery for standardized and proven ways to do things like event handling logic in stead of rolling your own Javascript stuff.

  • Class, interface, or enum expected error

    import java.awt.Graphics;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class InventoryFinal
    //main method begins execution of java application
    public static void main(final String args[])
    int i; // varialbe for looping
    double total = 0; // variable for total inventory
    final int dispProd = 0; // variable for actionEvents
    // Instantiate a product object
    final ProductAdd[] nwProduct = new ProductAdd[5];
    // Instantiate objects for the array
    for (i=0; i<5; i++)
    nwProduct[0] = new ProductAdd("CD", 10, 18, 12.00, "Jewel Case");
    nwProduct[1] = new ProductAdd("Blue Ray", 9, 20, 25.00, "HD");
    nwProduct[2] = new ProductAdd("Game", 8, 30, 40.00, "Game Case");
    nwProduct[3] = new ProductAdd("iPod", 7, 40, 50.00, "Box");
    nwProduct[4] = new ProductAdd("DVD", 6, 15, 15.00, "DVD Case");
    for (i=0; i<5; i++)
    total += nwProduct.length; // calculate total inventory cost
    final JButton firstBtn = new JButton("First"); // first button
    final JButton prevBtn = new JButton("Previous"); // previous button
    final JButton nextBtn = new JButton("Next"); // next button
    final JButton lastBtn = new JButton("Last"); // last button
    final JButton AddBtn = new JButton("Add"); // Add button
    final JButton DeleteBtn = new JButton("Delete"); // Delete button
    final JButton ModifyBtn = new JButton("Modify"); // Modify button
    final JButton SaveBtn = new JButton("Save"); // Save button
    final JButton SearchBtn = new JButton("Search"); // Search button
    final JLabel label; // logo
    final JTextArea textArea; // text area for product list
    final JPanel buttonJPanel; // panel to hold buttons
    //JLabel constructor for logo
    Icon logo = new ImageIcon("C:/logo.jpg"); // load logo
    label = new JLabel(logo); // create logo label
    label.setToolTipText("Company Logo"); // create tooltip
    buttonJPanel = new MyJPanel(); // set up panel
    buttonJPanel.setLayout( new GridLayout(1, 4)); //set layout
    // add buttons to buttonPanel
    buttonJPanel.add(firstBtn);
    buttonJPanel.add(prevBtn);
    buttonJPanel.add(nextBtn);
    buttonJPanel.add(lastBtn);
    buttonJPanel.add(AddBtn);
    buttonJPanel.add(DeleteBtn);
    buttonJPanel.add(ModifyBtn);
    buttonJPanel.add(SaveBtn);
    buttonJPanel.add(SearchBtn);
    textArea = new JTextArea(nwProduct[3]+"\n"); // create textArea for product display
    // add total inventory value to GUI
    textArea.append("/nTotal value of Inventory "+new java.text.DecimalFormat("$0.00").format(total)+"\n\n");
    textArea.setEditable(false); // make text uneditable in main display
    JFrame invFrame = new JFrame(); // create JFrame container
    invFrame.setLayout(new BorderLayout()); // set layout
    invFrame.getContentPane().add(new JScrollPane(textArea), BorderLayout.CENTER); // add textArea to JFrame
    invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH); // add buttons to JFrame
    invFrame.getContentPane().add(label, BorderLayout.NORTH); // add logo to JFrame
    invFrame.setTitle("CD & DVD Inventory"); // set JFrame title
    invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // termination command
    //invFrame.pack();
    invFrame.setSize(600, 600); // set size of JPanel
    invFrame.setLocationRelativeTo(null); // set screen location
    invFrame.setVisible(true); // display window
    // assign actionListener and actionEvent for each button
    firstBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end firstBtn actionEvent
    }); // end firstBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    prevBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[4]+"\n");
    } // end prevBtn actionEvent
    }); // end prevBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    nextBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[2]+"\n");
    } // end nextBtn actionEvent
    }); // end nextBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    lastBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[3]+"\n");
    } // end lastBtn actionEvent
    }); // end lastBtn actionListener
    textArea.setText(nwProduct[4]+"n");// assign actionListener and actionEvent for each button
    AddBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end AddBtn actionEvent
    }); // end AddBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    DeleteBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end DeleteBtn actionEvent
    }); // end DeleteBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    ModifyBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end ModifyBtn actionEvent
    }); // end ModifyBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    SaveBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end SaveBtn actionEvent
    }); // end SaveBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    SearchBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end SearchBtn actionEvent
    }); // end SearchBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // prevBtn.addActionListener(new ActionListener()
    // public void actionPerformed(ActionEvent ae)
    // dispProd = (nwProduct.length+dispProd-1) % nwProduct.length;
    // textArea.setText(nwProduct.display(dispProd)+"\n");
    // } // end prevBtn actionEvent
    // }); // end prevBtn actionListener
    } // end main
    } // end class Inventory4
    class Product
    protected String prodName; // name of product
    protected int itmNumber; // item number
    protected int units; // number of units
    protected double price; // price of each unit
    protected double value; // value of total units
    public Product(String name, int number, int unit, double each) // Constructor for class Product
    prodName = name;
    itmNumber = number;
    units = unit;
    price = each;
    } // end constructor
    public void setProdName(String name) // method to set product name
    prodName = name;
    public String getProdName() // method to get product name
    return prodName;
    public void setItmNumber(int number) // method to set item number
    itmNumber = number;
    public int getItmNumber() // method to get item number
    return itmNumber;
    public void setUnits(int unit) // method to set number of units
    units = unit;
    public int getUnits() // method to get number of units
    return units;
    public void setPrice(double each) // method to set price
    price = each;
    public double getPrice() // method to get price
    return price;
    public double calcValue() // method to set value
    return units * price;
    } // end class Product
    class ProductAdd extends Product
    private String feature; // variable for added feature
    public ProductAdd(String name, int number, int unit, double each, String addFeat)
    // call to superclass Product constructor
    super(name, number, unit, each);
    feature = addFeat;
    }// end constructor
    public void setFeature(String addFeat) // method to set added feature
    feature = addFeat;
    public String getFeature() // method to get added feature
    return feature;
    public double calcValueRstk() // method to set value and add restock fee
    return units * price * 0.10;
    public String toString()
    return String.format("Product: %s\nItem Number: %d\nIn Stock: %d\nPrice: $%.2f\nType: %s\nTotal Value of Stock: $%.2f\nRestock Cost: $%.2f\n\n",
    getProdName(), getItmNumber(), getUnits(), getPrice(), getFeature(), calcValue(), calcValueRstk());
    } // end class ProductAdd
    class MyJPanel extends JPanel
    //private static Random generator = new Random();
    private ImageIcon picture; //image to be displayed
    // load image
    public MyJPanel()
    picture = new ImageIcon("mypicture.png"); // set icon
    } // end MyJPanel constructor
    // display imageIcon on panel
    public void paintComponent( Graphics g )
    super.paintComponent( g );
    picture.paintIcon( this, g, 0, 0 ); // display icon
    } // end method paintComponent
    // return image dimensions
    //public Dimension getPreferredSize()
    // return new Dimension ( picture.getIconWidth(),
    //picture.getIconHeight() );
    } // end method getPreferredSize
    } // end class MyJPanel
    import java.io.File;
    import java.io.IOException;
    public class FileAccessDemo
    public static void main( String[] args ) throws IOException
    // declare variables
    String formatStr = "%s exists in %s? %b\n\n";
    // processing and output
    File file1 = new File( "studentScores.txt" ); // create a File object
    System.out.printf
    (formatStr, file1.getName(), file1.getAbsolutePath(), file1.exists());
    // processing and output
    File folder1 = new File( "c:/personnel/" ); // create a File object
    folder1.mkdir(); // make a directory
    File file2 = new File( "/personnel/faculty.txt" );
    file2.createNewFile(); // create a new file
    System.out.printf
    ( formatStr, file2.getName(), file2.getAbsolutePath(), file2.exists() );
    // processing and output
    file2.delete(); // delete a file, but not the directory
    System.out.printf
    ( formatStr, file2.getName(), file2.getAbsolutePath(), file2.exists() );
    } // end main
    } // end class
    I need help in resolving this error.
    Thanks

    That code isn't where your error is. Here's the errors I get compiling your code:
    H:\java>javac InventoryFinal.java
    InventoryFinal.java:78: ')' expected
    textArea.append("/nTotal value of Inventory "new java.text.DecimalFormat("$0.00").format(total)"\n\n
                                                 ^
    InventoryFinal.java:78: ';' expected
    textArea.append("/nTotal value of Inventory "new java.text.DecimalFormat("$0.00").format(total)"\n\n
                                                                                                   ^
    InventoryFinal.java:340: class, interface, or enum expected
    import java.io.File;
    ^
    InventoryFinal.java:341: class, interface, or enum expected
    import java.io.IOException;
    ^
    4 errorsThe last two errors are on your import statements, which can't be in the middle of a source file. The first two are on this line:
    textArea.append("/nTotal value of Inventory "new java.text.DecimalFormat("$0.00").format(total)"\n\n");Which certainly isn't a legal line of Java code. If you want to connect multiple Strings you need to use the "+" operator.

  • Object Expected error in Struts JSP file

    Hi,
    I have a very simple JSP file as shown below.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <html>
    <head>
    <title>pqGlobalStoreProfile.jsp</title>
    </head>
    <body onLoad="getSessionData();disableFieldsLocale();">
    <html:form action="/pqGlobalStoreProfile.do">
    <table cellpadding=5 cellspacing=0>
         <tr><td colspan=2><h3><b>Pq Global Store/Modify Profile</b></h3></td></tr>
         <tr><td>Profile Key *</td><td><html:text property="profileKey"/></td></tr>
    </table>
    </html:form>
    </body>
    </html>
    It is throwing an "Object Expected' error at Line 9 Char 1.
    I am not sure about what is causing this error.
    Thanks.

    it's a Javascript error, cuz it's calling these 2 methods when the page loads...
    onLoad="getSessionData();disableFieldsLocale();"
    Where are these methods defined? Cuz I don't see any inline Javascript, nor a linked script.
    I hope you don't think that those onload functions are going to call Java code defined in the JSP page or something, cuz... well, they aren't.

  • Java.text.DecimalFormat Error

    I have this import directive in my jsp page.
    <%@ page import="java.io.*,java.sql.*;java.text.DecimalFormat" contentType="text/html;charset=windows-1252"%>
    I am using Jdeveloper 9i 9.0.3.
    When I compile this page from within JDeveloper I get this error for java.text.DecimalFormat
    Error: 'class' or 'interface' expected
    When I compile outside JDeveloper, I get NO error.
    Can somebody tell me what the problem is.

    <%@ page import="java.io.*;java.sql.*;java.text.DecimalFormat" contentType="text/html;charset=windows-1252"%>
    I think that missing semi-colon is what's creating problems for you.
    Sergio Bastos

  • "class or interface expected error"

    hi,
    i have these two classes that am using and when i try and compile them i get a class or interface expected error.
    i have looked at previous posts and checked that i have the right number of closed brackets.
    anyone any ideas?
    import java.io.*;
    import java.net.*;
    public class BookingServer {
    public static void main(String[] args) throws IOException {
    ServerSocket serverSocket = null;
         Socket mysocket = null;
    try {
    serverSocket = new ServerSocket(4444);
    } catch (IOException e) {
    System.err.println("Could not listen on port: 4444.");
    System.exit(1);
    Socket clientSocket = null;
    try {
    clientSocket = serverSocket.accept();
    } catch (IOException e) {
    System.err.println("Accept failed.");
    System.exit(1);
    PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
    BufferedReader in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
    String inputLine, outputLine;
    BookingProtocol bp = new BookingProtocol();
    outputLine = bp.processInput(null);
    out.println(outputLine);
    while ((inputLine = in.readLine()) != null) {
    out.println(inputLine);
    outputLine = bp.processInput(inputLine);
    out.println(outputLine);
    if (outputLine.equals("BYE"))
    break;
    out.close();
    in.close();
    clientSocket.close();
    serverSocket.close();
    *****************PROTOCOL***********************
    import java.io.*;
    import java.net.*;
    public class BookingProtocol {
    private static final int WAITING = 0;
    private static final int SENTLOGON = 1;
    private static final int SENTSEATREQ = 2;
    private static final int SENTSTATUSREQ = 3;
    private static final String LOGONPROMPT = "LOGON";
    private static final String SEATPROMPT = "SEAT";
    private static final String STATUSPROMPT = "STATUS";
    private static final String BYEPROMPT = "BYE";
    private int state = WAITING;
    public String processInput(String theInput) {
    String theOutput = null;
    if (state == WAITING) {
    theOutput = LOGONPROMPT;
    state = SENTLOGON;
    } else if (state == SENTLOGON) {
    theOutput = SEATPROMPT;
    state = SENTSEATREQ;
    } else if (state == SENTSEATREQ) {
    theOutput = STATUSPROMPT;
    state = SENTSTATUSREQ;
    } else if (state == SENTSTATUSREQ) {
    theOutput = BYEPROMPT;
    state = WAITING;
    return theOutput;
    in.close();
    clientSocket.close();
    serverSocket.close();

    you have too many }-brackets, the finalin.close();
    clientSocket.close();
    serverSocket.close();
    }is not inside any class

  • "  ')' expected error..........

    i have defined a function, and the compiler is giving me "')' expected " error...
    here is my code
    package ab;
    import java.io.*;
    import java.util.*;
    import com.db4o.Db4o;
    import com.db4o.ObjectContainer;
    import com.db4o.ObjectSet;
    public class Test3 extends Util {
      public static void main(String[] args) {
         ObjectContainer db=Db4o.openFile(Util.DB4OFILENAME);
        try {
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));//USER INPUT KEYWORDS
              String the_query = in.readLine();     // READING KEYWORDS
         String[] arr = the_query.split (" ");     // SPLITTING USER KEYWORDS AND STORING IN ARRAY
              //****************************************************************************************ERROR LINE
               func(String p)                   
                       key ab = new key(arr[k]);
                        db.set(ab);
                        System.out.println(arr[k] + " is stored with 1st condition");
                        System.out.println("arr [k] is" + k+ " str[l] is" + l);
         // FETCHING DATA FROM DATABASE
         key proto = new key(null);
         ObjectSet result = db.get(proto);
         LinkedList ll2 = new LinkedList();
         while(result.hasNext()) {
         ll2.add(result.next());
         //System.out.println("retrieved linked list is" +ll2);
         String s = String.valueOf(ll2);
         int m = s.length()-2;
         String sub = s.substring(1,m);
         String [] str = sub.split(",");     // SPLITTING THE KEYWORDS
         int j = str.length;
         int g=0,h=0;
         String temp;
         h = str[0].indexOf('/');          // REMOVING THE "/" TO SEPERATE KEYWORD FROM HYPERLINK AND WEIGHT
         str[0]=str[0].substring(0,h);
         System.out.println("str[]0 is  "+ str[0]);
         for(int i=1; i<j;i++)
         g = str.indexOf('/');               // REMOVING THE "/" TO SEPERATE KEYWORD FROM HYPERLING AND WEIGHT
         str[i]=str[i].substring(1,g);
         System.out.println("str[]" i " is " + str[i]);
    //STORING DATA INTO DATABASE
    int l=0;
    int t = arr.length;
    System.out.println("arr[] length is " + t);
    System.out.println("str[] length is j" + j);
    for (int k=0; k < t; k++)
         {     l=0;
              for(l=0;l<=j;l++)
                   key(arr[k]);
              if(l+1> j)          // CHECKING IF AT THE END OF ARRAY
                        key ab = new key(arr[k]);
                        db.set(ab);
                        System.out.println(arr[k] + " is stored with 1st condition");
                        System.out.println("arr [k] is" + k+ " str[l] is" + l);
              else if((arr[k].equals(str[l]))) {          // CHECKING IF THE TWO STRINGS MATCHES OR NOT
                        System.out.println("arr [k] is" + k+ " str[l] is" + l);
                        System.out.println("Comparing " + arr[k] + "//////////" + str[l]);
                        System.out.println(arr[k]+ " STRING ALREADY PRESENT");
                        System.out.println(" 3rd condition");
                        k++;
                        l= -1;
                        System.out.println("due to 3rd condition now arr [k] is" + k+ " str[l] is" + l);
                   else          // NOT DOING ANYTHING
                        System.out.println("not doing anything");
                        System.out.println("arr [k] is" + k+ " str[l] is" + l);
                        System.out.println("Comparing " + arr[k] + "//////////" + str[l]);
              /* BufferedReader in2 = new BufferedReader(new InputStreamReader(System.in));//USER INPUT HYPERLINK
    BufferedReader in3 = new BufferedReader(new InputStreamReader(System.in));//USER INPUT WEIGHT
                   String hyp = in.readLine();     // READING HYPERLINKS
              String weight1 = in.readLine(); //READING WEIGHT
              int weight = Integer.parseInt(weight1);
              for(int c=0;c<t;c++)
              hyp h1 = new hyp(arr[c],weight);
                   ab.sethyper(h1);
                   db.set(ab);
    in.close();
    //in2.close();
    //in3.close();
    } catch (IOException ioe)
    { ioe.printStackTrace();
         db.close(); }
    and the error is .....C:\Documents and Settings\Sumit\Desktop>javac ab/Test3.java
    ab/Test3.java:22: ')' expected
    func(String p)
    ^
    1 error

    cotton.m wrote:
    cotton.m wrote:
    ping.sumit wrote:
    thanks abillcons!.... i got itGot what exactly?
    Because that won't fix the multitude of problems you have that I listed...Because to be honest with you ping it's pretty annoying that I took the time to look at your code in depth, which Bill
    did not do, and list all the problems you have there and you just want to pretend that adding a return type to a
    method signature in the middle of another method fixes this problem. Certainly a missing return type is a problem in
    a method signature, but when the "method" in question is in the midst of another method and uses variables local
    to the other method, never mind a slew of other variables that are never declared anywhere... well it's not really the
    only problem and certainly fixing it did not make you "get" it. Whatever "it" may be.
    What a waste of time it was helping you. I won't make that mistake again to be sure.Yes you did do more work than I. But I answered his direct and immediate question. I had no intention of stopping there if and when the pgm still did not work. I answered the immediate question, then others went on to add greater depth. It's always a disappointment when one does not seem to receive due credit - and we've all been there. Thats partly why I tried to bring the OP's attention back to my post as well, because it seemed that's what was occurring there too.
    But I also see that many times folks get stuck on a point they are trying to solve and become frustrated to the point of distraction at times - so I think it's best to cut them some slack.
    There has been a real rash of posters that don't come through either with dukes, thanks or even acknowledgments lately ... I hope this OP will not be one of them - I don't see that that is the case thus far.

  • Object expected error

    i have written a jsp with other jsp included inside it.
    i am accessing the javascript function present in the outer jsp by the inner jsp <href: javascript........> tag . i am getting object expected error of javascript. any suggestions plz.
    thanks

    its a very big files. i dont think i can paste.. anyways i try . TY
    included jsp
    <%--
    --%>
    <%@ page language="java" import="java.lang.*,java.util.*" %>
    <%@ page buffer = "32kb" %>
    <%@ page import="com.wolterskluwer.atlas.crn.CRNSearcherConst"%>
    <%@ page import="com.wolterskluwer.eip.crn.PortalHelper" %>
    <%@ page import="com.wolterskluwer.eip.crn.MonitorManager" %>
    <%@ page import="com.wolterskluwer.eip.crn.TrackerSort" %>
    <%@ page import="com.wolterskluwer.eip.common.tools.log.Log" %>
    <%@ taglib uri="documentProvider.tld" prefix="dp" %>
    <%@ taglib uri="documentCache.tld" prefix="dc" %>
    <%@ taglib uri="diag.tld" prefix="diag" %>
    <%@ taglib uri="oscache.tld" prefix="oscache" %>
    <jsp:useBean id="userProfile" type="com.wolterskluwer.eip.crn.beans.UserProfile" scope="session" />
    <%
         MonitorManager monMan;
         monMan = (MonitorManager) request.getAttribute("monMan");
    %>
    <%-- define link for help page --%>
    <%
    StringBuffer mycrn_helplink = new StringBuffer(64);
    mycrn_helplink.append("javascript:reSetTimerTop(),displayPopupWindow('" + PortalHelper.getContextWebHelpURL("Publications-search.htm") + "'," + (String)application.getAttribute(CRNSearcherConst.APPLICATION.HELPPAGES_DIMENSIONS) + ")");
    //     check if it is content viewer header,
    //     which is a litte bit diferent then other crn headers
    boolean isContentViewerHeader = false;      
    if(request.getParameter("contentViewerHeader") != null &&
      request.getParameter("contentViewerHeader").compareTo("true") == 0){
         isContentViewerHeader = true;    
    %>
              <!-- TOP MATTER -->
              <DIV id="top-matter">
                   <DIV class="top-left-col">
                        <jsp:include page="../siteid.jsp" />
                   </DIV>
                   <DIV class="top-middle-col">
                       <jsp:include page="headermiddlecol.jsp" />                        
                   </DIV>
                   <% if (!isContentViewerHeader){ %>                    
                        <jsp:include page="../ssouserprofileproductaccess.jsp" />
                   <% } %>     
                   <DIV id=search-strip>
                        <% if (!(request.getParameter("doNotShowSearchStrip") != null && request.getParameter("doNotShowSearchStrip").compareTo("true") == 0)){ %>
                      <DIV class=left-col>
    <%-- --%>                       
                  <% Log.debug("crn_mainheader.jsp: before using cache tag"); %>
              <% Log.debug("crn_mainheader.jsp: key=[request.cachekey_userid]; request.cachekey_userid=[" + request.getAttribute("cachekey_userid") + "]"); %>
              <% String key = "CrnMainHeader"+userProfile.getUserId()+request.getAttribute("ignoreaccessrights");%>
              <% Set keyList = (Set) application.getAttribute("CacheKeyList");
                   if(keyList!=null) {
                        keyList.add(key);
                        application.setAttribute("CacheKeyList", keyList);
              %>
              <oscache:cache key="<%=key%>" scope="application" groups="<%=userProfile.getUserId()%>" refresh="<%=PortalHelper.getWebCacheRefresh()%>">
                   <% Log.debug("CRN cache: [crn_mainheader.jsp].[globalnavdropdown] - is recalculating"); %>
                   <% monMan.start("WSCRN.MyCRN.Header.GlobalNavCategory (XSLT)"); %>         
                   <dp:documentProvider id="globalNavCategory" scope="page" pagerId="htmlPager">
                        <dc:cacheDocument cacheName="<%= CRNSearcherConst.APPLICATION.EXTENTED_CSH_DOCUMENTPROVIDER_CACHE %>">
                             <csh:cshextract DOMDocumentID="<%= CRNSearcherConst.APPLICATION.EXTENDED_CSH_DOM_ID %>" DOMDocumentScope="application"/>
                        </dc:cacheDocument>
                        <%-- apply xsl filter to get rid of unsubscribed nodes --%>
                        <dp:xmlTransform isXSLTFilterEnabled="true"
                                             xslFileUri="<%= PortalHelper.getCSHFilterXSLFileUrl() %>"
                                             >
                             <dp:xmlParam name="subscribedProductsAssm" value="<%= userProfile.getProductsSubscribedAssm() %>" />
                             <dp:xmlParam name="listItemSeparator" value="<%= userProfile.LISTITEM_SEPARATOR %>" />
                             <dp:xmlParam name="showUndefinedPubs" value="false" />
                             <dp:xmlParam name="nav-type-toShow" value="Global" />
                             <%-- diagnostic mode when access rights have to be ignored --%>
                             <diag:paramCheck name="<%= CRNSearcherConst.DIAG.IGNOREACCESSRIGHTS %>" value="on">
                                <dp:xmlParam name="showNotSubscribedPubs" value="true" />
                            </diag:paramCheck>
                           </dp:xmlTransform>
                        <%-- generate drop-down box with only subscribed nodes that have attribute nav-type equal to Global --%>
                        <dp:xmlTransform isXSLTFilterEnabled="true" xslFileUri="<%= PortalHelper.getGlobalNavigationDropDownXslFile() %>"
                                             dtdUri="<%= PortalHelper.getDTDUrl(PortalHelper.getAssembliesCollectionId()) %>" >
                             <dp:xmlParam name="CRNSearcherConst.URL.GLOBAL_NAV_PATH" value="<%= CRNSearcherConst.URL.GLOBAL_NAV_PATH %>" />
                             <dp:xmlParam name="CRNSearcherConst.URL.GLOBAL_NAV_LINK" value="<%= CRNSearcherConst.URL.GLOBAL_NAV_LINK %>" />
                             <%-- diagnostic mode when access rights have to be ignored --%>
                             <diag:paramCheck name="<%= CRNSearcherConst.DIAG.IGNOREACCESSRIGHTS %>" value="on">
                                  <dp:xmlParam name="ignoreaccessrights" value="true" />
                             </diag:paramCheck>
                        </dp:xmlTransform>
                   </dp:documentProvider>
                   <% monMan.stop("WSCRN.MyCRN.Header.GlobalNavCategory (XSLT)"); %>
                   <form name="sites" style="margin-top: -2px;margin-left:5px;">
                        <select name="browseCRN" onchange="goToURL()">
                             <option value="0" selected>Browse the CRN...</option>
                             <option value="mycrn.jsp">My CRN</option>
                             <%
                             List trackerCatList = (List) application.getAttribute("TrackerCategoryList");
                             String prodSub = userProfile.getProductsSubscribed();
                             if(TrackerSort.hasTrackerSubscribed(trackerCatList, prodSub)) {
                                  %><option value="mytracker.jsp">My Trackers</option><%
                             %>
                             <%-- display dynamic global navigation options --%>
                             <dp:displayPage ifInPlaceThenDisplay="true" scope="page" documentProviderId="globalNavCategoryDocumentProvider" />
                        </select>
                   </form>
              </oscache:cache>                            
    <%-- --%>                       
                            <IMG height=17 alt="" src="../img/label_search.gif" width=50>
                       </DIV>   
                      <DIV class=middle-col style="width:330px;">
                                  <% monMan.start("WSCRN.MyCRN.SimpleSearchDisplay-searcher.AllFile"); %>
                                  <jsp:include page="../search/searcher/simpleSearchDisplay-searcher.jsp">
                                       <jsp:param name="<%= CRNSearcherConst.URL.FORM_ACTION_URL %>" value="<%= CRNSearcherConst.JSPFILES.SEARCHRESULTS_PAGE %>" />
                                       <jsp:param name="<%= CRNSearcherConst.URL.SEARCHMASKFORM_HIDDEN_FIELD %>" value="<%= CRNSearcherConst.JSPFILES.SIMPLESEARCH_MODULE %>" />
                                  </jsp:include>
                                  <% monMan.stop("WSCRN.MyCRN.SimpleSearchDisplay-searcher.AllFile"); %>
                        </DIV>
                        <%-- modifed PM 1/4/2006 --%>
                      <DIV class=right-col
                           style="
                           <% if(isContentViewerHeader){ %>
                                position: absolute;top: -45;right: 2;text-align:right;width:580px;padding:0px;margin:0px;     
                           <%}else{%>
                                margin-top:-1px;text-align:left;margin-left:0px; 
                           <%}%>">
                             <% if (isContentViewerHeader){ %>                    
                                  <jsp:include page="../ssouserprofileproductaccess.jsp" />
                             <% } %>                                
                           <% if (!(request.getParameter("doNotShowSearchHelp") != null && request.getParameter("doNotShowSearchHelp").compareTo("true") == 0)){ %>                      
                           <A href="<%= mycrn_helplink.toString() %>" target="_top" style="margin-left:3px;margin-right:3px;">Search Help</A>|<%}%><A href="advancedsearch.jsp" target="_top" style="margin-left:3px;margin-right:3px;">Advanced Search</A>|<A href="<%= CRNSearcherConst.JSPFILES.RULESEARCH_MODULE %>" target="_top" style="margin-left:3px;margin-right:3px;">Rule Search</A>|<A href="savedsearches.jsp" target="_top" style="margin-left:3px;">My Searches</A>
                      </DIV>   
                      <% } %>                                   
                    </DIV>       
              </DIV>
    <%--  main jsp--
    <%--
    <%@ page language="java" %>
    <%@ taglib uri="diag.tld" prefix="diag" %>
    <%@ page import="com.wolterskluwer.eip.crn.PortalHelper" %>
    <%@ page import="com.wolterskluwer.eip.crn.MonitorManager" %>
    <%
         MonitorManager monMan = new MonitorManager();
         monMan.start("WSCRN.ContentViewerTop.TotalTime");
         request.setAttribute("monMan",monMan);
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <HEAD>
    <TITLE>content-viewer-top.html</TITLE>
    <!-- characterset is set to ISO-8859-1 to match encoding in docview.xsl that generates document in ISO-8859-1 encoding -->
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <link rel="stylesheet" type="text/css"  href="../css/content-viewer_screen.css"/>
    <link rel="stylesheet" type="text/css" href="../css/global.css">
    <script language="javascript" type="text/javascript" src="../jscript/contentviewer.js"></script>
    <script type="text/javascript">
    var oImgExpand = new Image;
    oImgExpand.src = "../img/toc_expand.gif";
    var oImgCompact = new Image;
    oImgCompact.src = "../img/toc_compact.gif";
    function toggleExpand(){
         oFrameset = parent.document.getElementById("framesContent");
         oImg = document.getElementById("toc-button");
         oBut=document.getElementById("s_h_button");
         if (oImg.src.indexOf("img/toc_expand.gif")>-1){
              oImg.src = oImgCompact.src;
              oFrameset.cols = strTemp;
              oBut.value="Hide TOC";
         }else{
              strTemp = oFrameset.cols;
              oImg.src = oImgExpand.src;
              oFrameset.cols = "0,*"; //changed from 192 to 0 by artp
              oBut.value="Show TOC";
    function OpenWindow(strURL, strName, intWidth, intHeight,toolbar){
         objPopUp = open( strURL, strName, "toolbar="+toolbar+",width="+intWidth+",height="+intHeight+",scrollbars=yes,resizable=yes,menubar=yes,personalbar=yes,location=yes");
         //reSetTimerTop();
    function printContent(){
         parent.frameRight.print();
    </script>
    <script type="text/javascript" src="../jscript/minmax.js"></script>
    </HEAD>
    <BODY>
    <DIV id="content-viewer-top-stretch">
         <jsp:include page="../WEB-INF/jspinclude/mainparts/crn_mainheader.jsp" >
              <jsp:param name="contentViewerHeader" value="true"/>
         </jsp:include>
    </div>
    <div id="content-viewer-top">
         <% monMan.start("WSCRN.ContentViewerTop.ContentViewerHeader"); %>
         <jsp:include page="/WEB-INF/jspinclude/contentviewer/contentviewerheader.jsp" />
         <% monMan.stop("WSCRN.ContentViewerTop.ContentViewerHeader"); %>
    </div>
    </BODY>
    </HTML>
    <% monMan.stop("WSCRN.ContentViewerTop.TotalTime"); %>
    <diag:paramCheck notName="showtime">
    <%
         out.print("<!--");
         out.print(monMan.report("\n"));
         out.print("-->");
    %>
    </diag:paramCheck>
    <diag:paramCheck name="showtime" value="on">
    <%
         out.print(monMan.report("<br>"));
    %>
    </diag:paramCheck>Message was edited by:
    bobz

  • Baffled by ')' Expected error

    I'm new to java and am confused by this error:
    PropertyRental.java:173: ')' expected
    ^
    1 Error
    This is the code in question
              try
                  fin1 = new FileInputStream ("Clients.txt");
                   CGet.addActionListener(new ActionListener()
                      String line = new DataInputStream(fin1).readline();
              any help would be a god send thanks.

    joni.gale wrote:
    I've gone over all the syntax again and have sorted the propblem, thanks so much for your help MelIt's ok, those anonymous classes can look a bit strange at first. My advice would be to format the code as I did in my previous post while you are getting the hang of a new concept, then when you are comfortable feel free to squash brackets and parenthesis up in the appropriate way.
    Mel

  • Identifire expected error  and    ) expected error

    I am extreamly new to java and have what most people(but me) would consider a rather simple assignment.
    I have attempted to write a simple mortgage calculator with a GUI. When I attempted to compile I got the following errors
    java:99 <identifire>expected
    public void buttonMouseClicked(java.awt.event.mouseEvent)
    java:128 ')' expected
    My code is below
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ScurryMortcalc1 extends JPanel
         private JButton button1;
         private JTextField textField1;
         private JTextField textField2;
         private JLabel component4;
         private JLabel component5;
         private JTextField textField3;
         private JLabel lable3;
         private JTextField textField4;
         private JLabel lable4;
         public ScurryMortcalc1()
              //construct components
              button1 = new JButton ("Calculate Payment");
              textField1 = new JTextField (5);
              textField2 = new JTextField (5);
              component4 = new JLabel ("Principal");
              component5 = new JLabel ("Interest Rate");
              textField3 = new JTextField (5);
              lable3 = new JLabel ("Term in Yrs");
              textField4 = new JTextField (5);
              lable4 = new JLabel ("Monthly Payment"); // should not be able to input text into this field
              //adjust size and set layout
              setSize (new Dimension (496, 182)); //<--- changed
              setLayout (null);
              //add components
              add (button1);
              add (textField1);
              add (textField2);
              add (component4);
              add (component5);
              add (textField3);
              add (lable3);
              add (textField4);
              add (lable4);
              //set component bounds (This will put everything exactly where you want it)
              button1.setBounds (34, 5, 100, 20);
              textField1.setBounds (35, 39, 102, 25);
              textField2.setBounds (36, 75, 100, 25);
              component4.setBounds (171, 39, 100, 25);
              component5.setBounds (170, 75, 100, 25);
              textField3.setBounds (37, 110, 100, 25);
              lable3.setBounds (171, 110, 100, 25);
              textField4.setBounds (37, 140, 100, 25);
              lable4.setBounds (169, 140, 100, 25);
         //<--- create a method that will activate the components
         public void initComponents() {
            //<---change text/mouse listener to action listener
            //<--- TextListener is not supported in JTextField (see my examples)
            //<--- MouseListener is cumbersome
            //<--- you can also use other listeners supported in Swing (see Java Tutorials)
              textField1.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
             button1.addActionListener(new ActionListener() {
                     public void actionPerformed(ActionEvent e) {
             textField2.addActionListener(new ActionListener() {
                     public void actionPerformed(ActionEvent e) {
             textField3.addActionListener(new ActionListener() {
                     public void actionPerformed(ActionEvent e) {
        public static void main (String[] args)
             //<---do this sequence
             ScurryMortcalc1 panel = new ScurryMortcalc1();
             panel.initComponents();
              JFrame frame = new JFrame ("JPanel Preview");
              frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add (new ScurryMortcalc1());
              frame.setSize(600,400);  //<--- added
              frame.setVisible (true);
    public void button1MouseClicked(java.awt.event.mouseEvent )
              String Principal_str = textField1.getText();
                   double Principal = double.ValueOf(Principle_str).doubleCalue();
                  String interestRate_str = textField2.getText();
                  double interestRate = (double.valueOf(interestRate_str).doubleValue()) / 100+1;
                  string Term_in_yrs_str = textField3.getText();
                  double Term_in_yrs_str = double valueOf(Term_in_yrs_str).doubleValue();
                  double Calc = (double) Math.pow(interestRate, Term_in_yrs);
                  java.text.DecimalFormat dfm = new java.text.DecimalFormat("#,###.00"); // formats numbers to two places after the decimal
                  double Monthy_Payment = (Principal * Calc * interestRate - 1)) / (12 * Calc -1));
                  String Monthy_Payment_str = dfm.format((Monthy_Payment)));
                      textField4.setText(Monthly_Payment_str);
              try {
                   initComponents();
              catch (Exception e) { //<---add bracket
                   e.printStackTrace();
    }

    A bunch of syntax errors: double is not the same as Double. string is not the same as String. You have too many )'s. mouseEvent is not the same as MouseEvent. And you need to use a variable name in the button1MouseClicked method declaration - for example public void button1MouseClicked(java.awt.event.mouseEvent event)

  • String Literal and Expected error

    I've been looking at this code for who knows how long and i can't figure out why I'm getting these errors in the following code. If someone can take a look and help me out i would be VERY grateful! I'm relatively new to java..only started a week or so because of something I have to do for school
                                       SimpleChaining.Match mat = (SimpleChaining.Match)ms.get(n);
                                       scoreStmt = con.prepareStatement (
                                       "INSERT INTO T_Match(fromA, fromB, toA, toB, score, T_Protein_ID, T_Protein_T_Protein_ID) VALUES
                                       mat.getFromA() + ", " + mat.getFormB()
                                       + ", " + mat.getToA() + ", " + mat.getToB()
                                       + ", " + mat.getScore() + ", " + protein_id1 + ", " + protein_id2 + ")");
                                       scoreStmt.executeUpdate();
                                  }here is the error:
    SmithWaterman.java:392: unclosed string literal
    "INSERT INTO T_Match(fro
    mA, fromB, toA, toB, score, T_Protein_ID, T_Protein_T_Protein_ID) VALUES
    ^
    SmithWaterman.java:395: ')' expected
    + ", " + mat.getScore()
    + ", " + protein_id1 + ", " + protein_id2 + ")");

    Hi,
    The XQuery command and the XQuery expression looked fine to me. I noticed that you are using 10.2.0.1. I'd install latest patch release is 10.2.0.3 and try again.
    Regards,
    Geoff

  • Bi Dashboards issue works properly some times and after not display pointers data and give un expected error and throw login window

    HI,
    I have toff situation where  we deployed bi dashboards in our site and it works some time and some times not,
    and some times it keep loading and throw a login window.
    works when
    we restart performance point service  and if not work
    we re create secure store service and generated new key and create new pps service application
    before that we stopped secure store and pps service  using c.a in application server
    we are using ssas for datasource to connect  from dashboard designer
    we have seperate server for ssas dbs
    seperate application server running: pps service and secure store service
    two web front ends:  one of running secure store
    1 Domain controller + central admin service running
    some times after 4 -5 hours bi dashboards works , we dashboards not display data and throw un expected errors,
    also when we try to connect using a dashboard designer from a seperate client machine in same domain ,we have same issue , we unable to connect to ssas datasource server, and if connect some times unable to deploy dashboards.
    we tried every thin icreased server time out values  in ssas server
    :\Program Files\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Config\msmdsrv.ini. in this location
    and in 
    c:\program files\common files\microsoft shared\web server extensions\14\webclients\ppsmonitoringServer\client.config
    maxStringContentLength="2147483647"
    maxNameTableCharCount="2147483647"
    maxBytesPerRead="2147483647"
    maxArrayLength="2147483647"
    maxDepth="2147483647" />
    even we have same issue
    is some thing happening when dashboards working some time and  after some time not 
    is a secure store crashing or its still request pending in IIS and not authenticating to data soruce why 
    below are the logs
    Here are the results of the log analysis :
    server wfe1 
    09/01/2014 14:43:44.66 w3wp.exe (0x2128) 0x158C PerformancePoint Service PerformancePoint Services 39 Critical A PerformancePoint service application call was aborted by the caller.  This may indicate the HttpRuntime executionTimeout for the Web Application
    is configured to a value smaller than the DataSourceQueryTimeout for the PerformancePoint Service Application. 8bc44f14-acef-49bf-b1c1-2755ea7e6e24
    09/01/2014 14:43:44.66 w3wp.exe (0x2128) 0x158C PerformancePoint Service PerformancePoint Services ef8z Critical ‏‏حدث
    استثناء
    أثناء عرض
    عنصر ويب.
    قد تساعد
    معلومات التشخيص
    التالية في
    تحديد سبب
    هذه المشكلة:  Microsoft.PerformancePoint.Scorecards.BpmException: ‏‏لقد
    انتهت
    مهلة الطلب
    أو تم
    إجهاضها. تم
    تسجيل تفاصيل
    إضافية من
    أجل المسؤول.  ‏‏رمز
    خطأ "خدمات PerformancePoint"
    هو 20700. 8bc44f14-acef-49bf-b1c1-2755ea7e6e24
    09/01/2014 14:43:44.66 w3wp.exe (0x2128) 0x158C SharePoint Foundation Runtime ba3q Medium Redirect to error.aspx?ErrorText=Request%20timed%20out%2E failed. Exception: System.Web.HttpException: The remote host closed the connection. The error code is 0x800704CD.    
    at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)     at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()     at System.Web.HttpResponse.Flush(Boolean finalFlush)    
    at System.Web.HttpResponse.End()     at Microsoft.SharePoint.Utilities.SPUtility.Redirect(String url, SPRedirectFlags flags, HttpContext context, String queryString) 8bc44f14-acef-49bf-b1c1-2755ea7e6e24
    09/01/2014 14:47:32.69 w3wp.exe (0x2128) 0x2154 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
    the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases.  Additional Data:  Current default
    super reader account: NT AUTHORITY\LOCAL SERVICE 78c107cd-0d4b-46f5-8e1a-0d9b4ebc7b29
    09/01/2014 15:07:40.74 w3wp.exe (0x2128) 0x209C PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
    http://www.xxx.xxx.sa/ar-sa/Notary/Rspointer/Lists/PerformancePoint Content/28_.000  Verify that the location exists and that the user has the "Read Items" permission. 
    Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: ‏‏لقد
    انتهت
    مهلة الطلب
    أو تم
    إجهاضها. تم
    تسجيل تفاصيل
    إضافية من
    أجل المسؤول.     at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)    
    at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location)     at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
    spObjectTypeId) abf0263d-7333-4e4f-9cd4-a3a4dcb700c0
    09/01/2014 15:13:25.92 w3wp.exe (0x2128) 0x18DC PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
    http://www.xxx.xxx.sa/ar-sa/Notary/Rspointer/Lists/PerformancePoint Content/218_.000  Verify that the location exists and that the user has the "Read Items" permission. 
    Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: ‏‏لقد
    انتهت
    مهلة الطلب
    أو تم
    إجهاضها. تم
    تسجيل تفاصيل
    إضافية من
    أجل المسؤول.     at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)    
    at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location)     at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
    spObjectTypeId) b35bf864-54f4-43fa-88a8-44cdf938bfa2
    09/01/2014 15:11:10.87 w3wp.exe (0x2128) 0x1F88 PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
    http://www.xxx.xxx.sa/ar-sa/Courts/Bic/Lists/PerformancePoint Content/4_.000  Verify that the location exists and that the user has the "Read Items" permission. 
    Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: ‏‏لقد
    انتهت
    مهلة الطلب
    أو تم
    إجهاضها. تم
    تسجيل تفاصيل
    إضافية من
    أجل المسؤول.     at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)    
    at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location)     at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
    spObjectTypeId) 7cea0eb6-214f-4d7b-a6e7-97a0fe11c956
    09/01/2014 15:11:40.87 w3wp.exe (0x2128) 0x2150 PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
    http://www.xxx.xxx.sa/ar-sa/Notary/Rspointer/Lists/PerformancePoint Content/162_.000  Verify that the location exists and that the user has the "Read Items" permission. 
    Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: ‏‏لقد
    انتهت
    مهلة الطلب
    أو تم
    إجهاضها. تم
    تسجيل تفاصيل
    إضافية من
    أجل المسؤول.     at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)    
    at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location)     at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
    spObjectTypeId) 4154222b-6ff0-4b64-81b8-d08501a19278
    server wfe 2
    09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
    the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases.  Additional Data:  Current default
    super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
    09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
    the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases.  Additional Data:  Current default
    super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
    09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
    the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases.  Additional Data:  Current default
    super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
    09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
    the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases.  Additional Data:  Current default
    super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
    In the Roiscan logs we get an error in regards to the English Language pack:
    Review Items
    ============
    Error:                       Product {90140000-1015-0409-1000-0000000FF1CE} - Microsoft SharePoint Foundation 2010 1033 Lang Pack:  has unexpected
    file state(s).
    adil

    chinnijagadeesh,
    You suck!
    Signed: The rest of the universe.
    ... and quit crossposting FFS... it really is quite annoying!

  • Java Web Start Error in through codebase url with SSL

    I have created one Java web-start plugin application in swing which is launched from PHP site at browser plugin.
    All things were working fine, but when we implemented SSL in our site it stopped working. And when we try to start the application from browser it thorws error like:
    Unable to launch Application.
    In Java console it puts following log:
    JNLP Ref (...): NULL !
    #### Java Web Start Error:
    #### null
    Following is my JNLP file:
    <jnlp spec="1.0+" codebase="https://<<server_domain>>/MyPlugin/">
      <information>
        <title>Test Plugin</title>
        <vendor>The Java(tm) Tutorial</vendor>
        <homepage href="null"/>
        <description>Test Plugin</description>
        <description kind="short">Test Plugin</description>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <update check="timeout" policy="always"/>
      <resources>
        <java version="1.7+"/>
        <jar href="http://<<server_domain>>/MyPluginJar.jar" download="eager" main="false"/>
      </resources>
      <application-desc>
        <argument>test</argument>
        <argument>test</argument>
        <argument>test</argument>
        <argument>test</argument>
        <argument>test</argument>
      </application-desc>
    </jnlp>
    The issue started only after implementation of SSL in our site. Please provide any solution for this. Many thanks in advance.
    P.S. My Jar file is signed by third party authorized certificate.

    Have you tried using Rosetta?

  • Report Script returns no data and "java.io.FileNotFoundException" error

    When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
    This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
    After running the report the script, it pops up the follwing message:
    "java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
    When checked the TEST.txt, it was empty.

    Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
    but is this the right error message for that? It should have atleast create a blank file right?

Maybe you are looking for