10.4.3 Update "My Catch 22"

My problem is simple, well not simple just frustrating. I live in a very rural Northern Michigan town, no fast access to the internet. When I go to download 10.4.3 the download time is in excess of six hours, no biggie just do it at night. Well my issue is quality of phone lines, we have occasional disruptions. I have tried to download this update eight times, and never have been able to get it completed. I called Apple and tried to get a hard copy, they don't do that (they use to). They recommended downloading firmware, possible issue when computer sleeps maybe not my phone lines (I don't see that as a problem but who am I!!), well I can't load the firmware, the early version not compatible with Tiger and the recent firmware update needs 10.4.3 (my catch 22). So question does anyone know where I can get a copy of the 10.4.3 update, the update will probably patch the issues my computer has now.
Thanks!
Joe
1.8 GHz PowerPC G5   Mac OS X (10.4)  

Hello Joe,
This has cropped up several times before. One answer is as follows...
If you take a blank CD and a pleasant smile to some one that has a faster internet connection, you can usually manage to get the updates that way.
I know it has worked for many people here.
Hope that helps some
Regards
Ian

Similar Messages

  • My iwork suite of apps wont update.  pages is still 4.1 and software update doesnt catch it.  I also cant buy it from app store because it says its already installed on this system...any ideas?

    my iwork suite of apps wont update.  pages is still 4.1 and software update doesnt catch it.  I also cant buy it from app store because it says its already installed on this system...any ideas?  thank you

    I'd be posting in the iWork forums.

  • Problem getting correct data from MS Access after doing an Update

    Hi all,
    I have a problem getting correct data after doing an update. This is the scenario
    I am selecting some(Eg: All records where Column X = �7� ) records and update a column with a particular value (SET Column X = �c� ) in all these records by going through a while loop. In the while loop I add these records to a vector too, and pass it as the return value.
    After getting this return value I go through a for loop and get each record one by one from the DB and check if my previous update has actually happened. Since No errors were caught while updating DB, I assume all records are updated properly but my record set shows one after another as if it has not been updated. But if I open the DB it is actually updated.
    This does not happen to all records, always it shows like this
    1st record     Mode = �c�
    2nd record     Mode = �7�
    3st record     Mode = �c�
    4nd record     Mode = �7�
    9th record     Mode = �c�
    10th record     Mode = �7�
    I am relatively new to java and this is someone elses code that I have to modify,So I am not sure if there some thing wrong in the code too
    //Here is the method that gets records and call to update and add to vector
    public static Vector getCanceledWorkOrders() throws CSDDBException{
    //Variable declaration
      try {
        objDBConn = DBHandler.getCSDBCon();
        strSQL  = "SELECT bal bla WHERE [Detailed Mode])=?)";
        objStmt = objDBConn.prepareStatement(strSQL);   
        objStmt.setString(1, '7');
        objWOPRs = objStmt.executeQuery();
        while (objWOPRs.next()) {
         //Add elements to a vector by getting from result set
          //updating each record as PROCESSING_CANCELLED_WO(c)
          iRetVal = WorkOrderDetailingPolicy.updateRecordStatus(objPWODP.iWorkOrderNumber, objPWODP.strPersonInformed, EMSConstants.PROCESSING_CANCELLED_WO);
          if (iRetVal == -1) {
            throw new NewException("Updating failed");
      catch (Exception e) {
        vecWONumbers = null;
        throw new CSDDBException(e.getMessage());
      }finally{
        try {
          objWOPRs.close();
          objStmt.close();
          DBHandler.releaseCSDBCon(objDBConn);
        catch (Exception ex) {}
      //return vector
    //here is the code that actually updates the records
    public static int updateRecordStatus(int iWONumber, String strPerInformed , String strStatus) throws CSDDBException{
       PreparedStatement objStmt = null;
       Connection objDBConn  = null;
       String strSQL = null;
       int iRetVal = -1;
       try{
         objDBConn  = DBHandler.getCSDBCon();
         objDBConn.setAutoCommit(false);
         strSQL = "UPDATE Table SET [Detailed Mode] = ? WHERE bla bla";
         objStmt = objDBConn.prepareStatement(strSQL);
         objStmt.setString(1, strStatus);    
         objStmt.execute();
         objDBConn.commit();
         iRetVal = 1;
       }catch(Exception e){
         iRetVal = -1;
       }finally{
         try{
           objStmt.close();
           DBHandler.releaseCSDBCon(objDBConn);
         }catch(Exception ex){}
       return iRetVal;
    //Here is the code that call the records again
      public static WorkOrderDetailingPolicy getWorkOrders(int iWorkOrderNo) throws CSDDBException{
        Connection objDBConn = null;
        PreparedStatement objStmt = null;
        ResultSet objWOPRs = null;
        WorkOrderDetailingPolicy objPWODP = null;
        String strSQL = null;
        try {
          objDBConn = DBHandler.getCSDBCon();    
          strSQL = "SELECT * FROM [Work Order Detailing] WHERE [Work Order No] = ?";
          objStmt = objDBConn.prepareStatement(strSQL);
          objStmt.setInt(1, iWorkOrderNo);
           objWOPRs = objStmt.executeQuery();
          if (objWOPRs.next()) {
            objPWODP = new WorkOrderDetailingPolicy();
            objPWODP.iWorkOrderNumber = objWOPRs.getInt("Work Order No");
            //......Get Record values
        catch (Exception e) {
          objPWODP = null;
          throw new CSDDBException(e.getMessage());
        }finally{
          try {
            objWOPRs.close();
            objStmt.close();
            DBHandler.releaseCSDBCon(objDBConn);
          catch (Exception ex) {}
        return objPWODP;
      }

    Hello,
    Can you put an example of your problem online?
    Are you sure you're not having problems with case sensitive data?
    Thanks,
    Dimitri

  • Getting database error while updating data to mysql table.

    user registration.jsp < jsp user view to get input >
    <?xml version="1.0" encoding ="UTF-8"?>
    <%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x"   uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>Registeres USers Login Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <body>
    <%--debugging code--%>
    <%@ include file="debug.jsp" %>
    <table width="1049" cellpadding="5" align="center">
      <tr>
        <td width="2378"><div align="center">
          <h2 align="center"> User Registration</h2>
           <p>
         <c:url var="HmePgeURL"  value="/cw/router/home"  scope="page"/>
         <a href="${HmePgeURL}">Home</a>  <c:url var='BSPgeURL'  value='/cw/router/login'  scope='page'/>
         <a href="${BSPgeURL}">Buy or Sell</a>
         </p>
        </div></td>
      </tr>
    </table>
    <p align="center"> </p>
    <p>This website is only open to members of the De MontFort University.
    You will need a current @learner.dmu.ac.uk e-mail address in order to register.</p>
    <p> If you've already registered for one site you do not need to register again </p>
    <c:url value="/cw/router/userregistration" var="UregPgeURL" scope="page"/>
    <form name="frmregister" method="post" action="${UregPgeURL}">
      <div>
      <table width="726" height="285" border="0" align="left" cellpadding="2" cellspacing="0">
        <tr>
          <td width="157" align="right" >Name:</td>
          <td width="561" > <input name="txtname" type="text" value="${param.txtname}"/> </td>
        </tr>
          <c:if test="${!empty requestScope.reqInvalidUserName}">
          <c:out value="${requestScope.reqInvalidUserName}"/>
          </c:if>
        <tr>
          <td width="157" align="right" >Department</td>
          <td align="left" >
              <select name="txtdepartment" value="${param.txtdepartment}" >
                <option></option>
                <option value="Faculty of Art and Design">Faculty of Art and Design</option>
                <option value="Faculty of Business and Law">Faculty of Business and Law</option>
                <option value="Faculty of Computing Sciences and Engineering">Faculty of Computing Sciences and Engineering</option>
                <option value="Faculty of Health and Life Sciences">Faculty of Health and Life Sciences</option>
                <option value="Faculty of Humanities">Faculty of Humanities</option>
              </select>
          </td>
        </tr>
          <tr>
            <td align="right" >Programme</td>
            <td ><input type="text" name="txtprogramme"  value="${param.txtprogramme}" />
              (eg: BIS,SE) </td>
          </tr>
          <tr>
          <td align="right" >Telephone Number: </td>
          <td ><input name="txtphonenum" type="text" value="${param.txtphonenum}" /></td>
        </tr>
        <tr>
          <td align="right" >Date Of Birth: </td>
          <td ><input name="txtday" type="text" size="15" value="${param.txtdob}" />(of format YYYY-MM-DD)</td>
          </tr>
        <tr>
          <td align="right" >Username</td>
          <td align="left" >
              <input name="txtuserid" type="text"  size="15"  value="${param.txtuserid}" />
            (eg. p07269027 from [email protected])</td>
            <c:if test="${!empty requestScope.reqInvalidUserId}">
            <c:out value="${requestScope.reqInvalidUserId}"/>
            </c:if>
        </tr>
        <tr>
          <td align="right" >Password</td>
          <td align="left" >
              <input name="txtpassword" type="password"  size="15" value="${param.txtpassword}" />
          </td></tr>
         <c:if test="${!empty requestScope.reqInvalidPassword}">
          <c:out value="${requestScope.reqInvalidPassword}"/>
          </c:if>
        <tr>
          <td align="right" >Confirm Password </td>
          <td align="left" >
              <input name="txtpasswordconf" type="password" size="15"  />
          </td>
        </tr>
        <tr>
          <td colspan="2" align="center">
            <input name="frmsubmit" type="submit" value="Register User" />
            <input type="reset" name="Reset" value="Reset" />
          </td>
        </tr>
      </table>
         <c:if test="${!empty requestScope.reqQueryErrorMessage}">
          <c:out value="${requestScope.reqQueryErrorMessage}"/>
          </c:if>
         <c:if test="${!empty requestScope.reqInvalidUpdate}">
          <c:out value="${requestScope.reqInvalidUpdate}"/>
          </c:if>
    </div>     
    </form>
    </body>
    </html>
    proregistration.jsp ( registration process jsp)
    <?xml version="1.0" encoding ="UTF-8"?>
    <%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x"   uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
    <%-- \WEB-INF\jsp\cwjsps\probooksforsale.jsp --%>
    <%-- Probookforsale --%>
    <%-- skip field validation and provide blankpage if first time in --%>
    <c:if test="${empty param.frmsubmit}">
    <c:set var="reqOutcome" scope="request" value=" "/>
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- initial request --%>
    </c:if>
    <%-- validate txtname --%>
    <c:if test="${empty param.txtname}">
    <c:set var="reqInvalidUserName" scope="request" value= "User Name Cannot Be Empty"/>
    </c:if>
    <%-- validate txtuserid --%>
    <c:if test="${empty param.txtuserid}">
    <c:set var="reqInvalidUserId" scope="request" value= "User ID Cannot Be Empty"/>
    </c:if>
    <%-- validate txtpassword--%>
    <c:if test="${empty param.txtpassword}">
    <c:set var="reqInvalidPassword" scope="request" value= "Password Cannot Be Empty"/>
    </c:if>
    <%-- if userid invalid or username invalid  --%>
    <%-- redisplay form with originl typed-in data and with errors marked --%>
    <c:if test="${empty param.txtname or empty param.txtuserid}">
    <c:set var="reqOutcome" scope="request" value= "failure" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
    </c:if>
    <c:catch var="pgeQueryError">
    <sql:update var="pgeRowCount" scope="page" >
    <%-- insert details to trader table --%>
    INSERT INTO trader(dbTraderName,dbTraderDepartment,dbTraderProgramme,dbTraderPhoneNum ,dbTraderDOB,dbTraderPNumber,dbTraderPwd)
    VALUES(?,?,?,?,?,?,?)
    <sql:param value="${param.txtname}"/>
    <sql:param value="${param.txtdepartment}"/>
    <sql:param value="${param.txtprogramme}"/>
    <sql:param value="${param.txtphonenum}"/>
    <sql:param value="${param.txtdob}"/>
    <sql:param value="${param.txtuserid}"/>
    <sql:param value="${param.txtpassword}"/>
    </sql:update>
    </c:catch>
    <%-- check For query Error --%>
    <c:if test="${not empty pgeQueryError}">
    <c:choose>
    <%-- check duplicate record --%>
    <c:when test="${pgeQueryError.rootCause.errorCode =='1062'}">
    <c:set var="reqQueryErrorMessage" scope="request" value="User already Registered - Duplicate Record" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/>
    </c:when>
    <c:otherwise>
    <%-- database error --%>
    <c:set var="reqQueryErrorMessage" scope="request" value="Database Error" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
    </c:otherwise>
    </c:choose>
    <c:set var="reqOutcome" scope="request" value="failure" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
    </c:if>
    <%-- check For no rows returned --%>
    <c:if test="${pgeRowCount !=1}">
    <c:set var="reqInvalidUpdate" scope="request" value="*** rowCount not = 1"/>
    <c:set var="reqOutcome" scope="request" value="failure"/>
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
    </c:if>
    <%-- Otherwise --%>
    <%-- Outcome is success --%>
    <c:if test="${pgeRowCount ==1}">
    <c:set var="reqOutcome" scope="request" value="success" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/> <%-- success --%>
    </c:if>
    router.jsp  ( maps the jsp page based on success and failure)
    <?xml version="1.0" encoding ="iso-8859-1"?>
    <%-- /WEB-INF/jsp/cwjsps/router.jsp --%>
    <%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x"   uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
    <%--  setup session if one does not exist --%>
    <%@ page session="true" %>
    <%-- set up debug variable --%>
    <c:set var="sessDebug" scope="session" value="true"/>
    <%-- get pathinfo information  from the request --%>
    <%-- this defines which use case has been requested --%>
    <c:set var="pgePathInfo" scope="page" value="${pageContext.request.pathInfo}" />
    <%-- uc02 : Login --%>
    <c:if test="${pageScope.pgePathInfo =='/home'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>
    </c:if>
    <c:if test="${pageScope.pgePathInfo =='/login'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/prologin.jsp"/>
    </c:if>
    <%-- uc01 : View Details Of Books For Sale --%>
    <c:if test="${pageScope.pgePathInfo =='/viewbooksforsale'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/probooksforsale.jsp"/>
    </c:if>
    <%-- uc01 : process User registration--%>
    <c:if test="${pageScope.pgePathInfo =='/userregistration'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/proregistration.jsp"/>
    </c:if>
    <%-- uc01 : debug --%>
    <c:if test="${pageScope.pgePathInfo =='/debug'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/debug.jsp"/>
    </c:if>
    <%-- uc01 : view Traders Own View  --%>
    <c:if test="${pageScope.pgePathInfo =='/Traderhomepage'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/Traderhomepage.jsp"/>
    </c:if>
    <%-- otherwise --%>
    <jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          &nb

    Hi..
    Correcting the record from PSA is temporary solution depends on u r criticality....
    Only Solution is to correct the record at source system level... Generally Material master data record is imp so just try to fix temporarily so that it vl not affect u r loads until it is corrected at Source System level..
    Note: inform the problem to u r co-ordinator and try to correct it ASAP... and explain the temp solution(PSA correction)...
    cheers..

  • How to update sales orders using B1WS in SAP 8.8 PL18

    Hello all.
    We are having a problem updating sales orders using Sap Business One Web Service ( B1WS ).
    We are running SBO 8.8 PL18, MS-SQL 2008, and all is fine when using the SBO client.
    But when it comes to updating sales orders through B1WS we just cannot get it to work.
    We can add new orders easily without problems. Updating orders always gives this error:
    \[ORDR.PayDuMonth\]\[line: 0\] , 'Field cannot be updated (ODBC -1029)'
    We have checked and verified multiple times that our setup is correct.
    Also the WDSL files are verified.
    We can update orders just fine using the sboclient.
    And using B1WS we can basically do everything, besides updating.
    We have also tried this on different company db's, so we are quite sure this is not
    something related to some general setting we missed, but who knows?
    We have tried different ways to "assemble" the order before updating, but it always
    ends with the above error.
    Here is an example of one of the tests, where we load an order by docentry,
    increment the quantity of all open lines by '1', and then try to update it.
            protected void Page_Load(object sender, EventArgs e)
                // First we login
                string sessionId = "";
                LoginService.LoginService l_login = new LoginService.LoginService();
                LoginService.LoginDatabaseType l_dbtype = LoginService.LoginDatabaseType.dst_MSSQL2008;
                LoginService.LoginLanguage _lang = LoginService.LoginLanguage.ln_English;
                string _server = "SAP-8_8PL18";
                string _licserver = "SAP-8_8PL18:30000";
                string _db = "my_test_company";
                string _user = "manager";
                string _pass = "********";
                try
                    sessionId = l_login.Login(_server, _db, l_dbtype, true, _user, _pass,
                               _lang, true, _licserver);
                catch (Exception ex)
                    Response.Clear();
                    Response.Write(ex.Message);
                    Response.End();
                if (sessionId == "")
                    Response.Clear();
                    Response.Write("No sessionId");
                    Response.End();
                // We are logged in and have a sessionId
                // Now load a valid open order by docentry
                try
                    OrdersServiceRef.OrdersService orderService = new OrdersServiceRef.OrdersService();
                    orderService.MsgHeaderValue = new OrdersServiceRef.MsgHeader();
                    orderService.MsgHeaderValue.SessionID = sessionId;
                    orderService.MsgHeaderValue.ServiceName = OrdersServiceRef.MsgHeaderServiceName.OrdersService;
                    orderService.MsgHeaderValue.ServiceNameSpecified = true;
                    OrdersServiceRef.DocumentParams docParams = new OrdersServiceRef.DocumentParams();
                    docParams.DocEntry = 31; // Docentry of a known open order
                    docParams.DocEntrySpecified = true;
                    OrdersServiceRef.Document order = orderService.GetByParams(docParams);
                    OrdersServiceRef.DocumentDocumentLine line = null;
                    for (int i = 0; i < order.DocumentLines.Length; i++)
                        line = order.DocumentLines<i>;
                        if (line.LineStatus == OrdersServiceRef.DocumentDocumentLineLineStatus.bost_Open)
                            line.Quantity += 1;
                    orderService.Update(order);
                catch (System.Web.Services.Protocols.SoapException ex)
                    Response.Clear();
                    Response.Write(ex.Message);
                    Response.End();
                catch (Exception ex)
                    Response.Clear();
                    Response.Write(ex.Message);
                    Response.End();
                Response.Clear();
                Response.Write("All OK");
                Response.End();
    I hope that someone has an idea as to why this happens.
    The customer often changes quantity or adds lines on their orders,
    and the only way to solve it so far has been to make a new order and
    close the old one.
    Thanks in advance
    J. Thomsen

    Hi,
    Welcome you post on the forum.
    Have you checked if you only update a specific line instead of a loop?
    Thanks,
    Gordon

  • Update using dataTableModel

    Hi,
    I am trying to update an Oracle table using dataTableModel. The table does not have any foreign keys. I can correctly display the table. I display it by pages, 10 rows per page. I display four read-only columns of the PK and two Varchar2 updatable columns. The "Update Database" button has the text I grabbed from the "Java Studio Creator Field Guide":
    try {
    dataTable1Model.commit();
    dataTable1Model.execute();
    info("Update Successful");
    } catch (SQLException e) {
    log("Safeguard Prod Bom Update: " + e);
    error("Safeguard Prod Bom Update: " + e);
    return null;
    When I press the button I get the following error:
    [Sun][Oracle JDBC Driver]Unable to determine the type of the specified object.
    Any help would be greatly appreciated!
    Thanks
    Slava

    Following Gail's advice, I am posting the full stack trace:
    Exception Handler
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: javax.faces.FacesException
    #{Page1.button1_action}: javax.faces.el.EvaluationException: java.sql.SQLException: [Sun][Oracle JDBC Driver][Oracle]ORA-00921: unexpected end of SQL command
    Possible Source of Error:
    Class Name: com.sun.faces.application.ActionListenerImpl
    File Name: ActionListenerImpl.java
    Method Name: processAction
    Line Number: 78
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
    javax.faces.component.UICommand.broadcast(UICommand.java:312)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    java.lang.Thread.run(Thread.java:534)
    Exception Details: javax.faces.el.EvaluationException
    java.sql.SQLException: [Sun][Oracle JDBC Driver][Oracle]ORA-00921: unexpected end of SQL command
    Possible Source of Error:
    Class Name: com.sun.faces.el.MethodBindingImpl
    File Name: MethodBindingImpl.java
    Method Name: invoke
    Line Number: 130
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
    javax.faces.component.UICommand.broadcast(UICommand.java:312)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    java.lang.Thread.run(Thread.java:534)
    Exception Details: java.sql.SQLException
    [Sun][Oracle JDBC Driver][Oracle]ORA-00921: unexpected end of SQL command
    Possible Source of Error:
    Class Name: com.sun.sql.jdbc.base.BaseExceptions
    File Name: null
    Method Name: createException
    Line Number: -1
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    com.sun.sql.jdbc.base.BaseExceptions.createException(Unknown Source)
    com.sun.sql.jdbc.base.BaseExceptions.getException(Unknown Source)
    com.sun.sql.jdbc.oracle.OracleImplStatement.prepare(Unknown Source)
    com.sun.sql.jdbc.base.BaseImplStatement.prepare(Unknown Source)
    com.sun.sql.jdbc.base.BasePreparedStatement.prepareSQL(Unknown Source)
    com.sun.sql.jdbc.base.BaseStatement.preProcessSQL(Unknown Source)
    com.sun.sql.jdbc.base.BasePreparedStatement.(Unknown Source)
    com.sun.sql.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
    com.sun.sql.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
    com.sun.jsfcl.data.RowSetDataModel.commit(Unknown Source)
    musicupdate.Page1.button1_action(Page1.java:187)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
    javax.faces.component.UICommand.broadcast(UICommand.java:312)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    java.lang.Thread.run(Thread.java:534)

  • "SharePoint list itme update error : Invalid data has been used to update the list item. The field you are trying to update may be read only."

    Hi Everyone,
    i am facing one problem ...
    when i am updating an SharePoint List item, it is throwing above error....
    This is my code......
     try
                    tbl = getListDateTable("NCR");
                    DataTable dt = tbl;
                    oWebsite = mysite.OpenWeb();
                    oList = oWebsite.Lists["NCR"];
                    SPListItem itemToUpdate = null;
                    foreach (SPListItem listItem in oList.Items)
                        listItem.Update();
                        workOrderID = Convert.ToInt32(txtTitle.Text);
                        itemToUpdate = listItem;
                    //SPListItem itemToUpdate = oList.GetItemById(workOrderID);
                    //itemToUpdate.Fields["Title"].ReadOnlyField = false;
                    //string str = ddlStatus.SelectedValue;
                    itemToUpdate["Title"] = txtTitle.Text;
                    itemToUpdate["JobNumber"] = txtJobNumber.Text;
                    itemToUpdate["PartNumber"] = txtPartNumber.Text;
                    itemToUpdate["PartDescription"] = txtPartDescription.Text;
                    //itemToUpdate["RequiredBy"] = txtRequiredBy.Text;
                    itemToUpdate["ReportedBy"] = txtReportedBy.Text;
                    itemToUpdate["WrittenBy"] = txtWrittenBy.Text;
                    //itemToUpdate["DateOpened"] = txtDateOpened.SelectedDate;
                    //itemToUpdate["DateClosed"] = txtDateClosed.SelectedDate;
                    itemToUpdate.Update();
                    oList.Update();
                   // bind();
                catch (Exception ex)
                    throw ex;
    Thanks
    viswanath

    Hi Viswanath,
    If you are using People/User Type Field Column then use below code methord
    SPUser user = web.EnsureUser(loginName);
    item["UserTypeFieldName"] = user;
    Lookup Type Field Column then use below code methord
    public static SPFieldLookupValue GetLookupFieldFromValue(string lookupValue,string lookupSourceColumn, SPList lookupSourceList)
    SPFieldLookupValue value = null;
    SPQuery query = new SPQuery();
    query.Query = "<Where><Eq><FieldRef Name='" + lookupSourceColumn + "'/><Value Type='Text'>" + lookupValue + "</Value></Eq></Where>";
    SPListItemCollection listItems = lookupSourceList.GetItems(query);
    if(listItems.Count > 0 )
    value = new SPFieldLookupValue(listItems[0].ID,lookupValue);
    return value;
    item["LookupField"] = GetLookupFieldFromValue(lookupfieldValue, lookupSourceColumn, listName);
    Please mark the replies as answers if they help or unmark if not.

  • Late 2009 21.5 Inch iMac not updating to Snow Leopard 10.6.4

    I recently took my Late 2009 21.5-inch iMac (1TB HD) to the Apple Store to get it fixed due to a hard drive crash. I got the hard drive replaced and I thought everything was back to normal. Today, I saw Apple had released a beta for FaceTime on the Mac. I downloaded this, started to install it, and it told me I was missing a critical security patch (2010-005). I ran software update, and it said all my software was up to date, so I went to apple.com and downloaded it directly. It started to install and when I got to the hard disk destination, it told me that my hard drive (Macintosh HD) doesn't meet the system requirements. Well, I looked up the requirements, and the only requirement was Snow Leopard 10.6.4. I went into about my mac from the Apple menu and saw that I was running 10.6.3. This confused me further because I had run software update, and I suspected software update would catch an OS update. Anyway, I went to apple.com to download Snow Leopard 10.6.4 directly since software update didn't catch it. I choose the combo pack first, and I didn't have any luck installing it. It did the exact same thing the security update did. I got to the hard disk destination, and it told me the volume didn't meet the requirements. I then tried the regular update and got the same results. Starting to get confused, I checked what the requirements were for Snow Leopard 10.6.4. The only requirement was to have Snow Leopard 10.6.3. This is where I don't understand what's happening. I am already running 10.6.3. Since that was the only requirement, shouldn't I be able to install it? Please help me out. I'm SUPER confused. Oh and sorry if I'm rambling a little. I'm trying to be as descriptive as possible to get this fixed. Thanks in advance.

    Alright. I finally got 10.6.4 installed. I ended up reinstalling Snow Leopard from the install disk like originally planned. The problem was that when Apple replaced my hard drive, they preinstalled a Mac Mini version of Snow Leopard on to it which was up to date for that piece of hardware and is why software update didn't catch the update. However, since I have an iMac, it got confused because it was running a Mac Mini version of OS X, thus not letting me install 10.6.4. After I wiped the drive and installed from the disk, I ran software update, and, sure enough, the 10.6.4 update was there. I thought I would just share my findings for everyone out there with the same problem. And thank you baltwo for all of your help. I appreciate it.

  • My new mac mini downloaded a firmware update. I saw this in apps but gave an error when launching. Now what?

    Yesterday I received a new mac mini (actually, a refurbished one that was originally released in July, sold from Apple).  It downloaded a bunch of stuff when I did the software update, including an EFI Firmware update for the mac mini.
    As far as I can tell everything ran just fine.  However, I noticed in my applications folder (possibly under "utilities" though I may be wrong), an item with the circle/slash through it.  It was the firmware update.  I tried to open it and I received a message that the application could not be opened because of a problem when downloading it.
    I deleted the file, hoping the software update would catch it again, no luck.
    This is a new system and I'm hesitant to start deleting receipts, library files, etc., on my own.
    I did unplug it and re-boot.  No change.
    I checked for firmware updates and looked at my system info and it looks like I have the current version.
    I tried to manually download the latest firmware update for my system and it told me that this software wasn't for my system, although I'm sure I downloaded the right file for my system.
    Why would that app have the circle/slash through it but looked like it may have run based on my system info?
    Should I do anything else at this point or just leave it alone?
    Thanks.

    I have a Mac Mini (mid-2011) with that same app circled out. I just left it as is in Utilities since I have no idea what it is and it's not hurting anything. Unfortunately, it won't show up in Installed Software.
    You said you deleted the app file from Utilities. Is the Mac mini EFI Firmware Update.app still in your Trash? If so, why not just put it back and not worry about it?
    As far as I know the firmware is installed. Check your System info by clicking  -> About This Mac -> More Info....-> System Report. Check the Hardware Overview and the Boot ROM Version:. It should be the same as my Mac Mini below if the EFI 1.3 firmware was installed.
    Here's the link where the download resides. Note that it's for mid-2011 Mac Mini.

  • Mysql update form  a form in jsp page

    <?xml version="1.0" encoding ="iso-8859-1"?>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <%-- set up database source --%>
    <c:if test="${empty sessionScope.mc07kpkDataSource}">
    <sql:setDataSource
    var="mc07kpkdbDataSource"
    driver="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost/mc07kpkdb"
    scope="session"
    user="mc07kpk_web"
    password="beGin+35"
    />
    </c:if>
    <%-- insert details to trader table --%>
    <c:catch var="insertDetails">
    <sql:update dataSource="${sessionscope.mc07kpkDataSource}">
    INSERT into trader (dbTraderPNumber,dbTraderPwd,dbTraderName,dbTraderEmail,dbTraderProgramme,dbTraderDOB,dbTraderPhoneNum,dbTraderDepartment)
    VALUES (?,?,?,?,?,?,?,?)
    <sql:param value="${param.txtname}"/>
    <sql:param value="${param.txtdepartment}"/>
    <sql:param value="${param.txtprogramme}"/>
    <sql:param value="${param.txtphonenum}"/>
    <sql:dateParam value="${txtdob}" type="date" />
    <sql:param value="${param.txtuserid}"/>
    <sql:param value="${param.txtpassword}"/>
    </sql:update>
    </c:catch>
    <c:if test="${!empty insertFailure}">
    <p><b> User Registration Failed</b></p>
    </c:if>
    <head>
    <title>Registeres USers Login Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <body>
    <form action="" method="post" name="frmLogin" >
    <table border="0" align="right" cellpadding="2" cellspacing="0">
    <tr>
              <td width="64">Username:</td>
    <td width="60"><input name="txtLUserId" type="text" size="10"></td>
    </tr>
         <tr>
    <td width="64">Password:</td>
         <td width="60"><input name="txtLPassword" type="password" size="10"></td>
    </tr>
         <tr>
         <td colspan="2"align="center">
         <input name="btnLogin" type="submit" onclick="Traderhomepage.jsp">
         </td>
         </tr>
    </table>
    </form>
    <p> </p>
    <p> </p>
    <table width="1049" cellpadding="5" align="center">
    <tr>
    <td width="2378"><div align="center">
    <h2 align="center"> User Registration</h2>
    <p>Home | Register | Books For Sale | Buy Or Sell</p>
    </div></td>
    </tr>
    </table>
    <p align="center"> </p>
    <p>This website is only open to members of the De MontFort University.
    You will need a current @learner.dmu.ac.uk e-mail address in order to register.</p>
    <p> If you've already registered for one site you do not need to register again </p>
    <form action="userregistration.jsp" method="get" name="userfrm" id="form1">
    <table width="726" height="285" border="0" align="left" cellpadding="2" cellspacing="0">
    <tr>
    <td width="157" align="right" >Name:</td>
    <td width="561" ><input name="txtname" type="text" id="txtname" />
    </td>
    </tr>
    <tr>
    <td width="157" align="right" >Department</td>
    <td align="left" >
    <select name="txtdepartment" id="txtdepartment" >
    <option></option>
    <option>Faculty of Art and Design</option>
    <option>Faculty of Business and Law</option>
    <option>Faculty of Computing Sciences and Engineering</option>
    <option>Faculty of Health and Life Sciences</option>
    <option>Faculty of Humanities</option>
    </select>
    </td>
    </tr>
    <tr>
    <td align="right" >Programme</td>
    <td ><input type="text" name="txtprogramme" />
    (eg: BIS,SE) </td>
    </tr>
    <tr>
    <td align="right" >Telephone Number: </td>
    <td ><input name="txtphonenum" type="text" /></td>
    </tr>
    <tr>
    <td align="right" >Date Of Birth: </td>
    <td ><input name="txtday" type="text" size="15">(of format YYYY-MM-DD)</td></td>
    </tr>
    <tr>
    <td align="right" >Username</td>
    <td align="left" >
    <input name="txtuserid" type="text" size="15"/>
    (eg. p07269027 from [email protected])</td>
    </tr>
    <tr>
    <td align="right" >Password</td>
    <td align="left" >
    <input name="txtpassword" type="password" size="15" />
    </td>
    </tr>
    <tr>
    <td align="right" >Confirm Password </td>
    <td align="left" >
    <input name="txtpasswordconf" type="password" size="15" />
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <input name="register" type="submit" value="register" />
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    please let me know the problem in updating data from the form to my database.

    userregistration.jsp ( view)
    <c:url value="/cw/router/userregistration" var="UregPgeURL" scope="page"/>
    <form action="${UregPgeURL}" method="get" >
    <div>
    <table width="726" height="285" border="0" align="left" cellpadding="2" cellspacing="0">
    <tr>
    <td width="157" align="right" >Name:</td>
    <td width="561" > <input name="txtname" type="text" value="${param.txtname}"/> </td>
    </tr>
    <c:if test="${!empty requestScope.reqInvalidUserName}">
    <c:out value="${requestScope.reqInvalidUserName}"/>
    </c:if>
    <tr>
    <td width="157" align="right" >Department</td>
    <td align="left" >
    <select name="txtdepartment" id="txtdepartment" value="${param.txtdepartment}" >
    <option></option>
    <option>Faculty of Art and Design</option>
    <option>Faculty of Business and Law</option>
    <option>Faculty of Computing Sciences and Engineering</option>
    <option>Faculty of Health and Life Sciences</option>
    <option>Faculty of Humanities</option>
    </select>
    </td>
    </tr>
    <tr>
    <td align="right" >Programme</td>
    <td ><input type="text" name="txtprogramme" value="${param.txtprogramme}" />
    (eg: BIS,SE) </td>
    </tr>
    <tr>
    <td align="right" >Telephone Number: </td>
    <td ><input name="txtphonenum" type="text" value="${param.txtphonenum}" /></td>
    </tr>
    <tr>
    <td align="right" >Date Of Birth: </td>
    <td ><input name="txtday" type="text" size="15" value="${param.txtdob}" >(of format YYYY-MM-DD)</td></tr>
    <c:if test="${!empty requestScope.reqInvalidDOB}">
    <c:out value="${requestScope.reqInvalidDOB}"/>
    </c:if>
    <tr>
    <td align="right" >Username</td>
    <td align="left" >
    <input name="txtuserid" type="text" size="15" value="${param.txtuserid}" />
    (eg. p07269027 from [email protected])</td>
    <c:if test="${!empty requestScope.reqInvalidUserId}">
    <c:out value="${requestScope.reqInvalidUserId}"/>
    </c:if>
    </tr>
    <tr>
    <td align="right" >Password</td>
    <td align="left" >
    <input name="txtpassword" type="password" size="15" value="${param.txtpassword}" />
    </td></tr>
         <c:if test="${!empty requestScope.reqInvalidPassword}">
    <c:out value="${requestScope.reqInvalidPassword}"/>
    </c:if>
    <tr>
    <td align="right" >Confirm Password </td>
    <td align="left" >
    <input name="txtpasswordconf" type="password" size="15" />
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <input name="frmsubmit" type="submit" value="Register User" />
    <input type="reset" name="Reset" value="Reset" />
    </td>
    </tr>
    </table>
         <c:if test="${!empty requestScope.reqQueryErrorMessage}">
    <c:out value="${requestScope.reqQueryErrorMessage}"/>
    </c:if>
         <c:if test="${!empty requestScope.reqInvalidUpdate}">
    <c:out value="${requestScope.reqInvalidUpdate}"/>
    </c:if>
    proregistration.jsp(process page)
    <?xml version="1.0" encoding ="UTF-8"?>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <c:if test="${empty param.frmsubmit}">
    <c:set var="reqOutcome" scope="request" value=" " />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- initial request --%>
    </c:if>
    <-- validate txtname --%>
    <c:if test="${empty param.txtname }">
    <c:set var=reqInvalidUserName" scope="request" value= "User Name Cannot Be Empty" />
    </c:if>
    <-- validate txtuserid --%>
    <c:if test="${empty param.txtuserid }">
    <c:set var=reqInvalidUserId" scope="request" value= "User ID Cannot Be Empty" />
    </c:if>
    <-- validate txtpassword--%>
    <c:if test="${empty param.txtpassword }">
    <c:set var=reqInvalidPassword" scope="request" value= "Password Cannot Be Empty" />
    </c:if>
    <-- validate txtdob --%>
    <c:if test="${empty param.txtdob }">
    <c:set var=reqInvalidDOB" scope="request" value= "Invalid Date Of Birth" />
    </c:if>
    <-- if userid invalid or username invalid --%>
    <-- redisplay form with originl typed-in data and with errors marked --%>
    <c:if test="${empty param.txtname or empty param.txtuserid }">
    <c:set var=reqOutcome" scope="request" value= "failure" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
    </c:if>
    <%-- check for query errors --%>
    <c:catch var="insertQueryError">
    <sql:update
    var="pgeRowCount"
    scope="page" >
    <%-- insert details to trader table --%>
    <c:catch var="pgeQueryError">
    <sql:update var="pgeRowCount" scope="page">
    INSERT into trader (dbTraderName,dbTraderDepartment,dbTraderProgramme,dbTraderPhoneNum ,dbTraderDOB,dbTraderPNumber,dbTraderPwd)
    VALUES (?,?,?,?,?,?,?,?)
    <sql:param value="${param.txtname}"/>
    <sql:param value="${param.txtdepartment}"/>
    <sql:param value="${param.txtprogramme}"/>
    <sql:param value="${param.txtphonenum}"/>
    <sql:dateParam value="${txtdob}" type="date" />
    <sql:param value="${param.txtuserid}"/>
    <sql:param value="${param.txtpassword}"/>
    </sql:update>
    </c:catch>
    <%-- check For query Error -- %>
    <c: if test="${not empty pgeQueryError}">
    <c:choose>
    <%-- check For duplicate record --%>
    <c:when test="${pgeQueryError.rootcause.errorCode == '1062'}">
    <c:set var="reqQueryErrorMessage" scope="request" value="Duplicate Record" />
    </c:when>
    <c:otherwise>
    <%-- database error --%>
    <c:set var="reqQueryErrorMessage" scope="request" value="Database Error" />
    </c:otherwise>
    </c:choose>
    <c:set var="reqOutcome" scope="request" value="failure" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
    </c:if>
    <%-- check For no rows returned --%>
    <c:if test="${pgeRowCount !=1}">
    <c:set var="reqInvalidUpdate" scope="request" value="*** rowCount not = 1"/>
    <c:set var="reqOutcome" scope="request" value="failure" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
    </c:if>
    <%-- Otherwise --%>
    <%-- Outcome is success --%>
    <c:set var="reqOutcome" scope="request" value="success" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/> <%-- success --%>
    </c:if>
    Router.jsp (mapping URL)
    <%-- setup session if one does not exist --%>
    <%@ page session="true" %>
    <%-- set up debug variable --%>
    <c:set var="sessDebug" scope="session" value="false" />
    <%-- get pathinfo information from the request --%>
    <%-- this defines which use case has been requested --%>
    <c:set var="pgePathInfo" scope="page" value="${pageContext.request.pathInfo}" />
    <%-- uc02 : Login --%>
    <c:if test="${pageScope.pgePathInfo =='/home'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>
    </c:if>
    <c:if test="${pageScope.pgePathInfo =='/login'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/>
    </c:if>
    <%-- uc01 : View Details Of Books For Sale --%>
    <c:if test="${pageScope.pgePathInfo =='/viewbooksforsale'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/viewbooksforsale.jsp"/>
    </c:if>
    <%-- uc01 : User registration--%>
    <c:if test="${pageScope.pgePathInfo =='/userregistration'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
    </c:if>
    <%-- uc01 : debug --%>
    <c:if test="${pageScope.pgePathInfo =='/debug'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/debug.jsp"/>
    </c:if>
    <%-- otherwise --%>
    <jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>
    debug.jsp
    <%-- \WEB-INF\jsp\cw\debug.jsp --%>
    <%-- debug include file --%>
    <c:if test ="${sessionScope.sessDebug == 'true'}">
    <table border="1">
    <c:forEach var="item" items="${cookie}">
    <tr>
    <td>inbound cookies</td>
    <td>${item.key}</td>
    <td>${item.value.value}</td> <%--note the .value.value--%>
    </tr>
    </c:forEach>
    <c:forEach var="item" items="${param}">
    <tr>
    <td>inbound parameter</td>
    <td>${item.key}</td>
    <td>${item.value}</td> <%--note the .value--%>
    </tr>
    </c:forEach>
    <c:forEach var="item" items="${requestScope}">
    <tr>
    <td>request scope object</td>
    <td>${item.key}</td>
    <td>${item.value.value}</td>
    </tr>
    </c:forEach>
    <c:forEach var="item" items="${sessionScope}">
    <tr>
    <td>session scope object</td>
    <td>${item.key}</td>
    <td>${item.value.value}</td>
    </tr>
    </c:forEach>
    </table>
    </c:if>
    1. cannot update mysql table with values from user registration form.
    2. if i turn the sessionScope = "true" in router.jsp i get error while accessing userregistration.jsp

  • Updating item via B1WS

    Hi all,
    I'm trying to update an item via ItemsService and i'm getting the error ODBC -2035 related with "item exists".
    I'm using this code:
                bool updated = false;
                try
                    ItemsService.ItemsService itemServ = new LogisticPda.ItemsService.ItemsService();
                    ItemsService.MsgHeader cabServ = new MsgHeader();
                    cabServ.SessionID = sessionId;
                    cabServ.ServiceName = MsgHeaderServiceName.ItemsService;
                    cabServ.ServiceNameSpecified = true;
                    itemServ.MsgHeaderValue = cabServ;
                    ItemParams pars = new ItemParams();
                    pars.ItemCode = itemCode;
                    Item item = itemServ.GetByParams(pars);
                    if (item != null)
                        item.U_ITOP_Ubi = ubi;
                        itemServ.Update(item);
                        updated = true;
                catch (Exception ex)
                    string msj = ex.Message;
    I know that the item exists but i want to update it using "Update(item)" method. SAP BO 2007 A SP01 PL06.
    Regards,

    Hi Nauzet,
    Some questions to try to find out where the problem comes from:
    1. Have you tried to do the same Update operation but changing another parameter in the Item (not a UDF)?
    2. If you work without UDFs, does the Item Update work fine with B1WS?
    There is a sample provided with B1WS doing an update on an item, maybe you can test if the sample works fine in your current version.
    3. Which fields are you filling inside the Item object? Mabye there is a similar problem as for the BPs we discovered sometime ago (Re: Update Business Partner via SAP Business One Webservices).
    Once you have find out the exact scenario to reproduce the problem please let me know, I have an 8.8 version I can try with to see if it has been fixed in 8.8 or not.
    Regards
    Trinidad.

  • Auto update using AIR 2.0

    This is my code
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" fontWeight="bold" textDecoration="
    underline" creationComplete="preCheckForUpdate()">
     <mx:Script> 
    <![CDATA[
    import air.update.ApplicationUpdater; 
    import flash.events.ErrorEvent; 
    import flash.events.IOErrorEvent; 
    import air.update.ApplicationUpdaterUI; 
    import air.update.events.UpdateEvent; 
    import mx.controls.Alert; 
    private var appUpdater:ApplicationUpdater = new ApplicationUpdater(); 
    private var updateXMLURL:String = "http://localhost/AutoUpdate1/update.xml"; 
    // Pre-read the server-side XML file to look for <force>yes</force>  
    private function preCheckForUpdate():void{
    try{
    var loader:URLLoader = new URLLoader(); 
    loader.addEventListener(Event.COMPLETE, checkForUpdate);
    loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
    // Just in case we can't read the update.xml loader.load(
    new URLRequest(updateXMLURL));}
    catch(e:Error){
    Alert.show(e.toString());
    private function checkForUpdate(event:Event):void{
    try{
    setApplicationVersion();
    // Find the current version so we can show it below  
    var myXML:XML = new XML(event.target.data); 
    namespace items = "http://ns.adobe.com/air/framework/update/description/2.0beta2"; 
    use namespace items; 
    var forceUpdate:String = myXML.force; 
    appUpdater.updateURL = updateXMLURL;
    // Server-side XML file describing update  
    //appUpdater.isCheckForUpdateVisible = false; // We won't ask permission to check for an update  
    // If <force>yes</force> was found above, turn off the download and install dialogs  
    /* if(forceUpdate.toLowerCase() == "yes") { 
    appUpdater.isDownloadUpdateVisible = false;
    appUpdater.isInstallUpdateVisible = false;
    appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate);
    // Once initialized, run onUpdate  
    //appUpdater.addEventListener(ErrorEvent.ERROR, onError); // If something goes wrong, run onError  
    appUpdater.initialize();
    // Initialize the update framework}
    catch(e:Error){
    Alert.show(e.toString());
    private function onError(event:ErrorEvent):void { 
    Alert.show(event.toString());
    private function onIOError(event:IOErrorEvent):void 
    Alert.show(event.toString());
    trace("Error loading URL.");}
    private function onUpdate(event:UpdateEvent):void{
    try{
    appUpdater.checkNow();
    // Go check for an update now}
    catch(e:Error){
    Alert.show(e.toString());
    // Find the current version for our Label below  
    private function setApplicationVersion():void{
    try{
    var appXML:XML = NativeApplication.nativeApplication.applicationDescriptor; 
    var ns:Namespace = appXML.namespace(); ver.text =
    "Current version is " + appXML.ns::version;}
    catch(e:Error){
    Alert.show(e.toString());
    ]]>
    </mx:Script> 
    <mx:WipeRight  id="slowright" duration="1000"/>
     <mx:Label x="93" y="135" text="Welcome to Rapidcare" fontSize="36" fontFamily="Times New Roman" color="#3C0B1F"creationCompleteEffect="
    {slowright}" height="89"/>
     <mx:Label x="178" y="186" color="#F81908" fontSize="36" fontWeight="bold" textDecoration="normal" id="ver"/>
     <mx:Label x="93" y="279" text="Hai"/>
     </mx:WindowedApplication>
    IT throws an error in this appUpdater.checkNow();
    Error #2044: Unhandled updateError:. text=unknown update version
    Please any provide solution for this
    Regards,
    Jayagopal

    Hi Jayagopal,
    The error you are getting might be from the fact that you are using an invalid namespace within your update.xml. Can you make sure that the specified namespace from the update.xml is the same with the following one xmlns="http://ns.adobe.com/air/framework/update/description/1.0" and then then try to reproduce this issue?
    Here is the update.xml which i've used when trying to reproduce your issue:
    <?xml version="1.0" encoding="utf-8"?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
      <version>v1.1</version>
      <url>http://localhost/AutoUpdate1/update.air</url>
      <description><![CDATA[
    Version 1.1. This new version includes:
        * Feature 1
        * Feature 2
        * Feature 3       
      ]]></description>
    </update>
    If you can still reproduce this issue can you also attach your update.xml or host your air app and update.xml on an external server from where I could access them?
    Hope this helps you,
    -Catalin

  • Force-installing Xsan 1.4.2 File System Update on Leopard

    If you didn't read the README and upgraded to Leopard prior to installing the Xsan 1.4.2 update, you're in a pickle. Xsan prior to 1.4.2 won't work on Leopard, and once you've upgraded to Leopard, you can't install the 1.4.2 update. Catch-22. Fixable, though.
    NOTE: This is a hack. It may seriously screw up your system. Worst case, though, you'll have to reinstall Tiger anyway, so what the hey.
    First, update all the other Xsan servers & clients to 1.4.2 and restart everything. Follow the upgrade instructions at:
    http://docs.info.apple.com/article.html?artnum=305035
    Now, on the Leopard-upgraded workstation(s) where Xsan no longer works, do the following:
    1. Download the Xsan 1.4.2 File System Update:
    http://www.apple.com/support/downloads/xsan142filesystemupdate.html
    And, if you need the admin update:
    http://www.apple.com/support/downloads/xsan142adminupdate.html
    2. Mount the Xsan File System Update 1.4.2 disk image.
    3. Right-click the XsanFilesystemUpdate.mpkg file and choose "Show Package Contents"
    4. Browse to Contents:Installers, right-click the XsanFilesystem.pkg file, and choose "Show Package Contents"
    5. In Contents, drag the Archive.pax.gz file to your desktop.
    6. Open Terminal.app and type "sudo su -" at the prompt. Enter your password to authenticate the sudo session. You are now logged in as root, so don't do anything stupid, because you can completely hose your system. You have been warned.
    7. Type the following commands, exactly as written. Note the spaces etc. (copy the text into a monospace font if you're not sure):
    # cd /
    # mv /Users/<your username/Desktop/Archive.pax.gz .
    # gunzip Archive.pax.gz
    # pax -rp e -f Archive.pax
    # exit
    8. Reboot.
    9. Install the Xsan File System Update 1.4.2 from the disk image, as well as the admin update if you need it. Both should install successfully.
    *What did you just do?* When you run the Xsan updater, it checks for various software versions, namely Mac OS X and Xsan. If it finds the wrong versions, it won't run the update. The above procedure "force-installs" the basic files from the 1.4.2 update--which are contained in the Archive.pax.gz archive--so that when you run the updater in Step 9, it finds an acceptable version of Xsan and proceeds with the installation.

    Let me clarify the second line of the terminal commands in Step 7:
    mv /Users/(your username)/Desktop/Archive.pax.gz .
    Replace (your username) with your account's short name; e.g. if your account is "bubba" then it would read:
    mv /Users/bubba/Desktop/Archive.pax.gz .
    Or, "mv(space)/Users/bubba/Desktop/Archive.pax.gz(space)."

  • Updating a table on DB considering changes on a grid in Csharp

    I'm filling a Data Grid in C# (WinForms) via a System.Data.DataTable. DataTable is filled from a DB table via ODP.
    I have a data navigator in Data Grid for updating, deleting and inserting rows.
    I want to use DataTable to commit all changes made in Data Grid to the database.
    I have to use OracleDataAdapter but I couldn't figure out how to achieve this.
    What kind of a CommandText should I use to achieve all three commands (update, delete, insert)?
    The code below didn't work (maybe because CommandText I inserted is not appropriate)
    public void ExecuteNonQuery(string commandText, OracleCommand oracleCommand, CommandType commandType, DataTable dataTable)
    oracleCommand.CommandText = commandText;
    oracleCommand.CommandType = commandType;
    try
    oracleCommand.Connection = m_Connection;
    OracleDataAdapter oracleDataAdapter = new OracleDataAdapter(oracleCommand);
    oracleDataAdapter.Update(dataTable);
    catch (Exception)
    LoggerTrace.Instance.Write(TraceEventType.Error, LoggerTrace.LoggerTraceSource.DatabaseManagerError, "Query could not be executed!");
    throw;
    }

    Hey,
    use the update method of the dataadapter object and the adatagrid input object: <adapater>.update(<datagrid>)
    but i think you post in the wrong forum.
    Use the knowledge base of Microsoft and .Net!
    Marcel
    Edited by: Marcel S. on 27.05.2013 11:12

  • Database table updation with XML Document data

    import java.io.*;
    import java.lang.*;
    import java.net.URL;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import oracle.xml.sql.dml.OracleXMLSave;
    import org.w3c.dom.Document;
    public class updateXMLData
    public static void main( String argv[] ) throws SQLException,Exception
    String tabName = "emp";
    Connection conn = null;
    String xmlString;
    Document doc;
    URL filename;
    try
    //init a JDBC connection using Oracle's JDBC Drivers
    String host = "maple"; // change,these won't work
    String port = "1521";
    String sid = "PBSI";
    String s1 = "jdbc:oracle:thin:@" + host + ":" + port + ":" + sid;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection( s1,"scott","tiger");
    // Instructions for updating the database rows from XML Document
    OracleXMLSave sav = new OracleXMLSave(conn,tabName);
    filename = sav.getURL("pbsiempupd.xml");
    sav.setRowTag("EMP");
    String[] tempArr = new String[2];
    tempArr[0]="EMPNO";
    tempArr[1]="ENAME";
    sav.setKeyColumnList(tempArr);
    sav.setUpdateColumnList(tempArr);
    int noRows = sav.updateXML(filename);
    System.out.println("No of rows updated : " + noRows);
    catch (SQLException se)
    System.out.println("An SQL exception has occured ");
    System.out.println("The error code is : " + se.getErrorCode());
    System.out.println("The SQL State is : " + se.getSQLState());
    System.out.println("The message is : " + se.getMessage());
    catch (Exception e)
    System.out.println("Unknown exception has occured");
    System.out.println("The class is : "+ e.getClass());
    System.out.println("The message is : "+e.getMessage());
    finally
    if (conn != null) conn.close();
    The input XML Document is given below :- in 'pbsiempupd.xml'
    <?xml version="1.0"?>
    <ROWSET>
    <EMP>
    <EMPNO>8888</EMPNO>
    <ENAME>RAO THOTAKURA</ENAME>
    </EMP>
    <EMP>
    <EMPNO>9999</EMPNO>
    <ENAME>BAVA MANI</ENAME>
    </EMP>
    <EMP>
    <EMPNO>7777</EMPNO>
    <ENAME>SRINIVAS M</ENAME>
    </EMP>
    </ROWSET>
    After executing this class with 'java updataXMLData' I'm getting following runtime error message :-
    Unknown exception has occured
    The class is : class oracle.xml.sql.OracleXMLSQLException
    The message is : Exception 'java.sql.SQLException:Missing IN or OUT parameter at index:: 1'
    encountered during processing ROW element 0All prior XML row changes were rolled back.
    in the XML document.
    Please anybody could explain how to solve it.
    Thanks
    Sambasivarao Thotakura

    See my reply to your other question. thanks.

Maybe you are looking for

  • Using a Vizio HDTV as an external monitor

    I've bought the right connector and cable to connect my MacBook to an external monitor, and with two of our HDTVs, it works great. The problem is, it doesn't work with the TV I want it to. We have a Vizio 27", a Phillips 47", and a Sony Bravia 52". O

  • Rented Movie won't sync. "cant read or write to disk"

    I rented a movie, tried to movie it to my touch, and about 1/3 of the way thru, it says it cannot copy to the iPod, the disk could not be read from or written to" What. The. Heck. Why would it do that? anyone?

  • Why are the iPhotos not listed in the finder?

    why are the iPhotos not listed in the finder?

  • Dynamic Streaming only can work in localhost.

    Could anybody tell me why the dynamic streaming can only work in the host machine but not others? Is it related to my setting?  I install the latest version of apache before the FMS4.  After the installation completed, I copied webroot, applications

  • Moving File problem after FTP

    I got very strange problem here. I am using the Tomcat API for FTP purpose.When I am done with FTP files I need to move files to local directory. What is happening is after FTP files are not moving to local dirctory. However, If I run only the move f