Netbeans 6.0 web page Error adding data to mySQL table - date datatype

Netbeans 6.0 web page, trying to add data into a mySQL table. The table has a datetime datatype. The add does not work when trying to add a record. I have no problems when I add a record to a table without a date datatype. Here is my code.
RowKey rk = fwusersDataProvider.appendRow();
fwusersDataProvider.setCursorRow(rk);
fwusersDataProvider.setValue("fwusers.userid", userid);
fwusersDataProvider.setValue("fwusers.password", pwd);
fwusersDataProvider.setValue("fwusers.firstName", "A");
fwusersDataProvider.setValue("fwusers.lastName", "K");
fwusersDataProvider.setValue("fwusers.middleName", "");
fwusersDataProvider.setValue("fwusers.companyName", "DCC");
fwusersDataProvider.setValue("fwusers.password1", "");
fwusersDataProvider.setValue("fwusers.password2", "");
fwusersDataProvider.setValue("fwusers.password3", "");
Calendar cal= Calendar.getInstance();
java.sql.Date sqlDate = new java.sql.Date(cal.getTime().getTime() );
fwusersDataProvider.setValue("fwusers.dateCreated", sqlDate );
fwusersDataProvider.setValue("fwusers.group", "worker");
fwusersDataProvider.commitChanges();
fwusersDataProvider.refresh();

bkrivensky wrote:
Netbeans 6.0 web page, trying to add data into a mySQL table. The table has a datetime datatype. The add does not work when trying to add a record. Don't suppose you want to share the error message you're getting do ya? Go on, be a sport.

Similar Messages

  • Netbeans 6.0 web page JavaScrip onClick of a textbox

    I am working in Netbeans 6.0 web page with a textbox named txtUserid and a button named btnSearch. When I make a change to this this textbox (txtUserid), I want the btnSearch button to be disabled. This is what I have:
    txtUserid, onChange = document.forms[0].elements['btnSearch'].disabled = true;
    When I run the web page, I get a javascript error:
    Line: 1
    Char: 1
    Error: 'document.forms.0.elements.btnSearch' is null or not an object

    bkrivensky wrote:
    Netbeans 6.0 web page, trying to add data into a mySQL table. The table has a datetime datatype. The add does not work when trying to add a record. Don't suppose you want to share the error message you're getting do ya? Go on, be a sport.

  • How can we delete SID table data and Text table data

    Hi,
    How can we delete SID table data and Text table data of any
    InfoObject.

    Hi,
    Go to transaction SE14, give the technical name if the table:
    /BIC/T<InfoObject Name>   for Text Table
    /BIC/S<InfoObject Name>  for SID Table
    Select "Table" in the given 4 options below  &  hit Edit button.
    in the next screen select "Direct"
    & also select "detele data" radio button.
    & hit  "Activate & adjust database".
    this will delete the complete data from the tables.
    Note: before deleting the SID's make sure of the consequences & after effects.
    Also the SID gets generated the next time you load master data/transaction data only for those records which were loaded..
    Regards,
    Iliyas

  • How to load Matrix report data into basic table data using ODI

    Hi,
    How to load Matrix report data into basic table data using oracle Data Integrator ?
    Requirement Description:
    Following is the matrix report data:
    JOB                       DEPT10                DEPT20 
    ANALYST                                           6000
    CLERK                   1300                     1900 Need to convert it into below format:
    JOB                             Dept                        Salary
    ANALYST                  DEPT10     
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        Thanks for your help in advance. Let me know if any further explanation is required.

    Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
    If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    VALUES
    :job,
    :deptsal,
    :saledesc
    Therefore you are using bind variables from source to load data into target.
    Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
    Hope this helps.
    BUT remember that this feature only came out in Oracle 11g.

  • Accesing to the BPM Composer Web Page - Error : CurrencyKey not preserved

    Hi there,
    I've recently installed the Soa Suite 11.1.1.4, and when i logged in th BPM Composer and I try to use any option of the web page, i can see in the log the next error :
    ]] Root cause of ServletException.
    java.lang.AssertionError: CurrencyKey not preserved
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:531)
    With this error i can't navigate inside the BPM Composer Web page, any idea about this problem?
    Regards

    The solution to this issue, is adding in the CMDLINE of the Register Service the next value -da:org.apache.myfaces.trinidad.component.UIXCollection, with this option we disable the assertion of java, after that i can work with the BPM Composer Web Application

  • Why does the start up web page say my Firefox is out of date; and the link I click to to fix it says it IS up to date? Was the first one a lie?

    Which is the lie, the first page or the second web page?
    The details are that my first time user impression is that Firefox is a liar, or that the web page is developed by liars; or that the program doesn't function well as it said that my Firefox was out of date, but the link to fix the problem said that is was up to date. So, the only purpose of the statement that it was out of date was to get me to register, and that the company doesn't care what I think about it. I am totally open to another logical explanation. I mean you could give me an illogical explanation based on emotion but I'll just reject it and then uninstall Firefox because, well, that should be obvious. So, if it wasn't a lie, then the second page was a lie.... which is it?

    If you get a pop-up message asking to update Firefox or plugins then such a message is likely a scam and you should never respond to such an alert to avoid getting infected with malware.
    *Only update Firefox via "Help > About" or by downloading and installing Firefox from the Mozilla server and never via a pop-up or link on a web page.
    *Plugins should only be updated via the plugin itself or by visiting the home page of the plugin.
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Web page error (spry widget) photo gallery - Help :(

    Hi, I am having an error on my website that states:
    SpryPanelSet.js requires SpryWidget.js
    SpryFadingPanels.js requires SpryPanelSet.js
    SpryImageSlideShow.js requires SpryWidget.js
    SpryPanelAndZoomPlugin.js requires SpryImageSlideShow.js
    I have posted on this error before and no one seems to have an answer for me that works so far.
    I had placed the below script in and it had worked for several months but now it is acting up again...
    <script src="http://pleysier.com.au/Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    I have even tried replacing the script with other suggested scripts but it is still not working?
    It is working in my local server but not in the remote. From what I cant tell, both files in the local and remote server are the same size.
    Here is my website:
    http://reg.centraldoor.ca/
    Thank you

    It looks like you are trying to include a copy of "SpryWidget.js" hosted on another person's website. However, it appears that person has removed this file from their server. (If you check the link, it goes to a web page, instead of opening the JavaScript file.)
    Recommend that you put a copy of this file on your website, and then update the src attribute in your script tag to point to your own copy of this file.
    If you do not already have a copy, you can obtain this file from here: https://github.com/adobe/Spry

  • Web page error in BPS after upgrade

    Hi,
    We have recetly upgraded our BW server from 7.01 SP5 to 7.3 SP4. Now when we run the BPS web page, it doesn't show anything except an error in the left bottom of the screen:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)
    Timestamp: Wed, 29 Feb 2012 18:27:07 UTC
    Message: Access is denied.
    Line: 485
    Char: 9
    Code: 0
    URI: http://<server>:<port>/sap(bD1lbiZjPTAxMCZkPW1pbg==)/bc/bsp/sap/zpfgsp01/pm_page.htm
    Please suggest.
    Regards,
    Abhishek.

    Hi,
    You need to install Microsoft office web components to resolve the issue.
    Regards
    Shakir

  • Open Web page errors

    Hello,
    My simple open a web page logic used to always work up until recently, but now I am getting the following LabVIEW errors when I run it and my application never opens Internet Explorer:
    "Error -2147467259 occurred at Unspecified Error ..."
    "Error -2146959355 Active X error"
    LabVIEW 2012 August
    Windows 7 32-bit
    I am wondering if there is a Windows or LabVIEW service that was mistakenly turned off. I had some sluggish network performance and I ran the following recommended batch file:
    http://digital.ni.com/public.nsf/allkb/814FEF952915137686257B6B006C5F4F
    What service would cause this problem? I know it is related to Active X.
    RobL
    Attachments:
    OpenWebPage.JPG ‏30 KB

    RobL,
    I have found one of National Instruments Knowledge Base articles detailing this error in reference to ActiveX. 
    http://digital.ni.com/public.nsf/allkb/1C025F018CB5761686256C56007DD258?OpenDocument
    I believe this may be of some help.
    Aaron L.
    Applications Engineer
    National Instruments

  • Web Page error after install

    I finished installing OBIEE 10.1.3.3 with no errors. I used the Basic installation using IIS on one server.
    After finishing the install and restarting the server, all services are started but I get the following when I try to access the http://localhost/analytics web page:
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
    Click the Back button to try another link.
    HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)
    Can anyone help me out here?
    Thanks

    Try,
    to see if you are able to open the web page using the following,
    http://localhost/analytics/saw.dll?
    if not, try this
    1. Go to the IIS SERVER(Under Admin Tools)->Web Sites->Default web site-> ANALYTICS, then go to propertied for the Analytics web site and under the directy security tab click edit and check for integrated windows authenication and restart the IIS and the web server and see if this helps.
    Regards,
    Arjun

  • Web page transitions, adding music, aditional themes...

    This is a question/suggestion. Because perhaps iWeb does have this capability and I don't know how to use it. OR, it does no have it and I am suggesting to Apple to build it.
    1. Web page transitions: fancy transitions between the pages of a site add a special spice to the navigation of the site... are these available on iWeb08?
    2. I know I can drag and drop an MP3 or music file to the page, however, my PC buddies that do not have Quicktime(R) installed on their computers (because they only have internet at work where they cannot install anything) cannot play music or even see the file. Is there a way to add music that automatically starts when a user opens the page? something that does not require then end user to have QT installed on their PC.
    3. One of the things I love about iWeb is their templates/themes although I would like to know if apple has more themes available to download (hopefully for free since I already paid for the software) is there such a resource?
    Thanks everyone for reading all three questions, I appreciate the fact that you are about to write an answer! Thanks!

    iWeb does not provide every conceivable solution. You have to be creative too.
    1. Web page transitions: fancy transitions between the pages of a site add a special spice to the navigation of the site... are these available on iWeb08?
    No. You need some sort of JavaScript to accomplish that. Search the internet or see how others do it.
    2. I know I can drag and drop an MP3 or music file to the page, however, my PC buddies that do not have Quicktime(R) installed on their computers (because they only have internet at work where they cannot install anything) cannot play music or even see the file. Is there a way to add music that automatically starts when a user opens the page? something that does not require then end user to have QT installed on their PC.
    Use other code. [Search for free Flash MP3 players|http://www.google.com/search?q=free%20flash%20MP3%20players]. Then embed the code with the HTML Snippet.
    http://www.wyodor.net/iFrame/
    http://www.wyodor.net/MoreEmbed/
    3. One of the things I love about iWeb is their templates/themes although I would like to know if apple has more themes available to download (hopefully for free since I already paid for the software) is there such a resource?
    Apple has none. If they had they would advertise it. Create your own pages.
    http://www.iwebtemplate.com/
    http://guimkie.com/projects/iweb/
    or copy/paste from these templates
    http://www.freecsstemplates.org/
    and if you have Pages, copy from there
    http://www.wyodor.net/Vereniging/

  • Changes in Bex and web page when adding a new hierarchy...

    Currently when we add a new hierarchy - we need to make a change to both the hier workbook in BEX as well as the web page.
       can any body help me what are the new changes?..
    Thanks in advance.
    Bala.

    Bala,
    To my understanding only if you use the hierarchy then you have to make changes otherwise it is not necessary.
    Run the Workbooks and Web Pages and check out whether you are getting any problem.
    Regs
    Gopi.

  • Error when try to get table data

    Hello, when I click on the some table (error raise not in all tables) and select data tab, i get error
    '136 | 0 | oracle.dbtools.raptor.models.EditableResultSetTableModel$1 | construct' and data of table not visible in browser, if I click refresh then all is fine. I also try in some others IDE (such as PLSQL Developer , SQL Navigator) - error does not meet
    SQL DEVELOPER 1.2.0 Build 29.98
    Oracle v 9.2.0.5.0

    DDL:
    CREATE TABLE "SIEBEL"."S_ASSET_X"
    (     "ROW_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
         "CREATED" DATE DEFAULT sysdate NOT NULL ENABLE,
         "CREATED_BY" VARCHAR2(15 CHAR) NOT NULL ENABLE,
         "LAST_UPD" DATE DEFAULT sysdate NOT NULL ENABLE,
         "LAST_UPD_BY" VARCHAR2(15 CHAR) NOT NULL ENABLE,
         "MODIFICATION_NUM" NUMBER(10,0) DEFAULT 0 NOT NULL ENABLE,
         "CONFLICT_ID" VARCHAR2(15 CHAR) DEFAULT '0' NOT NULL ENABLE,
         "PAR_ROW_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
         "ATTRIB_08" CHAR(1 CHAR),
         "ATTRIB_09" CHAR(1 CHAR),
         "ATTRIB_10" CHAR(1 CHAR),
         "ATTRIB_11" CHAR(1 CHAR),
         "ATTRIB_12" DATE,
         "ATTRIB_13" DATE,
         "ATTRIB_14" NUMBER(22,7),
         "ATTRIB_15" NUMBER(22,7),
         "ATTRIB_16" NUMBER(22,7),
         "ATTRIB_17" NUMBER(22,7),
         "ATTRIB_18" NUMBER(22,7),
         "ATTRIB_19" NUMBER(22,7),
         "ATTRIB_20" NUMBER(22,7),
         "ATTRIB_21" NUMBER(22,7),
         "ATTRIB_22" NUMBER(22,7),
         "ATTRIB_23" NUMBER(22,7),
         "ATTRIB_24" NUMBER(22,7),
         "ATTRIB_25" NUMBER(22,7),
         "ATTRIB_26" DATE,
         "ATTRIB_27" DATE,
         "ATTRIB_28" DATE,
         "ATTRIB_29" DATE,
         "ATTRIB_30" DATE,
         "ATTRIB_31" DATE,
         "ATTRIB_32" DATE,
         "ATTRIB_33" DATE,
         "ATTRIB_01" VARCHAR2(100 CHAR),
         "ATTRIB_02" VARCHAR2(100 CHAR),
         "ATTRIB_03" VARCHAR2(30 CHAR),
         "ATTRIB_04" VARCHAR2(30 CHAR),
         "ATTRIB_05" VARCHAR2(30 CHAR),
         "ATTRIB_06" VARCHAR2(30 CHAR),
         "ATTRIB_07" VARCHAR2(30 CHAR),
         "ATTRIB_34" VARCHAR2(50 CHAR),
         "ATTRIB_35" VARCHAR2(50 CHAR),
         "ATTRIB_36" VARCHAR2(50 CHAR),
         "ATTRIB_37" VARCHAR2(50 CHAR),
         "ATTRIB_38" VARCHAR2(50 CHAR),
         "ATTRIB_39" VARCHAR2(50 CHAR),
         "ATTRIB_40" VARCHAR2(50 CHAR),
         "ATTRIB_41" VARCHAR2(50 CHAR),
         "ATTRIB_42" VARCHAR2(50 CHAR),
         "ATTRIB_43" VARCHAR2(50 CHAR),
         "ATTRIB_44" VARCHAR2(100 CHAR),
         "ATTRIB_45" VARCHAR2(100 CHAR),
         "ATTRIB_46" VARCHAR2(100 CHAR),
         "ATTRIB_47" VARCHAR2(255 CHAR),
         "X_MERCHANDISE_NAME" LONG
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 81920 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SIEBEL" ;

  • Display mysql table data in a jsf page? (10 duke dollars up for grabs)

    hi,
    im having some trouble on how to display data from a mysql table in a JSF page under the JSF architecture. i need some help on the best and correct way of doing this?
    if you could provide code on how this is done, would be much appreciated.
    many thanks.

    I'm going to assume that you have had experience with doing this in jsp. Watch for my comments by the **** asterisks *****. My skill level is best described as intermediate, so you'll probably want to heed replies from the more accomplished members of the community to improve upon this advice.
    The jsp page:
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    ***** All of your jsf content must be between the f:view tags ******
    <f:view>
    <html lang="en-US" xml:lang="en-US">
    <head>
    <title>Page Title</title>
    </head>
    <body>
    ***** Here is the h:form tag which constructs the appropriate html form tag.
    ***** You don't need to worry about get/post and all that.
    <h:form>
    ***** The h:panelGrid constructs a table that I'm using purely for layout purposes *****
    <h:panelGrid width="800" columnClasses="textColumns">
    ***** the h:dataTable is doing the heavy lifting here. the var attribute is the name you
                   want to give to the data you're returning. The value
                   attribute it bound to a managed bean named MemberList in my faces-config and all refers
                   to a method named getAll (in bean style) that returns a java.sql.Result.
              ***** You can see below how the columns are laid out with the h:column tags and how the header for
                             the columns are named.
              ***** The dataTable iterates over each value in the outputText tags contained in the column tags.
                             It's bound by the var_name.query_field_name. The field name is the one bundled in your result
              ***** Scroll down to see the MemberList bean code.
    <h:dataTable var="foo" value="#{MemberList.all}">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText value="#{foo.name}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="bar Number"/>
    </f:facet>
    <h:outputText value="#{foo.ANET_NUM}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Group"/>
    </f:facet>
    <h:outputText value="#{foo.CUST_GROUP}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Classification"/>
    </f:facet>
    <h:outputText value="#{foo.CLASSIFICATION}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Sector"/>
    </f:facet>
    <h:outputText value="#{foo.SECTOR}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Address"/>
    </f:facet>
    <h:outputText value="#{foo.ADDRESS1}"/><f:verbatim><br></f:verbatim>
    <h:outputText escape="false" value="#{MemberList.ADDRESS2} <br>"
    rendered="#{MemberList.ADDRESS2 != null}"/>
    <h:outputText value="#{foo.CITY}"/><f:verbatim>, </f:verbatim>
    <h:outputText value="#{foo.STATE}"/><f:verbatim>, </f:verbatim>
    <h:outputText value="#{foo.ZIP}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Purchasing Contact"/>
    </f:facet>
    <h:outputText value="#{foo.CONTACT}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Purchasing Phone"/>
    </f:facet>
    <h:outputText value="#{foo.WORK}"/>
    </h:column>
    </h:dataTable>
    </h:panelGrid>
    </h:form>
    </body>
    </html>
    </f:view>
    *** MemberList bean code:
    package bar.vendor;
    import bar.dbConnectionInfo;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.naming.NamingException;
    import javax.servlet.http.HttpSession;
    import javax.servlet.jsp.jstl.sql.Result;
    import javax.servlet.jsp.jstl.sql.ResultSupport;
    import java.sql.*;
    public class MemberList extends dbConnectionInfo {
    private Connection conn;
    public void open() throws SQLException, NamingException {
    ******* Here is where I set up my connection info. I store it in a separate class.
    ******* You'll set yours up according to your MySQL settings.
    conn = DriverManager.getConnection(getUrl(), getUsername(), getPassword());
              ******* The rest of this is pretty standard. The only exceptions is where I use the FacesContext
              ******* to get the session and getting a parameter map (see below)
    public Result getAll() throws SQLException, NamingException {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext extContext = facesContext.getExternalContext();
    HttpSession session = (HttpSession) extContext.getSession(true);
    ResultSet rs = null;
    String schema = getOracleOwner();
    String sql = "select distinct c.name, c. ANet_Num, ug.cust_group, ug.classification, c.sector, " +
    " a.address1, a.address2, a.city, a.state, a.zip," +
    " trim(cc.fname) || ' ' || trim(cc.lname) as Purchasing_Contact, cc.work " +
    " from "+schema+".cust c, "+schema+".vw_unique_cust_address u, "+schema+".cust_address a, " +
    " "+schema+".cust_group cg, "+schema+".vw_purchasing_contact pc, "+schema+".cust_contact cc, " +
    " "+schema+".baruser nu, "+schema+".dist_contact dc, "+schema+".contract con, " +
    " "+schema+".contract_access ca, "+schema+".vw_unique_cust_groups ug " +
    " where nu.id = ? " +
    " and c.SECTOR = ? " +
    " and nu.fk_dist_contact_id = dc.id " +
    " and dc.fk_dist_id = con.fk_dist_id " +
    " and con.id = ca.fk_contract_id " +
    " and ca.fk_group_type_id = cg.fk_group_type_id " +
    " and cg.fk_cust_id = c.id " +
    " and c.id = u.id " +
    " and to_number(substr(u.desc_type,2)) = a.id(+) " +
    " and c.id = pc.id(+) " +
    " and pc.cc_id = cc.id(+) " +
    " and c.status = 'Active' " +
    " and c.id = ug.id " +
    " order by ug.cust_group, c.name";
    try {
    open();
    PreparedStatement ps = conn.prepareStatement(sql);
    ps.setString(1, (String) session.getAttribute("baruserID"));
    **** This is cool. Look at the f:param tag as it pertains to commandButtons and commandLinks *****
    ps.setString(2,(String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("sector"));
    rs = ps.executeQuery();
    } catch (SQLException sqle) {
    System.out.println(sqle.getMessage());
    } catch (Exception e){
    System.out.println(e.getMessage());
    //close();
    return ResultSupport.toResult(rs);
    public void close() throws SQLException {
    if (conn == null) return;
    conn.close();
    conn = null;
    }

  • Oracle rejecting data loads into tables (data looks fine to me)

    Oracle 10XE barfs on loading data into the two table structures below. I can provide the two .sql files containing the data if someone is willing to take a look.
    CREATE TABLE A2NoteHeader (
         noteHeaderID number(5,0) NOT NULL ,
         ParentNote number(5,0) NULL ,
         dateCreated timestamp NULL ,
         noteTitle nvarchar2 (255) ,
         deleted nvarchar2 (1)
    CREATE TABLE A2NoteLine (
         noteHeaderID number(5,0) NOT NULL ,
         noteLineID number(5,0) NOT NULL ,
         noteLine nvarchar2 (255) ,
         deleted nvarchar2 (1)
    );

    How are you loading the data - via the web based UI, or using the SQLLoad command line ?
    Do you get any error messages ?
    How is the data delimited ?
    If using SQL Loader, what does the ctl file look like ?
    Can you narrow the problem down to one or two rows that produce the problem and paste the file content here ? - more eyeballs that way.

Maybe you are looking for