Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12021

Inserting date from Node.JS to a cache which has Java.SQL.Timestamp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.7
    • None
    • cache, thin client
    • We are in DEV right now. can't proceed to higher environment with this show stopper

    Description

      I have cache which has one field with type java.sql.Timestamp

       

      From, Node.JS i am inserting it as new Date(). 

      If the cache is empty the inserts are successful. Issue come when java inserted few records in this cache (Java inserts java.sql.Timestamp) . Now , if I run Node.JS program which tries to insert it gives me this error.

       

      Binary type has different field types [typeName=XYZCacheName, fieldName=updateTime, fieldTypeName1=Timestamp, fieldTypeName2=Date]

       

      Please help, its stopped my work totally!

       

      P.S : JavaScript new Date() is itself a Timestamp, so cache should ideally accept it as Timestamp and not Date.

      Attachments

        Activity

          People

            Unassigned Unassigned
            g21wadhwa Gaurav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: