Question Dumb easy error

first the code
log = fileName;they both are strings and i get log from imput, i know it can equal fileName, but i need to decare the log imput as text or something, what do i do?

kingryanj wrote:
first the code
log = fileName;they both are strings and i get log from imput, i know it can equal fileName, but i need to decare the log imput as text or something, what do i do?
if(log.equals(fileName)) doSomething();null

Similar Messages

  • Question on an error message in Event Viewer.

    Hi,
    I had a question on a error message in event viewer for BO 3.0
    Error Message:
    Tried to allocate 20 windows desktop but only able to allocate 17 of them.The system may have reached its windows desktop limit.Please contact your system administrator.
    Source:CR Processing server.
    I have seen this error message before in BOEXIR2 for DeskI services but never for Crystal Reports.
    What is the change in 3.0 architecture due to which we receive this error message for cr processing server.
    Thanks in advance.

    Please post this query to the Business Objects Enterprise Administration forum:
    BI Platform
    That forum is monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Ludek

  • [SOLVED] Question about GCC error messages.

    I'm currently taking a course in C programming, and I have  a question about the error messages returned by GCC.
    When ever i try to compile a program containing syntax errors, i get cryptic and not very helpfull error messages.
    If i try to compile:
    #include <stdio.h>
    int main(void)
    int i;
    i = 0
    return 0;
    I get following from GCC:
    error.c: In function â:
    error.c:8:2: error: expected â before â
    But shouldn't the message be something like:
    error.c: In function 'main':
    error.c:8:2: error: expected ; before 'return'
    or am I mistaken?
    /AcId
    Last edited by AcId (2010-10-13 17:48:19)

    Woah. That is very strange. I've never seen that before.
    I assume you're using Arch Linux. What text editor did you use to write the code? Which terminal application are you using?
    ...those questions are probably unrelated to the problem, but we might as well get them out of the way.

  • Java amateur...easy error question

    I am trying to use some methods from my other classes and I am getting a compile error that it does not recognize these methods. I have import the classes what else could be wrong?
    A:\spell.java:52: cannot resolve symbol
    symbol : method searchOrderedList (java.lang.String)
    location: class spell
                                                 if(!searchOrderedList(lineCheck));//compares String to Strings in hash table
    ^
    A:\spell.java:53: cannot resolve symbol
    symbol : method insertTree (java.lang.String)
    location: class spell
                                                 insertTree(lineCheck);
    ^
    A:\spell.java:88: cannot resolve symbol
    symbol : method insertHash (java.lang.String)
    location: class java.lang.String
                             line.insertHash(line);//stores String in hash table
    ^
    3 errors
    Tool completed with exit code 1

    The methods may be from some other class, but your code doesn't say that. Here's an example:
    insertTree(lineCheck);This line of code tries to call the insertTree method of this class, not of some other class.

  • Question about UTL_FILE_DIR - Errors

    I have read several other postings about the error I am getting with UTL_FILE DIR:
    Cause: FDPSTP failed due to ORA-20102: Invalid Operation
    ORA-06512: at "APPS.XXHH_PAY_OUT_PS16", line 424
    ORA-06512: at line 1
    We have setup the parameter in V$Parameter and the directories related are all created with proper permissions.
    My first question is do the same directories need to be created on the db server as well?
    Our setup is as follows: RAC environment 2 app servers, 2 db servers. The app servers have the directory that the error is coming out of. The directories are not on the db servers.
    The line of code causing our issue:
    fp := utl_file.fopen(v_directory, v_file_name,'w');

    My first question is do the same directories need to be created on the db server as well?Yes, or the directories should be accessible from the database tier node.
    Our setup is as follows: RAC environment 2 app servers, 2 db servers. The app servers have the directory that the error is coming out of. The directories are not on the db servers.
    The line of code causing our issue:
    fp := utl_file.fopen(v_directory, v_file_name,'w');Please mount the directory on the database servers and check then.
    How do the UTL_FILE Functionality Implement in a RAC Environment? [ID 1080391.1]
    SYS.Utl_file Is Generating ORA-29280:Utl_file.Invalid_path In Rac Environment Only. [ID 567594.1]
    Thanks,
    Hussein

  • Oracle 9iAS installation question-oci.dll error

    Hi all
    I have a question about 9iAS installation. Can we install 9iAS in NT??. I downloaded from the site, installation for NT. While installing I get error like "could not write oci.dll error"..I'm installing the portal and wireless type and I have my Oracle9i database installed on the same machine. Can anybody suggest how to rectify this error.
    Thanks a lot

    Are you trying to install in the same Oracle Home directory as the database? You should install in a different OH. Furthermore, 9iAS itself also installs in 2 OH's. You will end up with 3 OH's.
    It is not a good idea to install the database and 9iAS on the same server, unless you have a really big one.

  • Question about Java Errors

    I have some questions about some java errors
    1. what kind of errors are contained in Error class?
    2.does this class contain only runtime errors?
    3. if the question number 2 is positive, what about InstantiationError which is a compile error and is a subclass of Error.
    4.When our program is out of memory, which processes are done for an error to be produced. is the error actually from OS or VM?

    I have some questions about some java errors
    1. what kind of errors are contained in Error class?An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch.
    2.does this class contain only runtime errors?No
    3. if the question number 2 is positive, what about
    InstantiationError which is a compile error and is a
    subclass of Error.
    4.When our program is out of memory, which processes
    are done for an error to be produced. is the error
    actually from OS or VM?Various - both, depending on where the error occurred.

  • Workspace question mark(?) error

    Hi,
    We have Oracle EPM 11.1.2.1. When Our users open financial reporting reports in pdf error occurs. Error contain question mark(?) and adobe on top.
    Anybody know about these issue?
    Thanks in advance.

    Hi,
    Following Ghostscript versions are supported in 11.1.2.1 with 32-bit mode only.
    GPL Ghostscript 8.63; AFPL Ghostscript 8.54 or 8.51;
    You can check the details in windows registry HKEY_LOCAL_MACHINE ---> SOFTWARE ---> Check for the folder with ghostscript you can find the version details or Check for "GS_LIB" Value in the same folder for the version details.
    regards,
    Harish.

  • Ultiboard 12 - one question and one error

    Hello,
    I came back with the same question and one more. First, I installed the demo version NI Design Suite 12 and I want to know, please:
    1. I want know if in Ultiboard 12 I can tuning the length of a net as in Altium Designer software:
    http://www.altium.com/files/pdfs/Tuning-Net-Lengths-Interactively_EN.pdf
    2. I can use "Polygon Splitter" function to cut and polish "Power Plane" ? For example, look in the next image attached below, where I displayed only Copper Top layer.
    So...
    Attachments:
    power plane Ultiboard error.jpg ‏318 KB

    Thanks Tien_P,
    Concerning the second response, I tried to apply the option "Keep out/Keep in area" but every time I applied it and I wanted to cut or crop Power Plane, the option to take due account the default distance between PCB tracks or between the power plane and tracks / pads, and I don't want that (is quite annoying).
    So, when I cut the Power Plane with the option "Keep Out / Keep In Area" I wish they did not take into account the distance between the tracks. And how I can remove "Keep On / Keep Out Area" (suppose that after several uses I would like to remove some keep out/keep In area)?

  • Question about "Easy Connect Naming"

    Good evening,
    My installation consists of 11gR2 where both host and client are on the same machine.
    I wanted to test the "Easy Connect Naming" functionality, to that end, I renamed tnsnames.ora and proceeded to connect using the following command:
    sqlplus sys/abc123@"Oracle2Day1.john.local/orcl.john.local:1521" as sysdbaas expected, the command was successful in connecting to the orcl instance.
    To ensure that everything was as expected, I also tried:
    sqlplus sys/abc123 as sysdbaUnexpectedly, this command also connected to the orcl instance.
    I expected it to fail since there is no tnsnames.ora and I did not specify the host and service names.
    The question is: why was the command sqlplus sys/abc123 as sysdba" successful given that there is no tnsnames.ora ?
    Thank you for your help,
    John.

    The question is: why was the command sqlplus sys/abc123 as sysdba" successful given that there is no tnsnames.ora ?Above only works when logged directly on to DB server, because this flavor of connection does not use SQL*Net; but uses BEQ protocol.

  • Quick Question About This Error "The movie "thedarkknight" could not be use

    This is the Error:"The Movie "The Dark Knight" could not be used because the original file could not be found. would you like to locate it?"
    Accidently Deleted my I-tunes folder, and its not in my recycle bin, read all the support pages, and it told me if its not backed up and its not on my computer I have to re buy all my movies? <-----IS THIS TRUE?
    Is there an option to re-download my already payed for content?
    Is my content gone forever? and I can only get it back by buying it again?
    Please help thanks.
    Message was edited by: BunnyCarrot

    First thing - this is a worldwide forum so anyone who knows the answer could be asleep when you post this, so expecting a reply within thirty minutes and bumping when it doesn't arrive, is unreasonable.
    To answer your questions though;
    BunnyCarrot wrote:
    ... if its not backed up and its not on my computer I have to re buy all my movies? <-----IS THIS TRUE?</div>
    Yes, afraid so.
    Is there an option to re-download my already payed for content?
    No
    Is my content gone forever? and I can only get it back by buying it again?
    Yes.
    Phil (in the UK)

  • A question about an error after changing FSB

    Here is what I am running
    MSI K7T266 Pro
    AMD Athlon Thunderbird 1.4ghz processor
    512 DDR RAM
    Geforce 3 Ti 500
    Intel 21041-Based PCI Ethernet Adapter (Generic) #2
    Now I loaded my FSB at 100 and it runs fine but only at 1.050 ghz instead of 1.4.
    I try running at 133 FSB and it runs at 1.4 till I try to install anything and it crashes my computer and corrupts my HDD and gives me a 'serious error' message of:
    BCCode : d1     BCP1 : FFFFFFA3     BCP2 : 00000010     BCP3 : 00000001    
    BCP4 : F81EB965     OSVer : 5_1_2600     SP : 0_0     Product : 768_1  
    Now I want to know what this means?
    I cleared my CMOS and now I only got the error message once when I tried to install the drivers for my sound card.  and I can install DOOM 3 now without getting the reboot and 'serious error' message.

    Quote
    Originally posted by GuyOne
    Yes, PC2100.
    How do I run that memtest program? I cannot figure it out.
    The latest memtest86 installer/extractor creates its own boot diskette (with its own boot files).  Just boot with the diskette, memtest86 does its thing, no user interaction required.
    Alternatively, an .ISO image is now available that is suitable for creating a self-booting memtest86 CD.

  • Question about dll. error message when loading - PSE 6

    I have PSE 6 and suddenly get the following error message when I open PSE:  Organizer-Photoshop Element PhotoshopElementsOrganizer exe- entry point fot found.  CFBundle Copy File TypeForFileData could not be located in dynamic linc library core foundation.dll.
    No idea what that means, what happened and how to fix this.
    Is there anybody that can give advise to a non-computer literate person????
    Help would be greatly appreciated.

    See post #6 in this thread for a likely solution:
    http://www.elementsvillage.com/forums/showthread.php?t=50471

  • Beginners question : http 500 error when starting my first jsf-app

    i�ve just read a book about jsf, and now i�ve tried my first own jsf-app, but it seems that i have some kind of configuration problems with my tomcat, but have a look for yourself :
    after deploying my app out of eclipse with ant without any errors, i get the following screen in my firefox when i try to get to the first jsf page :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /pages/start.jsp:13
    10: <link rel="stylesheet" type="text/css" href="basic.css">
    11: </head>
    12: <body>
    13: <f:view>
    14:      <h:form>
    15:           <h:commandButton action="#{naviHandler.startButton1}" value="Seite Eins" />
    16:           <h:commandButton action="#{naviHandler.startButton2}" value="Seite Zwei" />
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
         org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
         org.apache.jsp.pages.start_jsp._jspx_meth_f_view_0(start_jsp.java:93)
         org.apache.jsp.pages.start_jsp._jspService(start_jsp.java:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    it says that i have a problem in the line where the first jsf-tag appears : <f:fiew> , but i don�t get it what should be wrong with this?!
    i think theres a kind of config problem with my tomcat or something else, but i dont know where to look after it, the book i�ve read didn�t say much about those things, unfortunately..
    anyone out here who can help me?
    thanks in advance,
    stefan

    ok, i use :
    tomcat 5.5
    myfaces 1.1.4
    jre 1.5.0_09
    anything more you need? as i said in the topic, i�m a real beginner with this..
    and one more thing that i don�t understand :
    all example applications that come with the book that i�ve read are working perfectly with this configuration, but when i try to start my own app i get this error. quite strange for me..
    Message was edited by:
    elliptic

  • Question about Exception Error

    I'm writing a small PBE program for a class project and I keep getting an InvalidKeySpecException that claims my char[ ] is not ASCII. Now I am under the impression that when a char value is entered it's in ASCII values... I've only put up a piece of my code, if needed I can put up the rest, it's fairly simple and easy to follow.
    here is my terminal output (with a number of debug outputs):
    Encryption Program Started
    Getting Password
    Input password (32 character max):
    hello
    Holdspot is: 6
    Pass: hello
    Holder: (shows string of char (0) values, verifies that the array was cleared)
    Done getting password, pass is:
    hello
    Creating PBEKeySpec
    My keySpec value is: hello
    Creating Salt
    createSalt entered
    Done getting salt
    Creating PBEParameterSpec
    setParams entered
    My iteration field is: 1500
    Done getting param
    My param iterations are: 1500
    Creating SecretKey
    createKey Entered
    My keySpec value is: hello
    InvalidKeySpecException: Password is not ASCII
    java.security.spec.InvalidKeySpecException: Password is not ASCII
         at com.sun.crypto.provider.PBEKey.<init>(DashoA6275)
         at com.sun.crypto.provider.PBEKeyFactory.engineGenerateSecret(DashoA6275)
         at javax.crypto.SecretKeyFactory.generateSecret(DashoA6275)
         at Cryptography.createKey(Cryptography.java:141)
         at Cryptography.main(Cryptography.java:265)
         at __SHELL3.run(__SHELL3.java:7)
         at bluej.runtime.ExecServer.vmSuspend(ExecServer.java:178)
         at bluej.runtime.ExecServer.main(ExecServer.java:143)
    java.security.spec.InvalidKeySpecException: Password is not ASCII
         at com.sun.crypto.provider.PBEKey.<init>(DashoA6275)
         at com.sun.crypto.provider.PBEKeyFactory.engineGenerateSecret(DashoA6275)
         at javax.crypto.SecretKeyFactory.generateSecret(DashoA6275)
         at Cryptography.createKey(Cryptography.java:141)
         at Cryptography.main(Cryptography.java:265)
         at __SHELL4.run(__SHELL4.java:7)
         at bluej.runtime.ExecServer.vmSuspend(ExecServer.java:178)
         at bluej.runtime.ExecServer.main(ExecServer.java:143)
    here is my code to get the char array input:
        private char[] getPass () throws IOException{
            System.out.println("Input password (32 character max):");
            char[] holder = new char[maxChar];
            int holdspot=0;
            while ((holder[holdspot++] = (char) System.in.read()) != '\n') {};
            //Debug
            System.out.println("Holdspot is: "+holdspot);
            //End Debug
            char[] pass = new char[holdspot];
            System.arraycopy (holder, 0, pass, 0, holdspot);
            //clear our holder array
            for (int i=0; i<holder.length;i++){
                holder=0;
    //Debug
    System.out.print("Pass: ");
    for (int i=0; i<holdspot;i++){
    System.out.print(pass[i]);
    System.out.print("\n");
    System.out.print("Holder: ");
    for (int i=0; i<holder.length;i++){
    System.out.print(holder[i]);
    System.out.print("\n");
    //End Debug
    //Comment back in for final version, screen clear
    //System.out.flush();
    return (pass);
    here is my code at the point where the exception is thrown:
        private SecretKey createKey(PBEKeySpec keySpec)
        throws NoSuchAlgorithmException, InvalidKeyException, InvalidKeySpecException{
            //Debug
            System.out.println("createKey Entered");
            char[] L = keySpec.getPassword();
            System.out.print("My keySpec value is: ");
             for (int i=0; i<L.length;i++){
                System.out.print(L);
    //End Debug
    SecretKeyFactory keyFac = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
    SecretKey secKey = keyFac.generateSecret(keySpec);
    return (secKey);

    OK, got to Eclipse and reproduced the problem using your code.
    Something about the way you were reading your password bugged me. I changed your code a bit to the following:import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.security.InvalidKeyException;
    import java.security.NoSuchAlgorithmException;
    import java.security.spec.InvalidKeySpecException;
    import javax.crypto.SecretKey;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.PBEKeySpec;
    public class PBETest {
      static final int MAX_CHAR = 32;
      private char[] getPass() throws IOException {
        System.out.print("Input password ("+MAX_CHAR+" character max):");
        String s = new BufferedReader(new InputStreamReader(System.in)).readLine();
        char[] holder = s.toCharArray();
        int holdspot = (s.length()>MAX_CHAR?MAX_CHAR:s.length());
        //End Debug
        char[] pass = new char[holdspot];
        System.arraycopy(holder, 0, pass, 0, holdspot);
        //clear our holder array
        for (int i = 0; i < holder.length; i++) {
          holder[i] = 0;
        //Debug
        System.out.print("Pass: ");
        for (int i = 0; i < holdspot; i++) {
          System.out.print(pass);
    System.out.print("\n");
    System.out.print("Holder: ");
    for (int i = 0; i < holder.length; i++) {
    System.out.print(holder[i]);
    System.out.print("\n");
    //End Debug
    //Comment back in for final version, screen clear
    //System.out.flush();
    return (pass);
    private SecretKey createKey(PBEKeySpec keySpec)
    throws NoSuchAlgorithmException, InvalidKeyException,
    InvalidKeySpecException {
    //Debug
    System.out.println("createKey Entered");
    char[] L = keySpec.getPassword();
    System.out.print("My keySpec value is: ");
    for (int i = 0; i < L.length; i++) {
    System.out.print(L[i]);
    //End Debug
    SecretKeyFactory keyFac = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
    SecretKey secKey = keyFac.generateSecret(keySpec);
    return (secKey);
    public static void main(String[] args) {
    try {
    PBETest ptest = new PBETest();
    char[] pwd = ptest.getPass();
    PBEKeySpec spec = new PBEKeySpec(pwd);
    SecretKey sk = ptest.createKey(spec);
    } catch (Exception e) {
    e.printStackTrace();
    }And now it works.
    I don't know exactly why your "one char at a time from System.in" bugged me, and I don't know exactly why it didn't work - but that was the problem.
    Grant

Maybe you are looking for

  • Can I system restore a purchased mbp mid 2010 but keep the upgraded OS?

    I purchased a used MBP mid 2010 and had the seller meet me at the apple store. After I verified the computer was not stolen I asked to have it factory wiped, but they said I needed an appointment. Now I've read directions on this forum on how to rest

  • Calling all T-SQL users! May TechNet Gurus announced!

    The results for May's TechNet Guru competition have been posted! http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx Congratulations to all our new Gurus for May! We will be interviewing some of the winners

  • Apple Mobile Device Helper has stopped working - stuck in loop

    I keep getting a message/check box (AppleMobileDeviceHelper has stopped working)whenever I load iTunes under Vista. If I don't click and respond, my task bar gets cluttered up with these messages - I don't know what to do short of uninstalling everyt

  • How to use the scan option with a Kyocera FS-1320MFP ?

    Hello, is it possible to use the scanner function on a Kyocera 1320MFP with Mac OS X 10.6, or with Mac OS X 10.8 ? Kyocera doesn't specify this combination in their support pages. Statements are welcome! Thanks, umberto

  • Spry textarea validation?

    I have a form with a Spry textarea that needs to validate character count. IE6 is not giving the "Maximum characters exceeded" message (although it does work with a textfield). Works like a charm in other browsers. Anyone have a clue?