Hi Im getting cannot find symbol exception.

Hi Im getting following exception, Plz guide me.
Cannot find symbol
Symbol : method getMessage(javax.faces.context.FacesContext,javax.faces.component.UIComponent,java.lang.String,java.lang.object[])
Location: class com.sun.faces.util.MessageFactory

Hi I have underline in the following code where im getting exception.
Plz can any one help me in this regard.
Cannot find symbol
Symbol : method getMessage(javax.faces.context.FacesContext,javax.faces.component.UIComponent,java.lang.String,java.lang.object[])
Location: class com.sun.faces.util.MessageFactory
if (minimumSet &&
(converted < minimum)) {
if (maximumSet) {
throw new ValidatorException(MessageFactory.getMessage
(context, component,
Validator.NOT_IN_RANGE_MESSAGE_ID,
new Object[]{
new Double(minimum),
new Double(maximum)
} else {
throw new ValidatorException(
MessageFactory.getMessage
(context, component,
LongRangeValidator.MINIMUM_MESSAGE_ID,
new Object[]{
new Integer(minimum)
}));

Similar Messages

  • Im getting cannot find symbol exception.

    Im getting following Exception, Plz guide me.
    Cannot find symbol
    Symbol : method getMessage(javax.faces.context.FacesContext,javax.faces.component.UIComponent,java.lang.String,java.lang.object[])
    Location: class com.sun.faces.util.MessageFactory

    Have you imported all the needed classes?
    That is what it says to do here:
    http://faculty.capitol-college.edu/~jaanderson/JEMT/cannotFindSymbolClass.html
    Also check if the getMessage method in MessageFactory accepts those arguments that you provided (Meybe they are in the wrong order):
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/apidocs/oracle/adf/view/faces/util/MessageFactory.html
    Cheers,
    Illu
    Message was edited by:
    Illu

  • Having trouble finding out why i get   "cannot find symbol variable textio"

    Im trying to write a romanNumeral converter program.
    I dont know what else im doing wrong!
    Please help me to see and understand what i did wrong!

    Please help me to see and understand what i did wrong!You are using something called 'textio'
    The compiler doesn't know what that is.
    It is telling you exactly that.

  • Jdk6 - cannot find symbol

    Hi,
    I've just encountered a problem compiling with sun jdk6, that I've never met before.
    I've the class Arch that uses objects of the class Node.
    I compile the Node class without any problem ( javac -cp "../lib/*" it/bcdm/di/core/Node.java); but while compiling the Arch class after that, I get
    cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         private Node da = null;
         ^
    Either the Node and the Arch class stay within the same folder it/bcdm/di/core.
    I've already tried to include within the classpath, the path of the folder containing the file Node.class, in this way:
    javac -cp "../lib/*;it/bcdm/di/core/*" it/bcdm/di/core/Arch.java
    and I've also already tried this:
    export CLASSPATH=$CLASSPATH:/pathOfMyProject/it/bcdm/di/core/
    and also
    export PATH=$PATH:/pathOfMyProject/it/bcdm/di/core/
    but unsuccessful...
    this is the output of the verbose compilation mode:
    [parsing started it/bcdm/di/core/Arch.java]
    [parsing completed 35ms]
    [search path for source files: ../lib/*,it/bcdm/di/core/*]
    [search path for class files: /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/resources.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/rt.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/sunrsasign.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/jsse.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/jce.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/charsets.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/classes,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/sunpkcs11.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/sunjce_provider.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/localedata.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/dnsns.jar,../lib/*,it/bcdm/di/core/*]
    [loading java/lang/Comparable.class(java/lang:Comparable.class)]
    [loading java/lang/Object.class(java/lang:Object.class)]
    [loading java/lang/String.class(java/lang:String.class)]
    it/bcdm/di/core/Arch.java:5: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         private Node da = null;
         ^
    it/bcdm/di/core/Arch.java:6: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         private Node a = null;
         ^
    [loading java/lang/ClassCastException.class(java/lang:ClassCastException.class)]
    it/bcdm/di/core/Arch.java:49: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public Node getFrom(){
         ^
    it/bcdm/di/core/Arch.java:52: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public Node getTo(){
         ^
    it/bcdm/di/core/Arch.java:72: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public void setFrom(Node x){
         ^
    it/bcdm/di/core/Arch.java:75: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public void setTo(Node y){
         ^
    [checking it.bcdm.di.core.Arch]
    [loading java/lang/Error.class(java/lang:Error.class)]
    [loading java/lang/RuntimeException.class(java/lang:RuntimeException.class)]
    [loading java/lang/Exception.class(java/lang:Exception.class)]
    [loading java/lang/Throwable.class(java/lang:Throwable.class)]
    this is my java version:
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
    and I made these attempts either in debian and in windows XP, with the same java version installed.
    have you any idea to solve this compilation error?

    warnerja wrote:
    masijade, I think you might be confused as to what the OP is doing with that asterisk. As yawmark shed some light on it earlier, the wildcard lets the user conveniently include all .jar files it finds in the /lib directory, as if the user did this:
    -cp /lib/one.jar;/lib/two.jar;/lib/three.jar
    (assuming the /lib directory contains one.jar, two.jar, and three.jar)Yes, I know, but the op is complaining that he just compiled "Node", then by compiling "Arch" it could not find "Node", which means it won't be in those jars, anyway. (Edit: If he had used a -d option, the classes would have been in that directory, but then the "*", I believe, would hinder, not help, at least in respect to those newly compiled classes.)
    Also, OP, if you are not specifiying a -d option, then you also need to include "." on the classpath, as the classfiles will appear "in place" (i.e. right alongside the corresponding java files when compiled using the above command), which means that "." must also be on the classpath (as that is the "root" for the newly compiled classes).
    Edit Again, Although I will admit I hadn't remembered about the "*" being a new feature in 6 (though now that it has been mentioned as such I do remember having read about it, once).

  • Help - cannot find symbol error

    Can someone help me? I am getting "cannot find symbol" error in my code and cannot figure out why. Here is my code:
    public class toyInventory
    private String[] toyInventory = {"ball", "bat", "bear", "car", "doll", "game", "glove", "playstation", "train"};
    private int[] nineArray = {0,0,0,0,0,0,0,0};
    int invItems = 0;
    public void countToy()
    String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};
    int noMatch;
    for(int a = 0; a < orderInput.length; a++)
    noMatch = 0;
    for(int b = 0; b < toyInventory.length; b++)
    if(orderInput[a] == toyInventory)
    noMatch = 1;
    break;
    if(noMatch == 0)
    invItems = 1;
    public void printItems()
    for(int c = 0; c < toyInventory.length; c++)
    if (countToy[c] > 4)<-------- cannot find symbol error here
    System.out.print("*");
    System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <----cannot find symbol error here also
    System.out.print("The number of invalid items in the order is" + invItems);
    public static void main( String[] args)
    toyInventory collection = new toyInventory ();
    collection.countToy();
    collection.printItems();

    public void countToy()
    String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};In the above code you have declared countToy() as method and while in the below lines you are calling countToy[] as an array. So please check that...
    if (countToy[c] > 4)<-------- cannot find symbol error here
    System.out.print("*");
    System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <----cannot find symbol error here also
    }

  • Help! Getting the cannot find symbol error.

    Hello everyone. I have gone throught my whole program and I am still getting a cannot find symbol error. What does this error mean exactly? Here is the code below. I am trying to color a background using a comobox method.
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ButtonGroup;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.border.EtchedBorder;
    import javax.swing.border.TitledBorder;
    import java.awt.GridLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JComboBox;
    public class ComboboxFrame extends JFrame
        public ComboboxFrame()
            colorPanel = new JPanel();
            colorPanel.setPreferredSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
            getContentPane().add(colorPanel, BorderLayout.CENTER);
            class ChoiceListener implements ActionListener
                public void actionPerformed(ActionEvent event)
                    setbackgroundColor();
            listener = new ChoiceListener();
            createControlPanel();
            setbackgroundColor();
            pack();
        private void createControlPanel()
          JPanel colorPanel = createComboBox();
          JPanel controlPanel = new JPanel();
          controlPanel.setLayout(new GridLayout(1, 1));
          controlPanel.add(colorPanel);
          getContentPane().add(
             controlPanel, BorderLayout.SOUTH);
       public JPanel createComboBox()
          colorCombo = new JComboBox();
          colorCombo.addItem("Red");
          colorCombo.addItem("Green");
          colorCombo.addItem("Blue");
          colorCombo.setEditable(true);
          colorCombo.addActionListener(listener);
          JPanel panel = new JPanel();
          panel.add(colorCombo);
          return panel;
       public void setbackgroundColor()
           String color = (String)colorCombo.getSelectedItem();
           colorPanel.setbackgroundColor(new backgroungColor(color));
           colorPanel.repaint();
       private JPanel colorPanel; 
       private static final int PANEL_WIDTH = 300;
       private static final int PANEL_HEIGHT = 300;
       private JComboBox colorCombo;
       private ActionListener listener;
    }The line with the error is: colorPanel.setbackgroundColor(new backgroungColor(color));
    Here is the second file
    import javax.swing.JFrame;
    public class backgroundTest
        public static void main(String[] args)
            JFrame frame = new comboboxFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.show();
    }Any help would be appreciated. Thank you

    Hello everyone. I have gone throught my whole
    program and I am still getting a cannot find symbol
    error. "Symbol" here means variable or method name (or maybe class name, but I think it will specifically bitch about classnames in that case).
    String foo = "foo";
    System.out.println(zoo); // no such variable as zoo. So...
    colorPanel.setbackgroundColor(new backgroungColor(color));Looks like colorPanel or setbackgroundColor(new backgroungColor doesn't exist.
    Note that spelling and capitalization count. Java's really anal that way.

  • Cannot find symbol class ParseException

    I have this in my code how ever
    DateFormat formatter = new SimpleDateFormat("ddMMyyyy");
    dDateStamp = (Date)formatter.parse(dateStamp);
    When I pass in say
    dateStamp=safsadssad sa;
    I get an error which is fine.
    I can not seem to catch this error with try catch
    When I use the one below it says it cannot find the symbol
    When i use the Exception it still throws and error to jsp page
    cannot find symbol
    symbol : class ParseException
    }catch(ParseException e){   
    symbol : class ParseException
    }catch(ParseException e){   
    Any One know I csn trap this?
    Thanks in advance

    Well, it's in the j2se API. Not sure what to tell you...

  • Java Error : cannot find symbol , symbol : class (jdk 1.6.0)

    Dear All,
    Please help me.
    I am running javac from a .bat file and i set the classpath in the bat file as follows.
    echo on
    :start
    set classpath = "C:\Program Files\Java\jdk1.6.0\bin;"
    set classpath = "C:\Program Files\Java\jdk1.6.0\jre\..\lib\tools.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0\jre\classes;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\ldapsec.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\mysql-connector-java-5.0.0-beta-bin.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\sunjce_provider.jar; C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\studio\system;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\j2ee-1.3.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jaas-1.0.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\activation.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jms-1.0.2b.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jta-spec1_0_1.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\mail.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\AbsoluteLayout.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\sql.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\rowset.jar;C:\Program Files\Java\jdk1.6.0\studio\lib\ext\jdbc20x.zip;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\servlet-2.3.jar;C:\Program Files\Java\jdk1.6.0\studio\beans\TimerBean.jar;c:\Program Files\Java\jdk1.6.0\ideset\tomcat401_base;C:\sms\com\;"
    cd C:\sms
    javac mainP.java
    pause
    i have few class files which are inherited to the main program using ' import com.Connection; '
    i am getting errors like
    mainP.java:482: cannot find symbol
    symbol : class Connection
    location: class mainP
    Connection connection = new Connection(ipAddress, port);
    I think it is because of some classpath error.
    please advice me.......
    Viju

    Actually, you have NO CLUE what he's trying to doActually he said what he is trying to do in his posting. It's no mystery. But that's all the information that's available. If you know something that isn't posted here why not say so?
    Your reply was a snide, rude, "You're stupid for doing it that way" answerMy reply was neither snide nor rude and implied none of what you impute to it. It was a proper and constructive suggestion. You are entitled to disagree with it, but that doesn't justify this immoderate outburst.
    Bottom line is, you chose to be nastyBottom line is you're just making this up. You are imputing motives to me without evidence. Don't do that.
    You are the type of person that makes searching forums and posting questions for assistance a near waste of time.I doubt that you'll find many regulars here that would agree with that assertion. When you have made over 16,000 posts here over ten years as I have, come back and we'll discuss it some more.
    Go back to grade school and ...I suggest you try it yourself. You're not adding anything except noise to the discussion. Try curbing your temper, and while you're at it have a good look at the Code of Conduct for these forums. You're verging on personal abuse here.
    And, additionally, I've used ANT in the past. Batch files are FAR AND AWAY easier to set up.In your opinion. I disagree entirely, and I have eleven years' experience with Java to back it up.
    As for CLASSPATH, I haven't done anything about setting it beyond installing the JDK since about 1999, and it has a dot in it as we speak.

  • Cannot find symbol:constructor

    here is my code...
    package org.tiling.didyoumean;
    import java.io.IOException;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.BufferedReader;
    import org.apache.lucene.index.Term;
    import org.apache.lucene.queryParser.ParseException;
    import org.apache.lucene.search.Query;
    import org.apache.lucene.search.TermQuery;
    import org.apache.lucene.search.spell.SpellChecker;
    import org.apache.lucene.store.Directory;
    import org.apache.lucene.store.FSDirectory;
    import org.apache.commons.cli.ParseException;
    public class spell {
         public static void main(String args[]){
              System.out.println("hi");
         String spellIndex = "C://opt//lucene//didyoumean//indexes//spell";
         SpellChecker spellChecker = new SpellChecker(spellIndex);
         String[] similarWords = spellChecker.suggestSimilar("jva", 1);
         System.out.println(similarWords[0]);
    }and the error i am kept getting is
    C:\Documents and Settings\sumit-i\Desktop\didyoumean\didyoumean-1.0\src\java>javac org/tiling/didyoumean/spell.java
    org\tiling\didyoumean\spell.java:29: cannot find symbol
    symbol  : constructor SpellChecker(java.lang.String)
    location: class org.apache.lucene.search.spell.SpellChecker
            SpellChecker spellChecker = new SpellChecker(spellIndex);
                                        ^
    1 errorany ideas..plzz

    here is the Directory.java,....please help me if you can....actually i have a deadline to submit this..but i am not getting this...
    package org.apache.lucene.store;
    * Licensed to the Apache Software Foundation (ASF) under one or more
    * contributor license agreements.  See the NOTICE file distributed with
    * this work for additional information regarding copyright ownership.
    * The ASF licenses this file to You under the Apache License, Version 2.0
    * (the "License"); you may not use this file except in compliance with
    * the License.  You may obtain a copy of the License at
    *     http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    import java.io.IOException;
    /** A Directory is a flat list of files.  Files may be written once, when they
    * are created.  Once a file is created it may only be opened for read, or
    * deleted.  Random access is permitted both when reading and writing.
    * <p> Java's i/o APIs not used directly, but rather all i/o is
    * through this API.  This permits things such as: <ul>
    * <li> implementation of RAM-based indices;
    * <li> implementation indices stored in a database, via JDBC;
    * <li> implementation of an index as a single file;
    * </ul>
    * Directory locking is implemented by an instance of {@link
    * LockFactory}, and can be changed for each Directory
    * instance using {@link #setLockFactory}.
    * @author Doug Cutting
    public abstract class Directory {
      /** Holds the LockFactory instance (implements locking for
       * this Directory instance). */
      protected LockFactory lockFactory;
      /** Returns an array of strings, one for each file in the
       * directory.  This method may return null (for example for
       * {@link FSDirectory} if the underlying directory doesn't
       * exist in the filesystem or there are permissions
       * problems).*/
      public abstract String[] list()
           throws IOException;
      /** Returns true iff a file with the given name exists. */
      public abstract boolean fileExists(String name)
           throws IOException;
      /** Returns the time the named file was last modified. */
      public abstract long fileModified(String name)
           throws IOException;
      /** Set the modified time of an existing file to now. */
      public abstract void touchFile(String name)
           throws IOException;
      /** Removes an existing file in the directory. */
      public abstract void deleteFile(String name)
           throws IOException;
      /** Renames an existing file in the directory.
       * If a file already exists with the new name, then it is replaced.
       * This replacement is not guaranteed to be atomic.
       * @deprecated
      public abstract void renameFile(String from, String to)
           throws IOException;
      /** Returns the length of a file in the directory. */
      public abstract long fileLength(String name)
           throws IOException;
      /** Creates a new, empty file in the directory with the given name.
          Returns a stream writing this file. */
      public abstract IndexOutput createOutput(String name) throws IOException;
      /** Returns a stream reading an existing file. */
      public abstract IndexInput openInput(String name)
        throws IOException;
      /** Returns a stream reading an existing file, with the
       * specified read buffer size.  The particular Directory
       * implementation may ignore the buffer size.  Currently
       * the only Directory implementations that respect this
       * parameter are {@link FSDirectory} and {@link
       * org.apache.lucene.index.CompoundFileReader}.
      public IndexInput openInput(String name, int bufferSize) throws IOException {
        return openInput(name);
      /** Construct a {@link Lock}.
       * @param name the name of the lock file
      public Lock makeLock(String name) {
          return lockFactory.makeLock(name);
       * Attempt to clear (forcefully unlock and remove) the
       * specified lock.  Only call this at a time when you are
       * certain this lock is no longer in use.
       * @param name name of the lock to be cleared.
      public void clearLock(String name) throws IOException {
        if (lockFactory != null) {
          lockFactory.clearLock(name);
      /** Closes the store. */
      public abstract void close()
           throws IOException;
       * Set the LockFactory that this Directory instance should
       * use for its locking implementation.  Each * instance of
       * LockFactory should only be used for one directory (ie,
       * do not share a single instance across multiple
       * Directories).
       * @param lockFactory instance of {@link LockFactory}.
      public void setLockFactory(LockFactory lockFactory) {
          this.lockFactory = lockFactory;
          lockFactory.setLockPrefix(this.getLockID());
       * Get the LockFactory that this Directory instance is
       * using for its locking implementation.  Note that this
       * may be null for Directory implementations that provide
       * their own locking implementation.
      public LockFactory getLockFactory() {
          return this.lockFactory;
       * Return a string identifier that uniquely differentiates
       * this Directory instance from other Directory instances.
       * This ID should be the same if two Directory instances
       * (even in different JVMs and/or on different machines)
       * are considered "the same index".  This is how locking
       * "scopes" to the right index.
      public String getLockID() {
          return this.toString();
       * Copy contents of a directory src to a directory dest.
       * If a file in src already exists in dest then the
       * one in dest will be blindly overwritten.
       * @param src source directory
       * @param dest destination directory
       * @param closeDirSrc if <code>true</code>, call {@link #close()} method on source directory
       * @throws IOException
      public static void copy(Directory src, Directory dest, boolean closeDirSrc) throws IOException {
          final String[] files = src.list();
          if (files == null)
            throw new IOException("cannot read directory " + src + ": list() returned null");
          byte[] buf = new byte[BufferedIndexOutput.BUFFER_SIZE];
          for (int i = 0; i < files.length; i++) {
            IndexOutput os = null;
            IndexInput is = null;
            try {
              // create file in dest directory
              os = dest.createOutput(files);
    // read current file
    is = src.openInput(files[i]);
    // and copy to dest directory
    long len = is.length();
    long readCount = 0;
    while (readCount < len) {
    int toRead = readCount + BufferedIndexOutput.BUFFER_SIZE > len ? (int)(len - readCount) : BufferedIndexOutput.BUFFER_SIZE;
    is.readBytes(buf, 0, toRead);
    os.writeBytes(buf, toRead);
    readCount += toRead;
    } finally {
    // graceful cleanup
    try {
    if (os != null)
    os.close();
    } finally {
    if (is != null)
    is.close();
    if(closeDirSrc)
    src.close();
    please let me know....if you any idea about it..
    thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • [Greenfoot] "cannot find symbol - constructor Plotter"?

    I am attempting to make a sinusoid plotter as part of my math class. Using Greenfoot, I have created a class Plotter, which is supposed to accept amplitude, frequency, vertical displacement, and phase displacement and then plot the resulting sinusoid. Everything works fine, except when I try to compile the program I get an error message "cannot find symbol - constructor Plotter(float,float,float,float)" when I compile the World object which creates the Plotter object. My call in the World object's constructor:
    GraphWorld()
    // Create the field, which is 800x450 pixels.
    super(800, 450, 1);
    // These will eventually be set by a prompt to the user.
    float amp = 1;
    float freq = 1;
    float vd = 0;
    float pd = 0;
    addObject(new Plotter(amp,freq,vd,pd), 0, 225);
    }I am currently using a workaround by changing the code directly within the Plotter class, but I would like to find the source of the problem.

    Grey_Ghost wrote:
    It should.That's what the compiler thinks too.
    Here is the constructor as it is defined in class Plotter:
    public void Plotter(float Amplitude, float Frequency, float VertDisp, float PhaseDisp)
    amplitude = Amplitude;
    frequency = Frequency;
    vertDisp = VertDisp;
    phaseDisp = PhaseDisp;
    Except that's not a constructor. Constructors don't have return values.

  • Please help. Cannot find symbol Error!

    I have been working on this code for days now. It keeps coming up with errors. The error says cannot find symbol. I will bold the areas that say that. I got it down to 23 from 42 but now I have no idea what the problem is. any help is greatly appreciated!! I only added a couple of them mainly because it is overwhelming. I can add the rest of someone replies. Thank you again. Oh and the Classpath is set right. I am compiling from the desktop where I have the file also. That was the first thing I checked after reading other threads related to this issue. :O)
    import javax.swing.*;
    import java.awt.event.*;
    public class InventoryPart4 extends JFrame
         private JTextArea text;
         private Inventory inv;
         private int view;
         public InventoryPart4() {
              super("Product");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // quit if the window is closed
              view = 0; // current one showing
              Product product;
              inv = new Inventory(4);
              product = new Product(1, "Salad", 3, 4.95); here
              inv.add(product, 0);
    product = new Product(2, "Dressing", 6, 3.00); here          
    inv.add(product, 1);
    product = new Product(3, "Bacon Bits", 2, 1.75);*here*
              inv.add(product, 2);
    product = new Product(4, "Croutons", 1, 1.75); here
              inv.add(product, 3);
              // sort
              inv.sort();
              // output
              for (int i = 0; i < 4; i++) {
                   System.out.println(inv.get(i));
              // total val
              System.out.printf("Total=$%.2f", inv.totalValue());
              //gui
              JPanel panel = new JPanel();
              panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
              text = new JTextArea(10,50);
              text.setEditable(false);
              panel.add(text);
              showProduct();
              JButton next = new JButton("Next");
    here          next.addProduct(new Product() {
                   public void actionPerformed(ActionEvent e) {
                        if (view < inv.size()-1) view++;
                        else view = 0;
                        showProduct();
              panel.add(next);
              getContentPane().add(panel);
         // view an item
         public void showProduct() {
              text.setText("Product Details:\n");
              text.append(inv.get(view).toString()+"\n");
              text.append(String.format
                        ("Value of all the Contents: $%.2f", inv.totalValue()));
         public static void main(String args [])
              InventoryPart4 invt = new InventoryPart4();
              invt.pack();
              invt.setVisible(true);
         } //end main
    } // end class InventoryPart1
    class Product {
    private int ProductItem;
    private int ProductStock;
    private double ProductPrice;
    public Product(int item, int stock, double price) {
    ProductItem = item;
    ProductStock = stock;
    ProductPrice = price;
    } //end three-argument constructor
    // set Product Item
    public void setProductItem(int item) {
    ProductItem = item; here
    } //end method set Product Item
    //return Product Item
    public int getsProductItem() {
    return productItem;
    } //end method get product Item
    //set Product Stock
    public void setProductStock(int stock) {
    productStock = stock;
    } //end method set Product Stock
    //return Product Stock
    public int getProductStock() {
    return productStock;
    } //end method get Product Stock
    public void setProductPrice(double price) {
    productPrice = price;
    } //end method setproductPrice
    //return Product Price
    public double getProductPrice() {
    return ProductPrice;
    } //end method get Product Price
    //calculate inventory value
    public double value() {
    return productPrice * productStock;
    }// end method get productPrice and productStock
    @Override
    public String toString() {
    return String.format("item=%3d units=%d price=%.2f value=%.2f",
    productItem, productStock, productPrice, value());
    }//end class Product
    class Inventory {
         private Product[] list;
         // constructor
         public Inventory(int size) {
              list = new Product[size];
         // complete value
         public double totalValue() {
              double val = 0.0;
              for (int i = 0; i < list.length; i++) {
                   val += list.value();
              return val;
         // add an item
         public void add(Product i, int p) {
              list[p] = i;
         // get an item
         public Product get(int i) {
              return list[i];
         // sort by name
         public void sort() {
              // bubble sort
              int n = list.length;
              for (int search = 1; search < n; search++) {
                   for (int i = 0; i < n-search; i++) {
                        if (list[i].getProductItem().compareToIgnoreCase(list[i+1].getProductItem()) > 0) {
                             // swap
                             Product temp = list[i];
                             list[i] = list[i+1];
                             list[i+1] = temp;
         public int size() {
              return list.length;
    //extended class
    class Contents extends Product {
         private String Contents;
         // constructor
         public Contents(int item, String name, int units, double price) {
              super(item,name,units, price);
              this.contents = contents;
         // getter
         public String getContents() {
              return Contents;
         // total value with the 5% fee
         public double value() {
              return super.value()*1.05;
         // just the 5% fee
         public double fee() {
              return super.value()*0.05;
         // setter
         public void setContents(String contents) {
              this.contents = contents;
         public String toString()
              return super.toString() + String.format(" fee=%.2f contents=%-20s",
                        fee(), contents);

    The error says cannot find symbol.It says more than that. It says what symbol it cannot find, and it points to the line of code where the symbol was used.
              product = new Product(1, "Salad", 3, 4.95); *here*So it can't find a class called Product with an accessible constructor Product(int, String, int, double).
    product = new Product(2, "Dressing", 6, 3.00); *here*          
    inv.add(product, 1);
    product = new Product(3, "Bacon Bits", 2, 1.75);*here*
              inv.add(product, 2);
    product = new Product(4, "Croutons", 1, 1.75); *here*
              inv.add(product, 3);Ditto.
              JButton next = new JButton("Next");
    *here*          next.addProduct(new Product() {JButton doesn't have an addProduct() method.
    public Product(int item, int stock, double price) {This constructor doesn't match the constructor you are calling above, and there are no other constructors.
    ProductItem = item; *here*You must have a typo. But don't use inital capitals on field names: use them only on class names.
    return productItem;Here is evidence that you have a typo. Java is case-sensitive. Either the field is caled 'ProductItem' or it is called 'productItem', not both.
              // bubble sortDo you have to do this for the homework? Bubble sort is never used in real code except by people who don't know what they're talking about. Use Collections.sort().
              super(item,name,units, price);You should be getting a compile error here too. Ther is no such constructor for Product.
              return Contents;And here.

  • Cannot find  symbol  : variable componentFactory

    after successfully creating webservice model  when i build my webdynpro dc i got error that "typeRegistry" cannot be resolved
    i sending my error log below. How to solve this problem?
    Mar 28, 2008 11:14:29 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: Test: Build failed for asianpaints.com/Test(asianpaints.com_TRY0802SC_1) in variant "default":
    Build log -
    Development Component Build (2008-03-28 11:14:24)
      Component name: Test
      Component vendor: asianpaints.com
      SC compartment: asianpaints.com_TRY0802SC_1
      Configuration: J2E_TEST1402_D
      Location: J2E_TEST1402_D
      Source code location: http://172.25.10.210:50000/dtr/ws/TEST1402/asianpaints.com_TRY0802SC/dev/inactive/DCs/asianpaints.com/Test/_comp/
      DC root folder: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\
      DC type: Web Dynpro
      Host: RaviShankar
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/cmi"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/ddicruntime"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wd/webdynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/logging"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wdp/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.proxy.framework"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.util.misc"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.mw.jco"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/mail"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/IAIKSecurity"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/activation"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/webservices"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/webservices_lib"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/sapxmltoolkit"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/webDynpro
              [dcmake] starting build plugin from : C:\Documents and Settings\RaviShankar\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\
    Build Plugins Version 6.40.0.111  (WebDynproPlugin, 630_VAL_REL ) from 2005-09-08 23:39:44 CEST
    Building development component 'Test', vendor 'asianpaints.com', type 'Web Dynpro'
             software component 'TRY0802SC', vendor 'asianpaints.com'.
             location 'J2E_TEST1402_D'.
             source code location 'http://172.25.10.210:50000/dtr/ws/TEST1402/asianpaints.com_TRY0802SC/dev/inactive/'.
    General options:
    convert *.xlf to *.properties: yes
    include sources for debugging: yes
    Reading BuildInfrastructure extension from DC tc/bi/wdtech (vendor sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/ddictech (vendor sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/javatech (vendor sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/util (vendor sap.com)
    Added technology 'sap.com/tc/bi/core'
    Added technology 'sap.com/tc/bi/javatech'
    Added technology 'sap.com/tc/bi/ddictech'
    Added technology 'sap.com/tc/bi/wdtech'
    Preparing data context..
    Warning: No 'default' JDK_HOME_PATH defined, will use running VM. Please update your configuration.
    Data context prepared in 0.171 seconds
    Executing macro file..
      Using macro file:     C:\Documents and Settings\RaviShankar\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\macros\build.vm
      Creating output file: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\gen\default\logs\build.xml
    Macro file executed in 0.125 seconds
    Starting Ant with build file: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\gen\default\logs\build.xml
    Using temporary directory:    C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90
    Using build target: build
    Ant build started at 2008-03-28 11:14:25 GMT-08:00 (PST)
    Using Ant version 1.5.4
    prepare:
         [mkdir] Created dir: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\gen\default\deploy
    gen:
         [ddgen]
         [ddgen] [Info]    Property deployment is true: Deployment information is provided!
         [ddgen] [Info]    Property sourcepath: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages
         [ddgen] [Info]    Property targetpath: C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90/gdd
         [ddgen] [Info]    Property archivename: asianpaints.com~Test
         [ddgen] [Info]    Property vendor: asianpaints.com
         [ddgen] [Info]    Property dcname: Test
         [ddgen] [Info]    Property language: Available languages are automatically determined!
         [ddgen] [Info]    Property addpaths ...
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]    Initialize generation templates from configuration jar:file:/C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
         [ddgen] [Info]    Generating dbtables/sdmDeployDd.xml
         [ddgen] [Info]    Generation finished (0 seconds)
         [ddgen]
         [timer] Data dictionary generator finished in 0.344 seconds
         [wdgen]
         [wdgen] [Info]    Property deployment is true: Deployment information is provided!
         [wdgen] [Info]    Property sourcepath: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages
         [wdgen] [Info]    Property targetpath: C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90/gwd
         [wdgen] [Info]    Property archivename: asianpaints.com~Test
         [wdgen] [Info]    Property vendor: asianpaints.com
         [wdgen] [Info]    Property dcname: Test
         [wdgen] [Info]    Property language: Available languages are automatically determined!
         [wdgen] [Info]    Property addpaths ...
         [wdgen] [Info]       SapMetamodelDictionaryContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [wdgen] [Info]       SapMetamodelWebdynproContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [wdgen] [Info]       SapMetamodelWebdynproContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
         [wdgen] [Info]       SapMetamodelDictionaryContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
         [wdgen] [Info]    Initialize generation templates from configuration jar:file:/C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extwd/_comp/gen/default/public/def/lib/java/SapWebDynproGenerationCore.jar!/WebDynproGenerationConfigurationCompiled.xml
         [wdgen] [Info]    com.apl.test.TestView --> TextView DefaultTextView: UIElement does not have a label
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestView.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IExternalTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterfaceCfg.wdcontroller
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IExternalTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterface.wdcontroller
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IMessageTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/TestModel.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getbyname.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_gettwodept.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_adddeptDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_adddeptDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=depdet
           [Ant] getParameterStringForWSInvoke:result=this.depdet.getOriginalBean()
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getdeptDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getdeptDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid
           [Ant] getParameterStringForWSInvoke:result=this.empid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_addempDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_gettwodept.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_gettwodept
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=d1,d2
           [Ant] getParameterStringForWSInvoke:result=this.d1, this.d2
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/ComplexType_EmpdetDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getReg.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getReg
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=regid
           [Ant] getParameterStringForWSInvoke:result=this.regid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getbyname.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getbyname
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=name
           [Ant] getParameterStringForWSInvoke:result=this.name
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getbetsal.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_addempDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_addempDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empdet
           [Ant] getParameterStringForWSInvoke:result=this.empdet.getOriginalBean()
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getempdetdeptDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getempdetdeptDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid,name,age,salary,address,empdept
           [Ant] getParameterStringForWSInvoke:result=this.empid, this.name, this.age, this.salary, this.address, this.empdept.getOriginalBean()
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getbetsal.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getbetsal
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=sal1,sal2
           [Ant] getParameterStringForWSInvoke:result=this.sal1, this.sal2
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getempDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getdept2.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_adddeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getsalary.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getReg.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getdept0.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getdept0
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid
           [Ant] getParameterStringForWSInvoke:result=this.empid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/ComplexType_EmpdetdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_addemp0.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_addemp0
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid,name,age,salary,address
           [Ant] getParameterStringForWSInvoke:result=this.empid, this.name, this.age, this.salary, this.address
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getdeptwise.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getdeptwise.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getdeptwise
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=deptid
           [Ant] getParameterStringForWSInvoke:result=this.deptid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getempdetdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_addemp1.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getempDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getempDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid
           [Ant] getParameterStringForWSInvoke:result=this.empid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/ComplexType_EmpdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getsalary.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getsalary
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=salary
           [Ant] getParameterStringForWSInvoke:result=this.salary
         [wdgen] [Info]    Generating configuration/Components/com.apl.test.TestComp/TestComp.xml
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/ResourceTestComp.properties
         [wdgen] [Info]    Generating portalapp.xml
         [wdgen] [Info]    Generating wd.xml
         [wdgen] [Info]    Generating application.xml
         [wdgen] [Info]    Generating application-j2ee-engine.xml
         [wdgen] [Info]    Generating PublicPartFileList.properties
         [wdgen] [Info]    Generating PublicPartFileList.xml
         [wdgen] [Info]    Generation finished (0 seconds)
         [wdgen]
         [timer] WebDynpro generator finished in 0.953 seconds
         [mkdir] Created dir: C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90\classes
         [javac] Compiling 88 source files to C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90\classes
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:12: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry = new com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingRegistryImpl();
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:13: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry.fromXML(this.getClass().getClassLoader().getResourceAsStream("com/apl/test/model/testmodel/proxies/types.xml"),this.getClass().getClassLoader());
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:18: cannot find symbol
    symbol  : variable componentFactory
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this.componentFactory = componentFactory;
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:20: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry = new com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingRegistryImpl();
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:21: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry.fromXML(this.getClass().getClassLoader().getResourceAsStream("com/apl/test/model/testmodel/proxies/types.xml"),this.getClass().getClassLoader());
            ^
    5 errors
    Ant build finished with ERRORS
    file:C:/Documents and Settings/RaviShankar/.dtc/0/DCs/asianpaints.com/Test/_comp/gen/default/logs/build.xml:137: Compile failed; see the compiler error output for details.
    Ant build finished at 2008-03-28 11:14:29 GMT-08:00 (PST), Duration: 3 seconds
    Build finished with ERROR
    Cleaning up.

    Hi
        I tried that but still i'm getting the same error
    I have also tried to create web service model for the same webservice in local web dynpro project there it got build and deployed succesfully and i'm getting this error only with DC project (Track)
    with regards
    Ravi shankar
    Edited by: Ravi Shankar on Mar 10, 2008 12:53 PM

  • Cannot find symbol error -- array fill from text file

    When I compile my program I receive a cannot find symbol error for the variable ayears. I thought this snippet would fill the array ayears that could be accessed later in the program but I am getting the error message from my buildGUI() class. What could I have done wrong?
    (my file options.txt contains data separated by a comma and a space)
    public void getOption(){
         InputStream istream;
         File options = new File("options.txt");
         istream = new FileInputStream(options);
         try {
                               StringBuffer sbuff = new StringBuffer();
                               BufferedReader inbuff = new
    BufferedReader(new FileReader(options));
                               String line = "";
                               while((line = inbuff.readLine()) != null) {
                               System.out.println(line); 
              sbuff.append(line);
                               inbuff.close();
                              String fileData = sbuff.toString();
              String[] splitData = fileData.split(", ");
              String[] ayears = new String[splitData.length];
         catch(Exception e){
         JOptionPane.showMessageDialog(null,
         "Could not find specified file", "Error Message",
         JOptionPane.ERROR_MESSAGE);
    }

    Okay -- that helped. I've avoided that error -- now on to the next one, why won't my array fill? It's going to be a long night.
    Thanks for the help.

  • Cannot find symbol for some jms methods

    Hi, I'm new to JMS and am having trouble compiling the HelloWorld example. I am able to create a connection but for some reason I cannot create a session from the same connection. I am however able to call some of the other methods such as getClientID, start, and close. Below is a copy of what i have compiled so far (which is basically a copy of the example code), the error message I get, and what I have CLASSPATH set to. If my CLASSPATH is not set correctly, I would assume none of the code would compile which is very confusing. Any help is appreciated, thanks!
    //Step 1:
    //Import the JMS API classes.
    import javax.jms.ConnectionFactory;
    import javax.jms.Connection;
    import javax.jms.Session;
    import javax.jms.MessageProducer;
    import javax.jms.MessageConsumer;
    import javax.jms.Queue;
    import javax.jms.Session;
    import javax.jms.Message;
    import javax.jms.TextMessage;
    import javax.jms.*;
    //Import the classes to use JNDI.
    import javax.naming.*;
    import java.util.*;
    public class HelloWorldMessage
    public static void main(String[] args){
         System.out.println("Hello World!");
         try{
    Queue myQueue;
         // Instantiate a Oracle GlassFish(tm) Server Message Queue ConnectionFactory administered object
         com.sun.messaging.ConnectionFactory myConnFactory = new com.sun.messaging.ConnectionFactory();
         // Create a connection to the Oracle GlassFish(tm) Server Message Queue Message Service.
         Connection myConn = myConnFactory.createConnection();
         myConn.getClientID();
         // Create a session within the connection.
         Session mySess = myConn.createSession(false, Session.AUTO_ACKNOWLEDGE);
         myQueue = new com.sun.messaging.Queue("world");
         myConn.close();
         catch(Exception jmse){
         System.out.println("Exception occurred : " + jmse.toString());
    jmse.printStackTrace();
    # javac HelloWorldMessage.java
    HelloWorldMessage.java:39: cannot find symbol
    symbol : method createSession(boolean,int)
    location: interface javax.jms.Connection
         Session mySess = myConn.createSession(false, Session.AUTO_ACKNOWLEDGE);
         ^
    1 error
    # echo $CLASSPATH
    .:/usr/java/default/j2sdkee1.3/lib/j2ee.jar:/usr/java/default/j2sdkee1.3/lib/:/root/MessageQueue/mq/lib/fscontext.jar:/usr/lib/jvm-exports/java-1.6.0-openjdk-1.6.0.0.x86_64/jndi.jar:/root/MessageQueue/mq/lib/jms.jar:/root/MessageQueue/mq/lib/imq.jar:/root/MessageQueue/mq/lib/jaxm-api.jar:/root/MessageQueue/mq/lib/imqxm.jar:/root/MessageQueue/mq/lib/imqservlet.jar
    Edited by: 883631 on Sep 6, 2011 4:03 PM

    You have an old j2ee.jar from 1.3 in your CLASSPATH.
    Can you move jms.jar and imq.jar in front of that old j2ee.jar?
    Thx/

  • Cannot find symbol and streams

    I am making some progress with implimenting the icaste jar file to control the serial port. My code is below. I have a problem with the statement osOut.write(bData,0,0); at the bottom of the code. cannot find symbol
    I am trying to write one byte to the serial port, I don't understand the use of the outputStream being used here from java.io , If I knew how the access worked on a lower level perhaps I could figure it out.
    In an AVR microcontroller for example, you set up the hardware on the chip to output a byte you place in a buffer, when there is data to read you have an interrupt set to jump to an isr routine that receives a byte and puts it in your own memory space or array. The hardware has a buffer it uses to hold some number of bytes and error flags to find out if you have a buffer overrun.
    Not sure if that concept is what is going on here or not.
    import com.icaste.JCommSerial.*;
    import java.io.*;
    public class newtest {
         * @param args
        public static void main(String[] args) {
            byte[] baData = new byte[1];
            baData[0]= (byte)255;
            String Errorstring = "None";
            System.out.println("Testing Serial port");
            SerialPort myPort = new SerialPort();
            try {
                myPort.openPort("COM1:", 2000, 2000);
            } catch(SerialPortNotFoundException e) {
                Errorstring="Serial port not Found";
            } catch(SerialPortInUseException e) {
                Errorstring="Serial port in use";
            } catch(SerialPortException e) {
                Errorstring="Serial port unable to complete operation";
            } catch(Throwable e) {
                Errorstring="unknown error";
            try {
                myPort.setBaudRate(9600);
            } catch(SerialPortException e) {
                Errorstring="Unable to set baud rate";
            try {
                myPort.setDataBits((byte)8);
            } catch(SerialPortException e) {
                Errorstring="Unable to set data bits";
            try {
                myPort.setStopBits(SerialPort.ONESTOPBIT);
            } catch(SerialPortException e) {
                Errorstring="Unable to set stop bit";
            try {
                myPort.setParityMode(SerialPort.NOPARITY);
            } catch(SerialPortException e) {
                Errorstring="Unable to set parity";
            try {
                OutputStream osOut = myPort.getOutputStream();
            } catch(IOException e) {
            try {
                osOut.write(baData, 0, 0);
            } catch(IOException e) {
                Errorstring="write byte failed";
            System.out.println("Error = "+Errorstring);
       

    Ok, I can finally put this question to bed. My main error was not knowing what the line of code actually was. After 4 hours of reading http://www.yu.edu/faculty/arosnfld/java/javanotes-3.1/c5/s3.html and a nice email from the tech at icaste, I finally understand what is going on and what it all means.
    If you would like to see what I am up too you can check out the DMX light prototype moveie I made a few weeka ago. It is using a program called freescale and a DMX controller connected to a USB port. The serial port can be configured to operate a USB port from windows point of view and that is my next quest to study how a USB port connection works on the hardware side.
    Thanks for the help and links, I wish there was more time in the day, and night to cram all this stuff in my head.
    Quicktime Movie (kind of big) http://www.acousticlights.com/ledmovie.m1v
    import com.icaste.JCommSerial.*;
    import java.io.*;
    public class newtest {
         * @param args
        public static void main(String[] args) {
            SerialPort myPort = new SerialPort();
            String Errorstring = "None";
            System.out.println("Testing Serial port ");
            try {
                myPort.openPort("COM1:", 2000, 2000);
            } catch(SerialPortNotFoundException e) {
                Errorstring="Serial port not Found";
            } catch(SerialPortInUseException e) {
                Errorstring="Serial port in use";
            } catch(SerialPortException e) {
                Errorstring="Serial port unable to complete operation";
            } catch(Throwable e) {
                Errorstring="unknown error";
            try {
                myPort.setBaudRate(9600);
            } catch(SerialPortException e) {
                Errorstring="Unable to set baud rate";
            try {
                myPort.setDataBits((byte)8);
            } catch(SerialPortException e) {
                Errorstring="Unable to set data bits";
            try {
                myPort.setStopBits(SerialPort.ONESTOPBIT);
            } catch(SerialPortException e) {
                Errorstring="Unable to set stop bit";
            try {
                myPort.setParityMode(SerialPort.NOPARITY);
            } catch(SerialPortException e) {
                Errorstring="Unable to set parity";
            try {
    //Get an OutputStream from JCommSerial and reference it by the name osOut.
    //assuming you already created a JCommSerial object called spPort
    // and opened it!
                OutputStream osOut = myPort.getOutputStream();
    //Write your byte to the port
    // the write() function takes an int that is then converted
    // to a byte for transmission.
                int iData = 255;
    // Send 254 bytes of data to the serial port
                while (iData >0) {
                    osOut.write(iData);
                    iData--;             
            } catch(Exception e){
                System.out.println(e.toString());
            System.out.println("Error = "+Errorstring);
    }

Maybe you are looking for

  • Can i have two ipads on one itunes account

    I have an iPad2.  If I buy an iPad mini for my son can I transfer the apps, books and music I've bought on my account to his iPad?  Can his iPad stay on my account or must he have his own

  • [SOLVED] xrandr can't detect other monitor

    Hi, Here is my problem, I try to make a dual sreen by myself just by editing Xorg .conf files. But I need to detect my second monitor first. nvidia-setting detects my monitor but xrandr (-q) don't. Here is the conf file of my monitor : Section "Devic

  • SQL Tuning - Please

    Dear all, I have this query which is taking too much of time. I guess it is all because of FTSs. Below is the query. SELECT rpad(nvl(to_char(MDC_SITE_CONVERSIONS.ID), '*'), 20, '*')||        rpad(nvl(to_char(SMR.id),'*'), 20, '*')||        rpad(nvl(t

  • My phone is dissabled and i dnt syc to the comp b4 how can i repair it

    my phone is dissabled and i dnt syc to the comp b4 how can i repair it

  • Upgrading the JVM in the oracle database.

    I found a post regarding upgrading the JVM in the database for release 10.2 of the database and they said it can not be upgraded to a newer version (i.e. 1.4 to 1.6_25 say). Is this still the case for the 11.2 release of the database. Thanks in advan