Thumbnails not properly generating in Organizer 9

I have a mac with the latest version of Snow Leopard. Since yesterday, when I upload photos to Organizer, the image thumbnails do not generate at a small thumbnail size. Each image has an hour glass on it but the thumbnails of the images do not generate. Thumbnails of images will only generate when I zoom into 1, 2, or 3 images in the oragnizer catalog window. When I want to zoom out to have more thumbnails appear in my catalog window, an hour glass appears again on each thumbnail. This problem only occurs with the images that I have uploaded or edited with PSE since yesterday. Does anybody know how I can fix this?
Thanks
Kevin

Hey,
Is thumbnail generation complete in your catalog? If thumbnail generation is incomplete, then you will see 'Generating thumbnail' text in status bar.
If thumbnail generation is complete then it may be possible that your thumbnail database got corrupted somehow. Please to re-build you thumbnail database. 
For doing so, please navigate to your catalog folder (path of current catalog is mentioned in 'Help->system info->Current catalog'). You will find a file saying 'thumb.5.cache'. Please rename this file (say to thumbs.5.cache_old). Now launch Organizer and wait for thumbnail generation to complete. Once done, please let me know if you still face this issue.
~Andromeda

Similar Messages

  • Optimized sql not properly generated when using SAP tables

    Hi Experts
    We are using BODS 4.1 sp2.
    We have a simple dataflow where we pull data from SAP r3 using direct download and push it in our database.
    Basically its like this:
    SAP Table-->Query Transform-->Oracle Database
    Inside query transform,we have applied some conditions in where clause,which are combinations of 'or' and 'and' operator.
    However when we are generating optimized SQL for the same,we observe that the conditions in where clause are not being included in the optimized query.
    But if we replace all conditions by only 'or'  or by only 'and' condition,the optimized sql query with condition  is generated.
    Somehow the optimized sql with conditions is not generated if where clause has mixer of 'and' and 'or' conditions.
    The issue is only observerd for SAP Tables
    However the same dataflow in bods 4.0,generates an optimized sql containing the mixed conditions of 'and' and 'or' in where clause.
    Please help me on this.

    Dear Shiva
    We e
    Let me explain this in detail to you:
    We have a simple dataflow where we push data from the sap table directly into our oracle database.
    The dataflow has a query transform where we have some conditions to filter the data.
    The method used to pull data from R3 is direct download.
    System Used:
    BODS 4.2 SP1
    SAP R3 620 release(4.7)
    The where clause has mixed 'and' and 'or' operators.The problem is that this where clause is not getting pushed in the Optimized sql.
    Eg: Table1.feild1=some value and Table1.feild2=some value or Table1.feild3=some value.
    If this is the condition in  where clause,the where clause does not appear in optimized sql.
    Also the condition in where clause is from same table.
    However if all the condition in where clause are either all 'and'  or either all 'or',the condition gets pushed and appears in optimized sql.
    But if their is mixed 'and' and 'or' it fails.
    The same was not the case when we used BODS 4.0 with R3 620(4.7).
    We investigated further and used R3 730 with BODS 4.2.With R3 720,we the where condition was getting pushed into optimized sql for mixed 'and' 'or' predicated.
    SAP support too confirmed the same.They were able to reproduce the issue.
    We will use ABAP dataflow and see if if resolves the issue.
    Regards
    Ankit

  • OBIA 7.9.6.2    parameter files not properly generated

    I am seeing 4 parameter files being generated with names like this: [note @ sign in the file name]
    DataWarehouse.DataWarehouse.SILOS.@DAC_SIL_PositionDimension_FULL_TD_CMD.txt
    DataWarehouse.DataWarehouse.SDE_ORAR1212_Adaptor.@DAC_SDE_ORA_WorkforceEventQueue_SupStat_CMD.txt
    DataWarehouse.DataWarehouse.SDE_ORAR1212_Adaptor.@DAC_SDE_ORA_PersistedStage_WorkforceEvent_Performance_Mntn_CMD.txt
    DataWarehouse.DataWarehouse.SDE_ORAR1212_Adaptor.@DAC_SDE_ORA_PayrollFact_Agg_Items_CMD.txtI am using 7.9.6.2 (fin, hr, scm, P&S) with EBS R12.1.x
    All the tasks run fine, expect these 4 (and their dependencies)
    Rest of the parameter file names are correct. As a result of the above 4 parameter file names,
    the ETL workflow is not getting triggered, hence, no informatica session log or workflow log.
    Only DAC error log shows up, for these tasks.
    500+/700+ ETL tasks completed, hence, I do not suspect any major configuration issue. Note this is 7.9.6.2 of Bi apps.

    WE did had the similar problem and we were able to come out of it with below one.
    1). Modify infa_command.xml in /install/DAC/CONF
    2). In the file, search for start_workflow_8 and start_workflow_8_alternative
    3). Swap names by renaming start_workflow_8 to start_workflow_8_alternative
    4). Rename start_workflow_8_alternative to start_workflow_8
    5). Place the modified file in the same location, bounce DAC Server and re-run ETL
    NOTE: The parameter will work only if DAC Server and INFA server are on the same server.

  • FormBeanInfo classes not properly generating after entity/view changed

    I'm adding columns to a view/entity. I deleted the view and entity then regenerated by selecting the view. The view and entity generated with the right columns and reasonable column names. The jave RowImpl classes generated with reasonable accessors for the new columns/attributes. However, I get an exception because reflection cannot find a method for the attribute.
    Searching manually in the file system I found a {vew name}FormBeanInfo.java file that has definitions for the old view and its columns.
    How do I force JDeveloper to do its job and regenerate these FormBeanInfo classes correctly? The source files don't seem to be available through the IDE to manually manipulate, either.

    Okay...I actually found the {view name}Form.java and {view name}FormBeanInfo.java files in the view-controller project application sources. Anyone know if these are generated automatically? (The Form objects extend BC4JActionForm.) Or am I on my own?

  • Task activities not getting generated properly in BPEL

    I am using the Jdev 11g TP3 (from OTN). Installation went through fine. However I observed a interesting issue with HumanTask/BPEL and I was wondering if someone faced similar such problems before, if so, how to rectify the issue. Here is the description of the issue:
    1. Created a Empty SOA composite project
    2. Dragged and dropped BPEL Process in the component palette. Designed a Asynchronous process.
    3. Dragged and dropped a HumanTask. Did not expose as an composite. Designed a single approver workflow. In the project schema, choose the schema from BPEL input.
    4. Wired BPEL to HumanTAsk
    5. In the BPEL flow, I dragged the HumanTask to the flow. Everything appears to be correct. I clicked on "Ok" after associating with BPEL variable.
    Now when I examine the BPEL flow, a scope before the BPEL switch is empty. There are no BPEL activities generated. This is a very simple case of BPEL and HumanTask and I am not sure as to why the tasks not getting generated properly in BPEL flow.
    Has anyone experienced this issue or any ideas as to why this could happen?

    After going through the exercise several times, I finally found out the reason as to why the BPEL activities are not getting generated. In the Human task form for the title, since it is a fixed string in my case I put something like the one given below:
    Title : "APPROVE ORDER"
    When you have fixed string within double quotes it does not generate BPEL activities correctly. You can try and u will see the problem.
    My real question is should not throw proper error message when you try to drag and drop the HumanTask to BPEL flow.

  • .MTS files in elements organizer: no thumbnails, not playing

    Some google searching shows that i´m not alone with this problem, but i haven´t found a solution.
    .MTS files plays in premiere elements (lagging terribly though) but not in elements organizer, where i get this error message:
    Updated quicktime as suggested, no improvement.
    Source of .MTS files is a Panasonic G5.
    Running W7 64 bit. same problems in both elements organizer 11 & 12.
    If it was a codec issue i assume it would not play in Premier elements either?
    Any suggestions?

    Hi A.T.
    1.  I'm using Premiere Elements 9.  I have an Asus laptop with windows 8.1
    2.  I believe i have the latest driver.  I have Intel HD Graphics.  I ran a check to look for updated drivers and it came back as saying I had the latest.
    Background
    I've only had the laptop since October so that's how long the program has been on the computer.
    I was able to use it a few days ago.  At that time I had been using video from the same camera but that time it I had saved it originally to the camera's internal memory.  When I had the problem last night it was with video I had saved to a memory card.  A message which I do not remember came up asking if I'd like to change the preset as my current settings didn't match the video format.  I said yes and then nothing worked after that.  I can't even view the project I did several days ago now either.
    How I search for the presets?  I've never changed these before.
    It is AVCHD file type and 1080 but I am unfamiliar with the how to know anything further. 
    Tracey
    Date: Tue, 4 Feb 2014 20:55:46 -0800
    From: [email protected]
    To: [email protected]
    Subject: .MTS files in elements organizer: no thumbnails, not playing
        Re: .MTS files in elements organizer: no thumbnails, not playing
        created by A.T. Romano in Premiere Elements - View the full discussion
    Goldsk8te
    You put yourself at a disadvantage by tagging on to an older thread and not starting a new thread of your own. I just saw your post now.
    So let us get to the troubleshooting...
    1. What version of Premiere Elements are you using and on what computer operating system is it running?
    2. This has all the symptoms of a display problem. Do you have the latest version of your video card/graphics card according to the web site of the manufacturer of the card? If so, we are going to need to delete the BadDrivers.txt file. But I need the information in "1" to tell you how to get there and do that.
    Some background information please....
    1. How long have you been working with this version on its current computer operating system?
    2. How would you class this issue "It worked before but not now" or "it never worked before"?
    3. What is your project preset?
    4. What are the properties of this .mts files...AVCHD video compression? 1080i or 1080p or other?
    More later in the morning.
    ATR
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6087192#6087192
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6087192#6087192
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6087192#6087192. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Premiere Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Utilizing item category ALEN - Creation of PO is not auto generated

    All,
    I am utilizing item category ALEN during my sales order creation process.  ALEN is set up with "create purchase order automatically" flag.  I am utilzing schedule line CB and I have maintained the order type NB, item category is 0 and acct. assign category is M.  When I save the sales order, the purchase requisition is being created, but no purchase order.  In fact, it doesn't seem to be even pulling against the data maintained in OVX5 (See below).  I have read OSS note 332475 and I have followed those instructions, but my PO is not being generated.
    One other question - when the ALE data is input for the sales organization (t-code OVX5), what have others input when the vendor, purchasing org and plant can vary (meaning, at times we transfer from plant A to plant B; then for the same sales organization, we transfer from plant B to plant A.  Maintaining just one vendor against the same sales organization does not make sense to me as it will change depending upon the sourcing and receiving plants for the same sales org.
    I have performed a search in OSS on Third Party Order Processing when it relates to individual purchase orders and how to properly configure when using ALEN and TAB - very little information to be found.  I can find a great deal of information on third party processing when it relates to the utilization of TAS and ALES item category.
    Any insights or areas to check would be very greatful. 
    Regards,
    Sandy

    All,
    This issue has been resolved internally.  I had to set the CB schedule line to using "7" stock transfer item category .. then apply a note to address an error message (note 883133).
    Regards,
    Sandy

  • XSD OTD compilefailure String literal not properly closed by double-quote

    Java CAPS 5.1.3
    I have created a XSD to describe a simple XML file. After this I created an OTD from the exported XSD file.
    This OTD is being used in a JCD. During the build of the Deployment Profile I get the error: :Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
    All steps have been preferformed within the same eDesigner and the same repository.
    I have verified the XSD file with netbeans and can not see a problem with the file itself.
    Any ideas to resolve this compile failure?
    The XSD is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:tns="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1" targetNamespace="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1">
        <xsd:element name="MessageBroker">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="IN" maxOccurs="unbounded">
                        <xsd:complexType>
                            <xsd:all>
                                <xsd:element name="MSGFN" type="xsd:string" default="IN"/>
                                <xsd:element name="DIR" type="xsd:string" default="\"/>
                                <xsd:element name="FILEMASK"
                                    type="xsd:string" default="*.DAT"/>
                                <xsd:element name="MAPID" type="xsd:string" default="MS000"/>
                                <xsd:element name="RCVPRN" type="xsd:string"/>
                                <xsd:element name="RCVPRT" type="xsd:string"/>
                                <xsd:element name="RCVPFC" type="xsd:string"/>
                                <xsd:element name="SNDPRN" type="xsd:string"/>
                                <xsd:element name="SNDPRT" type="xsd:string"/>
                                <xsd:element name="MESTYP" type="xsd:string"/>
                                <xsd:element name="MESCOD" type="xsd:string"/>
                                <xsd:element name="MESFCT" type="xsd:string"/>
                                <xsd:element name="TEST" type="xsd:boolean" nillable="true"/>
                            </xsd:all>
                        </xsd:complexType>
                    </xsd:element>
                </xsd:sequence>
                <xsd:attribute name="dateTime" type="xsd:dateTime"/>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>The complete error stack trace is:
    com.stc.codegen.framework.model.CodeGenException: error generating otd for CMap1_jcdMB_Recieve_SAP_Inbound1:Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:767)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:653)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1544)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
         at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
         at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
         at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
    Caused by: java.lang.RuntimeException: Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.javac.Javac.compile(Javac.java:227)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compileFromJarfile(BaseXsdDtdGenerator.java:254)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compile(BaseXsdDtdGenerator.java:52)
         at com.stc.otd.xsd.codegen.XsdParserGenerator.compile(XsdParserGenerator.java:182)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:166)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:90)
         at com.stc.codegen.OTDImpl.model.CollabOTDGenerator.generateCollabOTDJavaFiles(CollabOTDGenerator.java:233)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.processOTDJars(OTDCodeletFactory.java:861)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:666)
         ... 10 more

    You may need to escape the default slash "\\".
    I'd suggest importing the xsd into the jcaps xml schema editor and verifying that way and then creating the otd by node export.
    Regards,
    Rupert

  • Schedule lines are not getting generated during MRP Run

    Schedule lines are not getting generated during MRP Run. I have maiantained source list for the material with proper validity date and also maintained scheduling agreement . MRP relevvant Indicator , I have marked - 2 which means -Record relevant to MRP. Sched. lines generated automatically.
    Still I am not able to get schedule lines and instead of that *Purchase Requisitions* are getting generated.
    Can any one help me and suggest me what to be done in this case .
    Thanks & Regards ,
    Nirmalya

    Dear,
    Welcome to SDN,
    In transaction OMDT you have to enable the indicator create schedule lines
    In MD02 MRP control Prameter here select the Delivery schedules -3- Schedule line. Processing Key as NETCH and Planning Mode - 3 delted and recreated.
    Maintain source list ME01, in that put MRP indicator as '2' i.e. schedule lines via MRP.Put your agreement no in that.
    If u run MRP properly u will get schedule lines automatically in ME38.
    Make the schedule agreement, make it source relevent in the source list make is FIX and MRP indicator as 3.
    Regards,
    R.Brahmankar

  • MTS thumbnails not displaying in PrE9

    I have a thumbnail problem. I just bought PrE9 because I was unhappy with Studio V14's slow/jerky performance with AVCHD.  I have a Canon HF20 and used Windows to move the videos (MTS's) over to my harddrive.  They are all HD videos in MTS format.  My PC is a Dell Pentium D, 3.46GHz, 4GB DDS RAM, 1GB of "free" harddisk space, ATI 4670 Graphics Card. 
    I had imported a number of MTS files from my Canon to harddisk using Windows and then imported them from harddisk into Organizer.  The thumbnails were blank so I deleted them  and tried re-importing just one clip but got the same problem.  The clip can be inserted into a timeline and shows up with the first frame of the video but has a blank thumbnail in both Organizer and PRE.  They play fine in either PrE9 and Organizer.  Any suggestions.

    Thanks for posting the screenshots. Thumbnail drawing does not seem to be taking place at all.
    I dont think it is a codec related problem because had that been the case the playback also wouldn't have worked.
    There is another place the thumbnails are seen and that is the "Project" view. Can you check if the thumbnails are seen in this view ?
    Also, on the system running Pentium D how much RAM do you have ? Adobe states a minimum of 2 GB RAM for avchd editing.
    (Though I would recommend 3 or 4GB). And since on your other system which has 8GB RAM things appear to be fine, low RAM could be
    a potential reason for thumbnails not being seen. Again, I am just speculating.

  • Nohup.log files are not getting generated correctly

    hai,
    im a weblogic administrator. Here is my problem in weblogic. My partner has complained that nohup.logs are not getting generated properly. Like for every 5 mins a new nohup .log file is getting generated. But almost 4 to 5 logs are of 0 size and after that the 6 log file is very hug ( around MB). And the status of the managed servers is in FAILED state. When i checked the nohup logs, i can see "E297: Write Error In Swap File" and also the below error. But when i checked the disk space it is only 30 % full. Please suggest me something that can help me in this. Why is this behavior in the nohup.logs? have anyone faced anythign like this? Please help me.
    But after the recycle everything is fine. But i want to know what went wrong and why it got recovered after the recycle.
    <Feb 11, 2010 7:43:59 AM CST> <Error> <HTTP> <BEA-101246> <Error occurred while flushing HTTP log file for the Web server: wl38_managed1
    java.io.IOException: Disk quota exceeded.
    java.io.IOException: Disk quota exceeded
    at java.io.FileOutputStream.writeBytes([BII)V(FileOutputStream.java:???)
    at java.io.FileOutputStream.write(FileOutputStream.java:260)
    at com.wily.introscope.agent.probe.io.ManagedFileOutputStream.write(ManagedFileOutputStream.java:423)
    at weblogic.utils.io.DoubleBufferedOutputStream.flushBuffer(DoubleBufferedOutputStream.java:58)
    at weblogic.utils.io.DoubleBufferedOutputStream.flush(DoubleBufferedOutputStream.java:157)
    at weblogic.servlet.logging.LogManagerHttp$FlushLogStreamTrigger.trigger(LogManagerHttp.java:522)
    at weblogic.time.common.internal.ScheduledTrigger.run(ScheduledTrigger.java:243)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigger.java:229)
    at weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java:223)
    at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:50)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    according to error message, your partition size have not enough disk space from where you are running nohup command. check with df -kh.

  • Thumbnails won't show in Organizer

    I have loaded quite a few of my video clips into the organizer. I can see they are there, but they have not thumbnail image. So it's difficult for me to tell which video is which. I can click on them individually to see what the image is, but that is not efficient at all! I cannot tell quickly at a glance what video is what.
    I have loaded the latest Quicktime on my computer.
    Any other suggestions?

    FarmerBench
    Your first try at "Update Thumbnail" gave great results. However, the results with the next other five was not so great. In trying to explore the why, do you see any difference in the files, that is, was the first file from one camera and the other from a different camera?
    There are 2 ways to get thumbnails into the Elements Organizer.
    a. Elements Organizer and its File Menu/Get Photos and Videos/from Files and Folders
    and
    b. Just import the file into Premiere Elements workspace with Premiere Elements Add Media/ and get the file to the Timeline. When you do that, automatically a copy is placed in the Elements Organizer as a thumbnail there.
    Your iPhone5 and iPod Touch 4th generation videos should be going into your Elements Organizer (one way or the other). So, from the point of view of video formats causing the issue, the why is not obvious.
    When you import video into a Premiere Elements project, automatically a copy of that video is included in the Elements Organizer. Have you tried that route to get the videos into the Elements Organizer rather than importing the videos into the Elements Organizer first?
    So, when I wrote the above in a prior post, I wanted to see if "a" and "b" were giving you the same result when you wanted to view file thumbnail(s) in the Elements Organizer.
    Let us be in sync on the above.
    We could explore creating a new catalog. How much content do you have in the present one? But, we can go into detail on that at whatever level you feel comfortable with.
    We will be watching for your results.
    Thanks.
    ATR

  • DB adapter, XSD not getting generated

    Hi',
    I am using a DB adapter and using option for "pure sql query", when I paste the sql query the XSD file is not properly getting generated.
    Its only creating the input part but not generating the output part of the XSD, I have checked the query its returning the output.
    Please advice me what can be the possible cause of this.
    Thanks
    Yatan

    Hi,
    Before you paste your sql query into the dialogue box can you try and reformat it so that it appears as a single line. So something like
    SELECT MY_COL FROM MY_TAB WHERE MY_COL2 = #IN_VAL
    instead of
    SELECT MY_COL
    FROM MY_TAB
    WHERE MY_COL2 = #IN_VAL
    I recall having problems when I pasted formatted sql statements.

  • Unexpected Expection in perform:  Given final block not properly padded

    Hi folks,
    I am trying to encrypt some data and passing through the url and getting it back and decrypting it. But it's working every time and some times it's giving the below exception.
    Unexpected Expection in perform: Given final block not properly padded
    javax.crypto.BadPaddingException: Given final block not properly padded
    Here is the code i am using to encrypt and decrypt it..
    SecretKey key = EncryptDecrypt.getHardCodedKey();
    String encriptedCSID = EncryptDecrypt.encryptString(key, Integer.toString(customerId));
    String encriptedAgreementId = EncryptDecrypt.encryptString(key, Integer.toString(agreementId));
                        Here are the other methods tooo
    public static String encryptString(SecretKey key, String input) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalStateException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException {
             Cipher cipher = Cipher.getInstance("DESede");
             cipher.init(Cipher.ENCRYPT_MODE, key);
             byte[] inputBytes = input.getBytes();
             byte[] encryptedBytes= cipher.doFinal(inputBytes);
             String encryptedString = new sun.misc.BASE64Encoder().encode(encryptedBytes);
             return URLEncoder.encode(encryptedString, "UTF-8");
             //return encryptedString;
    public static String decryptString(SecretKey key, String encryptedString) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException {
              // TODO Auto-generated method stub
              String ka = URLDecoder.decode(encryptedString, "UTF-8");
              byte[] encryptedBytes = new sun.misc.BASE64Decoder().decodeBuffer(ka);
              Cipher cipher = Cipher.getInstance("DESede");
              cipher.init(Cipher.DECRYPT_MODE, key);
              byte[] recoveredBytes = cipher.doFinal(encryptedBytes);
              String recoveredString = new String(recoveredBytes);
              return recoveredString;
    public static SecretKey getHardCodedKey() throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException {
             byte[] keyBytes = { 37, -51, -14, -113, -2, 124, -50, -125, -2, 118, 28, 94, -45, -3, -125, 22, 93, 81, 91, -53, 124, 28, 31, 127 };
              DESedeKeySpec keySpec = new DESedeKeySpec(keyBytes);
              SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DESede");
              SecretKey key = keyFactory.generateSecret(keySpec);
              return key;
    SecretKey key = EncryptDecrypt.getHardCodedKey();
                        String decryptedCustomerID = EncryptDecrypt.decryptString(key, customerId);
                        String decryptedAgreementId = EncryptDecrypt.decryptString(key, agreementId);Could you please help me .. i didn't see any problem with it. some time it's giving problem and rest of the time it's working good.
    Thanks,

    I am trying to use the Hex encoding. So when ran it as a java application which is working fine. And whn i incorporated the same in my code and deployed the ear.. i am getting this exception.
    And i have included the jar file in the ear. I didn't understand wht's happeining.. any help?
    4 gov.ed.telework.delegate.TeleworkDelegate - got RemoteException RemoteException occurred in server thread; nested exception is:
         java.rmi.RemoteException: ; nested exception is:
         java.lang.NoClassDefFoundError: org.apache.commons.codec.binary.Hex
    10/09 12:12:49 execute 100 WebContainer : 4 gov.ed.telework.ui.EmpTeleworkAgreementAction - Unexpected Expection: Exception occurred.. Here is the modified code.
    public static String encryptString(SecretKey key, String input) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalStateException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException {
             Cipher cipher = Cipher.getInstance("DESede");
             cipher.init(Cipher.ENCRYPT_MODE, key);
             //byte[] inputBytes = input.getBytes();
             byte[] inputBytes = input.getBytes("UTF-8");
             byte[] encryptedBytes= cipher.doFinal(inputBytes);
             //String encryptedString = new sun.misc.BASE64Encoder().encode(encryptedBytes);
             String abc = org.apache.commons.codec.binary.Hex.encodeHexString(encryptedBytes);
             return abc;
             //return URLEncoder.encode(encryptedString, "UTF-8");
             //return encryptedString;
    public static String decryptString(SecretKey key, String encryptedString) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, DecoderException {
              // TODO Auto-generated method stub
             byte  abc[] = org.apache.commons.codec.binary.Hex.decodeHex(encryptedString.toCharArray());
             //String ka = URLDecoder.decode(encryptedString, "UTF-8");
              //byte[] encryptedBytes = new sun.misc.BASE64Decoder().decodeBuffer(ka);
              Cipher cipher = Cipher.getInstance("DESede");
              cipher.init(Cipher.DECRYPT_MODE, key);
              //byte[] recoveredBytes = cipher.doFinal(encryptedBytes);
              byte[] recoveredBytes = cipher.doFinal(abc);
              //String recoveredString = new String(recoveredBytes);
              String recoveredString = new String(recoveredBytes,"UTF-8");
              return recoveredString;
         }Thanks,

  • Exception: Given final block not properly padded

    Hi,
    I generated an password encrypted RSA private key using the following openssl command.
    openssl pkcs8 -topk8 -in private.pem -outform DER -out private.der -v2 des3
    I am using the following piece of code to decrypt private.der using a password entered by the user.
    For now, I assume that the password is of 24 bytes long.
    1. The following method throws an exception saying "Given final block not properly padded."
    How can I fix it?
    2. Since private.der is created by openssl, I didn't provide salt and iv paramters.
    Are they embedded in the file itself?
    Does the objects in the following method takes care of them automatically?
    Thanks.
    public byte[] readDES3EncryptedPrivateKey2(final String password,
                                                final String privateKeyFilePath)
    throws Exception
            File privateKeyFile = new File(privateKeyFilePath);
            byte[] encryptedPrivateKey = FileUtils.readFileToByteArray(privateKeyFile);
            final byte[] passwordInBytes = password.getBytes("UTF-8");
            DESedeKeySpec keySpec = new DESedeKeySpec(passwordInBytes);
            SecretKey key = SecretKeyFactory.getInstance(DES3).generateSecret(keySpec);
            javax.crypto.EncryptedPrivateKeyInfo epki = new javax.crypto.EncryptedPrivateKeyInfo(
                    encryptedPrivateKey);
            AlgorithmParameters ap = epki.getAlgParameters();
            des3Cipher.init(Cipher.DECRYPT_MODE, key, ap);
            // Error: Given final block not properly padded
            return des3Cipher.doFinal(epki.getEncryptedData());
        }

    I've run into similar things. Have you tried padding the data you are trying decrypt to the block size of DES3?

Maybe you are looking for

  • Mapping all one vendor Payments to that Vendor in DME file....  ???

    Hi Gurus I am not able to Map all one vendor Payments to that Vendor in DME file. The DME file takes each individual line item (invoice)  but incorrectly  with  the total  amount of vendor payment - not amount of each invoice. We want to pay a total

  • How to search and mount partitions in solaris

    Hi I am new to Oracle solaris. I have a dual boot of windows S03 and solaris. I want to install Open Office which I downloaded and copied to D drive when I was in windows. Now how do I navigate to the D drive in solaris. When I select Places/Computer

  • BO Generate Emails

    Hi All, We schedule some webi reports and send out the reports by email. Sometimes the reports do not have data return. Are there any methods to generate emails that only the reports contain data? Thanks.

  • Exception handling in  Data feeder class

    Hi All, I have written some code in the DATA class feeder.  there i am catching some exception and i am displaying the exception using the message manager. So after catching the exception , its going for dump because , the mo_message , the attribute

  • Is it necessary to load metadata for ECC sending IDoc to PI?

    Hi Experts, I just want to know if it's necessary to do that since I heard it's not from my mentor but cannot find the document beliveable. pls help to answer Thanks in advance.