Bug in compiler option -features=tmplife?

hi,
i believe i've found a bug in -features=tmplife. below are my makefile and source file. basically the option for destroying temp variables calls the same destructor more than once. the program below causes this output for the case with the option turned on:
# ./compilerTestTmpLife
HInteger [444]
Base
Derived
~HInteger [444]
Before throw!
~Base
~HInteger [444]
~Base
~HInteger [444]
~Base
~HInteger [444]
~HInteger [444]
~Derived
~Base
~HInteger [444]
Caught!
Done!
------------------------------- makefile ----------------------------------
all: compilerTest compilerTestTmpLife
compilerTest: compilerTest.cpp
     CC -o compilerTest.o -c compilerTest.cpp
     CC -o compilerTest compilerTest.o
compilerTestTmpLife: compilerTest.cpp
     CC -features=tmplife -o compilerTestTmpLife.o -c compilerTest.cpp
     CC -o compilerTestTmpLife compilerTestTmpLife.o -features=tmplife
clean:
     rm -f *.o compilerTest compilerTestTmpLife
----------------------------- compilerTest.cpp ------------------------
#include <stdio.h>
class HInteger
public:
HInteger(const int i)
: m_integer( i )
printf("HInteger [%d]\n", m_integer );
~HInteger()
printf("~HInteger [%d]\n", m_integer );
private:
int m_integer;
class Base
public:
Base( const HInteger& protocol )
: m_protocol( protocol )
printf("Base\n");
fflush(stdout);
virtual ~Base()
printf("~Base\n");
fflush(stdout);
protected:
HInteger m_protocol;
class Derived : public Base
public:
Derived( const HInteger& protocol )
: Base(protocol)
printf("Derived\n");
fflush(stdout);
virtual ~Derived()
printf("~Derived\n");
fflush(stdout);
int main(int argc, char ** argv)
try
Derived testObject( 444 );
printf("Before throw!\n");
throw 21;
catch(...)
printf("Caught!\n");
printf("Done!\n");
return 1;
FYI:
# uname -a
SunOS vanrdsol40 5.8 Generic_108528-16 sun4u sparc SUNW,Sun-Fire-480R
# CC -V
CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
Thanks!

hi,
we have applied the latest compiler patches as described by:
<http://access1.sun.com/patch.public/cgi-bin/show_list.cgi/wrk/Forte_C++_6u2_SPARC>
and we still have the problem with the -features=tmplife option.
let us know if there anything else we can try.
thanks

Similar Messages

  • TS1468 Where is the compilation option in version 11?

    I have a single album what was split into 5 sections because of variations on artist name. Past support articles suggested using the Compilation option when selecting the multiple split portions. Where is that option in version 11 of iTunes? I do no see this feature.

    Compilation can be found in the Get Info dialog. Generally all you need to do to link things is fill in an appropriate Album Artist.  For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • Microsoft][ODBC SQL Server Driver]Optional feature not implemented

    this is my program code for java jdbc:odbc SQL connectivity
    but iam getting the error as
    *java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented*
    package desktopapplication2;
    import java.sql.*;
    * @author Bharat Raj Verma
    public class db {
        void get(String gr,String fn,String ln,String job ,Integer rate,Integer ot,String att,long amt,String cmt)
          try
             Connection con=null,con1=null;
            Statement stmt2;
            String query = "Update dbo.attend SET Gr = ? , fn = ? ,ln = ?, job = ? , rate = ? , ot = ? , att = ? ,amt = ? , comment = ?";
           // String query1 = "Select accnum rom dbo.newacc where accnum= ?";
            String url = "jdbc:odbc:bharat";
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con = DriverManager.getConnection(url,"","");
            con1 = DriverManager.getConnection(url,"","");
            System.out.println("connection Established");
            stmt2 = con.createStatement();
            Statement stmt = con1.createStatement();
            ResultSet rs;
            rs=stmt.executeQuery("select * from dbo.attend");
            while(rs.next())
                String cmp1= rs.getString("gr");
                if(cmp1.equalsIgnoreCase(gr))
                        PreparedStatement ps1 = con.prepareStatement(query);
                        System.out.println("Insisde RS");
                        ps1.setString(1,gr);
                        ps1.setString(2,fn);
                        ps1.setString(3,ln);
                        ps1.setString(4,job);
                        ps1.setInt(5,rate);
                        ps1.setInt(6,ot);
                        ps1.setString(7,att);
                        ps1.setLong(8,amt);
                        ps1.setString(9,cmt);
                        System.out.println("SSS");
                      //  ps1.setString(1,gr);
                        ps1.executeUpdate();
                       System.out.println("Success");
          catch(Exception e1)
              System.err.println(e1);
    }This is the SQL table in which iam trying to insert the value
    SET ANSI_PADDING OFF
    create table attend
    Gr VARCHAR(20) primary key,
    fn VARCHAR (25),
    ln VARCHAR(25),
    job VARCHAR(25),
    rate integer,
    ot integer,
    att varchar(10),
    amt varchar (10),
    comment varchar(70)
    )the complete output is
    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\Bharat Raj Verma\My Documents\NetBeansProjects\DesktopApplication2\build\classes
    compile:
    run:
    connection Established
    Insisde RS
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
    BUILD SUCCESSFUL (total time: 29 seconds)
    here is the stack trace
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
    at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterBigint(JdbcOdbc.java:1225)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setLong(JdbcOdbcPreparedStatement.java:592)
    at desktopapplication2.db.get(db.java:47)
    at desktopapplication2.DesktopApplication2View.jButton1ActionPerformed(DesktopApplication2View.java:394)
    at desktopapplication2.DesktopApplication2View.access$800(DesktopApplication2View.java:22)
    at desktopapplication2.DesktopApplication2View$4.actionPerformed(DesktopApplication2View.java:183)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Plz can anyone help ???

    and what was the solution?
    thanks in advance
    brindy

  • Passing extra compiler options to flexunit ANT task?

    Hi,
    Is there a way to send any extra compiler options to the <flexunit> ANT task?
    I'm using conditional compilation and compilation (mxmlc) is failing from the <flexunit> task:
    "Error: Access of undefined property DEBUG.
    CONFIG::DEBUG {"
    I tried sneaking "-define+=CONFIG::DEBUG,false" in with one of the other compiler options you can set on the <flexunit> task, but that just doesn't work or results in a validation error like this:
    "One of the directories specified as a 'testSource' element does not exist."
    Let me know if this is possible at all.
    Thanks,
    Wijnand

    Hi Brian,
    legrosb wrote:
    @Wijnand - Sorry for the belated response.
    Not late at all! I think a response within a day on a forum is quite fast!
    legrosb wrote:
    I thought I had captured this on the wiki, but it looks like I haven't, so thank you for the heads up.
    I'll also update the wiki @ http://docs.flexunit.org/index.php?title=Ant_Task to be more detailed regarding compilation so other don't have to dig. 
    Did you just do an update on that Wiki page or did I completely miss the part that explained the <flexunit> parameters?
    legrosb wrote:
    In 4.2, which is super pre-alpha right now, I've added support to accept a series of flex-config.xml files provided by the user.  Not sure if conditional compilation can be tackled with a custom flex-config.xml file, but if so then that'd be the feature that may help you.
    Yes, being able to add (+=) a custom config file will solve this problem for me. You can define properties and values like this:
    <flex-config>
        <compiler>
            <define>
                <name>CONFIG::DEBUG</name>
                <value>false</value>
            </define>
        </compiler>
    <flex-config>
    So in your AS code you can use:
    CONFIG::DEBUG {
        // Do something that only should be done in debug mode.
    I have another question, I ran into this one during testing my SWF with flexunit.
    unittest.xml:82: java.util.concurrent.ExecutionException: command [<testcase classname='com.tuenti.video.unittest.testcase.player::MockPlayerCase' name='loadPlayer' time='0.000'  status='success'/>] not understood
    I had a look at the FlexUnitSocketThread.parseInboundMessages method that throws this error and it looks like that your defined END_OF_SUCCESS doesn't entirely match what the SWF is spitting out. They are of by 1 space: END_OF_SUCCESS is defined as: "status=\"success\" />", whereas my SWF spits out the following: "status='success'/>" (single quotes and no space before the closing of the tag).
    It looks like I'm not the only one with the ExecutionException as it is reported on StackOverflow as well: http://stackoverflow.com/questions/3953677/flexunittasks-error-of-command-not-understood
    Cheers,
    Wijnand

  • JDev 9.0.3 - problem with compiler options to copy resource file types

    Hello,
    Following a quite strange scenario, I found something bizarre related to the project compile options in 9.0.3 production (I assume the same problem was present way before...)
    Let me first present the facts:
    Assume I have in my project one file named noext (with no extension!) and another one file.verylongext. I know it's not best practice, but let's say they are third party files and I would prefer not to touch them.
    I am able to add them to the project sources, in the specified packages, then I update the Project Settings/Compiler/Resource File Types to Copy to Output Directory.
    But, when I compile, I realize that not all my files were copied to classes/. In fact, if I specify ...;noext;file.verylongext, I get only noext copied, while if I specify ...;file.verylongext;noext, I only get file.verylongext.
    I also tried to use only .verylongext, but the result was exactly the same...
    Of course I can copy the files manually, outside JDev, but this is not best practice neither... :)
    As long as JDev 9.0.3 seems to provide support for filtering the files that will be added to a project (see thread Re: update column for details), I don't really see the purpose of filtering again the files that will be transferred to classes/ (apart from the little bug).
    I think it would be far more useful to have the reverse filter, i.e. "Resource File Types not to Copy to Output Directory". JDev team, would it be possible to have this in 9.0.4?
    Thanks,
    Adrian

    >I tried to reproduce the problem and couldn't.
    Nevermind, I will be back on this when I'll have a simple example.
    >One question, is noext and file.verylongext part of your project?
    Well, you know, since I said I have them in my project, it means that I added them there and I checked that they really were added. No offense...
    >One more question, did you enable Scan Source Path to ... in the input paths panel of the pproject properties?
    No, I did not enable this option, since I see all my files in the project and the only source path is project's src.
    But my real point is related to the enhancement request I made. Given the circumstances,
    could you provide the reverse filter, i.e. "Resource File Types not to Copy to Output Directory", in a future version, maybe 9.0.4?
    Thanks,
    Adrian

  • Error [Microsoft][ODBC Excel Driver]Optional feature not implemented...

    Hi All,
    when i add setAutoCommit(false),
    i got run error [Microsoft][ODBC Excel Driver]Optional feature not implemented.
    i just want to insert data into excel using db.
    can anyone give suggestion??
    here my code:
    public void insertDatabase( ){
                String rule = "fty";
                double weight = 0.245;
               try{
                    String sql = "INSERT INTO [Sheet2$] ( Rule, Weight ) " +
                      "VALUES ( '"+ rule +"', '" + weight + "' )";
                     int row = myStatement.executeUpdate(sql);
                   myConnect.setAutoCommit(false);
                     myResultSetPapar = myStatement.executeQuery("Select * from [Sheet2$]");
                catch(SQLException e){
                            System.out.println(e.getMessage());
               }//catch
           }

    is it true that my driver does not supported??
    my MS Excel version 2002
    and driver vers. 4.0

  • Idea Centre B540 "Optional Features"

    I am just about to buy the B540 online but im held back by certain important features being noted as "optional" (ie: HDMI output, 3D Vision, TV Tuner, Blu-ray etc.). I cannot seem to find out how these optional features are added to my cart/spec nor how much these "optional features" cost, or even if they are in fact included in the spec.
    Has anyone purchased this model and know the answer to these questions? 
    NB: Its really annoying that I can't call or chat to anyone at Lenovo outside normal working hours, nor can I find an email address to send my query.....appologies if I am wrong and just not looking in the right place!
    Thanks in advance

    hi Natbag,
    thanks for posting. In order to contact the sales team, you can enquire through the link below.
    https://checkout.lenovo.com/DRHM/store?Action=DisplayContactFormPage&SiteID=lenovoeu&Locale=en_GB&En...
    hope this helps.
    regards

  • Getting [Microsoft][ODBC SQL Server Driver] Optional feature not implemented

    I am using below mentioned code to insert values in MSAccess 2000 which having table structure as mentioned below:-
    Field Name Data Type
    TodaysDate Date/Time
    Cart ID Number
    Client Name Text
    Campaign Text
    Team & Segment Text
    Duration Number
    Tape ID Text
    Start Date Date/Time
    End Date Date/Time
    Station Text
    Code:-
    private boolean enterDataIntoMSAccessDatabaseusingPreparedStatement()
       try {
      ps = connection.prepareStatement("INSERT INTO Cart ID Details VALUES (?,?,?,?,?,?,?,?,?)");
      System.out.println("After Query");
       catch (SQLException se) {
      generateErrorMessage("Error in Prepared Statement \n " + se.getMessage() );
       return false;
       catch (Exception e)
      generateErrorMessage("Unexpected Error Occured \n " + e.getMessage());
       String todaysDate = cartIDApplicationAddCartIDDatejTextField.getText().trim();
       String cartID = cartIDApplicationAddCartIDCartIDjTextField.getText().trim();
       String clientName = cartIDApplicationAddCartIDClientNamejTextField.getText().trim();
       String campaign = cartIDApplicationAddCartIDCampaignjTextField.getText().trim();
       String teamSegment = cartIDApplicationAddCartIDTeamAndSegmentjTextField.getText().trim();
       String duration = cartIDApplicationAddCartIDDurationjTextField.getText().trim();
       String tapeID = cartIDApplicationAddCartIDTapeIDjTextField.getText().trim();
       String startDate = cartIDApplicationAddCartIDStartDatejTextField.getText().trim();
       String endDate = cartIDApplicationAddCartIDEndDatejTextField.getText().trim();
       String station = cartIDApplicationAddCartIDDELjCheckBox.getText().substring(0, 3);
      System.out.println(station);
       try {
      System.out.println("Before ps.setString()");
      SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd", Locale.ENGLISH);
      System.out.println("Simple Date Format");
       /*ps.setString(1, todaysDate);
      ps.setString(2, cartID );
      ps.setString(3, clientName);
      ps.setString(4, teamSegment);
      ps.setString(5, duration);
      ps.setString(6, tapeID);
      ps.setString(7, startDate);
      ps.setString(8, endDate);*/
      System.out.println("1");
      ps.setDate(1, new java.sql.Date(simpleDateFormat.parse(todaysDate).getTime()));
      ps.setString(2, cartID);
      ps.setString(3, clientName);
      ps.setString(4, campaign);
      ps.setString(5, teamSegment);
      ps.setString(6, duration);
      ps.setString(7, tapeID);
      ps.setDate(8, new java.sql.Date(simpleDateFormat.parse(startDate).getTime()));
      ps.setDate(9, new java.sql.Date(simpleDateFormat.parse(endDate).getTime()));
      ps.setString(10, station);
      System.out.println("After ps.setString()");
      ps.executeUpdate();
       catch (SQLException se) {
      generateErrorMessage("Error while inserting data in database \n " + se.getMessage());
       return false;
       catch (Exception e)
      generateErrorMessage("Unexpected Error Occured \n" + e.getMessage() );
       return true;
    I got below error after implementing the above code:-
    [Microsoft][ODBC SQL Server Driver]Optional feature not implemented.
    Kindly help me for the same.

    >>  [Microsoft][ODBC SQL Server Driver]  
    I don't see anything Oracle in your question.   It looks like you're getting an error using Microsoft's SQL Server driver, did you mean to post this to a forum on  Microsoft's site perhaps?

  • [ODBC SQL Server Driver]Optional feature not implemented

    Hi,
    Has anyone faced such error @ analysis,
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: S1C00 code: 0 message: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented. [nQSError: 16012] ODBC error occurred while binding the parameters of a SQL statement. (HY000)
    we are having some issue on DBfeature check box issue.
    Thanks
    Deva

    Hi,
    Yes. after that only i am getting error. if i enabled Query DBMS then report is working with out error (we don't want to use query dbms option that's i just query dbms off option by Reset to default) then its thoewing error.
    Thanks
    Deva

  • How to specify java compiler options in JDeveloper ?

    I am using JDeveloper 10.1.2. I downloaded and installed JDK 5.0.
    In my "Project Properties"->"Libraries" I created a new "JDK 5.0" J2SE Version and pointed to the new JDK5.0 execuitable. So far so good.
    Now I need to compile all my source code with -source=1.4 option. How do I specify java compiler option "-source=1.4" in JDeveloper ?
    Thanks
    Sachin

    Even before compilig I am not sure that by just going to "Project Properties"->Libraries and creating a new J2SE, I now have the new compiler working with JDEveloper. How do I test this ?

  • Flex 4 lacks the default-background-color compiler option?

    Hello,
    started converting my Flex 3 applications to Flex 4 and noticed that Flex 4 lacks the default-background-color compiler option.
    Flex 3 has it: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
    Flex 4 doesn't: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
    This raises a question: how am I supposed to keep my background from flashing from grey to white when the RIA is loaded? Is it possible to use preloader with background set to whatever color I like to see? Any easier solutions?
    Best regards,
    Jukka

    This works for me:
    @namespace mx "library://ns.adobe.com/flex/mx";
    mx|Application{
         background-color:#ffffff;
    Of course if you have changed the Application element to spark equivalent, you have to change the namespace.
    Regards,
    Jukka

  • [OER 11.1.1.6.3] More Search Options feature

    Hi experts,
    IHAC who is trying to use More Search Options feature. It is able to mark the Filter by Categorizations check box that displays all the categorizations.
    The problem is that the customer is unable to mark any check box in order to select the categories for its search. It seems that check boxes are disabled.
    I have already set up the ‘Search’ settings in the System Settings page.
    I will appreciate any comments in order to help to fix the problem.
    Best regards,
    Carlos Almeida

    Lets back up and clarify terms.
    A 3 node RAC cluster has one (1) and only one (1) database. Three (3) instances but only one (1) database.
    If you are talking about something else you need to be very clear in your description.
    Assuming one database and three instances the listener and tnsnames files should be identical. And, as Oracle creates all of this during dbca installation, why is it a concern?

  • Help on "optional feature not implement" exception

    I am trying to use JDBC to update the MS Access table. the SQL is :
    " insert int table1 ([file name],[file description]) values ('DXXCP','RPF PRINT FILE FOR UPDATES');
    By runing this statement, I keep getting "optional feature not implemented" exeption. can any one tell me how to insert this record into Access using JDBC? thanks

    This successfully inserted your strings into an Access database:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.SQLException;
    public class InsertTest
        public static void main(String [] args)
            try
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection connection = DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=InsertTest.mdb");
                String query = "INSERT INTO table1([file name],[file description]) VALUES(?, ?)";
                PreparedStatement statement = connection.prepareStatement(query);
                statement.setString(1, "DXXCP");
                statement.setString(2, "RPF PRINT FILE FOR UPDATES");
                int rowCount = statement.executeUpdate();
                System.out.println(rowCount + " rows affected");
                statement.close();
                connection.close();
            catch (SQLException sqle)
                System.err.println("SQL State: " + sqle.getSQLState());
                System.err.println("SQL Error: " + sqle.getErrorCode());
                sqle.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
    }Use PreparedStatement.

  • Compile option is missing in the Packaging wizard

    I need to compile my local app jsp files but the problem is i could not able to find the compile option in the Packaging wizard. Can anyone advice how to compile  ?  The compile option is missing in the packing wizard. I was using it before without any issues but recently i upgraded my machine and need to compile once again.
    I am using oracle 10g lite and my machine is 64 bit.

    Ubuntu 11.xx displays window menus in the control bar at the top of the screen with the switch to the Unity window manager.
    * http://en.wikipedia.org/wiki/Ubuntu_Unity
    Click on Bookmarks/Show All Bookmarks then move your mouse to the left upper corner toward Firefox Web Browser.
    You'll get pop up menu (Organize, Views and Import and Backup).
    *[[/questions/822193]]

  • SetDate Error - Optional feature not implemented

    Hi I am trying to execute a PreparedStatement to do an insert, I to the best of my knowledge am using it correctly but I still get this ERROR:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implementedHere is a code sample:
    //SQL Create Table
    create table[test]
         [id] int not null identity primary key,
         [name] varchar(30) not null,
    --     [date] datetime not null     --Same result with this
         [date] smalldatetime not null
    GO
    //Java Code
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    public class DataExporter {
        private Connection conn = null;
        private PreparedStatement prep = null;
        public DataExporter() throws Exception{
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                conn = DriverManager.getConnection("jdbc:odbc:MyDatabaseDNSName");
                prep = conn.prepareStatement("INSERT INTO [TEST] ([NAME],[DATE]) VALUES(?,?)");
        public boolean run(String name, java.sql.Date date) throws Exception{
                prep.setString(1, name);
                prep.setDate(2, date);
                return prep.execute();
        public static void main(String[] args) throws Exception{
            DataExporter dExp = new DataExporter();
            java.sql.Date date = new java.sql.Date(System.currentTimeMillis());
            System.out.println("Check Value:\t" + date.toString());
            System.out.println("Result:\t" + dExp.run("Neil", date));
    }This is my results:
    Check Value:     2008-09-10
    Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
            at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
            at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
            at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterDate(JdbcOdbc.java:808)
            at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setDate(JdbcOdbcPreparedStatement.java:826)
            at DataExporter.run(DataExporter.java:14)
            at DataExporter.main(DataExporter.java:21)
    Java Result: 1Can someone please tell me why and how to fix the above to get it to work.(I am using Java 6 and MSSQL 2000)
    Thanx in advance

    gtRpr wrote:
    Thanx yawmark, I will try it.
    Just tell me: although I am using Java 6 at home,
    I use Java 1.4 at work were I will actually need this,
    What is the minimum version of Java that JTDS will work with(1.1, 1.2, 1.3, 1.4, 1.5, 1.6)? [JTDS feature matrix|http://jtds.sourceforge.net/features.html] (from the link I already posted).
    ~

Maybe you are looking for

  • Mac OS 10.6.8 Parental Controls interfere with Firefox by preventing access to websites and plug ins

    Mac OS 10.6.8 iMac, running FireFox 15 in grade school computer lab. When Parental controls are enabled in system preferences Firefox does not work properly. Can't use Google to search from the search bar at the top, can't access plug ins, there are

  • Final Cut Express scratch disk not found.

    I launch up final cut express and then it says "one or more scratch disks couldn't not be accesed." and it siad that it was the final cut express documents folder so I went on that and put all the permissions on read and write but it still said the s

  • Best practice for two differing encryption types

    I'm using a Aironet 1232g and I want to use WPA2-PSK. I have the XP clients connected appropriately (via WPA2-AES CCMP), however I also have a Ricoh Digital Sender (copier) that only supports WEP. What is the best security practice in this scenario?

  • ITunes Not Syncing Album Info

    An album I had in my iTunes library had the wrong year in it so it was not in the correct order chronologically so I changed the album release year in this case from 2008 to 1994. However despite it changing in iTunes OK when it syncs over to my phon

  • Trying to locate all PageMaker files on my Mac

    I'm trying to locate all PageMaker files on my Mac. It's difficult because they bare no common extension, for that matter, no extension at all. Can use AppleScript to collect a list of file names for any file with any of the following Creator codes.