Can anybody spot an obvious error?

Hello
I would appreciate any help with the following error message I am getting while trying to compile a file. The following shows up in DOS:
C:\jdk1.3.1\bin>javac javaPost.java
javaPost.java:129: cannot resolve symbol
symbol : method newInputStreamReader (java.io.InputStream)
location: class javaPost
mailreplyreader = newBufferedReader(newInputStreamReader(mailsocket.getInputStream()));
^
1 error
Can anybody spot an obvious error?
Thank you in anticipation.

Hello Kleink
Thanks for your message.
It did the trick. In fact, I've now noticed that new always seems to be followed by a space:
new JScrollPane
new JPanel
new JButton
Thanks again!

Similar Messages

  • Can anyone spot the syntax error of db delete?

    Hi
    I'm trying to get a database delete statement to work for a relations table - it just has studentId and courseId as foreign keys which make up a joint primary key.
    The line is
    db.update("delete from enrollments2 where (studentsid = '" + getStudentId() + "," + " coursesid = " +  getCourseId() + "')");The error is
    ERROR: invalid input syntax for integer: "78, coursesid = 75"Somehow I am putting non integer into an integer... I can't seem to spot the mistake though. Any help would be appreciated.

    The correct syntax I should mention was
    db.update("delete from enrollments2 where (studentsid = '" + getStudentId() + "'and coursesid = '" +  getCourseId() + "')");I'll leave that in for the time being and try to come back to it tonight... its on my todo list.
    Thanks for the snippet by the way, it always saves a lot of time when someone provides a useful snippet towards a solution. I hadn't heard of prepared statements until now too, interesting.
    Message was edited by:
    occams_razor
    -->> missed a 2 out there as enrollments2 is my test case

  • Can anyone spot the syntax error?

    I've been looking at this for about a day now and can't see the error, which is:
    Insert Failed: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
      public String addSaleList(SaleList sL) {
        try {
          //Gets the connection to customer database.
          Class.forName(Driver);
          Connection myCon = DriverManager.getConnection(Url);
          System.out.println(sL.saleListID + " " + sL.saleID + " " + sL.product
                             + " " + sL.number);
          String sqlQry = "INSERT INTO salelist(saleID, product, number)" +
              "VALUES(?,?,?)";
          PreparedStatement myStmt = myCon.prepareStatement(sqlQry);
          myStmt.setInt(1, sL.saleID);
          myStmt.setString(2, sL.product);
          myStmt.setInt(3, sL.number);
          myStmt.executeUpdate();
          return "Sale confirmed";
        catch (Exception e) {
          System.out.println("Insert Failed: " + e);
          return ("Insert Failed: " + e);
      public class SaleList {
        public int saleListID;
        public int saleID;
        public String  product;
        public int  number;
        public SaleList(int saleListID, int saleID, String product, int number) {
          this.saleListID = saleListID;
          this.saleID = saleID;
          this.product = product;
          this.number = number;
      SaleList saleL = new SaleList(0,10,"b",2);
      lblStatus.setText(sM.addSaleList(saleL));

    Hey this is the stack trace:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execut(JdbcOdbcPreparedStatement.java:214)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdateJdbcOdbcPreparedStatement.java:136)
         at myproject.SaleModel.addSaleList0 120 a 1
    (SaleModel.java:69)
         at myproject.SalesGUI.actionPerformed(SalesGUI.java:395)
         at java.awt.Button.processActionEvent(Button.java:382)
         at java.awt.Button.processEvent(Button.java:350)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Can anybody help with this error message

    I work with CS5.6 on RAW pictures shot with a Canon EOS 5 Mk II and have problems saving. Mycomputer is 32-bit with 4 Gb RAM, Windows 7. 
    Die Error Message in Adobe CS5.6 ist: „ could not complete the SAVE AS command because there is not enough memory (RAM)”

    Its saying exactly what it means you do not have enough memory to save the file. You can either change the properties to save a smaller image
    Or update your computer. In order to use the entire 4GB of RAM your computer needs to be 64bit not 32. 32bit can only access 2GB of ram and some apps can access an additional GB of ram. But if you do upgrade your computer get 6 or 8 GB of Ram, you will be happy you did.

  • Can anybody help its urgent error :RPE-02018

    Can any body help me inthis error, actually i was executing the mappig on regular basis but today i found this error
    " RPE-02018: Oracle Workflow schema OWF_MGR on host ZAINBIDB cannot be accessed using service BIPROD through port 1521. Please check the location details and try again."
    Followed by :
    "Io exception: Got minus one from a read call."

    Hi, we have found this error when configuration parameters in database where not correct. Each time a process flow with a lot of process in parallel was executed, a process failed.
    I can't remember the exact parameter to change to correct this error (we had some other errors due to configuration parameters) but I think it was by changing the optimizer_mode to FIRST_ROWS. Ask your DBA to take a look to DB parameters and look for the error message in metalink, I think there's an entry for this error.
    Regards
    ANA GH

  • Every time I turn on itunes I get an error that says iTunes was installed properly. When I try to uninstall it goes through the motions, but at the end (10-15 minutes later) it says it can't uninstall and gives me an error code of 2330. Can anybody help?

    Everytime I turn on iTunes it say it wasn't installed properly and can't burn CD's. However all my music is there for me to listen to on my iPod Nano.
    I want to unistall iTunes and it allows me to go through the process until about 2% is waiting for uninstall and then I get an error message that says it couldn't complete the uninstall and gives me an error code of 2330.
    Can anybody please help me. iTunes wants to charge $19.
    Thank you.

    ive never had any problems with ap[ple products in the past... this is a first and a stupid problem if you ask me

  • Plsql webservices deploy error in weblogic.... Can anybody help me.. Urgent

    Could any body look into this exception....
    I am stuggling with this for the last one week........
    I have generated the webservices from PLSql procedure, deployed and tested in oc4j which is successfull running and I can access the webservice too.....
    The same ear file, when i deploy in to weblogic I am getting the follwing error, can anybody look in to this and help me....
    <May 20, 2006 2:09:14 PM GMT+05:30> <Error> <Deployer> <BEA-149231> <Unable to s
    et the activation state to true for the application 'gtry-gtry-WS'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "gwsSoapHttpPort" fa
    iled to preload on startup in Web application: "gtry-gtry-context-root".
    java.lang.IllegalStateException: could not find schema type named {{http}//orass
    pcon/Gws.wsdl/types/}EmpRecUser
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder$GlobalTypeNod
    e.getSchemaType(AnonymousTypeFinder.java:181)
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder.getTypeNamed(
    AnonymousTypeFinder.java:86)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.create
    BindingTypeFrom(Deploytime109MappingHelper.java:888)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.proces
    sTypeMappings(Deploytime109MappingHelper.java:466)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBi
    ndingFileFrom109dd(Deploytime109MappingHelper.java:246)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>
    (Deploytime109MappingHelper.java:162)
    at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.create
    RuntimeBindings(RuntimeBindingsBuilderImpl.java:80)
    at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.jav
    a:272)
    at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:94)
    at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:58)
    at weblogic.wsee.server.servlet.WebappWSServlet.initRuntime(WebappWSServ
    let.java:70)
    at weblogic.wsee.server.servlet.WebappWSServlet.initImpl(WebappWSServlet
    .java:32)
    at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:40
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
    ubSecurityHelper.java:276)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
    tyHelper.java:68)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
    ifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHel
    per.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:493)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
    ervletContext.java:1688)
    Thanks in Advance
    Jayanthy.

    Hi Supriya,
    Check the following:
    * Whether the Report is locked in the server.
    * Are the parameters you pass from the form to report have the similar data types.
    Hope your problem is fixed.
    Regards.

  • Having big problems with my new Mac Pro, when I launch Photoshop CC, I get an error message, can carry on but after a few tasks it starts going gar... menus go blank, when you try to save it shows a blank box.... can anybody help?

    Having big problems with my new Mac Pro, when I launch Photoshop CC, I get an error message, can carry on but after a few tasks it starts going gar... menus go blank, when you try to save it shows a blank box.... can anybody help?

    when I launch Photoshop CC, I get an error message
    and what exactly is the text of that error message?

  • I am getting the following error in DAC, can anybody look into this ?

    Hi All
    I am getting the following error in DAC while Registering Informatica Services & repository services in DAC ?
    This is for RS(Repository services):
    ======================
    Failure connecting to "BIA_RS"!
    ANOMALY INFO::: Error while pinging informatica repository server
    MESSAGE:::F:\DAC\bifoundation\dac\log\pmrepConnect.log (The system cannot find the file specified)
    EXCEPTION CLASS::: java.io.FileNotFoundException
    java.io.FileInputStream.open(Native Method)
    java.io.FileInputStream.<init>(FileInputStream.java:106)
    java.io.FileInputStream.<init>(FileInputStream.java:66)
    com.siebel.etl.functional.ReadFileToBuffer.readFileToBuffer(ReadFileToBuffer.java:39)
    com.siebel.analytics.etl.infa.interaction.PmrepInvoker.pmrep(PmrepInvoker.java:100)
    com.siebel.etl.gui.data.StaticDatabaseCalls.testRepositoryServer(StaticDatabaseCalls.java:959)
    com.siebel.etl.gui.data.StaticDatabaseCalls.testInformaticaServer(StaticDatabaseCalls.java:890)
    com.siebel.etl.net.ExecutionPlan.getInformaticaStatus(ExecutionPlan.java:275)
    com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.mBeanRequestInformaticaStatus(ClientMessageDispatcher.java:433)
    com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.consoleMessage(ClientMessageDispatcher.java:224)
    com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.run(ClientMessageDispatcher.java:144)
    This is for IS(integration services):
    ====================
    Failure connecting to "BIA_IS"!
    Can anybody please provide the solution for this ?
    Regards
    Srini
    Edited by: Srini on Feb 26, 2012 4:58 AM

    Check weather Your able to Ping Data warehouse, might be your ETL is not able to ping DW.

  • I signed up tp lastPass premium and installed the app on my phone.  I can no longer download mail.  I am asked for a password which I supply my my email but it is not recognised and says there is a domain error. Can anybody help please

    I signed up to lastPass premium and installed the app on my phone.  I can no longer download mail.  I am asked for a password (I give my normal log-in) but it is not recognised and says there is a domain error. Can anybody help please

    Try deleting that app, then see if you have the same issue.

  • HT201210 My iPhone has crashed and i went to iTunes to restore it and after waiting for it to be restored it said "The iPhone could not be restored. An unknown error occurred (2006). Can anybody please help suggest what i should do now?

    My iPhone has crashed and i went to iTunes to restore it and after waiting for it to be restored it said "The iPhone could not be restored. An unknown error occurred (2006). Can anybody please help suggest what i should do now?

    This error normally appears if you attempted to downgrade or modify your iOS. See here http://support.apple.com/kb/TS3694#error1015

  • I get an error message when trying to email photos. It says "The email server didn't recognize your username/password combination." Yet I have reset my password and was able to log in to this Support Community. Can anybody help me?

    I get an error message when trying to email photos. It says "The email server didn't recognize your username/password combination." Yet I have reset my password and was able to log in to this Support Community. Can anybody help me?

    See my answer to your previous duplicate question. What happened when you tried my answers?
    LN

  • I have an iphone 4 jammed in MDU mode, I conect to itunes and asked to restore, it went through all the steps and nearly completed it gives me an error message saying cannot be restored error -1.  Can anybody help me how to restore my iphone

    I have an iphone 4 started the problem saying no service, then when restarting asked to connect to itunes and became jammed in MDU mode, I connect to itunes and clicked on  restore, it went through all the steps and nearly completed it gives me an error message saying cannot be restored error -1.  Can anybody help me how to restore my iphone.  or what to do next, some reseller asked me to go the shop where I bought to replace it for me as this error cannot be restored by any shop.  It has to be returned to apple and get it replaced.  The warranty already expired and don't know what to do.
    Please help

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    http://support.apple.com/kb/TS3694#error1

  • Keep getting import error when trying to import photos from my camera. "iphoto cannot import your photos because there was a problem downloading an image".  Can anybody help?

    Have a problem importing my photos to iphoto '11.  Keep getting an error message.  Tried deleting some photos from iphoto as well as my camera, but it didn't help.  Can anybody tell me why this is happening?

    what happens when you use Image Capture (in your applications folder) and see what happens
    LN

  • When i try to start itunes i get a message saying that the MSVCR80.dll file is missing and to reinstall itunes.  When I try to reinstall itunes it tells me that I have an Error 7 (windows error 126).  Can anybody tell me what this means?  Thanks

    When i try to start itunes i get a message saying that the MSVCR80.dll file is missing and to reinstall itunes.  When I try to reinstall itunes it tells me that I have an Error 7 (windows error 126).  Can anybody tell me what this means?  Thanks

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

Maybe you are looking for

  • Vendor line item

    Dear All, My clients wants Spilts in Vendor line items while hitting that particular vendor. Clearly, We are giving all Advances like Loan advance, Salary advance to employeees as a vendor and will deduct, while doing salary process by putting deduct

  • No sound through tv when hooked hdmi hpdv7 4069 sound only shows idt high def codec

    win 7 64  HPdv7 4069wm  notebook not reconizing hdmi     device manager sound, video only show idt high def codec display adapter shows amd m880G with ati mobility radeon HD4250 & ati mobility radeon

  • Usual preview instead of custom preview after canceling of step.

    Hi. I try to made workitem with dialog, like Form step. Macros u201Cexit_cancelledu201D used in method in case of user cancel form. Also u201CAdaptation work item preview in Business Workplaceu201D function assigned to step. SBWP preview shows screen

  • Change decimal places in a KF

    Hi, I have a KF Amount with Data Type = CURR. This KF has a data element associated ( automatically associated  when is created) with Lenght 17 and Decimal places 2. The KF is used in a ODS as Data Field. Now the user want to update the field, with 5

  • How to check whether the Application Server directory exits or not

    Hi, I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not. Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.t