OSB DB-Adapter and a date column: JCA exception ISO 8601 date format?

Hello
I work with Oracle Service Bus (eclipse oepe and jdev)
On database side I've a view with a date column (datatype=date!)
With JDev I create a DB Adapter with a select operation on that view. This db adapter can be successfully generated.
Now I import the generated artefacts (xsd, wsdl, jca) into my eclipse service-bus-project. Then I generate a business service based on the jca. Also this works fine.
Then I deploy the project to my developement osb. Also this works fine.
When I test my business service (osb test console), I get a runtime error:
Exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException:
Exception Description: The object [03.07.70], of class [class java.lang.String], from mapping [org.eclipse.persistence.mappings.DirectToFieldMapping[geburtsdatum-->XYZ_VIW.GEBURTSDATUM]] with descriptor [ObjectRelationalDataTypeDescriptor(DB_Adabper_XZY.XZY--> [DatabaseTable(XYZ_XYZ_VIE)])], could not be converted to [class java.sql.Timestamp].
Zeichenfolgenwert im XML-Code kann nicht in java.sql.Date konvertiert werden.
Datenbanken akzeptieren zwar Zeichenfolgen, die Datumsangaben in verschiedenen Formaten darstellen, jedoch akzeptiert der Adapter nur Zeichenfolgen, die Datumsangaben im ISO-XML-Datumsformat darstellen.
Der Eingabewert muss das ISO 8601-Datumsformat YYYY-MM-DD aufweisen.
==> so this seems to be a date format problem. but why?
I've checked the view ---> it's a date!
After that I do not have any influence to change it - and actually I don't want to change it. It still should be a datatype of DATE.
Why does JDEV not correctly convert it?
Anyone had the same problem?
Any help would be appreciated.
Thanks
Best regards,
Reto

OS is winXP
database is Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
Yes it is a datetime:
<xs:element name="geburtsdatum" type="xs:dateTime" minOccurs="0" nillable="true"/>
This is absolutelly correct. But on runtime, I'll get the date convertion error as mentionend above. It seems as the date cannot be converted from database date column to a osb date.
Strange, I didn't expect to have date format problems here.
I use
1.) Oracle Database (view) with a DATE column
2.) Oracle JDeveloper database adapter (generated db adapter based on view, point 1)
3.) Oracle Service Bus using the jca of generated database adapter, point 2)
So I think I don't have to set any date format, everything shoult be a DATE and therefore no formating has to be done by me, or am I wrong?
Best regards
Reto

Similar Messages

  • Which function for iso-8601 date conversions?

    I have some foreign data files which use iso-8601 date formats, (yay for standardized, unambiguous formats!).  But when I import them into Numbers 3.0, they're being "auto" formatted as text, not dates.
    Attempting to convert them explicitly to dates results in an error, suggesting that Numbers 3.0 won't generally recognize standard date formats.
    Is there a set of functions to convert these to/from whatever date format Numbers is using?

    It would appear as though Numbers lacks the ability to read or parse ISO-8601 standard date format.  It also apparently lacks the ability to handle time zones so it wouldn't be very easy to extend it as is.
    They can be parsed using text functions into Numbers dates if you're willing to throw away the time zone and milliseconds.

  • Parsing ISO 8601 Dates

    Anybody know of a function out there that will parse an ISO
    8601 date into a Date object. An ISO 8601 date looks like so:
    2008-11-26T07:30:44-0-8:00

    Nevermind I found the parser in the adobe utils
    package.

  • Phone went through wash and everthing is now working except for the data.  Phone keeps searching...

    My phone went throught the wash and everything is now working except for the data.  It keeps searching...

    You can try getting a new microSIM for it. How long did you let it dry?

  • Date column interprets as timestamp in .csv format.

    Hi,
    There is another issue when downloading report in .csv format. The date column interprets as timestamp. How can I avoid it in RPD Level? Please give your suggestions.
    Thanks,
    Anitha.B

    user12945439 wrote:
    MMM.. to_timestamp_tz converts TO a timestamp. I have a timestamp.
    First is:
    cast(mycol as varchar2(30))
    this convert my number to a varchar2(2).
    SQL> select cast(mycol as varchar2(30)) T from mytable where rownum<5;
    T
    1117820144396
    1117820147442
    1117824374358
    1117824388908
    Now this is the timestamp with TZ... another cast seems not working. To_date seems not working too.
    SThose numbers could possibly represent timestamps, being the number of milliseconds since some arbitrary date (Jan 1, 1970 perhaps?) as they are in the range to be that but I don't see any way there could be a time zone attached without adding extra digits.

  • ISO-8601 date format in solaris

    Hi,
    I would like know wether it possible to display date in ISO-8601 format on solaris10 machine.
    If possible could you please let me know.
    Thanks in advance
    RaghuDeep Amilineni

    http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html
    http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html#SimpleDateFormat(java.lang.String)
    http://java.sun.com/j2se/1.5.0/docs/api/java/text/DateFormat.html#parse(java.lang.String)
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html#getTime()hth

  • Database Export exporting data does not export time of date columns

    Hi,
    I'm trying to export some data using Database Export and for the date columns the resulting scripts truncates dates showing only the date part not the time one. If export from a query result the resulting script include all the information (date and time).
    Does anyone has an idea on how to export all the date information using database export.
    thanks

    Yep, as Jim said, under Tools / Preferences / Database / NLS Parameters I changed Date Format to DD-MON-YYYY HH24:MI:SS
    Seems to have done the trick. What's the significance of DD-MON-RR versus DD-MON-YY?

  • Showing current Date (Date Column) in the the filter of Interactive Reports

    Hi,
    I created a filter for the date column in my report (table column name is Process_Date). I have created a filter in the Interactive reports which populates the data from , a particular time perieod. (From_date - To_Date). How can I change the SQL query or the Report settings, so that when the user open a report it should poulate the data for the previous_day or sysdate-1 by default.
    Thanks in advance for your help.
    James

    christine275 wrote:
    ... (this is a time worked by date and not always entered on the date worked)--
    "Time" in Numbers is always "Time of Day", and is always part of a Date and Time value. "Amount of Time" is a Duration value, which may be displayed in a similar format to "Time of Day," but is a different type of value.
    If you are entering the number of hours and minutes worked, format the column as Duration, set the units and the format in which you want to have the value appear.
    The Date column will still contain a Date and Time value (Jan 1, 2011 00:00:00 in the cell shown in the example), but the "Time Worked" cells will contain only a Duration value.
    Incidently, the Date in A2 was entered as "jan 1" (without the quotes). Numbers automatically adds the current year and the default time value, then displays the result in the closest format to what you've entered, or in the Date and Time format you have chosen.
    The Duration value in B2 was entered as 3:15 (as displayed). Note that in the entry bar the duration is displayed as 3h 15m, probably to distinguish it from a similarly formatted (Date and) Time value.
    Regards,
    Barry

  • Two date column in a table

    I have a Sales Data warehouse of Retail shops which operate 24x 7 with 2 shifts of 12 hours each. Time for each shift is 7 to 7.
    I have a Calendar Dimension which has all the dates listed.
    TABLE_CALENDAR
    -DAY_KEY NUMBER
    -DAY_DATE NUMBER
    I have a Sales table which has two dates columns: one is the Sales Date whereas another one is the shift date. So there are two joins (Foreign keys) from Sales Table to the Calendar Table.
    TABLE_SALES
    -SALES_KEY
    -SALES_DAY_KEY
    -SALES_TIME_KEY
    -PRODUCT_KEY
    -SHIFT_KEY
    -SHIFT_SUPERVISOR_KEY
    -SHIFT_CASHIER_KEY
    -SHIFT_DAY_KEY
    -SALES_QTY
    -SALES_AMOUNT
    -COST_AMOUNT
    I need to develop an analysis on these tables where the Area managers look at the sales by day, month and year and Shift Supervisor and Shift Managers want to look at sales by shifts. (Shift Date).
    When I define two joins in OBIEE Administrator, it say that I can have a single join from one dimension. (From Calendar Dimenstion to Sales). this way I can report only by Sales Date.
    How can I report by Shift Date?

    Create 2 date dimensions: one for calendar date, one for shift date.
    Paul

  • Sunday 17-Jan-2010: In week 2 or week 3? Does Apple use ISO week dates?

    According to Wikipedia, http://en.wikipedia.org/wiki/ISOweekdate "All week-numbering years start with a Monday and end with a Sunday."
    http://personal.ecu.edu/mccartyr/isowdcal.html shows this too.
    However, my MBP running 10.5.8. shows today, Sun 17 Jan 2010 as week 3.
    This can be seen quickly by, following http://lifehacker.com/316029/display-the-date-on-the-menubar and dragging the Week of Year into the clock time shown on the menu bar, and viewing it on a Sunday.
    Or does Apple not follow the ISO week date numbering standard?
    Thanks,
    Martin.

    red_menace wrote:
    Actually, Apple does use (or is supposedly using) ISO 8601, but the System Preferences settings can override some of these, such as the region, calendar, or first day of the week.
    Actually, I think it is still an open question. According to Apple developer documentation:
    NSISO8601Calendar Identifier for the ISO8601. The ISO8601 calendar is not yet implemented.
    It does look like some of the conversions are a bit off, even in Snow Leopard, unless there is something I'm missing, too. Changing the date format (week starts with Monday) in System Preferences shows the correct week there (2), but getting the date from AppleScript, for example, shows week 3.
    I played around with my system preferences and could change the week start day, but I could never get an ISO 8601 date. Today (Sun, Jan 17th, 2010), I get either week 4 (Sunday) or week 3 (Monday).
    Clearly there are lots of date and time APIs to choose from and many of them on MacOS X already support this format. They haven't made it to the official system preferences level. Considering all the other calendar formats that Apple supports, I think this is a bug and mostly reflects MacOS X's American heritage. Americans don't use this value at all and don't even know to add it to a locale option.
    I filed a bug report on it. Don't hold your breath for it getting fixed anytime soon. In the meantime, here is a widget that will display the current week number: http://www.apple.com/downloads/dashboard/status/weeknumber_ntnu.html

  • OSB business service transforming a date column 1936 to 2036 ( 1950)

    Hello, I'v a database view with a normal date column "geburtsdatum".
    Data Dictionary:
    GEBURTSDATUM DATE
    Now with JDeveloper I create a db-adapter. This works fine.
    On OSB I do generate a business service on the just created jca file. Also this works fine.
    XSD for db adapter:
    <xs:element name="geburtsdatum" type="xs:dateTime" minOccurs="0" nillable="true"/>
    I can test this business service successfully, everything is fine, but not the date interpretation when birtdate <1950
    Sample geburtsdatum (birtdate): 29-JUL-1934
    DATABASE: 29.07.1934
    OSB Business Service: 29.07.2034
    Why or where happends this date conversion?
    This is very strange, anyone had the same problem?
    Any help would be appreciated.
    Thanks
    Best regards,
    Reto

    After all I found the solution. Again the problem has been caused on DB side.
    I'm using a view. On this view I had a DATE column with a decode. I think I did a clean TO_DATE casting, but it seems as the OSB DB Adapter did not interpret this correctly.
    (on database side with SQL I did not have any problems here)
    My solution was:
    Using a date returning function (which does my decoding) in my view :
    CREATE VIEW xyz AS
    SELECT ...
    , myPackage.removeMaxDate(n.geburtsdatum) as geburtsdatum
    FROM ...
    Regards,
    Reto

  • DB Adapter and jca transport: monitoring and management

    Greetings.
    We have faced with several issues with DB Adapter and JCA transport proxy. We use pooling DB adapter. As the result - the pooling stop. I would like to know:
    1. Is the way to monitor pooling threads of DB Adapter in OSB? I would like to answer the question "does it work?".
    2. Is the way to restart pooling in JCA Proxy service? The way we found is re-save OSB configuration in OSB Console, bu it is terrible.
    I use:
                        ActivationSpec="oracle.tip.adapter.db.DBActivationSpec"
                        DescriptorName="DescriptorName"
                        QueryName="QueryName"
    PollingStrategyName="LogicalDeletePollingStrategy"
                        MarkReadFieldName="IsLoad" MarkReadValue="Y"
                        MarkReservedValue="R${IP[-3]}" MarkUnreadValue="N"
                        SequencingFieldName="ID" MaxRaiseSize="5"
                        MaxTransactionSize="unlimited" PollingInterval="180"
                        NumberOfThreads="1" UseBatchDestroy="false"
                        ReturnSingleResultSet="true"
                        MappingsMetaDataURL="MappingsMetaDataURL.xml" />
    Oracle Service Bus Version: [WebLogic Oracle Service Bus 10.3]
    Regards,
    Boris
    Edited by: Boris Ilyushonak on 14-Mar-2011 05:22

    1. Is the way to monitor pooling threads of DB Adapter in OSB? I would like to answer the question "does it work?". OSB provides OOB support for monitoring -
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/monitoring.html#wp1008658
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/operations/index.html
    2. Is the way to restart pooling in JCA Proxy service? The way we found is re-save OSB configuration in OSB Console, bu it is terrible.You may restart/redeploy DBAdapter in Weblogic Admin Console and polling should start. Ideally poller transports does not stop polling. Let us know the complete detail if you experienced such issue.
    Regards,
    Anuj

  • How to get Week,Month and Year details from a date column

    Hi frenz,
    I've a column like tran_date which is a date column..... I need the next week details based on this column and so on...
    I need month and year details as well based on this tran_date column.... can any one tell me how...
    Thanks in advance

    My example for objects:
    create or replace type date_object as object
      centure number,
      year    number,
      month   number,
      day     number,
      hour    number,
      minute  number,
      second  number,
      daypart number,
      week    number,
      constructor function date_object(p_dt date)
        return SELF as result
    create or replace type body date_object is
      constructor function date_object(p_dt date)
        return SELF as result
      as
      begin
        SELF.centure:= trunc(to_char(p_dt,'YYYY')/100);
        SELF.year:=    to_char(p_dt,'YYYY');
        SELF.month:=   to_char(p_dt,'MM');
        SELF.day:=     to_char(p_dt,'DD');
        SELF.hour:=    to_char(p_dt,'HH24');
        SELF.minute:=  to_char(p_dt,'MI');
        SELF.second:=  to_char(p_dt,'SS');
        SELF.daypart:= p_dt-trunc(p_dt,'DD');
        SELF.week:=    to_char(p_dt,'IW');
        return;
      end;
    end;
    select date_object(sysdate),
           date_object(sysdate).year
    from dual;Regards,
    Sayan M.

  • Using MODEL clause and COUNT for not numeric data columns....

    Hi ,
    Is it possible somehow to use the COUNT function to transform a non-numeric data column to a numeric data value (a counter) and be used in a MODEL clause....????
    For example , i tried the following in the emp table of SCOTT dataschema with no desired result...
    SQL> select deptno , empno , hiredate from emp;
    DEPTNO EMPNO HIREDATE
        20  7369 18/12/1980
        30  7499 20/02/1981
        30  7521 22/02/1981
        20  7566 02/04/1981
        30  7654 28/09/1981
        30  7698 01/05/1981
        10  7782 09/06/1981
        20  7788 18/04/1987
        10  7839 17/11/1981
        30  7844 08/09/1981
        20  7876 21/05/1987
        30  7900 03/12/1981
        20  7902 03/12/1981
        10  7934 23/01/1982
    14 rows selected Now , i want to use the MODEL clause in order to 'predict' the number of employees who were going to be hired in the 1990 per deptno...
    So , i have constructed the following query which , as expected, does not return the desired results....
    SQL>   select deptno , month , year , count_
      2    from
      3    (
      4    select deptno , to_number(to_char(hiredate,'mm')) month ,
      5                to_number(to_char(hiredate , 'rrrr')) year , count(ename) count_
      6    from emp
      7    group by  deptno , to_number(to_char(hiredate,'mm'))  ,
      8                to_number(to_char(hiredate , 'rrrr'))
      9    )
    10    model
    11    partition by(deptno)
    12    dimension by (month , year)
    13    measures (count_ )
    14    (
    15     count_[1,1990]=count_[1,1982]+count_[11,1982]
    16    )
    17  /
        DEPTNO      MONTH       YEAR     COUNT_
            30          5       1981          1
            30         12       1981          1
            30          2       1981          2
            30          9       1981          2
            30          1       1990
            20          4       1987          1
            20          5       1987          1
            20          4       1981          1
            20         12       1981          1
            20         12       1980          1
            20          1       1990
            10          6       1981          1
            10         11       1981          1
            10          1       1982          1
            10          1       1990 As you see , the measures for the 1990 year is null...because the measure(the count(deptno)) is computed via the group by and not by the MODEL clause...
    How should i transform the above query... so as the "count_[1,1982]+count_[11,1982]" will return non-null results per deptno...????
    Thanks , a lot
    Simon

    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> SELECT department_id, MONTH, YEAR, count_
      2    FROM (SELECT e.department_id
      3                ,to_number(to_char(e.hire_date, 'mm')) MONTH
      4                ,to_number(to_char(e.hire_date, 'rrrr')) YEAR
      5                ,COUNT(e.first_name) count_
      6            FROM employees e
      7            WHERE e.department_id = 20
      8           GROUP BY e.department_id
      9                   ,to_number(to_char(e.hire_date, 'mm'))
    10                   ,to_number(to_char(e.hire_date, 'rrrr')));
    DEPARTMENT_ID      MONTH       YEAR     COUNT_
               20          8       1997          1
               20          2       1996          1
    SQL> --
    SQL> SELECT department_id, MONTH, YEAR, count_
      2    FROM (SELECT e.department_id
      3                ,to_number(to_char(e.hire_date, 'mm')) MONTH
      4                ,to_number(to_char(e.hire_date, 'rrrr')) YEAR
      5                ,COUNT(e.first_name) count_
      6            FROM employees e
      7            WHERE e.department_id = 20
      8           GROUP BY e.department_id
      9                   ,to_number(to_char(e.hire_date, 'mm'))
    10                   ,to_number(to_char(e.hire_date, 'rrrr')))
    11  model
    12  PARTITION BY(department_id)
    13  dimension BY(MONTH, YEAR)
    14  measures(count_)(
    15    count_ [1, 1990] = count_ [2, 1996] + count_ [8, 1997]
    16  );
    DEPARTMENT_ID      MONTH       YEAR     COUNT_
               20          8       1997          1
               20          2       1996          1
               20          1       1990          2
    SQL> ---
    SQL> SELECT department_id, MONTH, YEAR, count_
      2    FROM (SELECT e.department_id
      3                ,to_number(to_char(e.hire_date, 'mm')) MONTH
      4                ,to_number(to_char(e.hire_date, 'rrrr')) YEAR
      5                ,COUNT(e.first_name) count_
      6            FROM employees e
      7           GROUP BY e.department_id
      8                   ,to_number(to_char(e.hire_date, 'mm'))
      9                   ,to_number(to_char(e.hire_date, 'rrrr')))
    10  model ignore nav
    11  PARTITION BY(department_id)
    12  dimension BY(MONTH, YEAR)
    13  measures(count_)(
    14    count_ [1, 1990] = count_ [2, 1996] + count_ [8, 1997]
    15  );
    DEPARTMENT_ID      MONTH       YEAR     COUNT_
              100          8       1994          2
               30         12       1997          1
              100          3       1998          1
               30          7       1997          1
                           5       1999          1
               30         12       1994          1
               30         11       1998          1
               30          5       1995          1
              100          9       1997          2
              100         12       1999          1
               30          8       1999          1
                           1       1990          0
               30          1       1990          0
              100          1       1990          0
               90          9       1989          1
               20          8       1997          1
               70          6       1994          1
    93 rows selected
    SQL>

  • I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of

    I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of order. The last version sorted fine.

    Welcome to Apple Support Communities
    When you install the new iWork version, the old iWork version is kept, so it looks like you are opening your old version.
    To fix this, open a Finder window, choose Applications in the sidebar and drag the new Numbers version to the Dock, so you can access to it quickly. Open all documents from this version. I don't recommend you to delete the old Numbers version in case you need it.
    Respecting to the second question, you will get better answers in the Numbers for OS X forum

Maybe you are looking for

  • Blue icon with question mark instead of image in email

    Sometimes I get a blue icon with question mark instead of image in email, when viewing in Apple Mail Program. Does anyone know why?????

  • Error - can't open application

    I'm getting this error when trying to install photoshop: You can't open the application "Adobe Photoshop CS6" because it's not supported on this type of Mac. I've got a IMac duoCor 10.6.8...does this mean I need to buy a new Mac?

  • My iTouch always restart every time I use an app.

    Not when I'm using the app though. Even when I just listen to music. It restarts if let it sleep for a bit then it restarts again. I don't know what's wrong with it. I'm scared that I broke it. Please help me. It's an ipod touch 3rd gen or 2nd gen I

  • Remove un-necessary tags?

    Jdbc to file scenario, in this scenario we need to remove empty value tags from sender or receiver side before creating Xml document in third party. Is that possible? I know this is very dummy question but I am new in pi and sdn Ex: <test> <empdetail

  • 3g Nano scroll wheel is peeling off

    I just got my 3g Nano in the mail and Ive come to notice that the scroll wheel is almost like peeling back from the top. Ive heard they are using adhesives to hold it on there and it seems that the top of the wheel isnt held on very well. While it do