Bug in ResultSet#getDate() with ojdbc7-12.1.0.1

As "documented" here java - ResultSet#getDate() semantics - Stack Overflow there seems to be a bug in ResultSet#getDate() with ojdbc7-12.1.0.1.
The java.sql.Date condition
To conform with the definition of SQL DATE, the millisecond values wrapped by a java.sql.Date instance must be 'normalized' by setting the hours, minutes, seconds, and milliseconds to zero
is violated.
How can we report that to Oracle?

Hello Hwang
1/ I don't know for your first question. Have you checked all the RUEI rpm prerequisites? One should be missing probably.
2/ One solutions consists of installing and configuring Squid proxy on the RUEI server. Then you can use your own browser with ruei server as a proxy and surf. You also need to tweak RUEI to collect traffic within the right network card.
as $RUEI_USER :
execsql config_set_profile_value wg profile_wg_localhost_1 config ForceInterface add eth0
replace wg by the name of your profle (probably wg anyay) and eth0 by the proper network card (also eth0 probably).
GL & HF
JB

Similar Messages

  • Assigning ResultSet.getDate()

    (Posted this query to Programming forum by mistake earlier, so copying it to this forum. Apologies, I'm a newbie here...)
    I am using ResultSet.getDate() to get a date field from MSSQL Server database. What variable type do I best assign the returned value to? getDate() returns a java.sql.Date object. I need to adjest date to account for time zone differences then return adjusted date to dbase.
    Have tried
    java.sql.Date cDate = rs.getDate("CDateTime");
    CDateTime is the name of the field in dbase, but I get an
    error thrown at this line as:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
    My select statement is:
    String sql = "SELECT * FROM \"CallRecd\"";
    ResultSet rs = stmt.executeQuery(sql);
    Would appreciate any comments on best way to assign rs.getDate().
    Any comments on why this error is thrown? I have double checked that column name used is correct.

    Hi tully4,
    What order are you trying to access your resultset fields? Apparently M$ SQL Server 7 doesn't like out of order access to resultset columns. If you access your resultset columns in ascending order everything is ok, but if you access a lower index column after a higher one.....
    BTW you should really specify each column you want to select rather than using SELECT *. You'll also know the order of your columns.
    Also, try using rs.getTimestamp(int colIndex, java.util.Calendar cal) instead of rs.getDate to get your date. You can use the calendar param to set the time zone (if you don't specify a time zone the default for your JVM is used).
    Richard

  • JTable and ResultSet TableModel with big resultset

    Hi, I have a question about JTable and a ResultSet TableModel.
    I have to develop a swing JTable application that gets the data from a ResultSetTableModel where the user can update the jtable data.
    The problem is the following:
    the JTable have to contain the whole data of the source database table. Currently I have defined a
    a TYPE_SCROLL_SENSITIVE & CONCUR_UPDATABLE statement.
    The problem is that when I execute the query the whole ResultSet is "downloaded" on the client side application (my jtable) and I could receive (with big resultsets) an "out of memory error"...
    I have investigate about the possibility of load (in the client side) only a small subset of the resultset but with no luck. In the maling lists I see that the only way to load the resultset incrementally is to define a forward only resultset with autocommit off, and using setFetchSize(...). But this solution doesn't solve my problem because if the user scrolls the entire table, the whole resultset will be downloaded...
    In my opinion, there is only one solution:
    - create a small JTable "cache structure" and update the structure with "remote calls" to the server ...
    in other words I have to define on the server side a "servlet environment" that queries the database, creates the resultset and gives to the jtable only the data subsets that it needs... (alternatively I could define an RMI client/server distribuited applications...)
    This is my solution, somebody can help me?
    Are there others solutions for my problem?
    Thanks in advance,
    Stefano

    The database table currently is about 80000 rows but the next year will be 200000 and so on ...
    I know that excel has this limit but my JTable have to display more data than a simple excel work sheet.
    I explain in more detail my solution:
    whith a distribuited TableModel the whole tablemodel data are on the server side and not on the client (jtable).
    The local JTable TableModel gets the values from a local (limited, 1000rows for example) structure, and when the user scroll up and down the jtable the TableModel updates this structure...
    For example: initially the local JTable structure contains the rows from 0 to 1000;
    the user scroll down, when the cell 800 (for example) have to be displayed the method:
    getValueAt(800,...)
    is called.
    This method will update the table structure. Now, for example, the table structure will contain data for example from row 500 to row 1500 (the data from 0 to 499 are deleted)
    In this way the local table model dimension will be indipendent from the real database table dimension ...
    I hope that my solution is more clear now...
    under these conditions the only solutions that can work have to implement a local tablemodel with limited dimension...
    Another solution without servlet and rmi that I have found is the following:
    update the local limited tablemodel structure quering the database server with select .... limit ... offset
    but, the select ... limit ... offset is very dangerous when the offset is high because the database server have to do a sequential scan of all previuous records ...
    with servlet (or RMI) solution instead, the entire resultset is on the server and I have only to request the data from the current resultset from row N to row N+1000 without no queries...
    Thanks

  • Extending MDM ResultSet iView with custom web dynpro

    I built a MDM Result set(which is displaying fine), and a web dynpro iview to receive the events from the ResultSet and put them on to a page, added to a role and added to my userid etc.
    But when I invoke the event from the MDM ResultSet Standard iView, no data is coming from the ResultSet.
    Yes, I am aware that I need to make sure the namespace and name of the event should be same in the source and target iviews. I made sure of that.
    The event is being invoked, for sure, but no data. (Because if I didn't catch, the target iView is throwing NullpointerException for want of parameter passed by the EPCF event)
    EPCF event is reaching the target, but no data, what so ever.
    I tried with different fields(Columns) of the Resultset, but no use.
    I got a doubt. The client said, they used MDM 5.5 SP04 software for the Business Package, but MDM 5.5 SP03 MDM Connectors, and ofcourse the server itself is MDM 5.5 SP03. Does this have any influence in the problem I mentioned ?
    Another issue is the naming of the event or the namespace. Are there any guidelines for that ? I gave the name and namespace to be "ShowItemDetails" and "urn:com.oi.ecat.mdm.epcfevent". Are these OK ?
    Thank you very much for your help,
    Prasad Nutalapati

    Hi Narendra/Sidharth,
    I have been referring the same blog below of Vinay for developing the WDJ application:
    Importing Records from MDM BP ResultSet iView to Excel:--https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/504814b6-da5f-2b10-0dbd-e5ee597c74a5
    I have created an event in the ResultSet iview with the details below :
    Event Name = "Export"
    nameSpace = "urn:com.sap.tc.webdynpro.exporttocsv"
    Parameter is of type [MDM Search] and the value is "value"
    And in the Web Dynpro app,following is the code
    public void wdDoInit()
        //@@begin wdDoInit()
        String nameSpace = "urn:com.sap.tc.webdynpro.exporttocsv";
        String event = "Export";
        WDPortalEventing.subscribe(nameSpace,event,wdThis.wdGetExportAction());
        //@@end
    In the Event handler below,Currently I have removed the rest of code to fetch result from MDM ,I am just trying to access the Search object (i.e string value) and I am getting the value as null.
    Can you please tell me what is going wrong....
    public void onActionExport(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String value )
        //@@begin onActionExport(ServerEvent)
        wdComponentAPI.getMessageManager().reportSuccess("The search object:"+value);
        //@@end

  • Is anyone else having a weird bug in MobileMe gallery with volume on iOS 5

    Is anyone else having a weird bug in MobileMe gallery with volume on iOS 5? I am having a weird problem, where if I view a video I have uploaded and change the volume, I used the on-screen slider and It changed the volume but it also popped up like I was controlling it from the side. I thought that was kind of weird. If you want to see my problem, there will be a video up on Contemputech.com within a half-hour of me writing this.
    Thanks!
    Nolan

    Hello everyone!
    I'm hoping you are no longer having problems with your iPhone visual voice mail.
    I can understand how frustrating it is to not be able to access such a great feature on your iPhone.
    We did determine  customers not being able  to access Visual Voicemail on their iPhones.
    Common errors are "visual voicemail is not available" or it just keeps loading the message. 
    (In the meantime, you can still review voicemail messages by dialing *86)
    This issue should have been resolved for everyone effective 3/2/12.
    Please let me know if you are still having problems with iPhone Visual Voicemail by sending me a direct message.
    Thanks for your patience with this.
    Tamara H.
    Follow us on Twitter @VZWSupport

  • [svn] 4793: Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds

    Revision: 4793
    Author: [email protected]
    Date: 2009-02-02 11:20:06 -0800 (Mon, 02 Feb 2009)
    Log Message:
    Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds
    Fix: When calculating the bounds position we should take into account the implicit scaling factor actualSize/naturalSize. Also did some refactoring, getting rid of the protected method calculateTopLeft.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17734
    Reviewer: Ryan
    tests: mustella gumbo/layout/GraphicElement
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17734
    http://bugs.adobe.com/jira/browse/SDK-17734
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    Thank you so much for replying.
    Yes I have removed and reinstalled WMP.
    I had good results with the PD6 application installed on the default path onto the C: drive with the one exception that if the application was launched by accident and the user data path was not available, the PD6 application would blow away my custom user path registry settings. Now that I know what they are I have made a .reg file to repair my registry to my desired user data paths.
    Installing the application on the removable drive appeared to help prevent me from launching the application by accident and overwriting my registry with default user paths.
    So which is the less of the two evils?
    If the application directory is not available, windows media player still tries to launch the .msi for installing PD6.
    If I install the application to the C: drive but the user data to the removable drive, launching the PD6 application without the user data drive will still corrupt my registry settings for a user data path.
    Both these issues seem like a logical (if not easy) fix that should be done in the PD6 application and installation package. I mean really, cannot anyone tell me why windows media player is checking the PD6 application directory? Why in PD4 did we have an option control for setting the user data path from the PD4 application? Why is this option not in the PD6 application, just the installer?
    I am given a choice during installation to move the user data to another non default location. Why else would this be provided if not to accommodate my kind of request to store the user data into an alternate location other than “My Document”. Certainly Palm is not trying to force the users on how to protect and store their personal data?
    Post relates to: Centro (Verizon)

  • Bug Appeal: LV6 activeX with Excel; Error -2147319784

    At Thu, 16 Nov 2000 14:55:00
    "Dominic Lavoie" wrote:
    <-2147319784 Old format or invalid type library.
    Dominic and others
    This is an old bug in LabVIEW that I have been fighting
    with for several years. The problem (as I have seen it) is that
    LabVIEW for some reason on some PC's suddenly becomes unable to read
    from the (NT-) registry that Excel is installed as an
    available ActiveX component on the machine. In my case the
    Excel8.olb file.
    Under earlier verion of LabVIEW no error messages
    was generated, but you could see the problem when entering
    the list over ActiveX classes, Type library. Suddenly the Excel
    would be gone from this list, and it will not come back no matter
    how you try to install, reinstall or reconfigure the Excel (or Office)
    system. (And the Regsvr32 program does not handle OLB files.)
    The only way I have heard to fix it, is to reformat the
    harddisk and install the OS and everything fresh. But you might
    see the problem coming back again.
    There might be a possibility that this bug is not NI's, but one
    in the OS. When I use other programs to View/Edit the registry,
    these programs have no problems of detecting the Excel library.
    So I believe it is a LabVIEW bug !
    When working with Excel and ActiveX with this problem
    meant that you had to manually browse to the OLB file each time you
    would want to work with it, or you would sometimes get messed up
    the wires and VI's working against the Excel library.
    Now, under LabVIEW 6i, this situation creates the error message
    -2147319784, and the problem suddenly seems much bigger.
    I have reported this bug two month ago to NI, together with some
    other people that has seen the same problem. So far NI has not
    been able to locate the problem in detail or done anything with it,
    as far as I have been informed.
    This has been a very frustrating experience for me, because there are
    many other features under 6i that I would like to use right away.
    But since I am working a lot with Excel as a data format from LabVIEW,
    I cannot proceed with 6i before they have broken this bug.
    So now I would like the LabVIEW community to help me push NI
    a little in their effort to debug this one.
    All questions of course assuming that you have installed Excel
    on your PC.
    Could as many as possible out there check out if,
    when testing the ActiveX/Excel examples;
    A) under 6i; do you get the Error -2147319784 ? (YES or NO)
    B) under 5.1.1 or earlier; can you run the example Write Table to XL.vi ?
    (YES or NO)
    C) if B=NO, can you locate the Excel library in the ActiveX class list ?
    (YES or NO)
    D) Where in the world are you located (country) ?
    (Some has speculated that this bug might be connected to a problem
    with different OS versions in different parts of the world.)
    E) What version of Excel are you using ?
    F) What OS are you running ?
    If you can't do both A and B/C, send me the one you can.
    Please report your results directly to me.
    DO NOT REPLY TO THIS LIST. I will send a
    summary after a couple of weeks, to let you know
    the results. And also if NI seems to make any progress here.
    best regards
    Martin Plassen

    "[email protected]" wrote in message
    news:[email protected]...
    > Martin, I'm not sure how to reply directly to you. (I can't find your
    > email address or anything.) I may be experiencing a very similar
    > problem. I am trying to generate Excel reports using LabVIEW 6.0
    > under a Windows 2000 OS. Under Win95 in LabVIEW 4 I had no problem
    > but I recently updated. Now I can't even open Excel using the NI
    > distributed LabVIEW 6i Excel toolkits from ni.com. When I execute the
    > Open Excel vi I get a Windows error message, "Labview.exe has
    > generated errors and will be closed by windows. An error log is being
    > created." Could this be the same problem dominic was having under WIN
    > NT?
    dmbillings
    It seems NI has been so kind as to remove the fix on this problem
    from their Knowledgebase. Well, I dug up some old e-mails on the subject,
    and here's one you should look through. According to NI this problem
    should have been fixed under LV 6, so I really hope this is not what you are
    facing...
    Martin
    Good news for all of you,
    we have a bug-fix that seems to do the trick.
    Here's the recipe , with my words:
    Do You have the bug ?
    You can confirm that the bug is there, by opening a new file in LabVIEW,
    in the diagram, insert an Automation Open.VI, right-click on it,
    Select ActiveX class, Browse, and check the Type Library list.
    You should not see the Microsoft Excel5 and 8 library in the list,
    if the bug is there.
    As I have suspected for a long time, the whole bug was related to
    how LabVIEW read the registry at startup to locate all ActiveX
    components on the machine.
    Here's the fix to try out;
    1. Open the RegEdit program
    2. Under HKEY_CLASSES_ROOT locate the TypeLib
    3. Locate the Excel-key
    On my machine this is {00020813-0000-0000-C000-000000000046}
    (You will find it on top part, I think, not necessary to browse long
    down.)
    4. There are two base keys there, named "1.0" and "1.2".
    Under the "1.0"-key, right-click and create new key, name it "0"
    (zero).
    5. Under the new "0"-key, create a new key kalled "win32".
    6. Under the "1.0"-"9"-"win32" key you will find the link to the
    Excel5-library on the machine, copy this link into the key you created
    under pt 5.)
    On my machine this is "C:\Program Files\Microsoft
    Office\Office\XL5EN32.OLB".
    That's all. Exit RegEdit.
    Afterwards, check again that the Microsoft Excel5 and 8 libraries
    is on the LabVIEW list mentioned above. After restarting LabVIEW of
    course. It is not necessary to restart the PC.
    Attached you wil find two gifs showing how this should look
    in RegEdit before and after the described operation.
    Good luck
    PS: hacking around is the registry are do be done with
    caution. The wrong actions here could have large consequences.
    The two attached pictures should help you out,
    but if you feel uncomfortable by working with the registry,
    try to hook on to some hacker around that has been there before.
    As I understand it, this is the reason that NI asked me also not to
    give this info directly to the List-server. So please don't do it
    you either. I plan to put the word out about the fix, not with these
    details, but with a reference to the NI Knowledgebase that soon will
    have this info.
    You are welcome to send me a conformation that you see the
    fix is working, or worst case, not.
    Martin

  • [svn:fx-trunk] 6993: * Fixed a duplicate Bindable metadata bug that showed up with

    Revision: 6993
    Author:   [email protected]
    Date:     2009-05-16 23:57:42 -0700 (Sat, 16 May 2009)
    Log Message:
    Fixed a duplicate Bindable metadata bug that showed up with
      describeType().
    tests Passed: checkintests
    Needs QA: YES, just confirm the bug fix, please.
    Needs DOC: NO
    Bug fixes: SDK-21133
    API Change: NO
    Reviewer: Pete F.
    Code-level description of changes:
      BindableSecondPassEvaluator.java
        Modified moveMetaDataToNewDefinition() to no longer insert the new
        Bindable metadata into the definition's statement list, because
        prepMetaDataNode() already handles this.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableSecondPassEva luator.java

    I just noticed that for some reason the project is using an old path to my SVN repository. I recreated it and reimported the project but for some reason Xcode didn't realize that. I'm betting there's some little file somewhere that's causing my problem.

  • BUG JSF h:dataTable with JDBC ResultSet - only last column is updated

    I tried to create updatable h:dataTable tag with three h:inputText columns with JDBC ResultSet as data source. But what ever I did I have seceded to update only the last column in h:dataTable tag.
    My JSF page is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.people}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>
    My java been is:
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getPeople() {
    return resultSet;
    I have instaled “Oracle Database 10g Express Edition Release 10.2.0.1.0” – product on my PC localy. I have enabled HR schema and I have instaled and pupulated with sample data folloving table:
    CREATE TABLE "PERSON"
    (     "PIN" VARCHAR2(20) NOT NULL ENABLE,
         "SURNAME" VARCHAR2(30),
         "NAME" VARCHAR2(30),
         CONSTRAINT "PERSON_PK" PRIMARY KEY ("PIN") ENABLE
    I have:
    Windows XP SP2
    Oracle JDeveloper Studio Edition Version 10.1.3.1.0.3894
    I am not shure why this works in that way, but I think that this is a BUG
    Thanks in advance.

    Hi,
    I am sorry because of formatting but while I am entering text looks fine but in preview it is all scrambled. I was looking on the Web for similar problems and I did not find anything similar. Its very simple sample and I could not believe that the problem is in SUN JSF library. I was thinking that problem is in some ResultSet parameter or in some specific Oracle implementation of JDBC thin driver. I did not try this sample on any other platform, database or programming tool. I am new in Java and JSF and I have some experience only with JDeveloper.
    Java been(session scope):
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement
    (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getZaposleni() {
    return resultSet;
    JSF Page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.zaposleni}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>

  • Bug in ResultSet.TYPE_SCROLL_SENSITIVE

    Hello OTN,
    I am able to found a bug in JDBC driver-8.1.7
    It is:
    When I tried to create a resultset of type: ResultSet.TYPE_SCROLL_SENSITIVE(1005) from prepared statement, I am getting resultset of type: ResultSet.TYPE_SCROLL_INSENSITIVE(1004).
    I used this driver with :Oracle-Oracle8i Enterprise Edition Release 8.1.6.1.0.
    Please see the code snippet below:
    PreparedStatement pst = conn.prepareStatement("select * from empdest",
    ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_UPDATABLE); //READ_ONLY);
    System.out.println("set type: "+ResultSet.TYPE_SCROLL_SENSITIVE); //printing 1005 here.
    ResultSet rs = pst.executeQuery();
    System.out.println("got type: "+rs.getType()); //printing 1004 here
    Is it really a bug or have any alternative!
    Please respond to this ASAP.
    Regards,
    SreenU.

    this is a "feature"... :)
    don't do "select *"... you must name the columns in the select statement or the driver will change the type to read only...
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sreenu B ([email protected]):
    Hello OTN,
    I am able to found a bug in JDBC driver-8.1.7
    It is:
    When I tried to create a resultset of type: ResultSet.TYPE_SCROLL_SENSITIVE(1005) from prepared statement, I am getting resultset of type: ResultSet.TYPE_SCROLL_INSENSITIVE(1004).
    I used this driver with :Oracle-Oracle8i Enterprise Edition Release 8.1.6.1.0.
    Please see the code snippet below:<HR></BLOCKQUOTE>
    null

  • Why ResultSet getDate() method returns null when querying .csv file?

    Here is the full code:
    import java.sql.*;
    import java.sql.Types;
    import java.sql.Date;
    import myjava.support.CachedRowSetMaker;
    import javax.sql.rowset.CachedRowSet;
    import java.io.IOException;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    class jdbc2{
    final private String s1="SELECT top 10 [DATE], [ADJ CLOSE] FROM [vwo-1.csv]";
    private ResultSet result=null;
    private Connection conn=null;
    public static void main(String[] args) throws SQLException{
    jdbc2 db=new jdbc2();
    try {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              db.conn = DriverManager.getConnection("jdbc:odbc:STOCK_DATA");
              PreparedStatement sql=db.conn.prepareStatement(db.s1);
              db.result=sql.executeQuery();
    // check column names and types using the ResultSetMetaData object.
              ResultSetMetaData metaData = db.result.getMetaData();
         System.out.println("Table Name : " + metaData.getTableName(2));
         System.out.println("Field\t\tDataType");
         for (int i = 0; i < metaData.getColumnCount(); i++) {
         System.out.print(metaData.getColumnName(i + 1) + "\t");
         System.out.println(metaData.getColumnTypeName(i+1));
         System.out.print(metaData.getColumnName(1) + "\t"+metaData.getColumnName(2)+"\n");
              while (db.result.next()){
                   System.out.print(db.result.getDate("DATE", Calendar.getInstance()));
                   System.out.format("\t%,.2f\n", db.result.getFloat("Adj Close"));
    catch (Exception e) {
    System.out.println("Error: " + e.getMessage());
         finally {
              db.result.close();
              db.conn.close();
    Everything works well, until getting to the block
              while (db.result.next()){
                   System.out.print(db.result.getDate("DATE", Calendar.getInstance()));
                   System.out.format("\t%,.2f\n", db.result.getFloat("Adj Close"));
    The getDate("DATE", Calendar.getInstance())); always returns null, instead of the date value in the vwo-1.csv.
    Even though I change it to
    java.sql.Date d=db.result.getDate("DATE") and convert to String using .toString(), I still gets nulls. The dollar amount in "Adj Close" field is fine, no problem.
    The .csv fils is downloaded from YahooFinace.
    Can anyone review the code and shed some light as to what I did wrong?
    Thanks alot.

    CREATE TABLE `login` (
    `username` varchar(40) DEFAULT NULL,
    `password` varchar(40) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `amount` (
    `amountid` int(11) NOT NULL,
    `receiptid` int(11) DEFAULT NULL,
    `loanid` int(11) DEFAULT NULL,
    `amount` bigint(11) DEFAULT NULL,
    `latefee` int(11) DEFAULT NULL,
    `paymentid` int(11) DEFAULT NULL,
    `pid` int(11) DEFAULT NULL,
    PRIMARY KEY (`amountid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `applicationfee` (
    `applicationfeeid` int(11) DEFAULT NULL,
    `applicationamount` int(11) DEFAULT NULL,
    `applicationfee` int(11) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `category` (
    `categoryid` int(11) DEFAULT NULL,
    `categoryname` varchar(40) DEFAULT NULL,
    `categorydescription` varchar(500) DEFAULT NULL,
    `cattype` int(11) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `commission` (
    `commissionid` int(11) DEFAULT NULL,
    `bussiness` int(11) DEFAULT NULL,
    `commission` int(11) DEFAULT NULL,
    `pid` int(11) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `customer` (
    `cacno` int(11) NOT NULL DEFAULT '0',
    `name` varchar(40) DEFAULT NULL,
    `age` int(11) DEFAULT NULL,
    `cphone` varchar(40) DEFAULT NULL,
    `cmobile` varchar(40) DEFAULT NULL,
    `caddress` varchar(500) DEFAULT NULL,
    `cstatus` varchar(20) DEFAULT NULL,
    `cphoto` longblob,
    `pid` int(11) DEFAULT NULL,
    PRIMARY KEY (`cacno`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `daybook` (
    `closingbal` varchar(40) DEFAULT NULL,
    `date` date DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `extraincome` (
    `categoryid` int(11) NOT NULL,
    `receiptid` int(11) DEFAULT NULL,
    `date` date DEFAULT NULL,
    `amountid` int(11) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `employee` (
    `empno` int(11) DEFAULT NULL,
    `empname` varchar(40) DEFAULT NULL,
    `age` int(11) DEFAULT NULL,
    `sal` int(11) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `image` (
    `id` int(11) DEFAULT NULL,
    `image` blob
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `loan` (
    `loanid` int(11) NOT NULL DEFAULT '0',
    `loanamt` varchar(40) DEFAULT NULL,
    `payableamount` double DEFAULT NULL,
    `installment` int(11) DEFAULT NULL,
    `payableinstallments` int(11) DEFAULT NULL,
    `monthlyinstallment` varchar(20) DEFAULT NULL,
    `surityname` varchar(20) DEFAULT NULL,
    `applicationfeeid` int(11) DEFAULT NULL,
    `interestrate` float DEFAULT NULL,
    `issuedate` date DEFAULT NULL,
    `duedate` date DEFAULT NULL,
    `nextduedate` date DEFAULT NULL,
    `cacno` int(11) DEFAULT NULL,
    `cname` varchar(20) DEFAULT NULL,
    `pid` int(11) DEFAULT NULL,
    `interestamt` double DEFAULT NULL,
    `pendingamt` float DEFAULT NULL,
    PRIMARY KEY (`loanid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `md` (
    `mdid` int(11) NOT NULL DEFAULT '0',
    `mdname` varchar(40) DEFAULT NULL,
    `mdphoto` varchar(100) DEFAULT NULL,
    `mdphone` varchar(40) DEFAULT NULL,
    `mdmobile` varchar(40) DEFAULT NULL,
    `mdaddress` varchar(500) DEFAULT NULL,
    PRIMARY KEY (`mdid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `partner` (
    `pid` int(11) NOT NULL DEFAULT '0',
    `pname` varchar(40) DEFAULT NULL,
    `paddress` varchar(500) DEFAULT NULL,
    `pphoto` varchar(100) DEFAULT NULL,
    `pphone` varchar(40) DEFAULT NULL,
    `pmobile` varchar(40) DEFAULT NULL,
    `pstatus` varchar(20) DEFAULT NULL,
    `mdid` int(11) DEFAULT NULL,
    `mdname` varchar(40) DEFAULT NULL,
    `date` date DEFAULT NULL,
    `nextpaydate` date DEFAULT NULL,
    PRIMARY KEY (`pid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `partnerinvested` (
    `pid` int(11) DEFAULT NULL,
    `pname` varchar(20) DEFAULT NULL,
    `receiptid` int(11) DEFAULT NULL,
    `date` date DEFAULT NULL,
    `amountinvested` int(11) DEFAULT NULL,
    `latefee` int(11) DEFAULT NULL,
    `amountid` int(11) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `payments` (
    `paymentid` int(11) NOT NULL,
    `categoryid` int(11) DEFAULT NULL,
    `particulars` varchar(100) DEFAULT NULL,
    `amountid` int(11) DEFAULT NULL,
    `paymentdate` date DEFAULT NULL,
    PRIMARY KEY (`paymentid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    CREATE TABLE `receipts` (
    `receiptid` int(11) DEFAULT NULL,
    `paiddate` date DEFAULT NULL,
    `amountid` int(11) DEFAULT NULL,
    `loanid` int(11) DEFAULT NULL,
    `latefee` int(11) DEFAULT NULL,
    `installment` int(11) DEFAULT NULL,
    `cacno` int(11) DEFAULT NULL,
    `cname` varchar(40) DEFAULT NULL,
    `pid` int(11) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

  • BUG: File History fails with no warning- Event ID 201

    I apologize for the long post but I want to summarize everything I've learned about this so far, as it looks like a critical bug.
    I am unable to get File History to backup my files with Windows 8.1.  I set up a 1 TB USB HDD as the target drive and it seemed to run for a minute or two, and then quit completely without any warning.  It created two empty folders on the target
    HDD, but no data was backed up.  I then clicked "Run Now" to try and get it going again, but nothing happened. 
    Under "Advanced Settings" I opened the event log, and saw an Event ID 201 was created each time File History attempted to run: "Unable to scan user libraries for changes and perform backup of modified files for configuration C:\Users\MyUserName\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config". 
    I've pasted the entire error below.  The "Event Log Online Help" link opens to "Page not Found" on TechNet.
    A Google search revealed other users are experiencing this problem, too (links below).  Some people have been able to solve it by excluding libraries and/or moving all of their data out of the libraries then replacing it one folder at time, running
    FH, and repeating until they find the "offending" file by error 201 occurring.
    There are reports of similar problems with Event IDs 202, 203 and 204.   A similar, but separate error is "Unusual condition was encountered during scanning user libraries for changes and performing backup of modified files for configuration C:\Users\MyUserName\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config". 
    Based on others' posts, the problem appears to be a bug in how FH handles files/folder names that are similar,
    contain unusual (but legal) characters, and shortcuts ("reparse error").   The second bug is, regardless of which Event ID, that
    FH does not alert the user when it fails, so you have no idea your files are not being backed up.  Even if you are able to eliminate the problem once, there is no guarantee that it won't happen again.  Once error 201 occurs, File
    History is dead in the water and unfortunately since Windows 7 File Backup was removed, there is no alternative data backup method available.
    If anyone has an idea of how to solve or work around this problem (i.e. under exactly what filename conditions FH fails), please post.  I have Windows 8.1 installed on drive C, Windows 7 on drive D, and a data partition E onto which I moved all my Libraries. 
    The Win 7 and 8.1 libraries are in separate folders and not linked in any way, so 8.1 is not trying to back up 7's data.  However, the partition arrangement does not appear relevant.
    Thanks!
    Related links:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-files/filehistory-unable-to-scan-user-libraries-for/b43183bc-eeaa-4d1a-bda4-0ab9dcf061be
    http://social.technet.microsoft.com/Forums/windows/en-US/ccd27fbc-2d95-4ab7-bdd1-2c0c6a43bd2f/file-history
    My Event Log:
    Log Name:      Microsoft-Windows-FileHistory-Engine/BackupLog
    Source:        Microsoft-Windows-FileHistory-Core
    Date:          4/3/2014 11:01:19 PM
    Event ID:      201
    Task Category: None
    Level:         Error
    Keywords:      
    User:          SYSTEM
    Computer:      ThinkPad-Edge
    Description:
    Unable to scan user libraries for changes and perform backup of modified files for configuration C:\Users\inert_000\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-FileHistory-Core" Guid="{B447B4DB-7780-11E0-ADA3-18A90531A85A}" />
        <EventID>201</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x1000000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-03T14:01:19.267846200Z" />
        <EventRecordID>12</EventRecordID>
        <Correlation ActivityID="{388E273A-4F3D-0001-022B-8E383D4FCF01}" />
        <Execution ProcessID="556" ThreadID="5128" />
        <Channel>Microsoft-Windows-FileHistory-Engine/BackupLog</Channel>
        <Computer>ThinkPad-Edge</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="Hr">2147747327</Data>
        <Data Name="ConfigFilePath">C:\Users\inert_000\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config</Data>
      </EventData>
    </Event>

    Hi, thanx for the post. It helped me to fix my Problem with file history.
    In my case it was the spelling of some files. I'm German and we have some Special chars like ä,ö,ü and ß.
    The "Problem" is that You can spell These also in a different way for example "ä" is same like "ae" and "ß" is same like "ss" .
    If I Name one file like "groß.txt" and the other one "gross.txt" file history won't work! I don't know why, probably MS conversts the Name in the background or whatever - but this really
    sucks!
    Even more that You don't get informed! Only when checking the eventlog - and not even in the "normal" eventlog - You have to go to "Microsoft-Windows-FileHistory-Engine/BackupLog" - well, how often does one look up this??
    I think file history is quite useless in this state as it does not inform the user about Problems with the backup. And I really don't want to get "informed" when I Need to restore some files...
    Cheers
    To life is christ, to die is gain...

  • A lot of CS4 bugs I need help with....

    The list of bugs I am about to post that are ongoing issues with my CS4... I have tried searching for solutions but to no avail...
    Corrupt frames Sometimes for no reason, a frame in the timeline will corrupt. everytime you 'scrub' or try to edit a certain frame it crashes. even if you restart flash, open the fle again,  without fail that frame will cause it to crash. meaning you
    have to back step and get rid of the offending frame. and start again. I knows so many people that ths has happened to. resulting n drasticlly closely missing deadlines.
    Ghost frames: It will, for me, CONSTANTLY leave ghost frames. a solid 'onion' frame as if you have accidentally copied and pasted a previous frame
    over the top, there is no way of getting rid of it unless you leave the symbol and re-renter, but it will shortly return.it's a solid image that doesnt move, you just can't see what you're doing.
    The onion skin often refuses to work also. - I worked out for myself this was a problem with other layers being locked below it. which is ridiculous. I can work around this but it still shouldn't happen.
    Deleting fills: When I move shapes with more than one fill, it will often delete a fill, or fill some in a different colour. If I am drawing with the brush tool it sometimes will delete other sections I have drawn with the same tool.
    Not to mention the thousands of times it will crash unexpectedly. and I mean this happens a LOT.
    These all happen with no correlation to previous things I have done.
    I'm a professional animator and I'm sure everyone has heard this all the time but I think it's very important. I rely on Flash as my main piece of software. As a freelancer affording software (as everyone knows) is VERY difficult so when you shell out the thousands, you expect to be given
    good quality software that you can rely on. I can't afford an upgrade right now. and certainly don't want to upgrade purely because Adobe has decided to issue a faulty product.
    I am close to missing deadlines because of the bugs. I have downloaded EVERY update hoping they will fix this stuff but it doesn't. CS3 was mainly fine, why is this so bad? I really think they should offer a free upgrade to CS5 for people with CS4 issues. I am reduced to tears with stress when working on projects that are corrupting and crashing for no apparent reason. If you bought any other peice of equipment that was faulty you wouldn't be expected to pay for one that works.
    Anyone know of any answers to any of the above bugs? MAINLY avoiding the corrupt frame problem?

    iWork is probably not the best way to keep track of photos if you want to have clickable thumbnails and links to full size images. I say that only because I once had such an idea and after playing with it for some time I reverted to using the tools in iPhoto; Events, People, Keywords, etc.
    As an adjunct to iPhoto or Aperture to reference events and photos it might be useful to keep track of photo shoot sessions in Numbers. What types of information are you seeking to track?
    Jerry

  • IPod bug on iPhone 4 with iOS 4.2.1

    This has happened a few times with different albums/tracks:
    I'll play an album and realize that a track has skipped and/or a track starts playing a few seconds into the track. Hitting "back" doesn't fix the problem; the track just starts playing at the wrong spot again no matter what I do. Basically the "start" position for certain songs gets set to the very end of the track (resulting in the track immediately ending and moving on to the next track) or the start position gets set to a few seconds into the track. Only an iPhone reboot fixes this. I can't figure out any reason why certain tracks are affected. There is nothing wrong with the tracks. They are fine on the computer and fine after an iPhone reboot.
    Anyone else having this problem? I'm close to doing a restore of my phone because of wifi and AirPlay related issues. This problem just pushes me closer.
    Erik

    I'm having the same exact problem with my iPod Touch with iOS 4.2.1.
    Also the album art doesn't always show on the lock screen and the videos and songs sometime start from the position I left them to, even if I listened to something else after.
    Apple better release their 4.2.2 or 4.3 soon and correct these bugs because 4.1 was just fine for me.

  • Possible bug in Photoshop CS6 with app.activeDocument.path.

    JavaScript running in Photoshop CS6 under OS X 10.7.5 returns the wrong result for app.activeDocument.path when the file is located on the boot drive. The result is undefined and an error message incorrectly states that the document has not been saved yet. If the file is located on a remote volume, the correct path is returned.
    To reproduce this problem, create a new file in Photoshop CS6 on a Mac. Save the file to the desktop. With the file still open, run the following script in ExtendScript Toolkit.
    // start script
    var thePath = app.activeDocument.path;
    alert(thePath);
    // end script
    Running the same script with a file located on a server volume open in Photoshop correctly returns "/path/to/file.psd" instead of undefined and no error occurs.
    This appears to be a bug in Photoshop CS6's JavaScript implementation. This problem did not exist in Photoshop CS3.
    A similar issue prevents Photoshop CS6 from saving files to the boot drive using activeDocument.saveAs.
    Has anyone else experienced this problem? If so, have you discovered an alternate method to determine the file path or save a file on the boot drive?

    Don't know if this will help much but at least you can use it to check a document's filepath without throwing an error. And maybe tell if the problem is with the Photoshop DOM.
    function hasFilePath(){// returns true/false
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
        return executeActionGet(ref).hasKey(stringIDToTypeID('fileReference'));
    function getFilePath(){// returns path as a string if exists, undefined if not
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
        var desc = executeActionGet(ref);
        if(desc.hasKey(stringIDToTypeID('fileReference'))) return decodeURI(desc.getPath(stringIDToTypeID('fileReference')));

Maybe you are looking for

  • Errors when using inplace schema evolution

    Hi, i have been having some issues when attempting to use inplace schema evolution to add a new element into an existing xsd file currently registered on the database and was looking for some help with this if possible. Firstly, Oracle details are as

  • Why does iPhone randomly power off?

    My iPhone powers off at, seemingly, random times. It should not power off at all unless I power it off. Any explanations as to why?

  • Invoice in crystal reports with group by basedocnum Delivery and line text

    Hi there, as i got some troubles with a CR i've tried to make a new report. i use OINV, INV1, OCRD, NNM1, OCTG, OSCP in the report. the details section is grouped by inv1.basedocnum. In the group header it should show the inv1.basedocnum and the inv1

  • Creating user -- STORAGE_PARAMETER_WRONG_SET

    Hello! We made a new installation of our ERP 6.0. And now i should create the users. SU01--> I created a username and chose "create". First I got a problem that the company address is not created yet. I skipped it because the country ID was unknown/n

  • Trouble Using TimerEvent in While Loop

    Hello, I am attempting to use a TimerEvent in a while loop. In the example I have created below, the init function should loop through the values myArray, tracing each value at three second intervals. It seems, however, that because I am incrementing