Urgent -Encypted file corruption while reading/Writing

Hello Friends ,
I am working on Encryption and Decryption using DES and ECB padding scheme. I am
encrypting a text file and storing the encrypted string in another dat file using
FileOutputStream.write(byte[]).We are storing the "Key" using ObjectOutputStream in another
dat file . Now the same file needs to be downloaded across network. we are doing so using a
servlet. The servlet uses RandomAccessFile.read(byte[] ,0,file.length()) to read the
encrypted as well as the Key file . This data is stored in a vector and sent to the Client
using the ObjectOutputStream.The Encrypted file is written using streams while downloading
into a dat file . When the same is decrypted, it gets corrupted . And if I simply copy And
Paste the files from Server to client instead of downloading on client it works.
Please help me out of the problem ..................
its very urgent ................
any help would be of much appreciation ... Thanx
:) Cheers

You will not get a warranty that your stream from the http server will be solid. You have to check the lenght of the data you've got from the server before you will decrypt it. I also use something like RetryBufferedStream to solve that problem (because stream from http may give you EOF just because of net timeout or bad connection).

Similar Messages

  • Mutex shared lock while reading/writing files

    Hi,
    My application is a single threaded application. And I am trying to do the read/write file operation.  But there is a chance that other process may read/write the same file while i am using. So before reading or writing the file, i want to mutex shared
    lock.
    So can please some one tell me how to prevent this situation. Is there some sample code. I checked in net, how to use mutex shared lock, i got some example, but every where before using the mutex loxk, a thread needs to be created. Since my application is
    a single threaded, so i dont want to create a new thread.
    So please help me, how to prevent/stop other process to access the same file while my application is using.
    THanks a lot in advance.

    That's not something that a mutex can help with. Other processes won't know about your mutex and even if they know that's overkill. Normally you simply open that file without allowing read/write sharing - in the case of CreateFile that in general means that
    you pass 0 for the dwShareMode parameter.
    If you use the C runtime functions then you can use fopen_s instead of fopen as it automatically disallows sharing if you open the file for write (if you open for read when it allows shared read which is the normal thing to do).

  • Help My Fla file corrupted while saving (System shut down while saving)

    Hi everyone does anyone have any solution for this. I am using Adobe CS5 my week longs work of animation is all gone. I checked the forum for solutions and i found so many like updating my CS5 Software e.tc. I finally found one where they said u can convert ur fla file to a zip file. and check the library assets to see which one is corrupted but the problem is that i could find only one symbol in the libary folder where as i had about five symbols in the fla file. Pls I really need your help. The size before it was corrupt was well above 24mb but now all i can see is 13MB i really really hope i can resucue this file as i dont have any backups.

    backups are always smart.  use a naming convention that's convenient for you.
    i use projectname_01.fla, projectname_02.fla etc.  whenever you save, use a new name.  it's not unusual for me to end-up with projectname_49.fla.
    if you like tidy directories without lots of files, you can move older flas to and "old" or "previous_versions" subdirectory.

  • Replicat Error Illegal Tandem file name while reading definition file

    Hi All,
    I have problem while running replicat on the target db2 database i have source db is Oracle database .
    **            Running with the following parameters                  **
    2012-06-06 16:38:59  INFO    OGG-03035  Operating system character set identified as ISO-8859-1. Locale: en_US, LC_ALL:.
    --checkparams
    REPLICAT REP01
    TARGETDB b88, USERID db2b88, PASSWORD ********
    2012-06-06 16:38:59  INFO    OGG-03036  Database character set identified as ISO-8859-1. Locale: en_US.
    2012-06-06 16:38:59  INFO    OGG-03037  Session character set identified as ISO-8859-1.
    SOURCEDEFS ./dirdef/source_ora4.def
    Source Context :
      SourceModule            : [er.init]
      SourceID                : [/scratch/aime1/adestore/views/aime1_staoi06/oggcore/OpenSys/src/app/er/init.cpp]
      SourceFunction          : [get_infile_params]
      SourceLine              : [1550]
    2012-06-06 16:38:59  ERROR   OGG-00303  Problem at line 27.  Illegal Tandem file name: SAPSR3./1CN/CBPSAP001.
    2012-06-06 16:38:59  ERROR   OGG-01668  PROCESS ABENDING.I Have Replicat Parameter :
    --checkparams
    REPLICAT REP01
    TARGETDB b88, USERID db2b88, PASSWORD *******
    SOURCEDEFS ./dirdef/source_ora4.def
    --DDLERROR DEFAULT IGNORE
    HANDLECOLLISIONS
    --assumetargetdefs
    MAP SAPSR3.*, TARGET SAPSR3.*;how to clear this isue..?
    thanks, a lot
    Riyas
    Edited by: riyas on 06-Jun-2012 03:29

    Do you mean like this
    this is full my replicat params
    --checkparams
    REPLICAT REP01
    TARGETDB b88, USERID db2b88, PASSWORD kagome31
    SOURCEDEFS ./dirdef/source_ora4.def
    --DDLERROR DEFAULT IGNORE
    HANDLECOLLISIONS
    --assumetargetdefs
    --SOURCEDEFS ./dirdef/source_ora2.def
    --SOURCEDEFS ./dirdef/test_db.def
    --MAPEXCLUDE SAPSR3.PATCHHIST
    MAP SAPSR3.*, TARGET SAPSR3.*;
    --MAP DB.*, TARGET db2b88.*;Edited by: riyas on 06-Jun-2012 03:19

  • Regarding File Offset While Reading

    Suppose I have a file with the string "HELLO" written in it. I now try reading it with
    readBytes(AdobeArray,20,2)   // But I dont get any EOF error inspite of reading the file from offset 20 which is well beyond the EOF offset for this file.
    Why is it so ?
    Thanks in advance

    You don't mention any versions of software you are using. Which JDK is this? Are you using the default provider to do DES? You might want to query the bug database to check on RandomAccessFile, there were some issues there like this:
    http://developer.java.sun.com/developer/bugParade/bugs/4170047.html

  • Error while reading/writing to serial port

    Hello,
    I am trying to read/write to my serial port but
    this message shows every time i launch the
    program. Does anyone know some help ?
    Thanks
    FdB
    Attachments:
    error2.ppt ‏172 KB

    Frederico
    This VI (LV8)
    1. Open the serial port at 2400 baud
    2. Powers down the PT104 and wait 0.5 secs for this to settle
    3. Flushes the serial power buffer to remove any power down acknowledgements in the serial buffer
    4. Powers up the PT104 waits 1 sec for things to settle
    5. Reads any bytes in serial rx buffer.
    6. Power down the PT104
    7. Close the COM Port.
    This is a bit of a guess but this is how I would approach it. Can you try this and let us know how you get on?
    thanks
    David
    Message Edited by David Crawford on 07-20-2006 10:31 AM
    Attachments:
    PT104 - Get Version at Power Up.vi ‏56 KB
    PT104 - Get Version at Power Up.jpg ‏50 KB

  • Small size file can not read correctly on other linux

    Hi, I am running archlinux 0.8 on my laptop, and there is another linux runs kernel version 2.6.20 with root filesystem of debian v3.1.
    I wrote a shell script which reads a small, 49 bytes, only 1 line conf file on my archlinux, it works fine.
    But if I copy script & conf files to debian, the script can not read conf file with:
    while read f;do; echo $f; done < conf
    but `cat`,`more` commands can read it. I have to open conf file with vi on debian and do nothing but :wq rewrite it to make script working.
    Both arch & debian use ext3 file system. Could anyone tell me why? thanks.

    I think your command is wrong: it works with zsh and doesn`t work in bash. Maybe you should remove extra ';'?
    while read f;do echo $f; done < conf

  • Move to new computer, get "An error occurred while reading files or writing files to disc. The disc

    I tried to move my PE6 install and catalog to a new computer.  It was on a Dell Windows XP machine, and I moved it to a Toshiba Windows 7 (64 bit) machine.  I have always kept my photo files on an external hard drive.  My photo library is 50GB, 10,000 files.  Here is what I did.
    Copied the original PE6 install file to the Toshiba.  Installed but didn’t activate it.
    Copied the entire My Catalog folder to the proper Windows 7 location.
    Plugged the external drive into the Toshiba.  Made sure the same drive letter as before (E).
    Fired up PE6 on Toshiba.  Looked good in Organizer.  Everything seemed to be there, but I didn't try to make changes at that point.
    Deactivated PE6 on the Dell.  Activated on the Toshiba.
    Then I realized that it is not right.  I can edit Keywords and Rating stars on the pics, but not dates, captions or notes.  I get “An error occurred while reading files or writing files to disc. The disc may be full or there may be problems with the source media.”
    Only a fraction of the external drive is in use.
    I can access the files on the external drive with another app (Windows Photo Viewer).
    I tried Reconnect All Missing Files.  Somewhat ambiguously, it says “There are no files to reconnect.”
    In the properties in the Organizer for each picture are the proper file names and paths.  Folder view works fine in Organizer.
    I can put new files in the same external drive directories, import them into PE6, then edit them normally.
    What is the easiest way to get Organizer properly connected to my files?  I suppose I could reimport all the pics on the new machine, but I assume I'd lose some of my metadata.  So that is out of the question.
    Thanks,
    Bill

    Are you sure that file paths are correct? I say this because under XP they would have originally pointed to Documents & Settings/My Pictures whereas on W7 it will be User/Pictures, albeit you are using an external hd.
    Take a look at this knowledge base note on the correct procedure for back-up and restore.
    I think writing metadata to files for such a large catalog will be a thankless task.
    http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html

  • Error Message: An error occurred while reading files or writing files to disc...

    Why am I getting the following error: An error occured while reading files or writing files to disc.  The disc may be full or there may be a problem with the source media.  I am running PSE10 on a iMac using OS X 10.7.3, my Mac has a 1TB hardrive of which about 150GB is used.  I get this error when trying to delete a file out of the Organizer.  The software worked fine until I installed it on my laptop, also a Mac, and tried to share files.

    Hmm. What happens if you disable sharing, just as a test?
    I don't think you can share organizer photos that way, since your versions don't really exist as images, just as a set of directions to organizer for recreate that state of your editing when needed, and you can't run organizer on a network drive, which is pretty much what you're trying to do if you mean you have PSE installed on the other computer and are tryng to use the same catalog for both.

  • An error occurred while reading files or writing files to disc. The disc may be full or there may be

    Does anyone know why I get this error message in PSE9 on a mac computer?
    An error occurred while reading files or writing files to disc. The disc may be full or there may be a problem with the source media.
    I cant put titles on pictures or delete them from the hard drive, etc.
    Please help.
    Thank you!

    Okay. I would suggest going to your username>library>preferences and deleting everything that is anything like com.adobe.Elements Organizer.plist. You will have more than one of these, one with the version number and possibly one with UUID in it. Also delete any lockfiles with the same names. While you're in username>library, also delete any saved application states for the organizer or PSE from your saved states folder. Then repair permissions and try again.
    The username>library folder is hidden in lion. To make it visible, in the Finder click the Go menu and hold down the Option key. It will appear below the little house for your user account.

  • Error while reading objects from a file

    Below is a short code to explain the problem i am facing
    i have been working on the same for past one week i am facing exceptions while reading a file containing more than one objects
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    * @author sakshi
    public class Storingobject implements Serializable{
        int x,y;
        public void addObject()
            //Storingobject temp;
            ObjectOutputStream objOut=null;
            try {
                objOut = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream("temp.dat")));//if i pass true as parameter in FileOutputStream it gives Stream Corrupted exception
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
            try {
                // while((temp=objOut.writeObject(o))!=null)
                objOut.writeObject(this);
                System.out.println("Saved..");
                objOut.close();
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
        public void readobject()
            int i=1;
            Storingobject temp;
            ObjectInputStream objIn=null;
            try {
                objIn = new ObjectInputStream(new BufferedInputStream(new FileInputStream("temp.dat")));
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
            try {
                while ((temp = (Storingobject) objIn.readObject()) != null) {
                    System.out.println("VAlues of object i++ :");
                    System.out.println("X: "+temp.x+"Y: "+temp.y);
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
        public static void main(String args[])
            Storingobject o1=new Storingobject();
            o1.x=10;o1.y=15;
            o1.addObject();
            o1.readobject();
    }

    //if i pass true as parameter in FileOutputStream it gives Stream Corrupted exceptionI agree. You can't append to a file written with an ObjectOutputStream. You would have to read it all in, write it all out again and write the new object. You're better off keeping the file open while you still have objects to write to it.
    while ((temp = (Storingobject) objIn.readObject()) != null) {ObjectInputStream.readObject() only returns null if you wrote a null. If you're not writing nulls, the correct technique is to loop until you get an EOFException. I don't favour explicitly writing a null just to get around this as suggested above, as it means you can never write a null for any other purpose.

  • Keep getting message pop up "Error reading/writing file  "com.apple.logic.pro.cs": Logical end-of-file reached during read operation," and "The Preferences are not loaded completely. Save them to "com.apple.logic.pro.cs" anyway?" Using Logic pro 8. ???

    Logic froze while I was working on something so I forced quit.  Now every time I open LOGIC a message pops up that says:
    "Error reading/writing file
    “com.apple.logic.pro.cs”:
    Logical end-of-file reached during read operation."
    The only button option is cancel so I press it and another message appears that says:
    "The Preferences are not loaded completely.
    Do not save them, as you would overwrite the Preferences file with incomplete data."
    Then when i close logic a box appears saying:
    "The Preferences are not loaded completely.
    Save them to "com.apple.logic.pro.cs" anyway?"
    There are 3 button options to press; ok, cancel or dont save.
    I press "don’t save" cuz I don't want to ruin anything.
    I found a discussion located here: https://discussions.apple.com/message/9564253#9564253 that says if I delete the file "com.apple.logic.pro.cs" it will resolve the problem.  If I do this will I loose or mess anything up at all, automation, saved channel strips customizations, saved effects, synth, or ultrabeat customizations etc? Or especially will I loose any work I've done?  I have hundreds pieces of music files I've created.  I'm scared to mess anything up with all the hours and months of work I've done.  Is there anyway to fix this without loosing anything?  I'm using Logic Pro 8.
    Thank you

    You can safely delete this file - its the preference file for control surface settings - you haven't said whether you're actually using a control surface or not, if so, you will have to set it up again. A new file will be created when you fire Logic up again, but of course it will contain default settings. If you have a complicated control surface setup, remember to keep a backup copy somewhere in case any future problems arise.
    Other than that, you really have nothing to be scared about - hopefully your problem is as simple as that and there isn't an underlying problem (a corrupt hard drive, for example). You seem concerned about losing work, so I guess you want to think about backing that up on a regular basis too. If you're saving your projects to your system drive, do get an external one for this. And also check that you have plent of free space on your system drive - you need to keep about a quarter or third of it free for your OS and programs to run properly (some temporarily stored files can be quite large).

  • An exception occurred while reading or writing from/to the IIS server

    Hi All,
    I am trying to install and configure calendar connectivity in EP6 sp9.
    As mentioned in
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/3d59fdaa5ebb45967ea107d3fa117a/frameset.htm, i have installed MSX-A component and On testing MSX-A Component i am not getting any error.
    Also log file looks like this.
    BEGIN 3/8/2005 10:09:00 AM----
    URL: HTTP://10.10.18.213:8080/Calendar.asp
    URL Parameters: Server=10.10.18.205&Alias=[email protected]&Action=READ&StartDate=200503081007&EndDate=200503091007&Email=[email protected]&Debug=true
    Reponse: <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <!DOCTYPE OUTPUT [<!ELEMENT OUTPUT (FAILURE|APPOINTMENTS)>
    <!ELEMENT FAILURE (ERRORNUMBER?, ERRORMESSAGE?, CLASSNAME?, METHODNAME?, LINENUMBER?, PARAMETERS?)>
    <!ELEMENT ERRORNUMBER (#PCDATA)>
    <!ELEMENT ERRORMESSAGE (#PCDATA)>
    <!ELEMENT CLASSNAME (#PCDATA)>
    <!ELEMENT METHODNAME (#PCDATA)>
    <!ELEMENT LINENUMBER (#PCDATA)>
    <!ELEMENT PARAMETERS (#PCDATA)>
    <!ELEMENT APPOINTMENTS (APPOINTMENT*)>
    <!ELEMENT APPOINTMENT (ID, SUBJECT?, LOCATION?, STARTDATE, ENDDATE, MEETINGTYPE, ALLDAY, RECURRING, BUSYSTATUS?)>
    <!ELEMENT ID (#PCDATA)>
    <!ELEMENT SUBJECT (#PCDATA)>
    <!ELEMENT LOCATION (#PCDATA)>
    <!ELEMENT STARTDATE (#PCDATA)>
    <!ELEMENT ENDDATE (#PCDATA)>
    <!ELEMENT MEETINGTYPE (#PCDATA)>
    <!ELEMENT ALLDAY (#PCDATA)>
    <!ELEMENT RECURRING (#PCDATA)>
    <!ELEMENT BUSYSTATUS (#PCDATA)>]><OUTPUT><APPOINTMENTS></APPOINTMENTS></OUTPUT>
    END 3/8/2005 10:09:00 AM----
    i have created calendar repository and exchange system on the portal and now i am getting this error in MyAppointment iView in <i>Content Provided by SAP</i>.
    <i><b>An exception occurred while reading or writing from/to the IIS server.</b></i>
    i would appreciate if you please help me urgently
    thanx and regards
    Santosh Choudhary

    Hi Akhilesh,
    I am able to browse HelloWorld.asp in same website. Also i am not getting any error while testing data retrieval through SAPPXchTest.exe, log file looks like this.
    <b>IIS Log File</b>
    IIS Log File
    #Software: Microsoft Internet Information Services 5.0
    #Version: 1.0
    #Date: 2005-03-18 04:44:58
    #Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status cs(User-Agent)
    2005-03-18 04:44:58 10.10.18.213 - 10.10.18.213 8080 GET / - 401 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.0)
    2005-03-18 04:45:05 10.10.18.213 santoshc 10.10.18.213 8080 GET / - 200 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.0)
    <b>Application Log File</b>
    BEGIN 3/18/2005 10:18:31 AM----
    URL: HTTP://10.10.18.213:8080/Calendar.asp
    URL Parameters: Server=10.10.18.205&[email protected]&Action=READ&StartDate=200503161151&EndDate=200503171151&[email protected]&Debug=true
    Reponse: <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <!DOCTYPE OUTPUT [<!ELEMENT OUTPUT (FAILURE|APPOINTMENTS)>
    <!ELEMENT FAILURE (ERRORNUMBER?, ERRORMESSAGE?, CLASSNAME?, METHODNAME?, LINENUMBER?, PARAMETERS?)>
    <!ELEMENT ERRORNUMBER (#PCDATA)>
    <!ELEMENT ERRORMESSAGE (#PCDATA)>
    <!ELEMENT CLASSNAME (#PCDATA)>
    <!ELEMENT METHODNAME (#PCDATA)>
    <!ELEMENT LINENUMBER (#PCDATA)>
    <!ELEMENT PARAMETERS (#PCDATA)>
    <!ELEMENT APPOINTMENTS (APPOINTMENT*)>
    <!ELEMENT APPOINTMENT (ID, SUBJECT?, LOCATION?, STARTDATE, ENDDATE, MEETINGTYPE, ALLDAY, RECURRING, BUSYSTATUS?)>
    <!ELEMENT ID (#PCDATA)>
    <!ELEMENT SUBJECT (#PCDATA)>
    <!ELEMENT LOCATION (#PCDATA)>
    <!ELEMENT STARTDATE (#PCDATA)>
    <!ELEMENT ENDDATE (#PCDATA)>
    <!ELEMENT MEETINGTYPE (#PCDATA)>
    <!ELEMENT ALLDAY (#PCDATA)>
    <!ELEMENT RECURRING (#PCDATA)>
    <!ELEMENT BUSYSTATUS (#PCDATA)>]><OUTPUT><APPOINTMENTS></APPOINTMENTS></OUTPUT>
    END 3/18/2005 10:18:31 AM----
    But when i am Testing it from the Portal i am getting this error.
    I have created Exchange Transport that whose configuration looks like this:
    System Alias : myExchange
    Domain : mydomain
    exchange server : 10.10.18.205
    IIS server : 10.10.18.213
    Port : 8080
    Protocol : Http
    Exchange is the Name of System and Alias name is myExchange.
    Hope this will help you to solve my problem.
    Thanks and regards,
    Santosh Choudhary<b></b><b></b>

  • Error while reading file entries from the database

    Hi there,
    We are running a instance of xmii 12 in a VM (VMware) and after somebody shutdown the host machine without shutting down the VM (great idea isn't it?) we keep getting this message when trying to access xMII:
    "Application cannot be started.
      Details:   com.sap.engine.services.deploy.container.ExceptionInfo: Error while reading file entries from the database."
    Any clue? Any suggestion on how we can recover from that?
    Thanks a whole lot,
    Dom
    Server log:
    #1.5 #000C29A3B1F20002000000C400000F2800044829A35270F8#1205243578005#/System/Server##com.sap.engine.services.dbpool.deploy.ContainerImpl####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.dbpool.deploy.ContainerImpl#Plain###DataSources or DataSource aliases of 'sap.com/tcmonitoringsysteminfo' application started successfully.#
    #1.5 #000C29A3B1F20002000000C500000F2800044829A3527A6C#1205243578005#/System/Server##com.sap.engine.services.servlets_jsp.server.container.WebContainer####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.servlets_jsp.server.container.WebContainer#Plain###application [] Start of application [sap.com/tcmonitoringsysteminfo] finished successfully on Web Container.#
    #1.5 #000C29A3B1F20002000000C600000F2800044829A3527DB5#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp over application sap.com/tcmonitoringsysteminfo finished successfully on server 305221750#
    #1.5 #000C29A3B1F20002000000C700000F2800044829A3527E03#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp on application sap.com/tcmonitoringsysteminfo finished on current cluster node for 221 ms.#
    #1.5 #000C29A3B1F20002000000C800000F2800044829A3528B49#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Error#1#com.sap.engine.services.deploy#Plain###Error occurred while initially starting application sap.com/xappsxmiiear:Error while reading file entries from the database.#
    #1.5 #000C29A3B1F20002000000CA00000F2800044829A352922B#1205243578015#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###The synchronization of applications with DB completed for 39304 ms.#
    #1.5 #000C29A3B1F200040000000200000F2800044829B290A4F8#1205243834341#/System/Server/SLDService##com.sap.sldserv.DataCollector####n/a##0da42150ef7311dcb908000c29a3b1f2#SAPEngine_System_Thread[impl:5]_7##0#0#Warning#1#com.sap.sldserv.DataCollector#Plain###Communication configuration is incomplete. No data transfer possible until corrected.#

    Well thanks for the hint. Actually, the DB was up but corrupted. I managed to solve the bug by re-deploying xMII (using the SDM tool) which kept all my data but redeployed both the config db of (x)mii and the class files.

  • Reading/Writing .xlsx files using Webdynpro for Java

    Dear All
    I have a requirement to read/write excel files in .xlsx format. I am good in doing it with .xls format using jxl.jar. The jxl.jar doesn't support .xlsx format. Kindly help me in understanding how do I need to proceed on reading/writing .xlsx files using Webdynpro for Java.
    Thanks and Regards
    Ramamoorthy D

    i am using jdk 1.6.22 and IBM WebSphere
    when i use poi-3.6-20091214.jar and poi-ooxml-3.6-20091214.jar  to read .xlsx file. but i am getting following errors
    The project was not built since its classpath is incomplete. Cannot find the class
    file for java.lang.Iterable. Fix the classpath then try rebuilding this project.
    This compilation unit indirectly references the missing type java.lang.Iterable
    (typically some required class file is referencing a type outside the classpath)
    how can i resolve it
    here is the code that i have used
    public class HomeAction extends DispatchAction {
         public ActionForward addpage(
                             ActionMapping mapping,
                             ActionForm form,
                             HttpServletRequest request,
                             HttpServletResponse response)
                             throws Exception {     
                             String name = "C:/Documents and Settings/bharath/Desktop/Book1.xlsx";
               FileInputStream fis = null;
               try {
                   Object workbook = null;
                    fis = new FileInputStream(name);
                    XSSFWorkbook wb = new XSSFWorkbook(fis);
                    XSSFSheet sheet = (XSSFSheet) wb.getSheetAt(0);
                    Iterator rows = sheet.rowIterator();
                    int number=sheet.getLastRowNum();
                    System.out.println(" number of rows"+ number);
                    while (rows.hasNext())
                        XSSFRow row = ((XSSFRow) rows.next());
                        Iterator cells = row.cellIterator();
                        while(cells.hasNext())
                    XSSFCell cell = (XSSFCell) cells.next();
                    String Value=cell.getStringCellValue();
                    System.out.println(Value);
               } catch (IOException e) {
                    e.printStackTrace();
               } finally {
                    if (fis != null) {
                         fis.close();
                return mapping.findForward("returnjsp");

Maybe you are looking for