Error when querying long raw

Hi,
I am using developer 6i with oracle 10.2.0.4 on win 2008.
I created a table as below:
create table image_table (filename varchar2(255) primary key, image long raw);
i created a trigger in forms to upload a image and store the link in the database. The image is stored in a directory.
The image link is saved in image_table.
But when i query the table, i get the below error
SQL> select * from image_table;
ERROR:
ORA-00932: inconsistent datatypes
no rows selected
When i query the table in TOAD, i get the output as
FILENAME, IMAGE
ateeq, (BLOB)
Please suggest how to solve this problem.
Thanks,

the LONG and LONG RAW datatype have been deprecated in Oracle 8.0, in 1998, so 14 years ago!
Is there any sound reason why you can't use a BLOB?
a LONG ROW column can not be displayed directly, so a
select * from image_table
where one of the columns is a LONG RAW is expected not to work,
and if you would have read documentation (which you never do, I remember you from previous doc questions), you would have known and not have asked Yet Another Redundant Question!
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Error when querying REST web services from web-based InfoPath form 2013 environment

    Error when querying REST web services from web-based InfoPath form 2013 environment, we are trying to consume REST web service in InfoPath form ( SharePoint 2013 version) 
    http://spapp/sites/litigation/Intake/_api/web/lists/getbytitle('Email%20Profiles')/items(1)
    it works in preview but does not when it is published. because of claim based authentication i m getting below error
    The form cannot run specified query, the underlying connection was closed. An expected error occurred 
    same works in 2010 environment .. are we missing anything in 2013 servers?? please let me know how we can resolve it.. thank you 
    guru

    everyone face this issue, nothing in event viewer, its easy to reproduce error at ur end also.. 
    just you need to use below web service in infopath and populate some data on form load like id = 1 pull the title and try to set in form any field...the
    list has one item thats all
    guru

  • QBE Error when query by String for Number column

    Hi,
    I have a table with Number column.
    The column structure is like below:
    <af:column>
    <af:inputText>
    <f:validator .../>
    <af:converNumber ..../>
    </af:inputtext>
    </af:column>
    QBE is enabled for this column.
    It works fine when query by Number value, such as '123'. But when I query by string like 'asd', it will return an error.
    Anyone met this problem?

    Hi Arun,
    I am using Jdev 11.1.1.7.0.
    In my case,
    I have a application table, from where user can create new row inline. Some fields in the row have type Long or Number. We are also using <af:converNumber ..../> inside <af:inputText> to do format.
    I do have a query panel above the table. But we want the user can also filter the records using QBE. Other columns are working fine, except the columns with type 'Number' or 'Long'.
    I checked the incident log, below are some useful information:
    Caused by: java.sql.SQLSyntaxErrorException: ORA-01722: invalid number
    Caused by: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT ... FROM ... WHERE ... AND ( ( (MeaRulesEO.DEFAULT_MEA_PERIOD = :vc_temp_1 ) ) )
    It seems 'MeaRulesEO.DEFAULT_MEA_PERIOD = :vc_temp_1' causes the error. Jdev assumes every input from QBE header as number. If String is entered, Jdev will return error.
    I also checked that if the table is read-only, this problem does not exist.
    Please help on this. Thank you.

  • Error when opening Canon Raw images.....Photoshop CC2014

    Hi,
    tried already in the german forums without answer, so will try it her
    System:
    macbook pro 2012, Core i7
    16GB Ram
    after upgradinf to 10.10. full and the upgrades for Photoshop i have the following problem,
    this occured 4 times now.
    When double clicking a Canon Raw Image (.cr2 file) Camera Raw 8.6 opens.
    Now i can adjust the pic - and/or can open it into Photoshop
    worked fine so far....but not always since the update
    If i do so, sometime the pic will be opened like this
    is here a photoshop pro aware of this error?
    So far i did NOT reinstall Photoshop.
    Its the only application i use (and PTGui sometimes)
    happens since the last updates
    The only thing i did is: also using (at this time only installed) Lighroom. Have to look how it works first
    Ideas or suggestions?
    Thanks
    Frank

    I have made a few more observations.
    I can actually open Camera Raw if I click the "Open in Camera Raw..." icon i Bridge.
    In Camera Raw I can save files as .psd for example, and also open them in Photoshop. I still get the error when I try to open Camera Raw settings.

  • Intermittent errors when querying the AD

    HI,
    We recently replaced 2 old windows 2003 dc'S with windows 2008r2 dc'S. All is working ok except on odd occasions when query the AD i get errors such as "Server not operational" or "Domain does not exist" Everything looks correct on DNS
    and there are no entries for the old servers so i am looking at alternatives. If i run wireshark i get entries such as
    192.168.180.132     192.168.180.255     NBNS     92 Name query NB XXXXXXX
    192.168.180.132 is the ip of a standard workstation
    192.168.180.255 is an ip that has no harware associated with it
    XXXXXX is the server name for one of the old servers i removed
    not sure if this is realted or not, but i think both need to be resolved. 
    New to all this, can anybody guide on where to start
    Thansk
    Gareth

    running standard dcdiag produces:
    DC1
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = JIGSAWFS6
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\JIGSAWFS6
          Starting test: Connectivity
             ......................... JIGSAWFS6 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\JIGSAWFS6
          Starting test: Advertising
             ......................... JIGSAWFS6 passed test Advertising
          Starting test: FrsEvent
             ......................... JIGSAWFS6 passed test FrsEvent
          Starting test: DFSREvent
             ......................... JIGSAWFS6 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... JIGSAWFS6 passed test SysVolCheck
          Starting test: KccEvent
             ......................... JIGSAWFS6 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... JIGSAWFS6 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... JIGSAWFS6 passed test MachineAccount
          Starting test: NCSecDesc
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=ForestDnsZones,DC=jigsawtransport,DC=com
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=DomainDnsZones,DC=jigsawtransport,DC=com
             ......................... JIGSAWFS6 failed test NCSecDesc
          Starting test: NetLogons
             ......................... JIGSAWFS6 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... JIGSAWFS6 passed test ObjectsReplicated
          Starting test: Replications
             ......................... JIGSAWFS6 passed test Replications
          Starting test: RidManager
             ......................... JIGSAWFS6 passed test RidManager
          Starting test: Services
             ......................... JIGSAWFS6 passed test Services
          Starting test: SystemLog
             An error event occurred.  EventID: 0xC0002719
                Time Generated: 12/06/2013   09:29:59
                Event String:
                DCOM was unable to communicate with the computer 8.8.8.8 using any of the configured protocols.
             ......................... JIGSAWFS6 failed test SystemLog
          Starting test: VerifyReferences
             ......................... JIGSAWFS6 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : jigsawtransport
          Starting test: CheckSDRefDom
             ......................... jigsawtransport passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... jigsawtransport passed test
             CrossRefValidation
       Running enterprise tests on : jigsawtransport.com
          Starting test: LocatorCheck
             ......................... jigsawtransport.com passed test LocatorCheck
          Starting test: Intersite
             ......................... jigsawtransport.com passed test Intersite
     DC2
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = JIGSAWFS8
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\JIGSAWFS8
          Starting test: Connectivity
             ......................... JIGSAWFS8 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\JIGSAWFS8
          Starting test: Advertising
             ......................... JIGSAWFS8 passed test Advertising
          Starting test: FrsEvent
             ......................... JIGSAWFS8 passed test FrsEvent
          Starting test: DFSREvent
             ......................... JIGSAWFS8 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... JIGSAWFS8 passed test SysVolCheck
          Starting test: KccEvent
             ......................... JIGSAWFS8 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... JIGSAWFS8 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... JIGSAWFS8 passed test MachineAccount
          Starting test: NCSecDesc
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=ForestDnsZones,DC=jigsawtransport,DC=com
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=DomainDnsZones,DC=jigsawtransport,DC=com
             ......................... JIGSAWFS8 failed test NCSecDesc
          Starting test: NetLogons
             ......................... JIGSAWFS8 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... JIGSAWFS8 passed test ObjectsReplicated
          Starting test: Replications
             ......................... JIGSAWFS8 passed test Replications
          Starting test: RidManager
             ......................... JIGSAWFS8 passed test RidManager
          Starting test: Services
             ......................... JIGSAWFS8 passed test Services
          Starting test: SystemLog
             An Error Event occurred.  EventID: 0xC0002719
                Time Generated: 12/06/2013   09:31:07
                EvtFormatMessage failed, error 15100 Win32 Error 15100.
                (Event String (event log = System) could not be retrieved, error
                0x3afc)
             ......................... JIGSAWFS8 failed test SystemLog
          Starting test: VerifyReferences
             ......................... JIGSAWFS8 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : jigsawtransport
          Starting test: CheckSDRefDom
             ......................... jigsawtransport passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... jigsawtransport passed test
             CrossRefValidation
       Running enterprise tests on : jigsawtransport.com
          Starting test: LocatorCheck
             ......................... jigsawtransport.com passed test LocatorCheck
          Starting test: Intersite
             ......................... jigsawtransport.com passed test Intersite

  • Errors when querying against universe with DBlink tables

    Running XI 3.1
    DB1: MS SQL Server
    DB2: Oracle 11g
    Universe created on DB2 has linked tables from DB1.
    I created a view as Select * from table@DB1
    Using Webi Rich Client: successful query results
    Using Webi Lite: ORA-12154 error: TNS:could not resolve the connect identifier specified
    Using Deski: ORA-01002: fetch out of sequence. ORA-02063: preceding line from DBlink_name
    I've tried numerous array fetch size parameters but Deski still has that error message. Is there a different way to fetch data from a DBLink table? Why no errors when using Webi Rich? when creating universe against DBlink tables
    Thanks

    In our environemnt, we have encountered ORA-4030 and ORA-4031 in the past in one particular windows server. What i remember from that is , a single process in windows will be limited to use 2Gb of memory(irrespective of how much you allocate and how much RAM the server has). All the oracle user and server processes in windows has to get their share from this 2Gb allocated to a single process called oracle.exe. There is some way to extend this 2Gb limit to 3Gb or 4Gb by enabling a switch on some windows config file. You can easily get that by google.
    Check the memory used by oracle.exe in 10g server's task manager.
    Next, you may need to reduce SGA size... to give more room for user processes. You may investigate on these lines.

  • ORA-0907 error when querying XMLDB Table using XMLExists

    Hi All,
    Get ORA-00907 error when trying to use XMLExists:
    SELECT *
    FROM tnmab_agreement_xml_binary A
    WHERE
    ( XMLExists('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; $XML/Agreement/ShippingPartyGroups/ShippingParties/CustomerHolder[SAP_ID="$ARG"]')
    passing agreements.AGREEMENT_XML as "XML", '5000003001' as "ARG")
    OR
    ( XMLExists('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; $XML/Agreement/NamedCustomerGroups/NamedCustomer/SAP_IDs/StringWrappers[Value="$ARG"]')
    passing agreements.AGREEMENT_XML as "XML", '5000003001' as "ARG")
    ORA-00907: missing right parenthesis
    *00907. 00000 - "missing right parenthesis"*
    **Cause:*
    **Action:*
    Error at Line: 6 Column: 176
    Any help is appreciated
    Thanks
    Auro

    XMLExists('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; $XML/Agreement/ShippingPartyGroups/ShippingParties/CustomerHolder[SAP_ID="$ARG"]'
    passing agreements.AGREEMENT_XML as "XML", '5000003001' as "ARG")no ')' after the closing quote

  • ORA -12569 error when querying dba_change_notification_regs table

    Hi,
    I am getting ORA-12569 error when i am trying to execute Select * from dba_change_notification_regs from sys user .we are working on oracle 10.2 version.
    Please help in resoving the issue.
    Thanks In advance.
    Priya

    ORA-12569:     TNS:packet checksum failure
    Cause:      The data received is not the same as the data sent.
    Action:      Attempt the transaction again. If the error is persistent, turn on tracing and reexecute the operation.
    If this doesn't resolve your issue, please see metalink 4933023.8 (problem fixed there)

  • Axis timeout error when running long query

    Hi all,
    we've encountered a timeout problem trying to call webservice that responses in long delay. Error we got comes from axis library:
    java.net.SocketTimeoutException: Read timed out
    As I know, default timeout value for axis is 60 s. Is there any way to change it in XMLP?

    Hi Tim,
    Thanks for the follow-up!
    Is there any way we can tweak this manually for now for the version 5.6.2 of XML Publisher? I don't feel like its time now for us to go forward to BI Publisher 10.1.3 since we are late in our delivery but we will certainly evaluate the possibility of upgrading it to 10.1.3 for the next delivery. I just got a SR soft closed saying:
    "If they are putting it into 10.1.3.4 then they do not have a fix yet and you are asking for a backport 4 versions back which is unlikely.
    But you should ask in the thread."
    So thats what I'm doing now, hoping its possible! Up to now, we haven't found any workaround for this issue.
    Thanks for your help!

  • Error When Query Gets Blocked

    I am wondering if there is a way that I can make a query error if it is going to (or does) get blocked during an insert where not exists. I have multiple sessions occasionally trying to insert the same row into a table. When the second session tries to insert, I want it to simply error instead of block until the first session commits. Any idea on how to accomplish this?
    My first attempt was to select for update nowait, but that doesn’t work for rows not insert committed into the table. I feel like I should be able to do this with transaction isolation, but that does not seem to work either. I have some SQL below trying to use transaction isolation to accomplish this.
    Any help would be greatly appreciated. Thanks.
    CREATE TABLE t$test
        dummy NUMBER,
        CONSTRAINT t$test_pk
        PRIMARY KEY (dummy)
    INSERT INTO t$test
         VALUES (1);
    -- Session 2
    SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
    INSERT INTO t$test
       SELECT 1
         FROM DUAL
        WHERE NOT EXISTS (SELECT 1
                            FROM t$test
                           WHERE dummy = 1);
    -- I want this to error, but instead it still blocks

    That was the approach I was taking. Problem is, with 25 batches of this running, the amount of blocking was putting a tremendous load on the database.
    After some research, I could have implemented my own row locking scheme using the DBMS_LOCK package, but given the amount of data I have, I would need to create way too many locks than what is feasible.
    I was hoping that Oracle would have a method for non-blocking write (error instead). Unless I can find one, I am just going to sacrifice some of my batch capabilities and commit more frequently to minimize the number of locks at one time.
    I'd still be interested to hear other solutions if they're out there. Thanks for the help Tubby.
    Below is the PL/SQL I was considering for my row locking scheme:
    DECLARE
       v_lockname   VARCHAR2 (255) := 'lock_' || :dummy;
       v_lockid     LONG;
       v_result     PLS_INTEGER;
    BEGIN
       DBMS_LOCK.allocate_unique (v_lockname, v_lockid);
       v_result := DBMS_LOCK.request (v_lockid, 6, 0, TRUE);
       IF (v_result = 0)
       THEN
          INSERT INTO t$test
             SELECT :dummy
               FROM DUAL
              WHERE NOT EXISTS (SELECT 1
                                  FROM t$test
                                 WHERE dummy = :dummy);
       -- Other return value handling needed
       END IF;
    END;

  • Error when querying a table through the Query Window

    I am running a query on the following table in the ODT Query window - for some reason I get the error below when trying to retrieve the data - I can query the table just fine through SQL Plus - it errors out whether I use grid or text window
    ERROR
    Arithmetic operation resulted in an overflow.
    CREATE TABLE "RF3_PROD_1"."F_EXTRACTMETRICS" ("EXTRACT_NAME" VARCHAR2(50) NOT NULL,"RUN_START_DATE" DATE NOT NULL,"RUN_END_DATE" DATE NOT NULL,"DURATION" NUMBER DEFAULT 0 NOT NULL,"EXTRACT_START_DATE" DATE NULL,"EXTRACT_END_DATE" DATE NULL,"NUM_RECS_ADDED" NUMBER DEFAULT 0 NOT NULL,"NUM_RECS_DELETED" NUMBER DEFAULT 0 NOT NULL,"STATUS" VARCHAR2(50) NOT NULL,"COMMENTS" VARCHAR2(500) NULL) TABLESPACE "EXTRACT_TAB_01_TS" PCTFREE 15 PCTUSED 75 INITRANS 1 MAXTRANS 255 STORAGE ( FREELISTS 1 FREELIST GROUPS 1 INITIAL 8388608 NEXT 516096 MAXEXTENTS 2147483645 MINEXTENTS 1 PCTINCREASE 0 )
    I would have formatted it nicer - but that is the way that ODT created it :)

    Christian,
    I found that this happens when trying to query number fields that are reals with a large decimal value (26 decimal values and above seem to be the magic number). What is strange is that I don't get this problem when I retrieve data from the same table using the Retrieve data option (versus a query for all the data in the Query Window) so they don't seem to be utilizing the same basic code to grab and then display the data interestingly enough (I am sure you knew that). Does this allow you to replicate the issue?
    Thanks,
    Bryan

  • Error when query is run

    Hi Gurus,
    When the query is run, it takes forever and hten come with this messages:
    1) An Exception with the type CX_SY_SHARED_MEMORY occured, but was neither handled locally nor declared in RAISING
    2) No space left in memory
    Note: This was running OK some time back.
    I followed the some instruction on OSS note: 702728, but that did not help.
    I would really appreciate some help on this.
    Thanks.

    Hi Suhas,
    I remember having the same error once.
    Have you configured your ODBC driver? This is causing the error.
    For more information, refer to the link below:
    Business Object local ODBC connections and server ODBC connections
    Regards,
    Ashvin
    Message was edited by: Nanreshsing Sungkur

  • Air Runtime Error when querying local Cache

    Hi,
    I am running into trouble when attempting to fill a datagrid
    from a local SQlite cache, when the cache has been emptied either
    because it was never filled with any data or the files have been
    deleted. One would think there would be a mechanism in Flex to
    check the cache for proper structure without resulting in a runtime
    error. Reading the Dataservice documentation, there appears no way
    to inspect the cache without getting the runtime error.
    Basically, I have an Online/Offline application synchronizing
    data with a MySQL server via LiveCycle Dataservices. Everything
    works fine Online, and also Offline as long as the cache files have
    data in them.
    The problem is that if the program has just been
    installed(and server is not connectible) and the user hasn't
    connected to the server to retrieve any data yet, the local cache
    is empty and will result in the runtime error, or if for some
    reason the cache files get deleted, then Air will throw the runtime
    error.
    The resulting error,
    Error: Unable to initialize destinations on server:
    Thanks
    RM

    Hi i'm having the same problem =(
    i went to log on to my myspace and i get this message:
    Server Error in '/' Application.
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    ----and i dont know what to do.
    Can anyone help me please coz this suxxxxxxxxxx =(
    thanks for any help and replies @};-

  • Got error when query from QaaWS.

    Hello expert.
    I have some problem about QaaWS.
    When I create and build my query then click next to run query it appear error
    Get data provider warning
    getDocumentInformation exception (Error: WIS 10901)
    A database error occured. The database error text is: (CS) "Specified RDBMS is invalid" . (WIS 10901)
    But when I query in Web Intelligence Rich Client it work normally.
    When I enter url http://<hostname>:8080/dswsbobje/services/Session
    I got message.
    "Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml"
    Please give me some suggestion
    Thank you.
    - Chai -

    Hello.
    I have a 32bit window version.
    Thank you.
    And the problem about CLASSPATH is solve.
    The solution is I add  the path in the file "jdbc.sco"
    on C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc
    as below.
    <DataBase Active="Yes" Name="DB2 v9">
                <Class JARFile="dbd_jdbc,dbd_db2">com.businessobjects.connectionserver.java.drivers.jdbc.db2.DB2Driver</Class>
                <JDBCDriver>
              <ClassPath>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2java.zip</Path>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2jcc.jar</Path>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\function</Path>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2jcc_license_cu.jar</Path>
              </ClassPath>
                    <Parameter Name="JDBC Class">com.ibm.db2.jcc.DB2Driver</Parameter>
                    <Parameter Name="URL Format">jdbc:db2://$DATASOURCE$/$DATABASE$</Parameter>
                </JDBCDriver>
    But When I query form QaaWS it appear the same error.
    Please help.
    Thank you.
    -chai-
    Edited by: ChaiChai2 on Jul 15, 2009 11:10 AM

  • Error when Querying Object

    Hope someone can help with this problem...
    I am querying an object based on the query results of an
    another object. If the Contact email does not exist, CF8 throws an
    error. What I need to do for this query is to substitute a default
    value for a contact record that does not have an email (or some
    other fix) so that the error does not occur.
    Once again, if the email contact email DOES exist, there is
    no problem.
    Below is the code for my query:
    <cfloop query="oppty">
    <cfset getContacts = myObject.QueryObject(
    "SELECT Id, accountID, Name, Email
    FROM Contact
    WHERE accountID ='#oppty.accountID#'").results>
    <cfoutput>#getContacts.email#<br></cfoutput>
    </cfloop>
    Any help would be greatly appreciated...!!
    Thanks!

    Sorry for not being clear. The error is as follows:
    Error Occurred While Processing Request
    You have attempted to dereference a scalar variable of type
    class java.lang.String as a structure with members.
    51 : ").results>
    52 : <cfoutput> #getContacts.ID#
    #getContacts.accountid# #getContacts.name#
    #getContacts.email#<Br></cfoutput> <!--- --->
    53 : </cfloop>
    54 :
    This error happens when the object is queried an no results
    come back. What is happening is in the query
    SELECT Id, accountID, Name, Email
    FROM Contact
    WHERE accountID ='#oppty.accountID#'"
    When no data comes back for "Email", I get that java error. I
    need to rewrite the query so that there is a default replacement
    email if an email does not come back in the query.
    Thanks!

Maybe you are looking for