Xs:time to DATE ConversionException

Hi,
I'm using toplink through a wizard as part of JDeveloper and BPEL.
I've this exception when I try and insert a record, the context is I'm trying to insert a time from an xml document into a date field in my oracle 9.2 database.
WSIF JCA Execute of operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [####]. ; nested exception is: ORABPEL-11616 DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [####]. Caused by Exception [TOPLINK-3001] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.ConversionException Exception Description: The object [xs:datetime 17:10:08+00:00], of class [class java.lang.String], could not be converted to [class java.util.Calendar]. Internal Exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 19.
This looks like a bug to me, so has anyone a work-around? Do I need to create my own converter? Any help gratefully received.

db schema:
create table sam_tab (
sam_col date
log from assign:
<insertDB_insert_InputVariable>
<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SamTabCollection">
<SamTabCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/BPELProcess1">
<SamTab xmlns="">
<samCol>17:42:48+00:00</samCol>
</SamTab>
</SamTabCollection>
</part>
</insertDB_insert_InputVariable>
the error:
<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
<part name="code">
<code>null</code>
</part>
<part name="summary">
<summary>file:/C:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_BPELProcess1_1.0.jar/db.wsdl [ db_ptt::insert(SamTabCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [BPELProcess1.SamTab]. ; nested exception is: ORABPEL-11616 DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [BPELProcess1.SamTab]. Caused by Exception [TOPLINK-3001] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.ConversionException Exception Description: The object [xs:datetime 17:42:48+00:00], of class [class java.lang.String], could not be converted to [class java.util.Calendar]. Internal Exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 19.</summary>
</part>
<part name="detail">
<detail>null</detail>
</part>
</bindingFault>
the bpel:
<assign name="assignTime">
<copy>
<from expression="xp20:current-time()"/>
<to variable="insertDB_insert_InputVariable" part="SamTabCollection" query="/ns2:SamTabCollection/SamTab/samCol"/>
</copy>
</assign>
<invoke name="insertDB" partnerLink="db" portType="ns1:db_ptt" operation="insert" inputVariable="insertDB_insert_InputVariable"/>
the wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="db">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/BPELProcess1"
schemaLocation="SamTab_table.xsd"/>
</schema>
</types>
<message name="SamTabCollection_msg">
<part name="SamTabCollection" element="top:SamTabCollection"/>
</message>
<message name="SamTab_msg">
<part name="SamTab" element="top:SamTab"/>
</message>
<portType name="db_ptt">
<operation name="insert">
<input message="tns:SamTabCollection_msg"/>
</operation>
</portType>
<binding name="db_binding" type="tns:db_ptt">
<jca:binding />
<operation name="merge">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBWriteInteractionSpec"
DescriptorName="BPELProcess1.SamTab"
DmlType="merge"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
<operation name="insert">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBWriteInteractionSpec"
DescriptorName="BPELProcess1.SamTab"
DmlType="insert"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
</binding>
<service name="db">
<port name="db_pt" binding="tns:db_binding">
<jca:address location="eis/db"
UIConnectionName="db"
ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
mcf.DriverClassName="oracle.jdbc.driver.OracleDriver"
mcf.PlatformClassName="oracle.toplink.internal.databaseaccess.DatabasePlatform"
/>
</port>
</service>
</definitions>
the schema:
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema>
<xs:element name="SamTabCollection" type="SamTabCollection"/>
<xs:element name="SamTab" type="SamTab"/>
<xs:complexType name="SamTabCollection">
<xs:sequence>
<xs:element name="SamTab" type="SamTab" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SamTab">
<xs:sequence>
<xs:element name="samCol" type="xs:dateTime"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
toplink-mappings.xml:
<?xml version = '1.0' encoding = 'UTF-8'?>
<project>
<descriptors>
<descriptor>
<java-class>BPELProcess1.SamTab</java-class>
<tables>
<table>SAM_TAB</table>
</tables>
<mappings>
<database-mapping>
<attribute-name>samCol</attribute-name>
<read-only>false</read-only>
<field-name>RTS_OWNER.SAM_TAB.SAM_COL</field-name>
<attribute-classification>java.sql.Timestamp</attribute-classification>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
</mappings>
<type>oracle.toplink.publicinterface.Descriptor</type>
</descriptor>
</descriptors>
</project>
SamTab.java:
package BPELProcess1;
import java.sql.Date;
public class SamTab {
     private Date samCol;
}

Similar Messages

  • I can no longer create an event on iCal by double clicking on a time or date, nor can I double click on an existing event! HELP!

    I can no longer create an event on iCal by double clicking on a time or date, nor can I double click on an existing event! HELP!
    The only way I have to create an event is by using the "+" button, which is very limiting!
    I am running the latest version of Mac OS X and all the updates.
    Anyone know how I could get a proper use of my iCal ?
    Thanks

    Hi,
    If you list the steps you have taken to fix this it will help.
    Have you tried using the File > New Event menu item?
    Have you logged the user account out/ restarted the computer?
    Have you tried un-syncing any accounts synced to Calendar?
    Is there some change made to the computer that may have triggered this?
    Best wishes
    John M

  • How do i reset time and date on my itouch

    how do I reset time and date on my itouch?

    Go to Settings>General>International and make sure that Calendar is set to Gregorian.
    Bext
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • RE: Time and Date Changed by itself

    The date and time will change to the wrong one automatically especially after the batt died. This repeated itself regardless on how many times i readjust the time and date to the right one. Someone please help me.

    I had the same problem today. I also have the iPod 4g, no problems up until today. First make sure you calender is set to "Gregorian, you can do this by going to Settings --> General --> International, and you will see the calender options, mark Gregorian. Still didn't work? Try this: I experimented a little, and what i did was: First, I went to Settings --> General --> Date and Time --> Set Date & Time (before doing this make sure you're in the correct time zone) and here you can change the time and date. But, if it changes automatically, go to the date, and you may have the same problem here, but here's what i did. I couldn't change the month, or day, but i could change the year. Change the year to 2011, and then all the other options should come up. Hope this helped!

  • How can I remove all Time Machine data from an external HD, while retaining the other folders/files on the disk?

    I recently replaced my old Macbook Pro with a new Macbook Pro Retina.
    The original MBP had Time Machine set up on an external HD, and I also had some manually saved/backed up files (stuff that didn't need incremental backups; very old stuff) on the disk as well, in folders.  This worked fine and well for the life of the original MBP.
    When I set up the MBPr, I did not elect to transfer everything over from a Time Machine disk, as I wanted a Fresh Install; I chose to just re-download/install the apps  I needed from the App Store.  Much cleaner, more stable.  I updated to Yosemite immediately so, it gave me more of a  clean install.
    The problem is, Time Machine now won't read any Time Machine backups from that disk.  Migration assistant can pull data from it, but it's a bit wonky.  It was easier to just manually copy over what I needed.
    Now, I just want to "reset", and completely remove the old Time Machine data from the external hard drive, since it is completely useless to me now (I can't access it on this computer, and it's taking up space).  I want to remove the Time Machine data, as if it were never there, but keep my other folders/files that are on the disk (so, a format is not feasible).
    I will then set the disk up as a new, fresh Time Machine disk for the new MBPr. 
    What is the proper method for removing Time Machine data from an external disk (which doesn't seem to be associated with this machine anyway)?  I know a simple rm -rf will cause problems.
    Thanks for any help provided.

    See the yellow box in #12 of Time Machine - Frequently Asked Questions (or use the link in *User Tips* at the top of this forum).

  • I want to take my apple tv from my home in Canada and us it at the Cabin in the States, but can't seem to get it to set up in the states?  It just keeps asking for time and date over and over.

    We just bought apple tv for our home in Canada, we also want to use it at our Cabin in Montana.  We have internet and can get netflix etc on the Macbook, but don't seem to be able to hook up the Apple TV, it just keeps asking for the Time and Date over and over.  Anyone know what we are doing wrong?

    Hi There,
    Find this here:
    https://discussions.apple.com/message/20125520#20125520
    Problem lies with IOS 6.0
    Restore back to IOS 5.1.1 and set the Location to US you will be ok.

  • How to get System Time and Date?

    Hi, may i know how do i get the System's current Time and Date?? And i need to format them into 2 separate String, that's Time is a String, Date is another String. Pls guide me. Thanks a lot!

    What's the problem? The previous example was pretty clear. Just adapt it to your purposes...
            Date currentDateAndTime = new Date();
            SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy");
            SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
            System.out.println(dateFormat.format(currentDateAndTime));
            System.out.println(timeFormat.format(currentDateAndTime));

  • How to get system time and date with PHP

    Dear Mr.Craig,
      Thanx a lot. We are running SRM 5.0 (RAMP - Implementation).
      My initial requirement is to write a server-side script to display server date and time. Could you give more inside on how to achieve it?
    Regards,
    Deva.

    Perhaps that will help.
    [code]
    <html>
    <h1>Access System time and date</h1>
    <?
         // saprfc-class-library     
         require_once("saprfc.php");
         $sap = new saprfc(array(
       "logindata"=>array(
       "ASHOST"=>"localhost"          // application server
       ,"SYSNR"=>"00"                    // system number
          ,"CLIENT"=>"000"               // client
          ,"USER"=>"bcuser"               // user
          ,"PASSWD"=>"minisap"          // password
         ,"show_errors"=>false               // let class printout errors
         ,"debug"=>false)) ;                     // detailed debugging information
         $result=$sap->callFunction("MSS_GET_SY_DATE_TIME",
            array(     array("EXPORT","SAPTIME",array()),
               array("EXPORT","SAPDATE",array())));
         if ($sap->getStatus() == SAPRFC_OK) {
        echo "Time: ".$result["SAPTIME"];
        echo "<br>Date: ".$result["SAPDATE"];
        echo "<br>or<br>";
        echo "Server is showing: "
             .substr($result["SAPDATE"], 0, 4)
             ."-".substr($result["SAPDATE"], 4, 2)
             ."-".substr($result["SAPDATE"], 6, 2)
             ." and "
             .substr($result["SAPTIME"], 0, 2)
             .":".substr($result["SAPTIME"], 2, 2)
             .":".substr($result["SAPTIME"], 4, 2);
         } else {
              $sap->printStatus();
         $sap->logoff();
    ?>
    [/code]

  • How can I change the language of the time and date and numbers?

    Hey
    I bought the iPhone 5 and when I setted the settings I chose the country where I live now but the time and date and other numbers because in the language of the country and not in the language that I chose which Is english
    so how can I change them?

    Go to settings >> general and checkout keyboard, international and date &amp; time.

  • I am trying to find an app that will track the usage on my iphone with times and dates to see what was accessed on my phone when I was away from it and what if anything was done eg deleted messages viewed facebook etc?

    Hi! I am trying to find an app that with track everything that is done on my phone with times and dates? im not really woried about call usage and texts sent I need it to view what has been done - for example:
    Messages received
    Messages deleted
    Facebook viewed
    Messages viewed
    Internet viewed and what?
    I just have an issue with someone using my phone - I used to track this through double clicking the home button and roughly knowing in what order I had been on things but they have sussed this one!
    Thank you!!

    No way to do that on a non-jailbroken iPhone. Why don't you just passcode protect your phone? That way no one but you can use it...unless they know your passcode.

  • I wanted to keep my locked screen display with the time and date from turning off is that possible

    So I enjoy my locked screen display with my chosen picture because it has the time displayed nice and big and its a cool nightlight but the locked screen display/wallpaper/time with date always goes black after 13ish seconds of locking it is there no way to let the locked screen stay on while charging? because it is awesome if it could stay on as a nightlight also so i dont have to press the lock button to see what time because the normal display is ugly am I just being super picky or am I not the only one who agrees or maybe it does exist im just stupid please respond when you can also thanks for reading much appreciated.

    wjosten wrote:
    Again, there is NO WAY to do what you asked: display the time constantly.
    I have a clock app that displays the time constantly on my iPad. I use it as a bedside clock. Many clock apps have the ability to disable autolock just within that app. Whether there is one that lets you pick your own background, I don't know but I wouldn't be surprised if there were, based on the number of clock apps out there. While what I'm suggestion is not precisely what the OP asked (display the system lock screen), it seems it might be a possible workaround.

  • Is it possible to activate Stickies Notes at a certain time (or date)?

    Many, many years ago (in the dark and early days of MS Windows) I had an extremely helpful and v useful application that (I think) was called PostIt Notes. Anyway, it was very like Stickies but you could set it to pop open at a certain time and date.  I have never been able to find a replica of this and wonder if it is possible to set Stickies to do this?  If not will someone please amend the app? I cannot believe it would be that difficult and it would be so very useful.
    Thank you.

    Read this
    <https://discussions.apple.com/thread/2609977>

  • TS3297 when I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please?

    When I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please? I have restored my ipod to factory settings and rest it.

    I also tried moving the date forward by a year and then moving it back to normal and it still doesn't work.  i can't find an automatic update of time zones on my itouch to turn this off.

  • Printing current time and date on a pdf document

    I wish for a pdf document to print the current time and date in the same place at the foot of each page, to the following format:
    Aug 04 2009, 5:11 pm.
    How do I do this please? Annoyingly I have managed it in the past, but when I open up my old documents and paste the relevant field into my new document, it either prints the old date/time or else prints the present date/time, but then doesn't refresh the next time I try to print - ie it stays at one date/time.
    I'd like to start again from scratch so that I have a better idea of how it works!!
    Regards
    Tony

    Eureka!
    I now have the answer, and hopefully this will help anybody else with a similar problem.
    In Acrobat:
    Create a text field and place it in the chosen place on the pdf form. Label it "datebox" in the General tab of Text Field Properties, and apply your character styles in the Appearance tab.
    Under the "Advanced" menu, go to "Document Processing" and then "Set Document Actions"
    Click on "Document Will Print" and then hit the "Edit" button. In the "JavaScript Editor" paste the following:
    var myfield=getField("datebox");
    var date=new Date();
    date=util.printd("mmm dd yyyy, h:MM tt", date);
    myfield.value=date;
    Hit OK.
    You have now given the instruction that whenever you print, the field named "datebox" will print the current time and date in the following format:
    Aug 05 2009, 9.37 am
    Regards
    Tony

  • Why is my macpro reseted time and date?

    Ok,eventually my macpro reseted his date and time to something about 2001... The point is,that i bought this laptop from a friend few months ago, and i even forgot to ask for a login password,and after that and didnt even consider reseting users. The problem with the time and date change,came another problem,i cant even use safari regulary,on sites such is facebook,or even apple .com,without getting a verification security verisign,without blocking the site that i am trying to get in to. Only way is to "trust" that site is manually sign it as "trusted" with your login and a password from your mac. Which i dont know,even my friend dont know the password,the one that i bought it from. Just to make some things straight,its not stolen,i bought it from an original owner,no matter how awkward this situation looks like. Thanks in advance for a any ideas.

    Hi all
    I have the same problem. When I put the touch to sleep, it seams that during the sleep phase, the time stands still and after power it on again, the time & date is reseted to the default settings.
    Hope someone have an idea or a solution for this problem.
    Cheers, istvan72

Maybe you are looking for

  • Dynamic Table Header in WebI

    Hi community I'm currently facing quite a challange with WebI: I have (simplified) the following data structure in my Universe (which ist built upon a BEx Query): - Customer - Calendar Day - Calendar Week - Calendar Month - Turnover Now, the customer

  • JMS message, RMI calls and OPMN, is it possible?

    Hi all, sorry if this ask is OT but i'm not sure where the question would be pubblished. I would send a JMS message to the default demoQueue, but i'm not be able to establish the connection. if i use this url: java.naming.provider.url=opmn:ormi://rem

  • So I recently removed my partition so I can repartition but its telling me to do something with the disk utility I don't understand what I'm suppose to do?

    So I recently removed my partition so I can repartition but its telling me to do something with the disk utility I don't understand what I'm suppose to do?

  • Google tool bar

    hi can anyone tell me if i can change the google search bar from the factory settings of usa gogglesearch too uk goggle search, as it is very anoying when you are searching for somthing in the uk but all you get is .com web sites

  • Non Root AP (1310G) and WDS

    Hi, can you tell us please how we can get a Non Root AP (1310) to authenticate against ACS (Radius) ? We use WDS for CCKM and the Root AP as well as the Non Root AP have a username + pw defined on ACS but the Non Root AP doesn't get authenticated (it