SQLBindParameter(SQL_BIGINT) succeeds, SQLExecute fails, no diagnostics

I've got an insert into a table that is failing and I have no idea why.
Oracle 10g. Database on Windows Server 2003. Client on Windows XP.
The database:
     CREATE TABLE test ( testcol NUMBER(20,0) NULL );
The ODBC calls:
     SQLAllocHandle(SQL_HANDLE_STMT) = SQL_SUCCESS
     SQLPrepare(INSERT INTO test (testcol) VALUES (?);) = SQL_SUCCESS
     SQLINTEGER nStrLen = 0;
     __int64 nInt64 = 99;
     SQLBindParameter(hStatement, 1, SQL_PARAM_INPUT, SQL_C_SBIGINT, SQL_BIGINT, 20, 0, &nInt64, 0, &nStrLen) = SQL_SUCCESS
     SQLExecute() = SQL_ERROR
     SQLGetDiagRec(1) = SQL_NO_DATA
I've tried changing the testcol to NVARCHAR(5) and the bind appropriately and can insert things, so the connection to the database is fine.
Why is this failing? What am I doing wrong?
Why am I not getting any diagnostic records for the error?
I'm pulling my hair out on this one.

Hello
I have the same problem if I use SQL_C_BIGINT
Moreover the error message is empty "[]:"
If I use SQL_C_SLONG instead it work.
Have you found any solution ?
thanks

Similar Messages

  • Send mail after jobs get succeeded or failed in EM console ?

    Hi,
    Is there solution to send mail after jobs get succeeded and failed in EM console. if job get failed in em console the mail should send with error code

    Hi,
    For dbms_scheduler this ability is built-in from 11.2 and up. For EM jobs, you might want to ask on the Enterprise Manager forum here
    Enterprise Manager
    Thanks,
    Ravi.

  • Using SQLBindParameter, SQLPrepare and SQLExecute to insert a Decimal(5,3) type fails with SQLSTATE: 22003 using ODBC Driver 11 for SQL Server

    Hello everyone.
    I'm using SQL Server 2014, and writting on some C++ app to query and modify the database. I use the ODBC API.
    I'm stuck on inserting an SQL_NUMERIC_STRUCT value into the database, if the corresponding database-column has a scale set.
    For test-purposes: I have a Table named 'decTable' that has a column 'id' (integer) and a column 'dec' (decimal(5,3))
    In the code I basically do:
    1. Connect to the DB, get the handles, etc.
    2. Use SQLBindParameter to bind a SQL_NUMERIC_STRUCT to a query with parameter markers. Note that I do include the information about precision and scale, something like: SQLBindParameter(hstmt, 2, SQL_PARAM_INPUT, SQL_C_NUMERIC, SQL_NUMERIC, 5, 3, &numStr,
    sizeof(cbNum), &cbNum);
    3. Prepare a Statement to insert values, something like: SQLPrepare(hstmt, L"INSERT INTO decTable (id, dec) values(?, ?)", SQL_NTS);
    4. Set some valid data on the SQL_NUMERIC_STRUCT
    5. Call SQLExecute to execute. But now I get the error:
    SQLSTATE: 22003; nativeErr: 0 Msg: [Microsoft][ODBC Driver 11 for SQL Server]Numeric value out of range
    I dont get it what I am doing wrong. The same code works fine against IBM DB2 and MySql. I also have no problems reading a SQL_NUMERIC_STRUCT using SQLBindCol(..) and the various SQLSetDescField to define the scale and precision.
    Is there a problem in the ODBC Driver of the SQL Server 2014?
    For completeness, here is a working c++ example:
    // InsertNumTest.cpp
    // create database using:
    create a table decTable with an id and a decimal(5,3) column:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE[dbo].[decTable](
    [id][int] NOT NULL,
    [dec][decimal](5, 3) NULL,
    CONSTRAINT[PK_decTable] PRIMARY KEY CLUSTERED
    [id] ASC
    )WITH(PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON[PRIMARY]
    ) ON[PRIMARY]
    GO
    // Then create an odbc DSN entry that can be used:
    #define DSN L"exOdbc_SqlServer_2014"
    #define USER L"exodbc"
    #define PASS L"testexodbc"
    // system
    #include <iostream>
    #include <tchar.h>
    #include <windows.h>
    // odbc-things
    #include <sql.h>
    #include <sqlext.h>
    #include <sqlucode.h>
    void printErrors(SQLSMALLINT handleType, SQLHANDLE h)
        SQLSMALLINT recNr = 1;
        SQLRETURN ret = SQL_SUCCESS;
        SQLSMALLINT cb = 0;
        SQLWCHAR sqlState[5 + 1];
        SQLINTEGER nativeErr;
        SQLWCHAR msg[SQL_MAX_MESSAGE_LENGTH + 1];
        while (ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO)
            msg[0] = 0;
            ret = SQLGetDiagRec(handleType, h, recNr, sqlState, &nativeErr, msg, SQL_MAX_MESSAGE_LENGTH + 1, &cb);
            if (ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO)
                std::wcout << L"SQLSTATE: " << sqlState << L"; nativeErr: " << nativeErr << L" Msg: " << msg << std::endl;
            ++recNr;
    void printErrorsAndAbort(SQLSMALLINT handleType, SQLHANDLE h)
        printErrors(handleType, h);
        getchar();
        abort();
    int _tmain(int argc, _TCHAR* argv[])
        SQLHENV henv = SQL_NULL_HENV;
        SQLHDBC hdbc = SQL_NULL_HDBC;
        SQLHSTMT hstmt = SQL_NULL_HSTMT;
        SQLHDESC hdesc = SQL_NULL_HDESC;
        SQLRETURN ret = 0;
        // Connect to DB
        ret = SQLAllocHandle(SQL_HANDLE_ENV, NULL, &henv);
        ret = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3, SQL_IS_INTEGER);
        ret = SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
        ret = SQLConnect(hdbc, (SQLWCHAR*)DSN, SQL_NTS, USER, SQL_NTS, PASS, SQL_NTS);
        if (!SQL_SUCCEEDED(ret))
            printErrors(SQL_HANDLE_DBC, hdbc);
            getchar();
            return -1;
        ret = SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);
        // Bind id as parameter
        SQLINTEGER id = 0;
        SQLINTEGER cbId = 0;
        ret = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &id, sizeof(id), &cbId);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        // Bind numStr as Insert-parameter
        SQL_NUMERIC_STRUCT numStr;
        ZeroMemory(&numStr, sizeof(numStr));
        SQLINTEGER cbNum = 0;
        ret = SQLBindParameter(hstmt, 2, SQL_PARAM_INPUT, SQL_C_NUMERIC, SQL_NUMERIC, 5, 3, &numStr, sizeof(cbNum), &cbNum);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        // Prepare statement
        ret = SQLPrepare(hstmt, L"INSERT INTO decTable (id, dec) values(?, ?)", SQL_NTS);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        // Set some data and execute
        id = 1;
        SQLINTEGER iVal = 12345;
        memcpy(numStr.val, &iVal, sizeof(iVal));
        numStr.precision = 5;
        numStr.scale = 3;
        numStr.sign = 1;
        ret = SQLExecute(hstmt);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        getchar();
        return 0;

    This post might help:
    http://msdn.developer-works.com/article/12639498/SQL_C_NUMERIC+data+incorrect+after+insert
    If this is no solution try increasing the decimale number on the SQL server table, if you stille have the same problem after that change the column to a nvarchar and see the actual value that is put through the ODBC connector for SQL.

  • Error code: 3194 when restoring.. "Secure link to iTunes store failed" when diagnostics is ran..

    as mentioned in the title, I have encountered 2 errors, one is when I am trying to restore my iphone and the other when iTunes diagnotics feature is ran..
    I have read the information about the diagnostics result and saw something like "connection attempt to firmware update server unsuccessful". Because of this information I have concluded that the "error code 3194" happens because iTunes itself is unable to connect to the "firmware update server".
    I am using Windows 7 64-bit and iTunes is now on the latest version.
    below are the things I have done so far, but to no avail:
    - removed/disabled my antivirus program
    - put iTunes to exception list of WIndows Firewall
    - disabled windows firewall and windows defender
    - re-installed iTunes and made sure that it is of the latest version (version 10.6.1)
    - performed recommendation from: https://discussions.apple.com/message/17409780#17409780
    - perform flush dns command using command prompt
    In addition to the steps I mentioned, I also tried running the diagnostics on two other computers running on different versions on iTunes, 10.5 and 10.6.0. I also did the same steps as above on these two computers, but I am getting the "secure connection to iTunes store failed" when the diagnostics were ran.
    thanks for any help that you can give.

    I think its weird that I experienced both the 3194 error code and "secure link to the itunes store failed" diagnostics error on three computers running on different OS (XP, vista and 7), itunes version and connectivity types (wireless and cabled). Could it be possible that there is a problem on Apple's server?
    Are you still there, shintenhouji?
    Perhaps try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (I've seen a few cases in recent times of this sort of thing being associated with LSP issues.)

  • Oracle Scheduler Chain Step - Succeeds and Fails at the same time?

    Hi,
    I have a chain program that executes a script :-
    exec DBMS_SCHEDULER.CREATE_PROGRAM (
    program_name => 'xxxx_execute_script'
    ,program_type => 'EXECUTABLE'
    ,program_action => '/home/xxx/run_remote_xxxx.sh'
    ,number_of_arguments => 0
    ,enabled => true
    ,comments => 'execute drms shell script'
    The script does a remote execute to a another script on a different machine.
    I have a chain step setup as :-
    exec DBMS_SCHEDULER.DEFINE_CHAIN_STEP (
    chain_name => 'xxx_drms_manual_load',
    step_name => 'STEP30',
    program_name => 'drms_execute_script');
    I have chain rules :-
    (execute the script)
    exec DBMS_SCHEDULER.DEFINE_CHAIN_RULE (
    chain_name => 'xxx_drms_manual_load'
    ,condition => 'STEP20 succeeded'
    ,action => 'START STEP30'
    ,rule_name => 'drms_rule_030'
    ,comments => 'start drms step30 - execute_script'
    (chain rule for failed - executes a stored procedure to sends a warning email)
    exec DBMS_SCHEDULER.DEFINE_CHAIN_RULE (
    chain_name => 'jpl_drms_manual_load'
    ,condition => 'STEP30 failed'
    ,action => 'start step31'
    ,rule_name => 'drms_rule_035'
    ,comments => 'drms - sends unix script error email'
    (chain rule for succeeded - executes a stored procedure to check for certain processing codes)
    exec DBMS_SCHEDULER.DEFINE_CHAIN_RULE (
    chain_name => 'jpl_drms_manual_load'
    ,condition => 'STEP30 succeeded'
    ,action => 'START STEP40'
    ,rule_name => 'drms_rule_050'
    ,comments => 'start drms step40 - check for errors'
    Everything has been running fine until a couple of days ago.
    The job chain now seems to run Step 31 (failed) AND step40 (successful) ! How can this be?
    All job steps run according to the oracle job log (all_SCHEDULER_JOB_RUN_DETAILS) - (STEP31 does not appear in the log - even though it runs - we recieve a warning email)
    There no non zero return codes for the job steps.
    Is there a way to see the return code from the execution of the script (STEP30) to see what the return code is ??
    Thanks in advance,

    Hi,
    You can select from the dba_scheduler_job_run_details and filter on job name to track the execution progress of a chain.
    Hope this helps,
    Ravi.

  • Airport settings failed in diagnostics

    ok i am about ready to throw my new macbook out the window. I just downloaded the new software update for leopard and now i cant connect wirelessly. when i run the diagnostics it says airport settings failed. please help before i shoot this macbook

    Apparently Apple are aware of this problem and there should be a fix released on Software Update quite soon. I am experiencing similar problems, but when I run Network Diagnostics I am able to reconnect. Looks like you've been waiting quite some time for the fix though looking at the date you posted your message.

  • [solved] apophenia: make succeeds, makepkg fails

    Hello! I tried to write a PKGBUILD for a statistics library called apophenia (http://apophenia.info/). I can './configure && make' in the source directory without any problems, but when I run makepkg the build fails with the following error:
    CC apop_tests.lo
    CC apop_model_transform.lo
    CC apop_update.lo
    CC asprintf.lo
    In file included from /usr/include/stdio.h:937:0,
    from asprintf.c:34:
    asprintf.c: In function 'asprintf':
    /usr/include/bits/stdio2.h:207:1: error: inlining failed in call to always_inline 'vasprintf': function not inlinable
    asprintf.c:248:10: error: called from here
    make[2]: *** [asprintf.lo] Error 1
    make[2]: Leaving directory `/home/joshua/ABS/apophenia/src/apophenia-0.99'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/joshua/ABS/apophenia/src/apophenia-0.99'
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    Note that the library author included the file asprintf.c in the source, but an arch system should already have this in stdlib or something, right? Anyway, here is the PKGBUILD. I'm compiling on an x86_64 machine, by the way.
    pkgname=apophenia
    pkgver=0.99
    pkgrel=1
    pkgdesc="An open statistical library"
    url="http://apophenia.info"
    arch=('x86_64' 'i686')
    license=('GPLv2' 'custom:apop_license')
    depends=('gsl' 'lapack')
    optdepends=('sqlite')
    makedepends=()
    conflicts=()
    replaces=()
    backup=()
    install=
    source=("https://github.com/downloads/b-k/Apophenia/${pkgname}-${pkgver}-03_Dec_12.tgz")
    md5sums=('5f23bb2e40b1bdf6e9b63e419cd896bc')
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure
    make
    package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
    install -Dm644 COPYING2 "$pkgdir/usr/share/licenses/$pkgname/apop_license"
    Any ideas?
    Last edited by diffyQ (2013-01-09 04:08:03)

    Thanks, '!buildflags' did the trick.  I'll have to figure out which option was causing the problem.
    Last edited by diffyQ (2013-01-09 04:08:24)

  • IOS Update via Device Manager - 2960 S and X Series Succeed, Others Fail

    Hello,
    I am doing a round of IOS updates on a small LAN with a mix of 2960, 2960S, and 2960X switches.  I have been using the built-in Device Manager, selecting the Software Upgrade option on the toolbar.  So far the 'S' and 'X' series switches have upgraded successfully.  The 2960 (WS-C2960-24TC-L) series have thus far all failed. 
    With this failing switch type I select the appropriate .tar, as usual, click the Upgrade button, and wait.  In every case the process hangs at step 1. 'Loading the tar file to the switch'.  I am trying to upgrade this failing switch type to 15.0.2-SE7.  The switches to be upgraded are currently at firmware versions ranging from 12.2.(50)SE1 to 12.2(55)SE7.
    Is anyone aware of any known issues with this series of switches that may cause IOS upgrades to hang in this fashion?
    Thank You,

    Please use [ code] tags https://bbs.archlinux.org/help.php#bbcode
    like this
    or [ quote ] tags instead of [ ins ] tags - that bright yellow if hard on the eyes.

  • GPIB Writing Succeeds, Reading Fails

    Operating System: Windows 2000 SP4
    NI-488.2: 2.3
    Controller: PCI-GPIB+
    Symptom: Writing to instruments is successful, reading is not
    Example using frequency synthesizer, the instrument uses only EOI to terminate reads and writes. The following NI Spy output shows a successful setting of frequency to 3000HZ and then a time-out when interrogating the current frequency setting. On receiving the ibrd command the instrument "Listen" light turns off, the "Talk" light turns on but no data is received.
    NI Spy transcript:
    1. ibwrt(UD0, "FR3000HZ", 8 (0x8))
    Process ID: 0x00000160 Thread ID: 0x0000073C
    Start Time: 12:42:43.096 Call Duration: 00:00:00.020
    ibsta: 0x100 iberr: 0 ibcntl: 8(0x8)
    2. ibwrt(UD0, "IFR", 3 (0x3))
    Process ID: 0x00000160 Thread ID: 0x0000073C
    Start Time: 12:45:36.600 Call Duration: 00:00:00.000
    ibsta: 0x100 iberr: 0 ibcntl: 3(0x3)
    > 3. ibrd(UD0, "", 2000 (0x7D0))
    > Process ID: 0x00000160 Thread ID: 0x0000073C
    > Start Time: 12:45:54.639 Call Duration: 00:00:16.786
    > ibsta: 0xc100 iberr: 6 ibcntl: 0(0x0)
    The GPIB+ analyzer record is (instrument is at address 18):
    TA0 UNL LA18
    FR3000HZ END IFR END
    UNL LA0 TA18
    Similar results with at least one other instrument.

    Lemuel,
    There must be something different happening between W95 and W2K. There are no reported cases of the 2.3 driver failing to do something so common. Since you do have an analyzer card, however, we can get into the bus and see what the differences are. First, let's get a capture of the W95 machine "working case". Connect the windows 95 machine to the instrument like normal, but then also daisy-chain the PCI-GPIB+ analyzer card in the other computer onto the bus. Make sure that MAX and all other programs are closed, and then run the GPIB analyzer application while you do the IFR command from the 95 machine. Make sure you have the analyzer app set to these settings. It should work like normal. Save that capture.
    Next, connect your PCI-GPIB+ board and the instrument together (without the W95 machine). Run the same capture and save that as the failing case. Look over them to see if you can find any major differences (the timing will be slightly different, but that shouldn't affect much). If you'd like to post the 2 captures here, I'll take a look at them.
    Thanks,
    Scott B.
    GPIB Software
    National Instruments

  • SQLExecute fails when I add "ORDER BY"

    I'm running an old ORA 8.1.7 ODBC driver on win2k (tried to install latest, but don't have Oracle Universal Installer).
    My code works perfectly without "ORDER BY" in the select clause, but as soon as I add it I get the error:
    Mon Jun 02 11:32:29 2003 - S1000:1:921:[Oracle][ODBC][Ora]ORA-00921: unexpected end of SQL command
    Here's a code snippet:
    sprintf(selectstatement,
    "select amount, payment_due_date from mytable where account_no = %d group by payment_due_date", account_no);
    retval = SQLPrepare(hstmt, (SQLCHAR*) selectstatement, sizeof(selectstatement));
    if ((retval != SQL_SUCCESS) && (retval != SQL_SUCCESS_WITH_INFO))
    // error processiing
    retval = SQLExecute(hstmt);
    if ((retval != SQL_SUCCESS) && (retval != SQL_SUCCESS_WITH_INFO))
         // Here's where it fails

    Group by clauses are used when you want to use an aggregate function (i.e. min, max, etc.) It doesn't make sense to group by one column when you're not selecting an aggregate.
    Let's assume that the statement
    select amount, payment_due_date from mytable where account_no = %d
    returned the rows
    amount  payment_due_date
    $1000   March 3, 2003
    $1500   March 10, 2003
    $2000   March 10, 2003What would you want the group by payment_due_date to do?
    Justin

  • Diagnostics fail

    When I run the Diagnostics, the Hardware detections passes but everything else fails...the wave driver, MIDI driver, Mixer Driver, DirectSound 3D Driver and the Mixer Settings Check.
    I reinstalled Sound Blaster - complete installation including the Creative software - then downloaded the new drivers available. It's still failing the diagnostics.
    But, when I run the Speaker Settings, all 5 speakers work just fine. When I use the Console (effects enabled) to use the quarry, room, and some others I get rear speaker sound. When I try to run 'hallway' there is no rear speaker sound. I've got the rear sound turned up all the way. CMSS 3D is enabled.
    So, the question is: why would diagnostics fail when so much seems to be running OK?
    Thanks much for your help.
    Mike

    If you are unable to resolve you problem by any other mean, then Follow these steps, I can't gurantte the success but I resolved the simillar issues with my SB Li've 5. (2 years back) in the same way.
    First Download and install driver cleaner pro (google it)
    . Close all mutlimedia applications
    2. Uninstall all creative drivers and softwares (Do not restart)
    3. Go to device manager, if your sound card is still listed then manually uninstall it (right click on the device and select uninstall)
    4. Shut down the computer
    5. Remove ur sound card
    6. Start windows in safe mood
    7. run driver cleaner (select both creative and creative lite) and clean all creative stuff.
    8. Shutdown the computer
    9. Insert the sound card back on ur PC, be sure to select a different slot (this step is v important).
    0. Now start windows, install the latest drivers only and reboot
    . On Next boot, Run creative diagnostic.
    Please make sure you antivirus program is disables during this process.
    I hope this would help.
    Good Luck.Message Edited by BasicKiller on 08-08-200702:53 PM

  • Installation of Client Access role fails on Windows Server 2008 R2 (Execution of: "$error.Clear(); Install-ExchangeCertificate -services "IIS, POP, IMAP")

    Hello
    I am trying to install Exchange Server 2010 beta 1 onto a Windows Server 2008 R2 (build 7000) machine which has also been set up as a domain controller.
    However when attempting to install the Client Access role, setup fails with the error below.
    Does anyone know of a way to get around this please?
    I have already searched for this error and not found any similar threads.
    Also every time I press the code button on this forum it crashes the browser and I keep losing the message! (IE8 from within Server R2). Also the message box is very small, will not expand and keeps jumping to the top.
    Thanks
    Robin
    [code]
    Summary: 4 item(s). 1 succeeded, 1 failed.
    Elapsed time: 00:00:01
    Preparing Setup
    Completed
    Elapsed Time: 00:00:00
    Client Access Role
    Failed
    Error:
    The execution of: "$error.Clear(); Install-ExchangeCertificate -services "IIS, POP, IMAP" -DomainController $RoleDomainController", generated the following error: "Could not grant Network Service access to the certificate with thumbprint 2F320F5D5B5C6873E54C8AB57F604D8AFA31D18C because a cryptographic exception was thrown.".
    Could not grant Network Service access to the certificate with thumbprint 2F320F5D5B5C6873E54C8AB57F604D8AFA31D18C because a cryptographic exception was thrown.
    Access is denied.
    Elapsed Time: 00:00:01
    Mailbox Role
    Cancelled
    Finalizing Setup
    Cancelled
    [/code]
    Robin Wilson

    Hello
    Thanks for all the replies.
    I have since wiped the system and installed everything again and it all worked this time so not sure what was wrong last time. I did try to uninstall all Exchange components and then uninstall IIS and Application server, reboot and re-install but I received the same error still when it came to installing the client access role.
    Walter: I just attempted the standard installation which should have used the default self-signed certificate. Everything was a fresh install done at the same time on a freshly formatted PC.
    For info last time when it failed to work:
    - Installed Windows Server 2008 R2
    - Installed Domain Controller role using dcpromo. I set the forest and domain as Windows Server 2008 R2
    - Added a forest trust between main domain and test Exchange domain (set up as ex2010.local)
    - Installed IIS and Application Server role
    - Installed Hyper-v role
    - Installed Desktop Experience feature
    - Installed Exchange and recieved the error
    When it worked I set up the forest and domain in Windows Server 2008 mode (i.e. not R2), installed Exchange first and then set up the forest trust and then Hyper-v. It did say it failed to configure dns which was probably because it started trying to do automatic updates half way through the dcpromo! DNS seems to work ok though.
    I did notice this time that Hyper-v gave a warning about the virtual network adapter not being set up correctly and the local network did not work correctly although I could access the internet. Not sure if this could have been related to the cause of the problem previously. For now I have disabled the virtual network until I get time to try and get it working and so the mail will work in the meantime.
    I also noticed that Hyper-v added an extra 443 ssl binding to the default website so as it had 2 bindings on port 443 it refused to start. After deleting one it worked.
    I decided to install Exchange onto a domain controller as it is only a test and I wouldn't do it in a live environment. I am also short of test machines! It didn't give me any warnings about this actually, I think previous versions warn you that it is not recommended.
    Andreas and Chinthaka: I did not know about the requirement to run the domain at 2003 mode. The main domain is running in 2008 mode with Exchange 2007 so I assume this is just a temporary beta related requirement. It does seem to be working (second attempt) so far in a 2008 mode domain although I haven't had a chance to fully test it yet.
    Thanks
    Robin
    P.S. Sorry it's taken me a while to reply!
    Robin Wilson

  • Scheduled Web Intelligence report fails with ORA-01013 and WIS 10901

    Hi,
            the environment I'm working in is BOXI R2 SP4 on a Solaris 10 server using WebLogic running against Oracle 9i database.
    I have a report written by one of the users. In SQL Viewer the SQL detailed is two joined Select statements. Each time this report is either scheduled or refreshed is fails with an ORA-01012 and WIS 10901 error.
    I am of the understanding that this failure relates to the fact that the 'Limit Execution Time To;'  value is being exceeded.
    I also understand that this value is infact divided by the number of Select statements present, and that each Select statment is them allocated an equal portion of this value.
    If any of this is incorrect please correct me.
    I therefore have two questions
    1. As such would I be correct in assuming that in my scenario where 2 Select statments are present and where the execution limit is set to 30 minutes, that each Select has 15 minutes to complete, and that if either fails the ORA-01012 and WIS 10901 error is generated.
    2. Also would this error message get generated as soon as the first failure occurred, or would BO initiate a cancellation of the SQL by Oracle, ORA-01012, only when the final request has either succeeded or failed.

    The queries are not executed in parallel but in serial. So the total execution time configured will be for all the Select statements in the report combined.
    As for your second question, since the execution is not parallel hence BO will not initiate any error message until the total execution time exceeds the defined limit. This could be during the execution of first select statement or the second.
    Try executing the queries directly in database one by one and see how much time they are taking.
    - Noman Jaffery

  • Every time I try to open my 2 year old copy of CS6, it takes me to the trial window. Updating either failed entirely or didn't help.

    Apparently, there was a patch to fix this very same problem one year ago — i’ve tried it and it hasn’t helped. The first attempt failed to install. The second attempt supposedly succeeded but failed to help. I then tried going to the latest update -- 13.0.6 i believe -- but the exact same thing happened. It either failed to update successfully, or didn't help.
    I’ve looking through my adobe account, and I can’t find CS6 registered with my products. Theres a copy of Elements 10 registered to the date when I believe my CS6 purchase occured, but whether this is new or not, I don’t know. I never peruse my adobe account enough to compare. Regardless, the serial number failed to help.
    If there is anyone that can assist me, it would be greatly appreciated. I have a lot of work I need to be able to get back to.

    Sign in, activation, or connection errors | CS5.5 and later
    Download CS6 products
    For anything beyond that you will have to provide proper system info and other details, which you haven't done so far.
    Mylenium

  • Failed to getSSOToken after second connection in one JVM

    I met a problem when connected to two hosts to getSSOToken. I can get the SSO token in the first connection but failed in the second connection. And during the second connection, login succeeded, but failed to getSSOToken from AuthContext. The code is:
    import com.iplanet.am.util.SystemProperties;
    import com.iplanet.sso.SSOToken;
    import com.sun.identity.authentication.AuthContext;
    import com.sun.identity.authentication.spi.AuthLoginException;
    import javax.net.ssl.*;
    import javax.security.auth.callback.Callback;
    import javax.security.auth.callback.NameCallback;
    import javax.security.auth.callback.PasswordCallback;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.security.KeyStore;
    import java.security.SecureRandom;
    import java.security.cert.CertificateException;
    import java.security.cert.X509Certificate;
    public class AuthSession {
    public static void main(String[] args) throws Exception {
    AuthSession session1 = new AuthSession();
    session1.login("IP1", "login1", "pass1");
    String cookie1 = session1.getCookieId();
    System.out.println("Cookie: " + cookie1);
    session1.logout();
    AuthSession session2 = new AuthSession();
    session2.login("IP2", "login2", "pass2");
    String cookie2 = session2.getCookieId();
    System.out.println("Cookie: " + cookie2);
    session2.logout();
    private AuthContext authContext = null;
    private SSOToken ssoToken = null;
    private static final String NGSSO_SEC_LOGIN_MODULE = "NgssoSecLoginModule";
    private static final int PORT = 58082;
    private static final String COOKIE_NAME = "iPlanetDirectoryPro";
    public void login(String host, String user, String pwd) throws Exception {
    this.authContext = getAuthContext(host, user, pwd);
    public void logout() {
    try {
    if (authContext != null) {
    authContext.logout();
    authContext.reset();
    authContext = null;
    } catch (AuthLoginException e) {
    throw new RuntimeException(e);
    public String getCookieName() {
    return COOKIE_NAME;
    public String getCookieId() throws Exception {
    return getSSOToken().getTokenID().toString();
    private SSOToken getSSOToken() throws Exception {
    if (authContext != null) {
    if (ssoToken == null) {
    ssoToken = authContext.getSSOToken();
    return ssoToken;
    return null;
    private static AuthContext getAuthContext(String hostname, String login, String password) throws Exception {
    String url = "https://" + hostname + ":" + PORT + "/amserver/namingservice";
    initProperties(password, url, hostname);
    AuthContext localAuthContext = new AuthContext("/");
    localAuthContext.login(AuthContext.IndexType.MODULE_INSTANCE, NGSSO_SEC_LOGIN_MODULE);
    Callback[] callbacks = localAuthContext.getRequirements();
    while (callbacks != null) {
    NameCallback nameCallBack = null;
    PasswordCallback passwordCallback = null;
    for (Callback callback : callbacks) {
    if (callback instanceof NameCallback) {
    nameCallBack = (NameCallback) callback;
    if (callback instanceof PasswordCallback) {
    passwordCallback = (PasswordCallback) callback;
    if (nameCallBack != null && passwordCallback != null) {
    nameCallBack.setName(login);
    passwordCallback.setPassword(password.toCharArray());
    } else {
    throw new Exception("connection failed on '" + hostname + "'");
    localAuthContext.submitRequirements(callbacks);
    callbacks = localAuthContext.getRequirements();
    if (localAuthContext.getStatus() != AuthContext.Status.SUCCESS) {
    throw new Exception("bad login/pwd on '" + hostname + "'");
    return localAuthContext;
    private static String getKeyStore(String password) throws Exception {
    File keyStore = File.createTempFile("wskeys_", ".keystore");
    keyStore.deleteOnExit();
    String keyStoreFileName = keyStore.getAbsolutePath().replaceAll("\\\\", "/");
    PrivateTrustManager trustManager = new PrivateTrustManager(keyStoreFileName, password);
    SSLContext context = SSLContext.getInstance("SSL");
    context.init(null, new TrustManager[]{trustManager}, new SecureRandom());
    HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory());
    return keyStoreFileName;
    private static void initProperties(String password, String url, final String hostname) throws Exception {
    String keyFileName = getKeyStore(password);
    HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
    public boolean verify(String urlHostName, javax.net.ssl.SSLSession session) {
    return true;
    System.setProperty("javax.net.ssl.trustStore", keyFileName);
    System.setProperty("javax.net.ssl.trustStorePassword", password);
    SystemProperties.initializeProperties("com.iplanet.am.naming.url", url);
    SystemProperties.initializeProperties("com.iplanet.services.debug.level", "error");
    SystemProperties.initializeProperties("com.iplanet.services.debug.directory","D:\\tmp");
    System.setProperty("com.iplanet.am.naming.url", url);
    System.setProperty("com.sun.identity.agents.app.username", "administrator");
    System.setProperty("com.iplanet.am.service.password", password);
    System.setProperty("com.iplanet.am.naming.failover.url","");
    System.setProperty("com.iplanet.services.debug.level","error");
    System.setProperty("com.sun.identity.agents.notification.enabled","false");
    System.setProperty("com.iplanet.am.server.protocol", "https");
    System.setProperty("com.iplanet.am.server.host", hostname);
    System.setProperty("com.iplanet.am.server.port", String.valueOf(PORT));
    System.getProperty("com.iplanet.am.serverMode");
    private static class PrivateTrustManager implements X509TrustManager {
    private String keyStoreName;
    private String password;
    public PrivateTrustManager(String keyStoreName, String password) {
    this.keyStoreName = keyStoreName;
    this.password = password;
    public void checkClientTrusted(X509Certificate[] chains, String authType) {
    public void checkServerTrusted(X509Certificate[] chains, String authType)
    throws CertificateException {
    FileOutputStream keyStoreOutputStream = null;
    try {
    KeyStore keyStore = KeyStore.getInstance("JKS", "SUN");
    char[] storePassword = password.toCharArray();
    keyStore.load(null, storePassword);
    for (X509Certificate oneChain : chains) {
    keyStore.setCertificateEntry("wskey", oneChain);
    keyStoreOutputStream = new FileOutputStream(keyStoreName);
    keyStore.store(keyStoreOutputStream, storePassword);
    } catch (Exception e) {
    throw new CertificateException(e);
    finally {
    try {
    if (keyStoreOutputStream != null) {
    keyStoreOutputStream.close();
    } catch (IOException e) {
    e.printStackTrace();
    public X509Certificate[] getAcceptedIssuers() {
    return new X509Certificate[0];
    Does anyone have idea? Thanks a lot!

    And when the java code is executed, below exception is thrown:
    com.iplanet.sso.SSOException: AQIC5wM2LY4SfcwNBIUIhyedKiqTZSd+vcrG5/PD5Pir+lc=@AAJTSQACMDE=# Invalid session ID.AQIC5wM2LY4SfcwNBIUIhyedKiqTZSd+vcrG5/PD5Pir+lc=@AAJTSQACMDE=#
         at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:178)
         at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:305)
         at com.sun.identity.authentication.AuthContext.getSSOToken(AuthContext.java:1071)
         at AuthSession.getSSOToken(AuthSession.java:77)
         at AuthSession.getCookieId(AuthSession.java:70)
         at AuthSession.main(AuthSession.java:36)
    Exception in thread "main" com.sun.identity.common.L10NMessageImpl: Error occurred while creating SSOToken.
         at com.sun.identity.authentication.AuthContext.getSSOToken(AuthContext.java:1074)
         at AuthSession.getSSOToken(AuthSession.java:77)
         at AuthSession.getCookieId(AuthSession.java:70)
         at AuthSession.main(AuthSession.java:36)
    It's strange that it can be succeeded to invoke authContext.getAuthIdentifier(), while failed to getSSOToken().getTokenID().toString().

Maybe you are looking for

  • Minority Interest on Ownership Change

    Dear All, How to achieve Minority Interest on Ownership Change in the same financial Year. For Example:  For April Ownership and Minority interest is 60% and 40% respectively and PROFIT is YTD 1000. On that period, Minority will be calculated at 40%

  • IPad mini and Apple TV reviews...

    Is anyone using this combination with a projector??? I want to use it in my classroom but have noticed a few posts where people have mentioned the scaling is off. Please let me know if you are using the ipad mini/apple tv/projector combination and if

  • Use auto red-eye and auto c/a algorithms from RSP

    I'm assuming that Michael J. and company are still associated w/ LightRoom, I'd like to see the auto red-eye fix and the auto c/a fix functionalty from RSP used in LightRoom. I find the manual red-eye fix tool in LightRoom difficult/unwieldy and the

  • How can I find Application Name/ EAR Name in runtime

    Hi, We need to log the Application Name and Name of the EAR. Is there a way to find these names runtime. Thanks, RK

  • JTreeTable - Dynamic Child Loading - Selection problem

    Hi, I'm using JTreeTable Example 3 for my application. I've hidded the root and I am loading the child nodes for the second level nodes(parent) dynamically using the treeWillExpand() method . So my Model will be updated dynamically during runtime. Th