Recieving 904 error when querying local collections

We've been recieving an intermitant bug within several packaged routines when we attempt to query local table collections.
We've bounced between using the old "THE(SELECT(CAST...) from dual) d" and new "TABLE(CAST...) d" syntacticals for several weeks.
On recompilation of the packages, a 904 error is raised on casting out of the collection. We literaly put back the old/new syntactical and all is well until the next build when we recieve the same 904 error once again.
The problem seems to arise most often in objects that have methods which either use other packaged code or access table data. The collections are valid at runtime in all occurances of the issue.
We're running 8.1.6 Release 3 on Sun boxes. Oddly, our development NT boxes rarely exibit the error even with hundreds of builds a day.
Has anyone come across this same issue, and is there a fix or a simple WA (not catching the 904 error and trying the other syntactical flavor - too much maintenance).
Thanks in advance
Cheers
S T U E
null

I had the same or vary similar problem.
I solved it by changing the ${oracle.jdeveloper.deploy.dir} in the internal-targets.xml file to the middleware home mine was /oracle/fmwhome using the new PS6 example VirtualBox download.
This is the old path in the internal-targets.xml file: /oracle/jdevhome/jdeveloper/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib
Here is the new path: /oracle/fmwhome/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib
This reference is around line 12 in the taskdef
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${middleware.install.home.directory}/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar"/> i changed this line middleware.install.home.directory is a var that points to /oracle/fmwhome
</classpath>
</taskdef>
Hope this helps.
Edited by: 825836 on Aug 15, 2012 11:31 AM

Similar Messages

  • 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 @};-

  • 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

  • Odd QoQ issue when querying Solr collection

    Hello, everyone.
    I've got a query of query issue that has me stumped.  Maybe I'm just missing something very simple, but this has got me really confuzzed.
    I have a Solr collection that is indexing a few tables in an Oracle database.  Let's call it "hdq", for this discussion.
    I wrote a semi-complex query of related tables from which the CFINDEX is using to index the data.  This is working just fine.
    I created the Solr collection in the CF9 CFAdmin, and am using the following to index with:
    <cfindex action="refresh" collection="hdq" key="QUESTION_ID" type="custom" title="QUESTION_TITLE" query="search_questions" body="QUESTION_TX,QUESTION_TITLE,CATEGORY_NM,TAG_NM,ANSWER_TITLE,ANSWER_TX"
        custom1="QUESTION_STATUS" custom2="TAG_NM" custom3="QUESTION_STATUS" custom4="QUESTION_TYPE" category="CATEGORY_NM">
    Then I do a CFSEARCH and name it "hd_questions".  Again, so far, so good, no problems.
    If I do a CFDUMP of "hd_questions", one of the columns is KEY (which is QUESTION_ID in the database.)  If I CFOUTPUT the collection, KEY is there.
    If I QoQ the CFSEARCH of the collection and use SELECT custom3, score, summary, context, key FROM hd_questions, I get an error message that
    Encountered "key. Incorrect Select List, Incorrect select column,
    .. then it gives the line number of the page that produced the error, and
    <cfquery dbtype="query" name="hd_results">
    Am I missing something simple, here?  KEY is in the collection, I can see it in CFDUMP, I can see it in CFOUTPUT.  But if I query the collection and try to select KEY, there is an error.
    Any thoughts/ideas?
    Thank you,
    ^_^

    Key is a reserved word in Coldfusion, so can't be used directly in a QoQ without escaping it.  Try wrapping it in [ ] instead, i.e. [key]
    It may also help to give it an alias too, e.g. SELECT [key] AS someKey
    See the list of reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec173d0-7f ff.html and the QoQ guide to using reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0e4fd -7ff0.html#WSc3ff6d0ea77859461172e0811cbec22c24-7008

  • 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.

  • 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)

  • 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

  • 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

  • Renaming a Project causes error when running locally

    The app uses an HTTPservice on a remote webserver. I have
    been running the same app locally for weeks. I occasionally publish
    up to the web server and all has been fine.
    I renamed the project (in the IDE) but now anytime I try to
    run the app locally I get:
    [RPC Fault faultString="Security error accessing url"
    faultCode="Channel.Security.Error" faultDetail="Destination:
    DefaultHTTP"]
    Still works fine when pushed to the web server.
    I have other apps that work fine locally and hit the same web
    server for HTTPservice.
    I tried renaming other projects and found that the same
    problem occured each time the project was renamed.
    Any suggestions?

    Found the cause of the problem, its FlashFireBug in Mozilla. When a swf is launched FlashFirebug tries to capture the swf, this messes up mobile apps running on the desktop.
    Found the answer in this post: http://forums.adobe.com/thread/852612

  • 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

  • Unexpected "numeric or value error" when using CAST COLLECT

    I am having trouble with string aggregation using CAST / COLLECT and the to_string function described on various sites around the net including AskTom and http://www.oracle-developer.net/display.php?id=306.
    I am getting "numeric or value error: character string buffer too small" but cannot see which limit I am exceeding.
    I have put together a simple test case to highlight this problem which I have pasted below.
    The error does not seem to be coming from the to_string function itself (else I expect we would see "TO_STRING raised an exception" in the returned error message).
    Any thoughts much appreciated,
    Thanks, Andy
    SQL*Plus: Release 10.1.0.4.2 - Production on Tue Jun 15 09:56:53 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CREATE TYPE table_of_varchar2 AS TABLE OF VARCHAR2(32000);
      2  /
    Type created.
    SQL> CREATE OR REPLACE FUNCTION to_string (
      2              nt_in IN   table_of_varchar2
      3      ,       delimiter_in    IN VARCHAR2 DEFAULT ',')
      4      RETURN VARCHAR2
      5      IS
      6          l_idx   PLS_INTEGER;
      7          l_str   VARCHAR2(32767);
      8          l_dlm   VARCHAR2(10);
      9
    10      BEGIN
    11
    12          l_idx := nt_in.FIRST;
    13          WHILE l_idx IS NOT NULL LOOP
    14              l_str := l_str || l_dlm || nt_in(l_idx);
    15              l_dlm := delimiter_in;
    16              l_idx := nt_in.NEXT(l_idx);
    17          END LOOP;
    18
    19          RETURN l_str;
    20      EXCEPTION
    21          WHEN OTHERS THEN
    22              raise_application_error(-20000
    23                                  ,   'TO_STRING raised an exception. '||
    24                                      'The reported error was: '||sqlerrm);
    25     END to_string;
    26  /
    Function created.
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2001;
      8
      9  EXCEPTION
    10      WHEN OTHERS THEN
    11          raise_application_error(-20001
    12                ,   'The anonymous block raised an exception: '||
    13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
    14  END;
    15  /
    PL/SQL procedure successfully completed.
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2002;
      8
      9  EXCEPTION
    10      WHEN OTHERS THEN
    11          raise_application_error(-20001
    12                ,   'The anonymous block raised an exception: '||
    13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
    14  END;
    15  /
    DECLARE
    ERROR at line 1:
    ORA-20001: The anonymous block raised an exception: ORA-06502: PL/SQL: numeric
    or value error: character string buffer too small
    ORA-06512: at line 1. ORA-06512: at line 1
    ORA-06512: at line 4
    ORA-06512: at line 11

    Aha, of course.
    I was aware of the 4000 character SQL VARCHAR2 limit but didn't think it would apply here since we are calling a PLSQL function and trying to assign the value it returns into a PLSQL varchar2(32000) variable. BUT... we are of course doing this via a SELECT statement and hence via SQL. Therefore the SQL 4000 limit applies.
    With this in mind, I changed the RETURN type of the to_string function to be CLOB. This solved the problem.
    Thank you,
    Andy

  • 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

  • Screen Resolution in Forms60

    Hi all, We use Forms60 for our development and we developed all our forms using 640x480 screen resolution. Now we have to move to 800x600 screen resolution as standard. When we tested in 800x600, all our screens are not of uniform size, i.e. some of

  • Mysql linked server queries

    hello everyone, after spending most of the day trying to figure this out i hope that you guys with more experience can provide some suggestions. i have been experimenting with the a linked server (MYSQL 5) and managed to get all the select queries to

  • How to view man hours in MS Project 2013

    I have created a sample project plan in MS Project 2013 with 3 resources. Some tasks are running in parallel while others are one after another. I am using standard calendar which is 8 hours a days, 40 hour a week. How do I know man hours of my proje

  • How can I install mavericks on imac with OSX 10.7.5?

    Where can I find instructions for installing mavericks?

  • How To Change Creative Cloud For Desktop Language

    I have French Windows version and The Creative Cloud app is also on French ! I try to change its language but I couldn't find how to do that Does anyone here have an Idea about how can i do that ?????