Import/export secret key

Hello i have a simple program that crypt a string, and i want to
to know how i can export the secret key.
My idea is to save a secret string in a file and pass it to the program
that decrypt the string is it possible ???
thank
--sxr                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

OK. First - PLEASE learn how to use the [ code ] tags when posting samples. I didn't even realize you'd posted two classes until I tried to paste 'em into Eclipse.
Second - you're...confused. Crypting and Decrypt need to share two things: the ciphertext, and the KEY. The key is not available from the AlgorithmParameters. In Decrypt, you're creating a new key from your ciphertext (?!?)
Since I had a little spare time, I refactored your code somewhat. The only reason to use AlgorithmParameters is to pass in an InitialValue (IV), which CBC-mode needs. The IV is not sensitive data - it's OK to make it public.
So I just stuck the same IV into both files. You can extend the concept and store the IV as well, if you like.
The following classes work:import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
public class Crypting {
    private static String Password = "sunray";
    public static void main(String[] argvs) throws Exception {
        // Choose an Initial Value (IV)
        byte[] iv = {
            (byte)0x01, (byte)0x02, (byte)0x03, (byte)0x04,
            (byte)0x05, (byte)0x06, (byte)0x07, (byte)0x08,
        IvParameterSpec ivps = new IvParameterSpec(iv);
        File keyFile = new File("key.txt"); // File that will hold the SecretKey
        File cryptFile = new File("algo.txt"); // File that will hold the ciphertext
        // Creazione del generatore di chiave
        KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
        SecretKey skey = kgen.generateKey();
        // Creazione della chiave
        byte[] rawKey = skey.getEncoded();
        // Encrypt our data
        Cipher cipher = Cipher.getInstance("BLOWFISH/CBC/PKCS5Padding");
        cipher.init(Cipher.ENCRYPT_MODE, skey, ivps);
        byte[] encrypted = cipher.doFinal(Password.getBytes("UTF8"));
        // Store the KEY
        try {
            DataOutputStream out = new DataOutputStream(new FileOutputStream(keyFile));
            out.write(rawKey, 0, rawKey.length);
            out.close();
        } catch (Throwable e) {
            System.err.println(e);
        // Store the ENCRYPTED DATA
        try {
            DataOutputStream out2 = new DataOutputStream(new FileOutputStream(cryptFile));
            out2.write(encrypted, 0, encrypted.length);
            out2.close();
        } catch (Throwable e) {
            System.err.println(e);
    } // main()
} //Crypting
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
public class Decrypting {
    public static void main(String[] argv) throws Exception {
        // Choose an Initial Value (IV)
        byte[] iv = {
            (byte)0x01, (byte)0x02, (byte)0x03, (byte)0x04,
            (byte)0x05, (byte)0x06, (byte)0x07, (byte)0x08,
        IvParameterSpec ivps = new IvParameterSpec(iv);
        File keyFile = new File("key.txt"); // Where's the key?
        File cryptFile = new File("algo.txt"); // Where's the data?
        byte[] ciphertext = null; //ciphertext
        byte[] rawKey = null; // key data
        // Read the KEY BYTES
        try {
            DataInputStream in = new DataInputStream(new FileInputStream(keyFile));
            rawKey = new byte[(int)keyFile.length()];
            in.readFully(rawKey);
            in.close();
        } catch (FileNotFoundException e) {
            System.err.println(e);
        // Read the ENCRYPTED DATA
        try {
            DataInputStream in2 = new DataInputStream(new FileInputStream(cryptFile));
            ciphertext = new byte[(int)cryptFile.length()];
            in2.readFully(ciphertext);
            in2.close();
        } catch (FileNotFoundException e) {
            System.err.println(e);
        //make a key object
        SecretKeySpec key = new SecretKeySpec(rawKey, "Blowfish");
        //make a cipher object
        Cipher cipher = Cipher.getInstance("BLOWFISH/CBC/PKCS5Padding");
        cipher.init(Cipher.DECRYPT_MODE, key, ivps);
        // Decrypt the DATA with the KEY
        byte[] original = cipher.doFinal(ciphertext);
        // Spit out the decrypted data
        String originalString = new String(original, "UTF8");
        System.out.println("\nPassword: " + originalString);
    } // main()
} // DEcrypt classYou really need to do some reading on how crypto works, if you mean to get past this point.
Good luck,
Grant

Similar Messages

  • Custom HTML importer/exporter, how to preserve HTML id, class, style

    I need to implement a custom XHTML importer/exporter and CSSFormatResolver.
    If I for example have a p-element: <p id="p1" class="xyz" style="margin:0.7em; color:#3300FF">lorem ipsum</p>
    How do I map the HTML attributes: id, class and style in order to preserve them in the ParagraphElement in order to use them during the custom CSS cascade process and for custom HTML export purposes (the exporter needs to spit out <p id="p1" class="xyz" style="margin:0.7em;  color:#3300FF">lorem ipsum</p> again.
    1. is this mapping correct or will this interfere with internal TLF formatting:
    HTML attribute
    ParagraphElement property
    id
    id
    class
    styleName
    style
    userStyles
    2. What is the purpose of FlowElement.coreStyles (where are those styles applied)?
    3. What is the actual purpose of FlowElement.userStyles, are those styles just for non TLF (end developer custom) purposes or does TLF use them at any point to set the element format properties?
    4. Any other pointers or related (non flex framwork) examples are welcome
    Thanks.
    Cheers, Benny

    Your mapping looks correct to me for id and styleName.
    I think what you are saying about style mapping to userStyles is correct.  Yes userStyles is an object of key value pairs holding all the non-TLF styles for a FlowElement.  coreStyles holds all the TLF styles for a FlowElement. TLF does use userStyles itself for the linkHoverFormat, linkActiveFormat and linkNormalFormat styles.
    Setting FlowElement.userStyles TLF will replace the current set of userStyles with those in the supplied Object.  That Object will be treated as a dictionary of stylenames and values.
    Normally I'd expect you'd use the FlowElement.setStyle API which figures out if a particular style belongs to coreStyles or userStyles and then sets the new style appropriately without changing the others.
    Richard

  • Using XML Import/Export in Transport Connection

    Hi, I was investigating the feasibility of copying a query definition from one BW system to another using the XML Import/Export functionality in Transport Connection.  This is not to replace our current transport process across the landscape (Dev -> QA -> Prod), but merely just looking at possibilities for end users who develop queries in QA & then recreate them in Prod.
    My question is: has anyone worked with the XML Export/Import for types Queries & Query Elements?  I was trying this out between a Dev and Sandbox system and only had limited success.  I was able to take a small query and perform the Export to a local .xml file without much difficulty.  But when I try to do the Import, my query never shows up.  The Import function shows a green light, but I get a couple of error messages on the Import such as the following:
    ==========================================================
    SAP object 3WROG4HZ3NKP1PIYHCR1H24CQ () cannot be imported
    Diagnosis
    You attempted to import SAP object 3WROG4HZ3NKP1PIYHCR1H24CQ of type into the system via the XMI interface. However, you are not allowed to import SAP objects.
    System response
    The object was ignored during the import.
    Note: It can be that the import is incomplete when the required SAP objects are still not active in the system.
    Procedure
    Install the specified objects from Business Content. Only import the metadata afterwards.
    =========================================================
    The portion returned for Saving and Activating returns green lights.  The two sample objects mentioned appear to just be custom InfoObjects used in my query & don't look to be any different than others that work OK. 
    Just curious if anyone else has worked with this and could help advise. 
    Thanks...  Jody

    This is an old subject, but I think XML import only works for datamodeling objects like InfoObjects, InfoCubes, and ODS objects. If you try to export a query, and open the XML file in a text editor, there is not enough information (in my opinion) to build the query. As an example you don't see how key figures are to be displayed, filter or free characteristics.
    However, when an InfoObject is collected, you get all the attributes, texts in all languages.
    If anyone has more insight, please enlighten us.
    -John

  • Import/Export in Background submission

    Hi experts.,
    I am passing two internal tables to another program using Submit statement via Job. Then i am importing those two tables in another program. However i think the tables are not populated. What could be the reason for this. Also how can you debug the background job submission?
    Thanks.
    Warm regards,
    Harshad.

    Hi
    For tables , in your import export statement , just see have you used [ ] , if not the please use this.
    If does not work then as well , then see to use EXPORT TO datbase as follows
    EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
    Refer this link
    http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm
    b> after executing your program (first get the job name in debugging mode) , go to sp01 ,  check tyhe checkbox against your job name ,  just write JDBG (transaction code area) and press enter , it will take you in debudding your job. First it will execute some sap standard program , just get it done and then it will jump top your code.
    Hope it is helpful.
    Regards,
    Uma

  • ABAP for Super Dumps: Import- & Export-Parameter for a Table in a FM

    Hello ABAP Profs,
    sorry I am BW.
    <b>Import- & Export-Parameter for a Table in and out of an Function Modul.</b>
    I want to import a table into a Function Module, change it and export it again.
    How do I have to define the Import- and Export- Parameters in the FM ?
    The table looks looks this:
    DATA: zvpshub_tab TYPE SORTED TABLE OF /bic/pzvpshub WITH UNIQUE KEY
    /bic/zvpshub objvers /bic/zvpsoursy INITIAL SIZE 0.
    Thanks a lot
    Martin Sautter

    Hi Clemens,
    <u>in SE11</u> I defined a datatype of Type Structure: ZVPSHUB_ROW.
    <u>in SE11</u> I defiend a datatype of Type Tabletype: ZVPSHUB_TAB,
    bases on Rowtype ZVPSHUB_ROW.
    <u>in SE 80</u> I creates an FM with a CHANGEING Parameter referencing ZVPSHUB_TAB:
    FUNCTION ZVP_SHUB_TAB_LOAD.
    ""Lokale Schnittstelle:
    *"  CHANGING
    *"     VALUE(SHUB_TAB) TYPE  ZVPSHUB_TAB
    <u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
    DATA:shub_tab          TYPE zvpshub_tab.
    <u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
    DATA:shub_tab          TYPE zvpshub_tab.
    <u>in RSA1</u> in BW in the Startroutine i called the FM
    CALL FUNCTION 'ZVP_SHUB_TAB_LOAD'
        CHANGING
          shub_tab = shub_tab.
    and it works ..
    Thank You
    Martin Sautter

  • Java exception: Planning Data Form Import/Export Utility: FormDefUtil.sh

    Hi,
    We have the following in our environment
    Oracle 10gAS (10.1.3.1.0)
    Shared Services (9.3.1.0.11)
    Essbase Server (9.3.1.3.01)
    Essbase Admin Services (9.3.1.0.11)
    Provider Services (9.3.1.3.00)
    Planning (9.3.1.1.10)
    Financial Reporting + Analysis UI Services (9.3.1.2)
    I got the following error while using the Planning Data Form Import/Export Utility. Does anyone have any idea?
    hypuser@server01>$PLANNING_HOME/bin/FormDefUtil.sh import TEST.xml localhost admin password SamApp
    [May 6, 2009 6:25:11 PM]: Intializing System Caches...
    [May 6, 2009 6:25:11 PM]: Loading Application Properties...
    [May 6, 2009 6:25:11 PM]: Looking for applications for INSTANCE: []
    [May 6, 2009 6:25:13 PM]: The polling interval is set =10000
    Arbor path retrieved: /home/hypuser/Hyperion/common/EssbaseRTC/9.3.1
    [May 6, 2009 6:25:14 PM]: Setting ARBORPATH=/home/hypuser/Hyperion/common/EssbaseRTC/9.3.1
    Old PATH: /home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/AnalyticServices/bin:/home/hypuser/Hyperion/common/JRE-64/IBM/1.5.0/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/hypuser/bin:/usr/bin/X11:/sbin:.
    [May 6, 2009 6:25:14 PM]: Old PATH: /home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/AnalyticServices/bin:/home/hypuser/Hyperion/common/JRE-64/IBM/1.5.0/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/hypuser/bin:/usr/bin/X11:/sbin:.
    java.lang.UnsupportedOperationException
    at com.hyperion.planning.olap.HspEssbaseEnv.addEssRTCtoPath(Native Method)
    at com.hyperion.planning.olap.HspEssbaseEnv.init(Unknown Source)
    at com.hyperion.planning.olap.HspEssbaseJniOlap.<clinit>(Unknown Source)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)
    at com.hyperion.planning.HspJSImpl.createOLAP(Unknown Source)
    at com.hyperion.planning.HspJSImpl.<init>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.createHspJS(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.getHspJSByApp(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.utils.HspFormDefUtil.main(Unknown Source)
    Setting Arbor path to: /home/hypuser/Hyperion/common/EssbaseRTC/9.3.1
    [May 6, 2009 6:25:15 PM]: MAX_DETAIL_CACHE_SIZE = 20 MB.
    [May 6, 2009 6:25:15 PM]: bytesPerSubCache = 5654 bytes
    [May 6, 2009 6:25:15 PM]: MAX_NUM_DETAIL_CACHES = 3537
    Setting HBR Mode to: 2
    Unable to find 'HBRServer.properties' in the classpath
    HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    java.lang.Exception: HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    HBRServer.properties:HBR.embedded_timeout=10
    HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:205)
    at com.hyperion.hbr.api.thin.HBR.<init>(Unknown Source)
    at com.hyperion.hbr.api.thin.HBR.<init>(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.initHBR(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.initializeDB(Unknown Source)
    at com.hyperion.planning.HspJSImpl.createDBs(Unknown Source)
    at com.hyperion.planning.HspJSImpl.<init>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.createHspJS(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.getHspJSByApp(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.utils.HspFormDefUtil.main(Unknown Source)
    Caused by: Exception HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    ClassName: java.lang.Exception
    at com.hyperion.hbr.common.ConfigurationManager.getServerConfigProps(Unknown Source)
    at com.hyperion.hbr.cache.CacheManager.<clinit>(Unknown Source)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)
    ... 11 more
    [May 6, 2009 6:25:15 PM]: Regeneration of Member Fields Complete
    [May 6, 2009 6:25:16 PM]: Thread main acquired connection com.hyperion.planning.olap.HspEssConnection@5f0e5f0e
    [May 6, 2009 6:25:16 PM]: Thread main releasing connection com.hyperion.planning.olap.HspEssConnection@5f0e5f0e
    [May 6, 2009 6:25:16 PM]: Thread main released connection com.hyperion.planning.olap.HspEssConnection@5f0e5f0e
    [May 6, 2009 6:25:16 PM]: Need to create an Object. pool size = 0 creatredObjs = 1
    java.lang.RuntimeException: Unable to aquire activity lease on activity 1 as the activity is currently leased by another server.
    at com.hyperion.planning.sql.actions.HspAquireActivityLeaseCustomAction.custom(Unknown Source)
    at com.hyperion.planning.sql.actions.HspAction.custom(Unknown Source)
    at com.hyperion.planning.sql.actions.HspActionSet.doActions(Unknown Source)
    at com.hyperion.planning.sql.actions.HspActionSet.doActions(Unknown Source)
    at com.hyperion.planning.HspJSImpl.aquireActivityLease(Unknown Source)
    at com.hyperion.planning.HspJSImpl.reaquireActivityLease(Unknown Source)
    at com.hyperion.planning.utils.HspTaskListAlertNotifier.reaquireTaskListActivityLease(Unknown Source)
    at com.hyperion.planning.utils.HspTaskListAlertNotifier.processTaskListAlerts(Unknown Source)
    at com.hyperion.planning.utils.HspTaskListAlertNotifier.run(Unknown Source)
    [May 6, 2009 6:25:16 PM]: Fetching roles list for user took time: Total: 42
    [May 6, 2009 6:25:16 PM]: Entering method saveUserIntoPlanning
    [May 6, 2009 6:25:16 PM]: User role is:0
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HP:0005,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:1,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:9,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:3,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:7,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:14,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:15,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:10,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:12,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:13,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:1,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:9,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:3,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:7,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:14,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:15,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:10,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:12,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:13,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Hub Roles for user is:991
    [May 6, 2009 6:25:16 PM]: Exiting method saveUserIntoPlanning
    [May 6, 2009 6:25:16 PM]: Saved the user admin to Planning
    [May 6, 2009 6:25:16 PM]: Entering method persistUserChanges()
    [May 6, 2009 6:25:16 PM]: Exiting method persistUserChanges()
    [May 6, 2009 6:25:16 PM]: Before calling getGroupsList for user from CSS
    [May 6, 2009 6:25:16 PM]: After getGroupsList call returned from CAS with groupsList [Ljava.lang.String;@705c705c
    [May 6, 2009 6:25:16 PM]: Fetching groups list for user took time: Total: 4
    [May 6, 2009 6:25:16 PM]: Entering method persistGroupChanges()
    [May 6, 2009 6:25:16 PM]: Exiting method persistGroupChanges()
    [May 6, 2009 6:25:16 PM]: User synchronization of 1 user elapsed time: 81, Users: 72, Groups: 9.
    [May 6, 2009 6:25:16 PM]: Didnt add child Forms, couldnt find parent 1
    Add/Update form under form folder - Corporate
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspObject Object Type: -1 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspPDFPrintOptions Object Type: -1 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspForm Object Type: 7 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspPDFPrintOptions Object Type: -1 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspAnnotation Object Type: 14 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspAccessControl Object Type: 15 Primary Key: 50001,1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspFormDef Object Type: -1 Primary Key: 1454699 ]
    Form imported complete.
    [May 6, 2009 6:25:21 PM]: Could not get HBR connection.

    Hi,
    When I run the Formdefutil command, forms were imported successfully. But I got the following message.
    Could not get HBR connection.
    What does it mean?
    Thanks & Regards,
    Sravan Kumar.

  • Import/export volume to different administrative server

    Hi everyone,
    i'm testing the OSB software for DR environments. Now i want to export volume since main administrative server and import volume to different admin server. When I run export command, it shows me "Error: can't execute command - ran out of import/export elements"
    ob> lsvol -L pLib1 --long
    Inventory of library pLib1:
    in 1: volume MONTH_ORAFS-000001, barcode 000011L4, oid 102, 706599936 kb remaining, expires 2011/03/18.10:19, mediainfo hw encryptable
    in 2: vacant
    in 3: volume DAY_FS-000001, barcode 000013L4, oid 111, 774944768 kb remaining, expires 2012/03/09.13:28, mediainfo hw encryptable
    in 4: vacant
    in 5: vacant
    in 6: vacant
    in 7: vacant
    in 8: vacant
    in dte: vacant
    ob> exportvol -L pLib1 -v DAY_FS-000001
    Error: can't execute command - ran out of import/export elements
    can you help me, please?
    Thanks!!

    Rich,
    the import tape catalog with the identifyvol --import command was fine. Now, when i run a restore oracle database_test with the imported catalog show error media manager.
    ob> lssection -v WEEK_ORA-000001
    322 WEEK_ORA-000001 196 1 0 database_test.bos.local 02/28.17:02
    323 WEEK_ORA-000001 197 1 0 database_test.bos.local 02/28.17:09
    324 WEEK_ORA-000001 198 1 0 database_test.bos.local 02/28.17:16
    325 WEEK_ORA-000001 199 1 0 database_test.bos.local 02/28.17:17
    326 WEEK_ORA-000001 200 1 0 database_test.bos.local 02/28.17:18
    my RMAN catalog show the backup
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    9898 Incr 0 128.00K SBT_TAPE 00:06:43 2011-02-28 17:17:11
    BP Key: 9907 Status: AVAILABLE Compressed: YES Tag: TAG20110228T170322
    Handle: *0am5qik4_1_1* Media: WEEK_ORA-000001
    SPFILE Included: Modification time: 2011-02-23 13:24:54
    SPFILE db_unique_name: database_test
    Control File Included: Ckp SCN: 989240 Ckp time: 2011-02-28 17:10:28
    RMAN> restore spfile to '/home/oracle/';
    Starting restore at 2011-03-01 18:21:01
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=96 device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: Oracle Secure Backup
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=127 device type=DISK
    channel ORA_SBT_TAPE_1: starting datafile backup set restore
    channel ORA_SBT_TAPE_1: restoring SPFILE
    output file name=/home/oracle/
    channel ORA_SBT_TAPE_1: reading from backup piece 0am5qik4_1_1
    channel ORA_SBT_TAPE_1: ORA-19870: error while restoring backup piece 0am5qik4_1_1
    ORA-19507: failed to retrieve sequential file, handle="*0am5qik4_1_1*", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    sbtrestore: piece '0am5qik4_1_1' does not exist in the backup catalog.
    thanks so much!

  • HR ABAP : Need more information for Import/Export files in HR

    Hi Everybody,
    I have been in ABAP programming for pretty long but very new to ABAP HR.I am making a Self-Learning attempt in ABAP HR where I have been able to acheive a fair understanding of Infotype,LDB,Screen Modifications,RMAC macros... But presently I cannot very clearly understand the accessing of PCLn files specially PCL2 (payroll derivations).I am using SAP Help for it. I would highly appreciate if anybody could provide me with some documents to understand Import/Export files in HR.
    Any kind of personal tricks or tips to understand the same would also be very helpful.
    Best Regards,
    Sangeeta.

    Hi Suresh,
    Your reply was very comforting... I have been literally struggling to understand the includes for data definitions and Key.It would be great if you could just provide me a sample program with the Read Payroll and Write Payroll in case you have any.
    Other than that as per your suggestions I would then just concentrate on the modules..
    Once again I would like to thank you for your reply.
    Best Regards,
    Sangeeta

  • Import, Export and Preset settings from TimeMachine

    I'd like to recover only my Import, Export and Preset settings of Aperture 3.0 from my backup disk using TimeMachine. Can someone pls guide me on what files to look for and where to find them? (I just reformatted my MBP and hence this query).
    Thanks in advance.

    You will find the setting in your User Library in the folder
         Your Home Directory > Library > Application Support > Aperture
    Everything with "preset" in its name might be interesting to you.
    Reveal the User Library by going to the Finder main menu bar, select "Go" and hold down the "option" key, until you see the Library in the drop down menu. Select it.
    In the Library Finder window navigate to the "Application Support" folder, then "Aperture".
    Drag the Aperture folder to the Finder Sidebar for easy access, then open Time Machine.
    Go back in Time to the time you want to restore from, then restore the "Aperture Folder"  to your Desktop and copy the files you need to your Library.
    Regards
    Léonie

  • Import/Export Job in management portal.

    I am trying to create an Import/Export job in portal, I read this document:
    http://azure.microsoft.com/en-us/documentation/articles/storage-import-export-service/
    and I am unable to do this, document says download import/export tool, but I am unable to do that any help will be greatly appreciated.

    Hi,
    I would request you to check if you meet all these prerequisites:
    • You must have an active Azure subscription.
    • Your subscription must include a storage account with enough available space to store the files you are going to import.
    • You need at least one of the account keys for the storage account.
    • You need a computer (the "copy machine") with Windows 7, Windows Server 2008 R2, or a newer Windows operating system installed.
    • The .NET Framework 4 must be installed on the copy machine.
    • BitLocker must be enabled on the copy machine.
    • You will need one or more empty 3.5-inch SATA hard drives connected to the copy machine.
    • The files you plan to import must be accessible from the copy machine, whether they are on a network share or a local hard drive.
    Regards,
    Azam Khan

  • How to create Secret Key.

    Hi,
    Can any one point me, where I can find to create a Secret Key and store it inside the KeyStore ?
    I am trying to use the w3'c encryption / decryption and I want to create a key which can be compatible to TripleDESCBC or rsa-1_5.
    Since I am new to all these, any pointer will be helpful.
    Thanks in advance,
    -Kalpesh.

    Asuming you have a JCE Provider installed that support 3DES, try this:
    import javax.crypto.*;
    SecretKey generateSecretKey ( String alg ) {
      SecretKey sk = null;          
      try {
        KeyGenerator keyGen = KeyGenerator.getInstance(alg);
        keyGen.init(new SecureRandom());
        sk = (SecretKey)keyGen.generateKey();
        return(sk);
      } catch (Exception e) {
        e.printStackTrace();
        return null;
    }Pass in "DESede/CBC" or "3DES/CBC" for 'alg'. You might also want to specify the pading, depending on the Provider you're using. BouncyCastle is a good open-source JCE provider that supports 3DES.
    Note that RSA is a MUCH different beast - you want a key-PAIR- there, neither half of which is a SecretKey.
    Good luck,
    Grant

  • Import Export Functionality on OIA

    I have created some SOD rules and Policies on the OIA via Identity Audit >> Rules and Identity Audit >> Policies. I couldnt find much about the Import/Export functionality on the same. Was going through the scheduling-context.xml and came across :
    *<ref bean="rmeRuleMigrationJobTrigger"/>*
    *<ref bean="identityAuditDataMigrationTrigger"/>*
    Not much has been said about it in the document or discussed in the forum. If someone has some knowledge on it, could you please share ?
    Regards,

    --In Scheduling-context.xml, alter the following line
    Mulitple jobs can be added,
    1. Define a job in jobs.xml
    2. Add a reference to job below -->
    <!--ref bean="usersImportJob"/-->
    <!--ref bean="accountsImportJob"/-->
    <!--ref bean="rolesImportJob"/-->
    <!--ref bean="glossaryImportJob"/-->
    <!--ref bean="policiesImportJob"/-->
    <!--ref bean="businessStructureImportJob"/-->
    <!--ref bean="identityAuditContinuousViolationScanJob"/-->
    <ref bean="identityAuditViolationReminderJob"/>
    <ref bean="certificationReminderJob"/>
    <!--ref bean="reportReminderJob"/-->
    <!--ref bean="stableFolderCleanUpJob"/-->
    <!--ref bean="accountsMaintenanceJob"/-->
    <!--ref bean="roleMembershipRuleJob"/-->
    <ref bean="fullTextIndexMaintenancedJob"/>
    <ref bean="workflowStepSLAJob"/>
    <ref bean="roleStatusAndMembershipMaintenanceJob"/>
    <ref bean="rmPreviewCleanUpJob"/>
    <ref bean="userApplicationMaintenanceJob"/>
    <ref bean="postImportJobsLauncherJob"/>
    <ref bean="certificationRemediationJob"/>
    <ref bean="rmScanArchivalJob"/>
    <ref bean="eventPublishingJob"/>
    *<ref bean="rmeRuleMigrationJob"/>*
    *<ref bean="identityAuditDataMigrationJob">*
    </list>
    </property>
    In the jobs.xml
    the bean, by default, is already altered so you won't need to change anything there
    <bean id="rmeRuleMigrationJobTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    <property name="jobDetail" ref="rmeRuleMigrationJob"/>
    <property name="cronExpression" value="0 0/5 * * * ?"/>
    </bean>
    <bean id="rmeRuleMigrationJob" class="org.springframework.scheduling.quartz.JobDetailBean">
    <property name="name" value="rme rule migration job"/>
    <property name="description" value="old rme rule migration job"/>
    <property name="jobClass" value="com.vaau.rbacx.scheduling.manager.providers.quartz.jobs.RMERuleMigrationJob"/>
    <property name="group" value="SYSTEM"/>
    <property name="durability" value="true"/>
    <property name="jobDataAsMap">
    <map>
    <entry key="jobOwnerName" value="REPLACE_ME"/>
    </map>
    </property>
    </bean>
    If you see the cron expression in the jobs.xml, an expression to create a trigger that simply fires every 5 minutes ("0 0/5 * * * ?") leave it at it is. Expression examples are at the bottom of the jobs.xml if you want more expressions. When you do the changes to the scheduling-context.xml, make sure you bounce the web server.
    Regards,
    Daniel

  • Iphoto 9.4.2 crashes- import, export, editing, lost photos-Is there a fix?

    I have had multiple crashes with iphoto 9.4.2 on my Mac OSX- 10.7.5 while importing, exporting and --most infurating of all-- while editing. Upon restart all photos were lost - that is there is record of the event but no photos show up in that space. I have had reimport them multiple times. But upon reimporting, iphoto seems to think they are still there and asks me if I want duplicates made.
    Below is a recent report-
    Process:         iPhoto [8427]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         9.4.2 (9.4.2)
    Build Info:      iPhotoProject-710042000000000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [123]
    Date/Time:       2013-01-05 13:49:59.395 -0300
    OS Version:      Mac OS X 10.7.5 (11G63)
    Report Version:  9
    Interval Since Last Report:          309575 sec
    Crashes Since Last Report:           14
    Per-App Interval Since Last Report:  102747 sec
    Per-App Crashes Since Last Report:   3
    Anonymous UUID:                      77D10CD1-8F72-42A3-B8EB-9A2E356B9DB5
    Crashed Thread:  34
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000010
    VM Regions Near 0x10:
    --> __PAGEZERO             0000000000000000-0000000000001000 [    4K] ---/--- SM=NUL  /Applications/iPhoto.app/Contents/MacOS/iPhoto
        VM_ALLOCATE            0000000000001000-00000000000d0000 [  828K] ---/--- SM=NUL
    Application Specific Information:
    objc[8427]: garbage collection is OFF
    Thread 0:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib                  0x9b40fc22 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x9b40f1f6 mach_msg + 70
    2   com.apple.CoreFoundation                0x9011a9da __CFRunLoopServiceMachPort + 170
    3   com.apple.CoreFoundation                0x90123b04 __CFRunLoopRun + 1428
    4   com.apple.CoreFoundation                0x901231dc CFRunLoopRunSpecific + 332
    5   com.apple.CoreFoundation                0x90123088 CFRunLoopRunInMode + 120
    6   com.apple.HIToolbox                     0x9bd90543 RunCurrentEventLoopInMode + 318
    7   com.apple.HIToolbox                     0x9bd978ab ReceiveNextEventCommon + 381
    8   com.apple.HIToolbox                     0x9bd9771a BlockUntilNextEventMatchingListInMode + 88
    9   com.apple.AppKit                        0x93adeee8 _DPSNextEvent + 678
    10  com.apple.AppKit                        0x93ade752 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
    11  com.apple.AppKit                        0x93adaac1 -[NSApplication run] + 911
    12  com.apple.AppKit                        0x93d6bac5 NSApplicationMain + 1054
    13  com.apple.iPhoto                        0x000dfc99 0xd0000 + 64665
    14  com.apple.iPhoto                        0x000df2e5 0xd0000 + 62181
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib                  0x9b411b5e __select_nocancel + 10
    1   libdispatch.dylib                       0x9b502cbd _dispatch_mgr_invoke + 642
    2   libdispatch.dylib                       0x9b501853 _dispatch_mgr_thread + 53
    Thread 2:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 3:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 4:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 5:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 6:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 7:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 8:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 9:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.RedRock                       0x023fe48f -[RKAsyncImageRenderer _backgroundRenderThread:] + 173
    7   com.apple.CoreFoundation                0x9018b1aa -[NSObject performSelector:] + 58
    8   com.apple.proxtcore                     0x01dcfdf9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    9   com.apple.CoreFoundation                0x90182d11 -[NSObject performSelector:withObject:] + 65
    10  com.apple.proxtcore                     0x01dc822c -[XTSubscription postMessage:] + 191
    11  com.apple.proxtcore                     0x01dc7aef -[XTDistributor distributeMessage:] + 681
    12  com.apple.proxtcore                     0x01dc7313 -[XTThread handleMessage:] + 515
    13  com.apple.proxtcore                     0x01dc5f10 -[XTThread run:] + 434
    14  com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    15  com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    16  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    17  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 10:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib                  0x9b40fc22 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x9b40f1f6 mach_msg + 70
    2   com.apple.CoreFoundation                0x9011a9da __CFRunLoopServiceMachPort + 170
    3   com.apple.CoreFoundation                0x90123b04 __CFRunLoopRun + 1428
    4   com.apple.CoreFoundation                0x901231dc CFRunLoopRunSpecific + 332
    5   com.apple.CoreFoundation                0x90123088 CFRunLoopRunInMode + 120
    6   com.apple.Foundation                    0x9cb770c4 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 378
    7   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    8   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    9   libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    10  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 11:: com.apple.CFSocket.private
    0   libsystem_kernel.dylib                  0x9b411b42 __select + 10
    1   com.apple.CoreFoundation                0x90171e15 __CFSocketManager + 1557
    2   libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    3   libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 12:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib                       0x9a83a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.Foundation                    0x9cb6cbe8 -[NSCondition wait] + 304
    4   com.apple.iPhoto                        0x00121a64 0xd0000 + 334436
    5   com.apple.iPhoto                        0x00121672 0xd0000 + 333426
    6   com.apple.CoreFoundation                0x90185a9d __invoking___ + 29
    7   com.apple.CoreFoundation                0x901859d9 -[NSInvocation invoke] + 137
    8   com.apple.RedRock                       0x0241a85b -[RKInvoker _invokeTarget:] + 33
    9   com.apple.RedRock                       0x0242b5f4 -[RKInvoker _invokeTargetWithPool:] + 68
    10  com.apple.CoreFoundation                0x90182d11 -[NSObject performSelector:withObject:] + 65
    11  com.apple.proxtcore                     0x01dcfdf9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    12  com.apple.CoreFoundation                0x90182d11 -[NSObject performSelector:withObject:] + 65
    13  com.apple.proxtcore                     0x01dc822c -[XTSubscription postMessage:] + 191
    14  com.apple.proxtcore                     0x01dc7aef -[XTDistributor distributeMessage:] + 681
    15  com.apple.proxtcore                     0x01dc7313 -[XTThread handleMessage:] + 515
    16  com.apple.proxtcore                     0x01dc5f10 -[XTThread run:] + 434
    17  com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    18  com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    19  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    20  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 13:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.CoreServices.CarbonCore          0x98cb23a7 TSWaitOnConditionTimedRelative + 178
    4   com.apple.CoreServices.CarbonCore          0x98cb211d TSWaitOnSemaphoreCommon + 490
    5   com.apple.CoreServices.CarbonCore          0x98cb1f2e TSWaitOnSemaphoreRelative + 24
    6   com.apple.QuickTimeComponents.component          0x9969c16a 0x990af000 + 6213994
    7   libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    8   libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 14:: jpegdecompress_MPLoop
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a83182a pthread_cond_wait + 48
    3   com.apple.QuickTimeComponents.component          0x997be467 0x990af000 + 7402599
    4   libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    5   libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 15:: jpegdecompress_MPLoop
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a83182a pthread_cond_wait + 48
    3   com.apple.QuickTimeComponents.component          0x997be467 0x990af000 + 7402599
    4   libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    5   libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 16:: jpegdecompress_MPLoop
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a83182a pthread_cond_wait + 48
    3   com.apple.QuickTimeComponents.component          0x997be467 0x990af000 + 7402599
    4   libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    5   libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 17:
    0   libsystem_kernel.dylib                  0x9b41183e __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x9a889e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib                       0x9a889f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x9cb9d3c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation                    0x9cb637d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation                    0x9cb636a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x01dc6e12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x01dc5efa -[XTThread run:] + 412
    8   com.apple.Foundation                    0x9cb6ae25 -[NSThread main] + 45
    9   com.apple.Foundation                    0x9cb6add5 __NSThread__main__ + 1582
    10  libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    11  libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 18:
    0   libsystem_kernel.dylib                  0x9b410e12 __accept + 10
    1   com.apple.iPhoto                        0x004c824d 0xd0000 + 4162125
    2   com.apple.iPhoto                        0x00512651 0xd0000 + 4466257
    3   com.apple.iPhoto                        0x005125be 0xd0000 + 4466110
    4   libsystem_c.dylib                       0x9a885ed9 _pthread_start + 335
    5   libsystem_c.dylib                       0x9a8896de thread_start + 34
    Thread 19:
    0   libsystem_kernel.dylib                  0x9b40fc22 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x9b40f1f6 mach_msg + 70
    2   com.apple.CoreFoundation                0x9011a9da __CFRunLoopServiceMachPort + 170
    3   com.apple.CoreFoundation                0x90123b04 __CFRunLoopRun + 1428
    4   com.apple.CoreFoundation                0x901231dc CFRunLoopRunSpecific + 332
    5   com.apple.CoreFoundation                0x90123088 CFRunLoopRunInMode + 120
    6   com.apple.CFNetwork                     0x913f9299 CFURLConnectionSendSynchronousRequest + 455
    7   com.apple.Foundation                    0x9cc9796a +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 146
    8   com.apple.iPhoto.FacebookPublisher          0x141ee3ea 0x141d8000 + 91114
    9   com.apple.iPhoto.FacebookPublisher          0x141dfd09 0x141d8000 + 32009
    10  com.apple.iPhoto.FacebookPublisher          0x141e73a0 0x141d8000 + 62368
    11  com.apple.iPhoto                        0x007c0b77 0xd0000 + 7277431
    12  com.apple.CoreFoundation                0x90182d11 -[NSObject performSelector:withObject:] + 65
    13  com.apple.proxtcore                     0x01dc822c -[XTSubscription postMessage:] + 191
    14  com.apple.proxtcore                     0x01dc7aef -[XTDistributor distributeMessage:] + 681
    15  com.apple.proxtcore                     0x01dc7313 -[XTThread handleMessage:] + 515
    16  com.apple.proxtcore                     0x01dcbade -[XTPortMsgQueue handleMachMessage:] + 188
    17  com.apple.Foundation                    0x9cb2b8bf __NSFireMachPort + 412
    18  com.apple.CoreFoundation                0x900ead0a __CFMachPortPerform + 346
    19  com.apple.CoreFoundation                0x900eab91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 49
    20  com.apple.CoreFoundation                0x900ea7bb __CFRunLoopDoSource1 + 155
    21  com.apple.CoreFoundation                0x90123e01 __CFRunLoopRun + 2193
    22  com.apple.CoreFoundation                0x901231dc CFRunLoopRunSpecific + 332
    23  com.apple.CoreFoundation                0x90123088 CFRunLoopRunInMode + 120
    24  com.apple.Foundation                    0x9cb174af -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 273

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Acessing BSEG by import/export method

    hi !
    anyone please gexpalin me or give me links to how to access the BSEG TABLE  by IMPORT EXPORT OR macros method! o
    reward points will be given to best answer

    IMPORT - Get data
    Variants
    1. IMPORT f itab FROM MEMORY.
    2. IMPORT f itab FROM DATABASE dbtab(ar) ID key.
    3. IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key.
    4. IMPORT f itab FROM DATASET dsn(ar) ID key.
    Variant 1
    IMPORT f itab FROM MEMORY.
    Additions
    1. ... TO g (for each field f to be imported)
    2. ... ID key
    Effect
    Imports data objects (fields or tables) from the ABAP/4 memory (see EXPORT ). Reads in all data without an ID that was exported to memory with "EXPORT ... TO MEMORY." . In contrast to the variant IMPORT FROM DATABASE , it does not check that the structure matches in EXPORT and IMPORT .
    The return code value is set as follows:
    SY-SUBRC = 0 The data objects were successfully imported.
    SY_SUBRC = 4 The data objects could not be imported, probably
    because the ABAP/4 memory was empty.
    The contents of all objects remain unchanged.
    Addition 1
    ... TO g (for each field f to be imported)
    Effect
    Takes the field contents stored under f from the global ABAP/4 memory and places them in the field g .
    Addition 2
    ... ID key
    Effect
    Imports only data stored in ABAP/4 memory under the ID key .
    The return code value is set as follows:
    SY-SUBRC = 0 The data objects were successfully imported.
    SY_SUBRC = 4 The data objects could not be imported, probably
    because an incorrect ID was used.
    The contents of all objects remain unchanged.
    Variant 2
    IMPORT f itab FROM DATABASE dbtab(ar) ID key.
    Additions
    1. ... TO g (for each field f to be imported)
    2. ... MAJOR-ID maid (instead of ID key )
    3. ... MINOR-ID miid (together with MAJOR-ID maid )
    4. ... CLIENT h (after dbtab(ar) )
    5. ... USING form
    Effect
    Imports data objects (fields, field strings or internal tables) with the ID key from the area ar of the database dbtab (see also EXPORT )
    The return code value is set as follows:
    SY-SUBRC = 0 The data objects were successfully imported.
    SY_SUBRC = 4 The data objects could not be imported, probably
    because an incorrect ID was used.
    The contents of all objects remain unchanged.
    Example
    Import two fields and an internal table:
    TABLES INDX.
    DATA: INDXKEY LIKE INDX-SRTFD,
          F1(4), F2 TYPE P,
          BEGIN OF TAB3 OCCURS 10,
            CONT(4),
          END OF TAB3.
    INDXKEY = 'INDXKEY'.
    IMPORT F1 F2 TAB3 FROM DATABASE INDX(ST) ID INDXKEY.
    Notes
    The structure of fields, field strings and internal tables to be imported must match the structure of the objects exported to the dataset. In addition, the objects must be imported under the same name used to export them. If this is not the case, either a runtime error occurs or no import takes place.
    Exception: You can lengthen or shorten the last field if it is of type CHAR , or add/omit CHAR fields at the end of the structure.
    Addition 1
    ... TO g (for each field f to be imported)
    Effect
    Takes the field contents stored under the name f from the database and places them in g .
    Addition 2
    ... MAJOR-ID maid (instead of ID key )
    Addition 3
    ... MINOR-ID miid (together with MAJOR-ID maid )
    Effect
    Searches for a record with an ID that matches maid in the first part (length of maid ) and - if MINOR-ID miid is also specified - is greater than or equal to miid in the second part.
    Addition 4
    ... CLIENT h (after dbtab(ar) )
    Effect
    Takes the data from the client h (only with client-specific import/export databases).
    Example
    TABLES INDX.
    DATA F1.
    IMPORT F1 FROM DATABASE INDX(AR) CLIENT '002' ID 'TEST'.
    Addition 5
    ... USING form
    Effect
    Does not read the data from the database. Instead, calls the FORM routine form for each record read from the database without this addition. This routine can take the data key of the data to be retrieved from the database table work area and write the retrieved data to this work area schreiben; it therefore has no parameters.
    Note
    Runtime errors
    Depending on the operands or the datsets to be imported, various runtime errors may occur.
    Variant 3
    IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key.
    Additions
    1. ... CLIENT h (after dbtab(ar) )
    Effect
    Imports an object directory stored under the specified ID with EXPORT into the table itab .
    The return code value is set as follows:
    SY-SUBRC = 0 The directory was successfully imported.
    SY_SUBRC = 4 The directory could not be imported, probably because an incorrect ID was used.
    The internal table itab must have the same structure as the Dictionary structure CDIR (INCLUDE STRUCTURE ).
    Addition 1
    ... CLIENT h (after dbtab(ar) )
    Effect
    Takes data from the client h (only with client-specific import/export databases).
    Example
    Directory of a cluster consisting of two fields and an internal table:
    TABLES INDX.
    DATA: INDXKEY LIKE INDX-SRTFD,
          F1(4), F2 TYPE P,
          BEGIN OF TAB3 OCCURS 10,
            CONT(4),
          END OF TAB3,
          BEGIN OF DIRTAB OCCURS 10.
            INCLUDE STRUCTURE CDIR.
    DATA  END OF DIRTAB.
    INDXKEY = 'INDXKEY'.
    EXPORT F1 F2 TAB3 TO
           DATABASE INDX(ST) ID INDXKEY.    " TAB3 has 17 entries
    IMPORT DIRECTORY INTO DIRTAB FROM DATABASE INDX(ST) ID INDXKEY.
    Then, the table DIRTAB contains the following:
    NAME OTYPE FTYPE TFILL FLENG
    F1 F C 0 4
    F2 F P 0 8
    TAB3 T C 17 4
    The meaning of the individual fields is as follows:
    NAME : Name of stored object OTYPE : Object type ( F : Field, R : Field string / Dictionary structure, T : Internal table) FTYPE : Field type ( C : Character, P : Packed, ...)
    Field strings and internal tables have the type C. TFILL : Number of internal table lines filled FLENG : Length of field in bytes
    With internal tables: Length of header line.
    Variant 4
    IMPORT f itab ... FROM DATASET dsn(ar) ID key.
    Note
    This variant is not to be used at present.
    Regards,
    Jagadish

  • Secret key getting corrupted

    Hi All,
    Can anyone please help me in finding the possibilities of a secret key getting corrupted??
    Encryption Algorithm used :- Blowfish
    Instance of SecretKeyFactory :- PBEWithMD5AndDES
    Also, are there any chances wherein, the secret key generated varies ( probably in length ); even though same data is used for key construction??
    Thanks in advance!!!!

    Hi Sabre,
    Below is the CryptoWrapper class:
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    * A class to simplify doing encryption & decryption.
    * <P>
    * Note that it acts immediately; you <B>CANNOT</B> use this as a stream cipher wrapper.
    public class CryptoWrapper{
        private static KeyGenerator keygen;
        private static Cipher cipher;
        private String transform;
         * Creates a crypto wrapper with sensible defaults; does <B>NOT</B> add a provider.
         * Default transformation is "Blowfish".
         * @return a wrapper for the required cipher.
        public CryptoWrapper() throws NoSuchAlgorithmException, NoSuchPaddingException{
            this("Blowfish", null);
         * Creates a crypto wrapper with sensible defaults; does <B>NOT</B> add a provider.
         * @param transformation the name of the transformation (e.g. <I>"Blowfish"</I>).
         * @return a wrapper for the required cipher.
        public CryptoWrapper(String transformation) throws NoSuchAlgorithmException,
                                                           NoSuchPaddingException{
            this(transformation, null);
         * Creates a CryptoWrapper with the given transformation name and crypto provider.
         * @param transformation the name of the transformation (e.g. <I>"Blowfish"</I>).
         * @param provider a crypto provider (e.g. <I>com.sun.crypto.provider.SunJCE</I>).  If null, no provider added.
         * @return a wrapper for the required cipher.
        public CryptoWrapper(String transformation, Provider provider) throws NoSuchAlgorithmException,
                                                                              NoSuchPaddingException{
            if (null != provider){
                Security.addProvider(provider);
            // can't happen until after the provider's loaded
            this.cipher = Cipher.getInstance(transformation);
            this.transform = transformation;
            if (null == this.keygen){
                this.keygen = KeyGenerator.getInstance(transformation);
         * Example to encrypt and decrypt a string.
         * <P>
         * Usage: <B>java CryptoWrapper <text to be encrypted></B>
        public static void main(String[] args){
            try{
                CryptoWrapper bw = new CryptoWrapper("Blowfish",
                                                     new com.sun.crypto.provider.SunJCE());
                SecretKey key = CryptoWrapper.generateSecretKey(128);
                String plaintext = "";
                String ciphertext;
                String outputtext;
                byte[] plaintext_bytes;
                byte[] ciphertext_bytes;
                byte[] outputtext_bytes;
                for (int i = 0; i < args.length; i++){
                    plaintext = plaintext + " " + args;
    plaintext_bytes = plaintext.getBytes();
    ciphertext_bytes = bw.encrypt(plaintext_bytes, key);
    ciphertext = new String(ciphertext_bytes);
    outputtext_bytes = bw.decrypt(ciphertext_bytes, key);
    outputtext = new String(outputtext_bytes);
    catch (BadPaddingException bp){
    catch (IllegalBlockSizeException ibs){
    catch (InvalidKeyException ie){
    catch (NoSuchAlgorithmException nsa){
    catch (NoSuchPaddingException nsp){
    * Creates a secret key of the given size.<BR>
    * Note: synchronized against the key generator object.
    * @param keysize The size (<B>in bits</B>) of the key.
    * @return The secret key.
    public static synchronized SecretKey generateSecretKey(int keysize)
    throws InvalidParameterException{
    keygen.init(keysize);
    return keygen.generateKey();
    * Decrypts the given byte array using the given cipher, with the given key.<BR>
    * Note: synchronized against the cipher object.
    * @param ciphertext An array of bytes to decode.
    * @param key A secret key for use in decryption.
    * @return The decrypted byte array.
    public byte[] decrypt(byte[] ciphertext, SecretKey key) throws BadPaddingException,
    IllegalBlockSizeException,
    InvalidKeyException,
    NoSuchAlgorithmException,
    NoSuchPaddingException{
    SecretKeySpec sks = new SecretKeySpec(key.getEncoded(),
    this.transform);
    synchronized (this.cipher){ // this resets the state of the cipher, so we must prevent concurrent access
    this.cipher.init(Cipher.DECRYPT_MODE, sks);
    return this.cipher.doFinal(ciphertext);
    * Encrypts the given byte array using the given cipher, with the given key.<BR>
    * Note: synchronized against the cipher object.
    * @param plaintext An array of bytes to encode.
    * @param key A secret key for use in encryption.
    * @return The encrypted byte array.
    public byte[] encrypt(byte[] plaintext, SecretKey key) throws NoSuchAlgorithmException,
    NoSuchPaddingException,
    BadPaddingException,
    InvalidKeyException,
    IllegalBlockSizeException{
    SecretKeySpec sks = new SecretKeySpec(key.getEncoded(),
    this.transform);
    synchronized (this.cipher){ // this resets the state of the cipher, so must prevent concurrent access
    this.cipher.init(Cipher.ENCRYPT_MODE, sks);
    return this.cipher.doFinal(plaintext);
    }Below is the hexStringToByteArrayConverter:public byte [] hexStringToByteArray(String hexStr) throws BadPasswordException{
         int length = hexStr.length();
         if(length%2!=0)
              throw new BadPasswordException("Bad hex string password!");
         int [] x = new int[length];
         int btLen = length/2;
         byte[] bt = new byte[btLen];
         for(int i=0;i<length;i++)
         x[i] = Character.getNumericValue(hexStr.charAt(i));
         if(i%2==1)
              int y = x[i-1]*16 + x[i];
              bt[(i-1)/2] = (byte)y;
         return bt;

Maybe you are looking for

  • Process chains in MS 7.0 version of BPC

    Hello Gurus, I am using Microsoft 7.0 version of BPC, but I dont see a way to call process chains. In NW version, I can just go to data manager and Add package - process chain would be one of the types under package type. But that is not the case wit

  • Thunderbolt port for ethernet adaptor and display

    Hi- As there is only one Thunderbolt port on a MacBook Air, how am I supposed to connect my gigabit adaptor AND a display at the same time? Thanks.

  • Hi ,related to CSV files out put.

    hi all,       I am taking out put in ALV and .CSV format (in unix path ) . And the ALV out put is fine. In one of the material description the text is like this : my name is  (Activ.Foil+S,sr) so for description in CSV it is taking like this : my nam

  • Archiving - Check CO documents

    Hello, does anybody know if there are some standard checks when you want to archive a CO document if the related FI document has already been archived or not ? If it is not foreseen in standard, is it logic to be allowed to archive a CO document if t

  • How to make my iPOD display thai fonts for thai songs?

    Hi, I'm Thai customer bought ipod nano from authorized dealer and I wonder why my iPOD cannot display thai fonts in music play list. How to solve this problem?