Friday, May 30, 2014

android Error : Dx trouble processing "javax/crypto/IllegalBlockSizeException.class": Dx 1 error; aborting Conversion to Dalvik format failed with error 1

Error :
Dx  trouble processing "javax/crypto/IllegalBlockSizeException.class":
Dx 1 error; aborting
Conversion to Dalvik format failed with error 1


Solution :
  uncheck all the libraries (android private libraries and maven dependencies if u have ) from BuilPath->Configure Build Path -> order and export 
  clean the projet and run it 

Wednesday, February 5, 2014

inserting record from xsjs to HANA DB

// sample to insert a record in Database  (Very basic code to insert a record)

// create a connection
var conn = $.db.getConnection();

// prepare the statement 
var stmt =  "insert into \"WORKSHOPA_00\".\"workshop.sessiona.00.data::address\" values('65','chennai','chennai','Tamil Nadu')";

// syntax for the above  stmt 
   //  "insert into <schema name >.<table> values('','','') "

// execute the statement 
conn.prepareStatement(stmt).execute();

// commit it in order to reflect the data chnages in hana DB
conn.commit(); 

// and finally close the connection
conn.close(); 




Thursday, January 30, 2014

Remove view from dialog : Error

I have created a dialog and did setview(view) for that dialog.
very first time this view attached to that dialog and dialog is popping up without any problem.

but the second time , when you do setview(view) .. it will throw the below error. 

Error :The specified child already has a parent. You must call removeView() on the child's parent first.


Solution:

      Create a layout and add imageview in that xml. 
      inflate the xml and set that imageview in the alertdialog.

   View dialoglayout = inflater.inflate(R.layout.scale_image, null);
   ImageView view2 =  (ImageView) dialoglayout.findViewById(R.id.enlargeImage);
   view2.setImageBitmap(scaledBitmap);
   

       alertdialog.setView(dialoglayout);
            alertdialog.show();



Above piece of code solved my issue .



Saturday, January 25, 2014

Repository: Internal error during statement execution and Error : HANA Stdio is not at all lauching

Error  1 :   Repository: Internal error during statement execution

please see the database error traces for additional details The csv file:
workshop.sessiona.00.data:sales.csv doesn't match to target table: workshop.sessiona.00.data::sales.
The type of at least one entry in record 982 does not match to the type of columns. column: date(6)entry: 20020229.


Cause :  I was generating some random data to test the hana App , in that I am generating DATE also .
while generating  date ,I generated all the month has 31 days .
HANA server checks this  and rejecting the data .

Error 2 :   HANA Stdio is not at all lauching
   Soln : delete hdbstudio from C:\Users\Administrator\
     after deleting this , you will get a fresh development setup
Reason : might be studio is not exited gracefully