Couldnt solve/explain this jsp/mysql error

in one of my page that makes the table i have these codes :
     String a = "CREATE TABLE inv"+invId+" (";
     String b = "itemId int(5) NOT NULL, ";
     String c = "itemSerial varchar(255), ";
     String d = "itemAsset varchar(255), ";
     String e = "itemComments varchar(255), ";
     String f = "itemModel int(5) NOT NULL, ";
     String g = "itemStatus int(5) NOT NULL, ";
     String h = "itemEnterDate date NOT NULL, ";
     String i = "PRIMARY KEY (itemId))";
     String makeTB = a+b+c+d+e+f+g+h+i;
     SQLStatement3.executeQuery(makeTB);
then the other processing page is suppose to delete it :
String prefixId = request.getParameter("objectId");
String confirmId = request.getParameter("confirmId");
if (prefixId == null) {
     out.println("prefixId == null");
else if (confirmId == null) {
     out.println("confirmId == null");
else {
     String delPrefix = "Delete from itemPrefix where prefixId="+prefixId;
     SQLStatement.executeQuery(delPrefix);
     String dropTB = "Drop table inv"+prefixId;
     SQLStatement.executeQuery(dropTB);
     response.sendRedirect("invConfirm.jsp?object="+confirmId+"&msg= has being deleted.&url=invAddPrefix.jsp");
the problem is when i created the table
i checked it, and it exist so theres no problem there
but when i attempt to delete it thru running the jsp page,
i got this :
javax.servlet.ServletException: General error: Unknown table 'inv8'
before dropping the table i did a "select * from inv8" in the query of mysql and it exist
however got that msg when i try to drop that table thru jsp
(that message usually appear when the table doesnt exist only)
wierd thing is even when this error appears that table is dropped successfully too
i dont know wads causing that error to pop up
can anyone help me ?

Don't know if this will help but when executing DDL statements (create, drop, alter) and DML statements (insert, update, delete) you should use executeUpdate() instead of executeQuery().

Similar Messages

  • Please help me resolve this JSP compilation error

    Hi,
    We have deployed our web app in Sun one web server 7.0 running on Sun os, and with JRE 5.0.
    Until recently, every thing was running fine, but since a few days, I am unable to get a JSP file compiled.
    This file, has a <%@include file= .. > to another file, and both these used to work fine earlier.
    This is the error message I am getting:
    <!-- org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:604)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:792)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:472)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
    at com.bt.bmsnet.shared.BMSServletBase.forward(BMSServletBase.java:126)
    at com.bt.gma.web.AccountServlet.actionUpdateAccount(AccountServlet.java:2704)
    at com.bt.gma.web.AccountServlet.doGet(AccountServlet.java:5049)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:796)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
    at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)
    Caused by: java.io.IOException: tmpFile.renameTo(classFile) failed
    at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:208)
    at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:131)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:336)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:595)
    ... 23 more
    -->
    The line "Caused by: java.io.IOException: tmpFile.renameTo(classFile) failed" suggests that the JSP file isn't getting compiled into the corresponding servlet.
    Can some one please help?

    Yes I have done that. Simple JSP pages are compiling well. But I have about 5 jsps which call some partial jsp using
    <%@ include file="somefile.jsp" %>
    And all these files are showing this error.
    I have a feeling that this is probably due to some kind of restriction on file sizes of compiled jsps in the server. Is there any such restriction?

  • JSP MYSQL ERROR moving in resultset

    Hi I am new to jsp & mysql .
    I am trying to fetch data in a multiple select list box in my jsp page from a table in mysql . It fetches the first value and then exception is generated as no data found while there is data in the table . The same data in the table is fetched when i fetch in a dynamic table . I observed that i am having problems in fetching data only in list box . Please help me. It is a part of my project.
    Thanks

    Hi
    The code was generated my macromedia dreamweaver but still i'll writing it below:
    <select name="select" size="1" multiple>
    <%
    while (Recordset1_hasData) {
    %>
    <option value="<%=((Recordset1.getObject("overridetype")!=null)?Recordset1.getObject("overridetype"):"")%>"><%=((Recordset1.getObject("overridetype")!=null)?Recordset1.getObject("overridetype"):"")%></option>
    <%
    Recordset1_hasData = Recordset1.next();
    Recordset1.close();
    Recordset1 = StatementRecordset1.executeQuery();
    Recordset1_hasData = Recordset1.next();
    Recordset1_isEmpty = !Recordset1_hasData;
    %>
    </select>

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • I am getting this message: An error occurred while sending mail. The mail server responded: 5.3.4 Requested action not taken; To send your message, please sign into your account online first and solve a puzzle. (Sorry for the inconvenience--these puzzles

    I am trying to send a message with an attachment, I get this message: An error occurred while sending mail. The mail server responded: 5.3.4 Requested action not taken; To send your message, please sign into your account online first and solve a puzzle. (Sorry for the inconvenience--these puzzles help us stop spammers.). Please check the message and try again.
    == Today

    Me too (with Thunderbird). EXCEPT it reads
    Requested action not taken; This account is currently blocked from sending messages. If you don't think you've violated the Windows Live Terms of Use, please contact customer support...
    Occasionally the mail "sends", but it is unpredictable. Tech Support at Qwest (for q.com under Windows Live) does not find a problem at their end.
    More suspiciously, the same account accessed from my Mac does not seem to exhibit this problem. Have reloaded T'bird. Recurred again.

  • Can anyone explain this: Numeric or Value Error Line 1

    I have a stored procedure that starts out like so:
    PROCEDURE test_proc(param1 IN VARCHAR2, param2 IN VARCHAR2, param3 OUT
    SYS_REFCURSOR) IS
    v_var varchar2(5);
    BEGIN
    SELECT * FROM. . .
    The procedure tested fine in PL/SQL Developer. When calling from
    ODP.NET like so. . .
    OracleCommand cmd = new OracleCommand("test_proc", <connection>);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.Parameters.Add("param1", "somevalue");
    cmd.Parameters.Add("param2", "XX");
    cmd.Parameters.Add("param3", OracleDbType.RefCursor,
    ParameterDirection.Output);
    DataSet ds = new DataSet();
    OracleDataAdapter da = new OracleDataAdapter(cmd);
    con.Open();
    da.fill(ds);
    con.Close();
    . . .the procedure executed as expected. If I changed the value of
    param2 to "XXX" or any value three chars long I got the "ORA-06502:
    Numeric or Value Error at Line 1" error.
    After beating my head against the wall for hours, I tried changing the
    size of v_var to 50, and the error disappeared. Mind you, the error
    was being thrown long before v_var was being set further down in the
    proc. Even more interesting is that the possible values of v_var were
    all less than 5 chars wide. Most interesting: the value of p_param2 had nothing whatever to do with v_var.
    Can anyone explain this?

    Hi,
    Is your database 9206 by chance? Re: Error ORA-06502 PL/SQL
    Cheers,
    Greg

  • When running labview's test executive I recieve runtime error: Call to step "PRE-RUN" failed. Could someone explain this error?

    I have a set of vi's that work when run under labview. However, when calling these vi's from labview's test executive I recieve runtime error: Call to step "PRE-RUN" failed. in Assign Connector Pane.vi->Call Test.vi->Execute Pre-Run.vi->Test Executive. Could someone explain this error to me? (or ideally tell me how to fix it?) Thanks.

    Hello,
    There are any number of possible causes to this problem. Which version of Test Executive are you using? Have you upgraded your Test Executive recently? The latest version is 5.1.1. If you have changed anything about Test Executive on your computer recently, I recommend you perform a mass compile of all your VI libraries, as having different versions of the VIs on your system could often result in the "Call to Step XYZ Failed" errors. Also, are you using any DAQ or Analysis VIs in your steps? We have seen problems where the use of DAQ or Analysis VIs in the sequence can cause intermittent "Call to Step...Failed" errors. There are some KnowledgeBase entries on our website that discuss this problem. Are you using the Test Executive in the VI environment, or
    as an executable? Again, there are some problems with using Test Executive as an executable that result in these errors, and there are also KnowledgeBase entries that discuss these problems.
    If you have a pared-down application that demonstrates the problem, feel free to send me your VIs and your .seq file and I will try to reproduce the problem.
    Alternatively, I would suggest you visit www.ni.com/teststand to learn about TestStand, our state-of-the-art Test Sequencing software that completely outperforms Test Executive. It is very easy to use and much more powerful, and we have a top-notch support team available dedicated exclusively to supporting TestStand. As you are probably aware, we are no longer developing Test Executive, and instead are concentrating our efforts on making TestStand the penultimate solution for all our customers' test sequencing needs.
    I appreciate your patience on this issue. Please let me know if I can offer further assistance.
    Have a pleasant weeken
    d.
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • MySQL Error#: 1045 Not Explained

    I have had this error, and found a zillion posts on the web
    asking for a solution, and never found a solution. But I've kind of
    figured out what's going on and I'd like to know exactly how and
    why it does what it does.
    I have a Linux box lemon running MySQL, and a Windows XP
    client orange. From orange I can connect using mysql command line
    client (mysql -u root -p -h lemon mydatabase). I can also connect
    using ODBC (by creating an ODBC connection in Control Panel and
    testing the connection).
    When I try to connect to lemon/root/password in Dreamweaver
    CS3 by creating a MySQL Connection it fails with...
    MySQL Error#: 1045
    Access denied for user root@lemon (using password:YES)
    (This is what a ton of posts complain about with lame
    responses like - you got the password wrong).
    So what I discover is that in Dreamweaver I have to set up
    the connection using localhost instead of lemon. (NOTE: Dreamweaver
    is running on orange - not lemon, where the MySQL server is
    running!)
    So I wonder - what the!!! The database is not on localhost.
    So I fiddle a bit and find that if I go into Manage Sites and
    change the name of the FTP host under Testing Server that the
    connection to localhost breaks - so somehow the MySQL connection is
    being made using the FTP host.
    How is Dreamweaver making a MySQL connection using lemon as
    the FTP server and localhost (orange) as the MySQL server, when it
    is lemon that is the MySQL server???

    .oO(nevdelap)
    >I have had this error, and found a zillion posts on the
    web asking for a
    >solution, and never found a solution. But I've kind of
    figured out what's going
    >on and I'd like to know exactly how and why it does what
    it does.
    >
    > I have a Linux box lemon running MySQL, and a Windows XP
    client orange. From
    >orange I can connect using mysql command line client
    (mysql -u root -p -h lemon
    >mydatabase). I can also connect using ODBC (by creating
    an ODBC connection in
    >Control Panel and testing the connection).
    You know that working on a DB as root is a bad idea? You
    should create a
    normal account for the daily work and login as root only for
    maintenance
    or configuration stuff.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16575#userAccount
    > When I try to connect to lemon/root/password in
    Dreamweaver CS3 by creating a
    >MySQL Connection it fails with...
    >
    > MySQL Error#: 1045
    > Access denied for user root@lemon (using password:YES)
    >
    > (This is what a ton of posts complain about with lame
    responses like - you got
    >the password wrong).
    >
    > So what I discover is that in Dreamweaver I have to set
    up the connection
    >using localhost instead of lemon. (NOTE: Dreamweaver is
    running on orange - not
    >lemon, where the MySQL server is running!)
    >
    > So I wonder - what the!!! The database is not on
    localhost.
    Every machine is a localhost from its own point of view.
    Since the DB
    and probably your scripts both run on lemon, from their point
    of view
    that machine is the localhost and PHP has to open a
    connection to
    'localhost' in order to connect to the DB. This is the most
    common setup
    if PHP and MySQL run on the same machine.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16575#dbconn
    But one thing confuses me. You said you can connect from your
    Windows
    box, using the command line:
    mysql -uroot -p -hlemon mydatabase
    Does the same command also work if invoked directly on the
    Linux box or
    does it cause an "Access denied"?
    > So I fiddle a bit and find that if I go into Manage
    Sites and change the name
    >of the FTP host under Testing Server that the connection
    to localhost breaks -
    >so somehow the MySQL connection is being made using the
    FTP host.
    >
    > How is Dreamweaver making a MySQL connection using lemon
    as the FTP server and
    >localhost (orange) as the MySQL server, when it is lemon
    that is the MySQL
    >server???
    FTP is used to transfer the scripts to the server.
    Micha

  • Can't decode JSP Server Error Please help!

    Hi,
    I wrote this code and I get this huge server error when I run it and I can't for the life of me figure out what's wrong, can someone please help me debug my jsp or explain to me what any of those errors mean?
    Here is the error message:
    type Exception report
    message
    description
    The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NullPointerException
         at org.apache.jsp.Pdb_Add_jsp._jspService(Pdb_Add_jsp.java:530)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.24
    Here is the code: Pdb_Add.jsp
    <%@ include file="authenticate.jsp" %>
    <%@ page import="java.sql.*" %>
    <%
    String connectionURL = "jdbc:mysql://localhost:3306/xxxxx?user=****&password=***";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <html>
    <head>
    <title>Project Portal Confirm New Project</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="style.css" rel="stylesheet" type="text/css">
    <link type="text/css" rel="stylesheet" href="xtree.css">
    <script src="xtree.js"></script>
    </head>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    <table bgcolor="#ffffff" width="761" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="337" valign="top">
         <table width="761" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="11" valign="top"><IMG height=1 src="images/spacer.gif" width=1></td></tr>
          <tr>
            <td height="291" valign="top">
              <table width="761" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                        <td width="10"><IMG height=1 src="images/spacer.gif" width=1></td>
                        <td width="399" valign="top">
                        <table width="399" border="0" cellspacing="0" cellpadding="0">
                        <TBODY>
                             <tr><!--IMAGE SQUARE ONE: TOP -->
                                  <td height="300" background="images/BB7250.jpg"><IMG height=1 src="images/spacer.gif" width="100%"></td>
                             </tr>
                             <tr>
                                  <td height="0" valign="top">
                                       <table width="300" height="200" border="0" cellpadding="0" cellspacing="0">
                                       </tr>
                                       </table>
                                  </td>
                             </tr>
                        <tr></tr>
         </table>
         </td>
                      <td width="340" valign="top">
                        <table width="340" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                      <td height="91" valign="top">
                          <table width="340" height="88" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="3"><IMG height=1 src="images/spacer.gif" width=1></td>
                            <td width="167" valign="top" background="images/S1.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                 <td width="80"> </td>
                                                 <td width="86" valign="top" class="text2" style="PADDING-TOP: 24px"></td>
                                            </tr>
                                       </table>
                                  </td>
                                  <td width="3"><IMG height=1 src="images/spacer.gif" width=1></td>
                            <td width="167" valign="top" background="images/V.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                 <td width="70"> </td>
                                                 <td width="95" valign="top" class="text2" style="PADDING-TOP: 23px"></td>
                                            </tr>
                                       </table>
                                  </td>
                          </tr>
                     </table>
                         </td>
                   </tr>
                      <tr>
                      <td height="88" valign="top">
                          <table width="340" height="88" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="3"><IMG height=50 src="images/spacer.gif" width=1></td>
                            <td width="77" valign="top" background="images/and.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                             <td width="80"> </td>
                                              <td width="86" valign="top" class="text2" style="PADDING-TOP: 21px"></td>
                                            </tr>
                                       </table>
                                  </td>
                                  <td width="3"><IMG height=1 src="images/spacer.gif" width=1></td>
                            <td width="167" valign="top" background="images/V.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                            <td width="77"> </td>
                                            <td width="90" valign="top" class="text2" style="PADDING-TOP: 21px"></td>
                                            </tr>
                                       </table>
                                  </td>
                         </tr>
                      </table>
                          </td>
                   </tr>
                      <tr>
                      <td valign="top" style="PADDING-LEFT: 4px">
                          <table width="336" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="300" height="4" valign="top" background="images/spacer.gif">
                                 </td>
                          </tr>
                               <tr>
                            <td width="300" height="116" valign="top" background="images/portalspiral.jpg">
                                 </td>
                          </tr>
                      </table>
                          </td>
                   </tr>
                </table></td>
                <td><IMG height=1 src="images/spac" width=1></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top">
              <table width="761" height="35" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="10" valign="top"> </td>
                <td width="517" valign="top">
                   <table width="517" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td valign="top">
                        <table width="517" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="3" bgcolor="#000000">
                             <IMG height=1 src="images/spacer.gif" width=1></td>
                      </tr>
                      <tr>
                        <td valign="top">
                             <table width="250" border="0" cellspacing="0" cellpadding="1">
                            <tr>
                              <td width="75" valign="top">
                                       <A href="PIndex.html"><IMG height=31 src="images/but2.gif" width=99 border=0></A></td>
                              <td width="80" valign="top" style="PADDING-RIGHT: 1px">
                                       <A href="ProjectPortal_Add.html"><IMG height=31 src="images/but3.gif" width=104 border=0></A></td>
                              <td width="100" valign="top" style="PADDING-RIGHT: 6px">
                                       <A href="index-2.html"><IMG height=31 src="images/but4.gif" width=104 border=0></A></td>
                              <td width="100" valign="top">
                                       <A href="PDir.html"><IMG id=IMG1 height=31 src="images/but5.gif" width=134 border=0 ></A></td>
                              <td width="75" valign="top">
                                       <A href="index-4.html"><IMG height=31 src="images/but6.gif" width=99 border=0></A></td>
                            </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#e3e3e3">
                        <IMG height=1 src="images/spacer.gif" width=1></td>
                  </tr>
                </table></td>
                <td width="150" valign="top">
                   <table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="3" bgcolor="#000000"><IMG height=1 src="images/spacer.gif" width=1></td>
                  </tr>
                  <tr>
                    <td height="1"><IMG height=1 src="images/spacer.gif" width=1></td>
                  </tr>
                  <tr>
                    <td height="31" valign="top">
                        <table width="150" height="31" border="0" cellpadding="0" cellspacing="0" background="images/spacer.gif" bgcolor="#ffffff">
                      <tr>
                        <td width="80" valign="top" style="PADDING-TOP: 7px"><IMG height=25 src="images/spacer.gif" width=56></td>
                        <td width="100" valign="top" style="PADDING-RIGHT: 4px; PADDING-TOP: 8px"
                               ><input name="textfield" class="form" ></td>
                        <td valign="top" style="PADDING-TOP: 5px">
                             <A href="#"><IMG height=21 src="images/minis.gif" width=20 border=0></A></td>
                      </tr>
                    </table></td>
                  </tr><tr>
                       <td height="1" bgcolor="#e3e3e3"><IMG height=1 src="images/spacer.gif" width=1></td>
                      </tr>
                </table></td>
                <td><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
            </table></td>
          </tr>
        </table></TD></TR>
      <tr>
        <td height="362" valign="top">
         <table width="761" height="362" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="218" valign="top">
              <table width="218" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="12" valign="top">
                    <IMG height=1 src="images/spacer.gif" width=1></td>
                <td width="218" valign="top">
              <table width="218" border="0" cellspacing="0" cellpadding="0" style="WIDTH: 218px; HEIGHT: 472px">
              <tr>
                <td width="12" valign="top"><IMG height=1 src="images/spacer.gif" width=1></td>
                <td width="205" valign="top">
                <IMG alt="" src="file://C:\Documents and Settings\atavakkolie\Desktop\Project Portal\images\PDir.gif"
                      id=IMG1
                     >
                      <DIV id=DIV1
                      style="PADDING-RIGHT: 5px; PADDING-LEFT: 15px; LEFT: 5px; PADDING-BOTTOM: 5px; OVERFLOW: auto; WIDTH: 200px; PADDING-TOP: 0px; POSITION: relative; TOP: 10px; HEIGHT: 100%"><!-- js file containing the tree content, edit this file to alter the menu,
                        the menu will be inserted where this tag is located in the document -->
                      <SCRIPT src="tree.js"></SCRIPT>
                      </DIV></td>
                     <td>
                        </td>
              </tr>
            </table></td>
              </tr>
            </table></td>
            <td width="1" valign="top"><table width="1" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="2"><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
              <tr>
                <td height="920" bgcolor="#e3e3e3"><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
              <tr>
                <td height="2"><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
            </table></td>
            <td width="542" valign="top">
              <table width="542" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="530" valign="top">
                   <table width="530" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td valign="top">
                        <table width="530" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="41" valign="top" style="PADDING-TOP: 6px"><IMG id=IMG1
                                  style="LEFT: 409px; TOP: 552px" height
                                  =44 src="images/Addp.gif" width=207></td>
                      </tr><!-- Form starts here-->
                      <tr>
                        <td valign="top"
                                >
                             <table width="530" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="text" style="PADDING-LEFT: 18px">
                                      <!-- ***** START EDITABLE REGION  -->
    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    connection = DriverManager.getConnection(connectionURL, "", "");
    statement = connection.createStatement();
    String name = request.getParameter("name");
    String email = request.getParameter("email");
    String pname = request.getParameter("pname");
    String pmanager = request.getParameter("pmanager");
    String svvpp = request.getParameter("svvpp");
    String pdphase = request.getParameter("pdphase");
    String pdptarget = request.getParameter("pdptarget");
    String etimecode = request.getParameter("etimecode");
    if( request.getParameter("name").equals("") || request.getParameter("email").equals("") || request.getParameter("pname").equals("")
    || request.getParameter("pmanager").equals("") || request.getParameter("svvpp").equals("") || request.getParameter("pdphase").equals("")
    || request.getParameter("pdptarget").equals("") || request.getParameter("etimecode").equals(""))
    out.println("<b>ERROR:</b> All fields were not filled out. Please go back and try again.");
    else
    try
      int retval = statement.executeUpdate("INSERT INTO project VALUES('" + name + "," + email + "," + pmanager + "," +  svvpp + "," + pname + "," + pdphase + "," + pdptarget + "," + etimecode + "')");
      out.println("<b>SUCCESS:</b> Your changes have been successfully written to the database.");
      session.putValue("entry", "<b>" + pname + " (Add Project)</b>: added user with email: " + email + ", pmanager: " + pmanager + ", svvpp: " + svvpp + ", pdphase: " + pdphase + ", pdptarget: " + pdptarget + ", etimecode: " + etimecode);
      %>
      <jsp:include page="log.jsp" />
      </jsp:include>
      <%
      catch (SQLException e)
       if (e.getErrorCode() == 1062)
       { out.println("<p><b>ERROR:</b> There is something wrong. Please go back and try again.</p>");
       else
        out.println("<p><b>ERROR:</b> Unexpected error <b>" + e.getErrorCode() + "</b> occurred.</p>");
        out.println("<p>" + e + "</p>");
    %>
                        </td>
                         </tr>
                        </table>
                            </td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
                <td width="12"> </td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="71" valign="top"><table width="761" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table width="761" height="25" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="13">
                   <IMG height=1 src="images/spacer.gif" width=1></td>
                <td width="738" align="middle" background="images/back_4.gif" bgcolor="#808080" class="links">
                   <A class=links href="index.html"><strong> Home page</strong></A> 
                   |  <A class=links href="index-1.html"><strong>About us</strong></A> 
                   |  <A class=links href="index-2.html"><strong>Search</strong></A> 
                   | <A class=links href="index-3.html"><strong> Contact</strong></A> 
                   |  <A class=links href="#"><strong>SV&V Links</strong></A> 
                   |  <A class=links href="index-4.html"><strong>Help</strong></A> 
                   |  <A class=links href="#"><strong>Site map</strong></A> 
                   |  <A class=links href="#"><strong>Links</strong></A></td>
                <td width="10">
                   <IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="18" valign="top"><IMG height=1 src="images/spacer.gif" width=1></td>
          </tr>
          <tr>
            <td align="middle" valign="top" class="copy">
              <A class=copy style="TEXT-DECORATION: none" href="index-5.html" >Copyright 2004-2005 � SV&V Project Portal. All rights reserved.</A></td>
          </tr>
        </table></td>
      </tr></TBODY></TABLE></TABLE>
    </body>
    <script>
    function addNode() {
         if (tree.getSelected()) {
              tree.getSelected().add(new WebFXTreeItem('New'));
    function addNodes() {
         if (tree.getSelected()) {
              var foo = tree.getSelected().add(new WebFXTreeItem('New'));
              var bar = foo.add(new WebFXTreeItem('Sub 1'));
    function delNode() {
         if (tree.getSelected()) {
              tree.getSelected().remove();
    </script>
    </html>

    request.getParameter("name").equals("")You are using this in your 'if' statement. But if a parameter by the name "name" is not found, it would return a null reference and calling equals() would call a NullPointerException.
    I observed that you are already assigning those parameters to Strings. You should add null checking for each of them. :)

  • JSP + MYSQL question: input form value into a SQL table

    Hello,
    I am writing some JSP code to read input information from a input form to write this information into a SQL field.
    My problems are:
    - how can i pass the input form information to other jsp file ? (like Getproperty of something like this)
    - how can i move the content of any input information into a variable ? I mean something like this:
    String a1;
    username.value.of.the.input.field.in.forum_jsp = a1.in.addmessage_jsp;and then:
    int rowsAffected = stmt.executeUpdate("INSERT INTO forummessages (messagecode, " +  " usercode, " + " messagedate,  " + " message) VALUES(6,3,06/07/2007,'" + a1 + "')");------
    The SQL table looks like this:
    stmt.executeUpdate("CREATE TABLE forummessages (messagecode int AUTO_INCREMENT PRIMARY KEY, usercode int, messagedate date, message char(255) not null)");My codes are:
    forum.jsp - this one should pass the input information to addmessage.jsp
    <%@ page contentType="text/html; charset=iso-8859-2" %>
    <%@ page import="java.sql.*" %>
    <%
    Connection con = null;
    Statement stmt = null;
    try {
      Class.forName("com.mysql.jdbc.Driver");
      String url =  "jdbc:mysql://localhost:3306/mysql";
      con =  DriverManager.getConnection(url,"root", "");
      stmt = con.createStatement();
      String sql = "SELECT * FROM forummessages,users,bmwecode WHERE (forummessages.usercode=users.usercode) AND (users.bmwcode=bmwecode.bmwcode)";
      ResultSet rs = stmt.executeQuery(sql);
    %>
    <html>
    <head>
    <title>JSP + MYSQL Teszt</title>
    </head>
    <body>
    <a href="forum.jsp">Forum / Uj hozzaszolas</a>
    <a href="userlist.jsp">Felhasznalok kilistazasa</a>
    <a href="adduser.jsp">Felhasznalo hozzadasa</a>
    <a href="deletemessage.jsp">Hozzaszolas torlese</a>
    <br><br>
    <form action="addmessage.jsp" method=post">
    Felhasznalo:
    <input type="text" name="username">
    <br><br>
    Hozzaszolas:
    <input type="text" name="message">
    <br><br>
    <input type="submit" value="Uj hozzaszolas">
    <br><br>
    <table border="0">
    <tr>
    <th>messagecode</th>
    <th>user</th>
    <th>car type</th>
    <th>message</th>
    </tr>
    <%
      while(rs.next()){
    %>
    <tr>
    <td><%=rs.getInt("messagecode") %></td>
    <td><%=rs.getString("username") %></td>
    <td><%=rs.getString("bmwtype") %></td>
    <td><%=rs.getString("message") %></td>
    </tr>
    <%
      } // end while
    %>
    </table>
    </body>
    </html>
    <%
    } catch (Exception e) {
      out.println("<font color=red><h3>Error:</h3></font>" + e);
      e.printStackTrace();
    } finally {
      try {
        if (stmt!=null) {
          stmt.close();
        if (con!=null) {
          con.close();
      } catch (Exception e) {
        e.printStackTrace();
    %> ----
    addmessage.jsp
    <%@ page contentType="text/html; charset=iso-8859-2" %>
    <%@ page import="java.sql.*" %>
    <%
    Connection con = null;
    Statement stmt = null;
    try {
      Class.forName("com.mysql.jdbc.Driver");
      String url =  "jdbc:mysql://localhost:3306/mysql";
      con =  DriverManager.getConnection(url,"root", "");
      stmt = con.createStatement();
    int rowsAffected = stmt.executeUpdate("INSERT INTO forummessages (messagecode, " +  " usercode, " + " messagedate,  " + " message) VALUES(6,3,06/07/2007,'" + a1 + "')");
    } catch (Exception e) {
      out.println("<font color=red><h3>Hiba:</h3></font>" + e);
      e.printStackTrace();
    } finally {
      try {
        if (stmt!=null) {
          stmt.close();
        if (con!=null) {
          con.close();
      } catch (Exception e) {
        e.printStackTrace();
    %>
    <a href="forum.jsp">Forum / Uj hozzaszolas</a>
    <a href="userlist.jsp">Felhasznalok kilistazasa</a>
    <a href="adduser.jsp">Felhasznalo hozzadasa</a>
    <a href="deletemessage.jsp">Hozzaszolas torlese</a>
    <br><br>---
    Thank you for your help in advance.

    SELECT DISTINCT
    hou.name
    ,poh.segment1 po_num
    ,pol.line_num po_line_num
    ,poh.currency_code
    --,trunc(poh.creation_date) po_creation_date
    ,pol.cancel_flag
    ,msi.segment1 item_num
    ,pol.unit_price
    ,round(cost.item_cost,5)
    ,round((&p_rate * pol.unit_price),5) "CONVERSION"
    ,(cost.item_cost - round((&p_rate * pol.unit_price),5)) difference
    ,pov.vendor_name
    FROM
    po.po_headers_all poh
    ,po.po_lines_all pol
    ,po.po_vendors pov
    ,hr.hr_all_organization_units hou
    ,inv.mtl_system_items_b msi
    ,bom.cst_item_costs cost
    WHERE
    poh.po_header_id = pol.po_header_id
    and pov.vendor_id = poh.vendor_id
    and poh.org_id = hou.organization_id
    and hou.organization_id = :p_operating_unit
    and poh.currency_code = :p_currency
    and poh.creation_date between :po_creation_date_from and :po_creation_date_to
    and poh.type_lookup_code = 'BLANKET'
    and msi.inventory_item_id = pol.item_id
    and cost.INVENTORY_ITEM_ID = pol.ITEM_ID
    --and (cost.item_cost - pol.unit_price) <> 0
    and (cost.item_cost - round((&p_rate * pol.unit_price),5)) <> 0
    and cost.organization_id = 1
    and msi.organization_id = 1
    and cost.cost_type_id = 3 --- Pending cost type
    and nvl(upper (pol.closed_code),'OPEN') not in('CANCELLED', 'CLOSED', 'FINALLY CLOSED', 'REJECTED')
    and nvl(upper (poh.closed_code),'OPEN') not in('CANCELLED', 'CLOSED', 'FINALLY CLOSED', 'REJECTED')
    and nvl(pol.cancel_flag, 'N') = 'N'
    and &p_rate user parameter
    I want this p_rate to be passed as a user parameter.

  • Can anyone explain this graphics issue

    The apple not so genius bar near me cant work this out.
    1 new apple supplied ram replacement, 1 ram corsair replacment by me
    1 logic board and graphics card replacment by apple.
    The not so genius bar cant work it out. I think the laptop is a lemon myself and want a new one. also had classic dead graphics card display on screen.
    Can anyone else explain it?

    Your telling me im over it. I start uni in a week and need it.
    The not so genius seemed personaly attacked when i asked for a new mac when i was last in after they couldnt solve the issue. Didnt say Macs were crap just this lemon.
    Def will be getting the longer warranty if they wont swap it.

  • Javax.servlet.jsp.JspException: Error: IOException while writing to client!

    Hi
    I have deployed a WAR file successfully on
    standalone( win os) / 10AS server Rel2 ( Linux )
    But some times I get this Error ONLY on 10AS server Rele 2
    "javax.servlet.jsp.JspException: Error: IOException while writing to client!"
    Plz can some body tell me why am i getting this error.
    Is this a J2ee Container Problem?
    with regards
    Karthik

    Hi Form
    Plz some body explain me why am i getting this error not so frequently
    with regards
    Karthik

  • MySQL error 2002: No Such File or Directory in DW CS6

    OK, I've obviously configured something wrong in MYSQL or Dreamweaver, but despite exhaustive research, I can't connect to my database and I can't find a solution online.
    I'm running a Windows 7 Pro system. I installed PHP/MySQL/Apache all at once with a package called WAMPSERVER.
    The DB appears to be running properly. I am able to connect to it and make changes using my phpmyadmin. But no matter what configuration I try, I'm unable to get Dreamweaver CS6 to connect. As this is the same error I get when MYSQL is not working at all, I can surmise that Dreamweaver can't find my database, so what have I missed? Is my testing servr set up improperly? I don't see a lot of options here to do things differently.
    Can anyone offer any suggestions. Is there any other information I need to provide?

    Hi atomec,
    In the time that the experts get back to you, can you have a look at this post? http://stackoverflow.com/questions/10426501/how-to-solve-the-xampp-1-7-7-phpmyadmin-mysql- error-2002-in-ubuntu
    Thanks,
    Preran

  • OT: MySQL Error #1064

    I used phpMyAdmin to insert several new rows in a database
    table, then I
    suddenly hit a brick wall with this error message:
    MySQL said:
    #1064 - You have an error in your SQL syntax; check the
    manual that
    corresponds to your MySQL server version for the right syntax
    to use
    near '(`Key2`, `ID`, `Site2`, `Articles`, `Contents`,
    `Links`) VALUES
    ('19', 'China'' at line 1
    I think this is the same error message I used to get on my PC
    every now
    and then. It doesn't offer any clues as to the nature of the
    problem,
    and it isn't easy to track down via Google.
    I think I either fixed it or found a workaround once before,
    but I can't
    recall the solution. I don't know if it was a related problem
    or
    something entirely different, but I think I recall a
    situation where my
    database table's cardinality was limited to a certain number,
    and it
    wouldn't allow me to insert any additional rows for some
    reason. But I
    don't know if that's the problem in this case or not.
    Does anyone have any suggestions?

    David Powers wrote:
    > David Blomstrom wrote:
    >> I used phpMyAdmin to insert several new rows in a
    database table, then
    >> I suddenly hit a brick wall with this error message:
    >>
    >> MySQL said:
    >> #1064 - You have an error in your SQL syntax; check
    the manual that
    >> corresponds to your MySQL server version for the
    right syntax to use
    >> near '(`Key2`, `ID`, `Site2`, `Articles`,
    `Contents`, `Links`) VALUES
    >> ('19', 'China'' at line 1
    >>
    >> I think this is the same error message I used to get
    on my PC every
    >> now and then. It doesn't offer any clues as to the
    nature of the problem,
    >
    > The error message has nothing to do with PC or Mac. It's
    a MySQL error
    > message, and it's very precise. It not only tells you
    that you have a
    > syntax error in your SQL query; it tells you exactly
    where the error is:
    > near '(`Key2`, `ID`,...'
    >
    > In other words, the syntax error immediately precedes
    (`Key2`, `ID`,...
    >
    > You need to examine the SQL itself to determine the
    nature of the syntax
    > error.
    >
    Thanks for the tip, though I'm still confused. I simply used
    phpMyAdmin
    to insert a new row, then began by typing "19" into the first
    available
    space. There is nothing before that. I don't know how to
    examine the
    "SQL itself," as there is none that I'm aware of.
    I simply inserted a few values, as I had done on several
    previous
    occasions. I then experimented by NOT inserting certain
    values and by
    inserting different values, but nothing worked.
    I tracked "1064" through Google, and the problems appear to
    be all over
    the map. One guy said his database table was too big, and he
    solved the
    problem by breaking it up into several smaller tables.
    At any rate, I finally created a new table and imported a CSV
    file that
    automatically filled a few fields for several hundred rows.
    That
    automatically created the rows I need, and I was then able to
    insert
    articles where needed.
    Thanks.

  • Post Moved Can anyone explain this baffling puzz...

    Post moved to Other BB Queries http://community.bt.com/t5/Other-BB-Queries/Can-anyone-explain-this-baffling-puzzle-with-BT-Total-BB...
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    I tend to think that the comments about MAC address filtering and wireless security are a bit misleading - if these things were the problem then it would not work at all as opposed to working sporadically.
    I must admit, reading your post I had exactly the same problem moving into a new house last year, my desktop PC in my room would get terrible wireless reception with constant erroring and was practically unusable whilst a laptop sat next to it was just fine. I tried a million different things and eventually bought an external wireless antenna like the one here:
    Edimax EA-IO7D 7dBi Indoor Omni-Directional High Gain Antenna with Desktop Stand - 1m Cable
    It solved the problem for me though I am still mystified as to what the problem is - I suspect that there is something in the environment causing interference though I don't know what. My house is of average size and fairly modern with thin walls so I would not anticipate any problems.
    Some things to try are to move the PC right next to the hub (or vice versa, whichever is easier) and see if this improves things or borrow a wireless router from a friend, turn off all encryption and see what signal strength you get there.

Maybe you are looking for

  • Serial Number creation for a material with stock type

    Hi, I am not able to create the serial number for a material which should have valuation type, plant and storage location using the function module ITOB_SERIALNO_CREATE_SINGLE. There is no export or changing parametre for this function module for Val

  • Sharing in Numbers

    I am trying to share a Numbers spreadsheet with others on the web (not necessarily Apple users).    Prior to Yosemite, I was able to do this just fine.  However, now it seems I can't - indeed, I have conflicting on-screen messages:  when I click the

  • QueueReceiver.receive(long timeout) and large messages

    Hi ... Our JMS application is using receive(milliseconds). I've been trying to research the exact behavior of the receive() method with a millisecond timeout, but haven't yet found out what happens if: I specify receive (25000), i.e., timeout interva

  • How to make Terminal prompt change permanent?

    I am using OS X Lion v10.7.2 and want to change my terminal prompt, but everytime I shutdown and restart Terminal, it defaults back to the original. I am using export PS1="\w >" Thanks

  • Hard Drive Doubled In Size

    I have a 500 GB hard drive and it's been running less than 1/2 full forever. And then all of a sudden there is only 22 GB free. And now it has 50.7 GB free. I have not installed or deleted anything that would explain these changes. I've ran all the t