Import Export Imges in JAVA to binary code with firebirds

I'm having problems with a java netbeans. I want a start a disccus about how we can import and export images from and to, binary code. We can play with Blob variables, but i dont know how can we insert to a Firebird database and how we can read this image.
Any help or any comment is great.
Thank you!!

Hi,
I'm not sure how much help you'll find here as firebird is not an oracle product. You might find someone who can provide sample code for doing the above into oracle/mysql here. I would suggest asking in the database general forum though rather than this one - you should be able to get a moderator to move it if you can;t do it yourself.
Cheers,
Rich

Similar Messages

  • Using DB2's import/export utilities in Java program

    DB2 database has build in utility called export, throgh which we can export the output of a Query directly onto a Lotus 123 file. But I beleive that , to invoke such DB2 utilities throgh a Java Program, we need to have APIs.
    My question is ,are such APIs available ?
    If so, what are the APIs necessary for calling this EXPORT and IMPORT utilities of DB2 ?

    Well, If you have to use Runtime.exec() and provide these as command lines, then the best option is to write a shell script( my Java application is on AIX platform) and then call the shell script through exec().
    But Shell scripts don't run well with Runtime.exec() right ?
    B'Cause, I tried it but the application did'nt throw up any exception. No message was flashed either. The process was just hanging.....so do you know a better method to actually run a shell script through a Java program ?

  • Importing - Exporting Tables, What is best to do with the following;

    This is purely down to my general interest, I can do both but just wondered which is best to do?
    Export a table / import table / drop table
    Export table (truncated)/ import table
    Any adverse effects?
    To Truncate or not Truncate?
    Any advice or comments gratefully received.
    Message was edited by:
    Jamie Gadong

    Hi,
    If your table is going to be the same, you may go for the TRUNCATE approach.
    Pros: all blocks assigned to the segment/table are not released (DROP releases space)
    that will free the DB of that activity when loading data.
    Cons: importing data reorganizes data, usually defragmenting space allocated...therefore you may get some empty extents (that may be used later), this is not preciselly a minus if your table is going to grow: you'll have space preallocated.
    Regards
    Ignacio
    http://oracledisect.blogspot.com

  • Import/Export code using Memory ID in BO Method

    Hi experts,
    I am having a approver name and other relevant data in my report. I don't want to write the entire code I want to bring it into my BO method by using import/export memory id. Pl. guide me what should I do ? Is it possible or not?
    Thank you,
    Saquib

    I am a bit confused that what you are trying to achieve. In any case I think you can forget any export/import memory ID related solutions - they will not work!
    The workflow (or its step/task) is executing your BO method, right? You want this method to have some data when it gets executed? Normally you would want to populate the data to the workflow (or task) container, for example with function SAP_WAPI_WRITE_CONTAINER (you just need the work item ID). Then when this data is in the container, you can use it in your method (binding required).
    Somehow I feel that you looking a difficult solution for a simple problem. If you need some relevant data in your workflow, let the workflow to find it (add a new step to the workflow, and copy/paste the relevant part of the code of your report to this step). (Or try to give the data to the workflow already when it gets started, if possible). Don't try to mix things with some separate report, unless it is completely necessary, and if it is, then writing into the container is most likely the best approach.
    Regards,
    Karri

  • 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 Code

    Hai...
    Can any one tell where to enter import export code in SAP

    Hi,
    In Material Master Foreign Trade Import and Foreign Trade export we have to maintain either HS code or IEC number depending on the requirement.
    Regards,
    Sharan

  • How to import/export in Pl/SQL ?

    Hello
    I want to write a procedure in PL/SQL which will be copying one user's schema to another.
    I have Oracle 9i on Windows 2000.
    My first idea was to use IMP EXP commands, but i need to execute this commands from PL/SQL procedure. How can I do this, except from writing Java procedure using Runtime class - I've done it, it works, but sometimes occure an critical error in Oracle Kernel, and I'm sure that Java code is ok.
    Or maybe there is much easier way to solve such a problem (PL/SQL interface for import/export or something)?
    Thanks for any hints.

    No, imp/exp are standalone utilities with no PL/SQL API. Java would be the way to do it.

  • How to Import/Export database tables from one server to other in oracle8i

    Hello friend,
    Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
    I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
    Its very urgent so please someone help me.

    At command prompt (source db)
    set ORACLE_SID=db_name
    exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
    Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
    At command prompt (target db)
    set ORACLE_SID=db_name
    imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
    If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
    Message was edited by:
    FeNiCrC_Neil

  • Import export wizard in struts similiar to microsoft outlook

    Hello All,
    A newbie here,I've been assigned a task creating an import/export wizard which is same as the wizard that is in the Microsoft outlook express(File >Import/Export Wizard),I was successful except for the mapping functionality.I'm clueless how to do it.My dead line is today end of the day.
    I need to do it in struts.I use exadel ide and code in java
    Any help in this direction would be greatly appreciated.
    pl take a look on this link http://www.microsoft.com/dynamics/crm/using/configure/outlookimport.mspx
    point number 8.*Map custom fields* .This part of the wizard is where I'm unable to implement.
    pl help me

    Hi Everybody,
    I'm in a very big prob...pl help me.All my attempts failed.I used javascripts,tigra scripts inside struts to make things work..any clue using java code will also help.I'm giving you the link again.
    pls check this link http://www.microsoft.com/dynamics/crm/using/configure/outlookimport.mspx
    pl extend ur support.

  • IMPORT/EXPORT statement in Background Mode

    Hey dudes,
    I am facing a problem in my coding. I am dealing with coding in several events in IS-U, transaction FPY1.
    However, it's not so important ya. Now I am written some code on IMPORT and EXPORT some parameters between 2 program code. It's work very fine only in 'DEBUG MODE', but when it's running not debug mode (Is BACKGROUND MODE), coz it's massive run program.
    I suspect it's because of the background job. Does background job using ABAP Memory? IMPORT/EXPORT is only for dialog work process, not background work process?? I have a lot of question mark on my head now..
    Hope anyone facing dis issue before can help.
    Cheers,
    Isaac.

    Are you trying to pass data via EXPORT/IMPORT between two programs that are both running in background, or from an online session to a background process?... i.e. what are the two lots of program code that you are wanting to pass parameters between? 
    It would be fine for a background program to "export" data to a memory ID, then for the same batch program to submit another program that does the "import" from the same memory ID... but this method won't work for an online user doing an "export" and a batch job doing an "import" -> for this to work, you would need to persist the parameters so that the batch job can retrieve them.
    If you can explain the scenario a bit more, will try to offer more help...
    Jonathan

  • Import & Export of Internal table

    Hello All,
    In my requirement I need to call the MB5B program RM07MLBD. I used the code like this.
    SUBMIT rm07mlbd AND RETURN
                WITH matnr   IN  so_matnr
                WITH werks   IN  so_werks
                WITH datum   IN  so_budat.
    Now from the RM07MLBD program I need the get the values of the table * g_t_totals_flat * to my zprogram.
    Is it possible to import & export the Internal table from one program to other.
    Regards,
    Anil.

    Hi,
    You can export the internal table ot memory id and can access the (Import) in the called program.
    Consider this small code from ABAPDOCU.
    DATA text1(10) TYPE c VALUE 'Exporting'.
    DATA: itab TYPE TABLE OF sbook,
          wa_itab LIKE LINE OF itab.
    DO 5 TIMES.
      wa_itab-bookid = 100 + sy-index.
      APPEND wa_itab TO itab.
    ENDDO.
    EXPORT text1
           text2 = 'Literal'
      TO MEMORY ID 'text'.
    EXPORT itab
      TO MEMORY ID 'table'.
    Regards
    Bikas

  • Bug with exporting project to java source

    Hi,
    This is in TopLink 9.0.4.2 (Build 040311).
    We're in the process of trying to determine if we should upgrade our TopLink from 2.5 to 9.0.4, and have not yet purchased a support contract because we haven't made the final decision yet, so I'm posting this bug here in hopes that someone can submit the bug.
    In one of our projects, we have an AggregateObjectMapping (AOM) for a Measurement object that is owned by 2 different objects, each with 2 to 4 instances of this Measurement class. I set up the instances of the AOM in the workbench just fine, and looking at the XML descriptors that are written out, it appears fine. Exporting the project session XML file works fine as well. However, when it is exported to a Java file, the instances of the AOM are exported incorrectly as described below.
    Here is the abbreviated mapping of the attributes of the Measurement class:
    <mappings>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>mPrecision</instance-variable-name>
    <default-field-names>
    <default-field-name>direct field=yPrecision</default-field-name>
    </default-field-names>
    <uses-method-accessing>false</uses-method-accessing>
    <read-only>false</read-only>
    <mapping-class>MWDirectToFieldMapping</mapping-class>
    </mapping>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>mQuantity</instance-variable-name>
    <default-field-names>
    <default-field-name>direct field=y</default-field-name>
    </default-field-names>
    <uses-method-accessing>false</uses-method-accessing>
    <read-only>false</read-only>
    <mapping-class>MWDirectToFieldMapping</mapping-class>
    </mapping>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>mUnit</instance-variable-name>
    <uses-method-accessing>false</uses-method-accessing>
    <read-only>false</read-only>
    <reference-descriptor>com.cimsoft.lws.units.Unit.ClassDescriptor</reference-descriptor>
    <private-owned>false</private-owned>
    <uses-batch-reading>false</uses-batch-reading>
    <table-reference-mapping-reference-handle>
    <reference-handle>
    <reference-table>csrSlotGenericValue</reference-table>
    <reference-name>csrSlotGenericValue_csdUnit</reference-name>
    </reference-handle>
    </table-reference-mapping-reference-handle>
    <uses-joining>false</uses-joining>
    <one-to-one-mapping-indirection-policy>
    <indirection-policy>
    <uses-indirection>false</uses-indirection>
    </indirection-policy>
    </one-to-one-mapping-indirection-policy>
    <mapping-class>MWOneToOneMapping</mapping-class>
    </mapping>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>UNDEFINED_MEASUREMENT</instance-variable-name>
    <mapping-class>MWUnmappedMapping</mapping-class>
    </mapping>
    </mappings>
    Notice that there are two direct to field mappings (mPrecision and mQuantity) and one OneToOneMapping (mUnit). The exported sessions XML file has the correct XML for instances of this object. Here is an example from a class that has 3 instances of this Measurement object mapped:
    <database-mapping>
    <attribute-name>mAlarmSize</attribute-name>
    <read-only>false</read-only>
    <reference-class>com.cimsoft.lws.units.Measurement</reference-class>
    <is-null-allowed>true</is-null-allowed>
    <aggregate-to-source-field-name-associations>
    <association>
    <association-key>unitId</association-key>
    <association-value>csrStock.alarmSizeUnitId</association-value>
    </association>
    <association>
    <association-key>y</association-key>
    <association-value>csrStock.alarmSize</association-value>
    </association>
    <association>
    <association-key>yPrecision</association-key>
    <association-value>csrStock.alarmSizePrecision</association-value>
    </association>
    </aggregate-to-source-field-name-associations>
    <type>oracle.toplink.mappings.AggregateObjectMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>mCurrentSize</attribute-name>
    <read-only>false</read-only>
    <reference-class>com.cimsoft.lws.units.Measurement</reference-class>
    <is-null-allowed>true</is-null-allowed>
    <aggregate-to-source-field-name-associations>
    <association>
    <association-key>unitId</association-key>
    <association-value>csrStock.currentSizeUnitId</association-value>
    </association>
    <association>
    <association-key>y</association-key>
    <association-value>csrStock.currentSize</association-value>
    </association>
    <association>
    <association-key>yPrecision</association-key>
    <association-value>csrStock.currentSizePrecision</association-value>
    </association>
    </aggregate-to-source-field-name-associations>
    <type>oracle.toplink.mappings.AggregateObjectMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>mLotSize</attribute-name>
    <read-only>false</read-only>
    <reference-class>com.cimsoft.lws.units.Measurement</reference-class>
    <is-null-allowed>true</is-null-allowed>
    <aggregate-to-source-field-name-associations>
    <association>
    <association-key>unitId</association-key>
    <association-value>csrStock.lotSizeUnitId</association-value>
    </association>
    <association>
    <association-key>y</association-key>
    <association-value>csrStock.lotSize</association-value>
    </association>
    <association>
    <association-key>yPrecision</association-key>
    <association-value>csrStock.lotSizePrecision</association-value>
    </association>
    </aggregate-to-source-field-name-associations>
    <type>oracle.toplink.mappings.AggregateObjectMapping</type>
    </database-mapping>
    However, here are the corresponding mappings in the exported Java file (with what it really should be manually inserted by me in comments):
         AggregateObjectMapping mAlarmSizeMapping = new AggregateObjectMapping();
         mAlarmSizeMapping.setAttributeName("mAlarmSize");
         mAlarmSizeMapping.setReferenceClass(com.cimsoft.lws.units.Measurement.class);
         mAlarmSizeMapping.setIsNullAllowed(true);
         mAlarmSizeMapping.addFieldNameTranslation("csrStock.alarmSizeUnitId", "unitId");
         mAlarmSizeMapping.addFieldNameTranslation("csrStock.alarmSize", "y");
         mAlarmSizeMapping.addFieldNameTranslation("csrStock.alarmSizePrecision", "yPrecision");
         descriptor.addMapping(mAlarmSizeMapping);
         AggregateObjectMapping mCurrentSizeMapping = new AggregateObjectMapping();
         mCurrentSizeMapping.setAttributeName("mCurrentSize");
         mCurrentSizeMapping.setReferenceClass(com.cimsoft.lws.units.Measurement.class);
         mCurrentSizeMapping.setIsNullAllowed(true);
         mCurrentSizeMapping.addFieldNameTranslation("csrStock.currentSize", "alarmSize");
         mCurrentSizeMapping.addFieldNameTranslation("csrStock.currentSizeUnitId", "unitId");
         mCurrentSizeMapping.addFieldNameTranslation("csrStock.currentSizePrecision", "alarmSizePrecision");
         // should be: mCurrentSizeMapping.addFieldNameTranslation("csrStock.currentSize", "y");
         // should be: mCurrentSizeMapping.addFieldNameTranslation("csrStock.currentSizePrecision", "yPrecision");
         descriptor.addMapping(mCurrentSizeMapping);
         AggregateObjectMapping mLotSizeMapping = new AggregateObjectMapping();
         mLotSizeMapping.setAttributeName("mLotSize");
         mLotSizeMapping.setReferenceClass(com.cimsoft.lws.units.Measurement.class);
         mLotSizeMapping.setIsNullAllowed(true);
         mLotSizeMapping.addFieldNameTranslation("csrStock.lotSizeUnitId", "unitId");
         mLotSizeMapping.addFieldNameTranslation("csrStock.lotSize", "currentSize");
         mLotSizeMapping.addFieldNameTranslation("csrStock.lotSizePrecision", "currentSizePrecision");
         // should be: mLotSizeMapping.addFieldNameTranslation("csrStock.lotSize", "y");
         // should be: mLotSizeMapping.addFieldNameTranslation("csrStock.lotSizePrecision", "yPrecision");
         descriptor.addMapping(mLotSizeMapping);
    It appears that the actual Measurement descriptor is being modified accidentally as it's being exported, as you'll notice that the first mapping (for mAlarmSize) correctly maps the default "y" to "alarmSize", and then the next mapping (for mCurrentSize) instead of mapping "y" to "currentSize" maps "alarmSize" to "currentSize", and the next AOM maps "currentSize" to "lotSize" instead of "y" to "lotSize".
    Thanks,
    Greg

    No one ever responded, so I'm commenting to bring it up again. It turns out that the error happens not just exporting to Java, but anytime the command-line project generation is used. If the Workbench is used to export either to XML or to a Java file, the file is generated correctly. It is not generated correctly if you try to do it from the commandline (e.g. from a build environment).
    This has happened with 9.0.4.2 through the current 9.0.4.5.
    Here are different ways I've tried doing it from the commandline, and they all generate the erroneous XML and Java files:
    java oracle.toplink.workbench.external.api.JavaSourceGenerator inputMWP outputJava.java
    and
    java oracle.toplink.workbench.external.api.DeploymentXMLGenerator inputMWP outputXML.xml
    which are recommended by the documentation. Also recommended by the documentation:
    JavaSourceGenerator.generate( inputFile, outputFile )
    and
    DeploymentXMLGenerator.generate( inputFile, outputFile ).
    From decompiling the management workbench to see what it was doing differently:
    MWProject project = WorkbenchSession.instance().openProject( inputFile );
    if ( doXML )
    project.setProjectDeploymentXmlDirectory( directory );
    project.setProjectDeploymentXmlFileName( filename );
    project.exportDeploymentXml();
    else
    project.setProjectSourceRootDirectory( directory );
    project.setProjectClassName( classname );
    project.exportJavaSource( outputFile );
    //Also tried plain old project.exportJavaSource(); which appears to actually do something different.
    Any ideas? It looks like a bug to me, particularly that different java or XML deployment files are generated when run from the commandline versus run from the UI. Obviously, the commandline is very important because it is what the build system needs.
    Thanks,
    Greg

  • Error import / export in console standalone

    hai all,
    error import / export in console standalone
    iam logged in 9i console standalone pc not connected any other pc.
    unable to import or export or load any database
    because the error shows that
    only on OMS mode is possible
    how can import or export or load?
    any help?
    thanks in advance
    rcs
    ------

    I have no idea what you are asking or in what environment you are work.
    Lets start with the need for a version number ... 9i is not a version ... it is a marketing label. Do you mean 9.0.? or 9.2.0.1 or 9.2.0.8 no one knows.
    Second I have no idea what a you intend to convey with the statement "console standalone pc."
    Third "unable" means what? That the pc crashed and burned and is a smoldering cinder or you received some error message you thought too unimportant to post? Again ... you've given us no useful information.
    Finally what do you mean by OMS? Is this OMS as in the Java application running as part of the Grid Control or something else?
    Finally what are you trying to import? How? A clear explanation is required.
    If someone reading what you post can not understand or duplicate what you did because of lack of information you will not receive any help.

  • Import/Export webdynpro ABAP application

    Hi all,
    I was wondering whether there is any way to export/import the local object/web dynpro application that we have created(like the import/export in web dynpro java). I would like to keep a copy of the application developed in my local machine using this method.
    Thanks
    Kukku

    even me also tried imported webdynpro plug in but not showing in object type.
    i am getting only class and program.
    please let me know what to do.
    Regards,
    Mahesh

  • 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

Maybe you are looking for

  • ICloud available for Windows Vista, but not Snow Leopard???

    I have Multipal Macs with the Core Duo chipset that can not run LION and no $$$$ to upgrade hardware right now.  WHY does Windows VISTA get iCloud suport but I who can't upgrade to LION do not? I understand leaving out Leaopard, but SNOW too?

  • Cost of Goods Sold in product costing

    Hi Experts, How can we reconcile the cost components with COGS. I am getting the planned cost estimates from the costing Lets us take an exmaple Planned cogs is 150000 Rs. This figure is from cost estimate We are getting the actual cogs as 130000 Rs

  • Error when saving a modification or just closing Acrobat with a pdf open.

    When i open any pdf file the I have (tried over 50) and try to close the file with or without modifying it, I receive an error with the following Error information. Then i receive a Microsoft visual C++ Runtime Library error with Acrobat.exe and 'R60

  • Behaviour of PriorityQueue using Java 6

    Hi, I have a below code to test PriorityQueue ordering of elements using it's natural order. Output of SOP1 is clear to me. I was expecting SOP2 as : [a, b, d] SOP3 as : [a, b, c, d] import java.util.*; class PQTest { public static void main(String..

  • Where is my iPhone in iTunes in Windows 7?

    I am new to Apple but not new to computing. I have Windows 7 Ultimate 64, MS Outlook 2007 and I have the latest iTunes installed.  I have connected my iPhone 5 via USB but I do not see it in iTunes although the computer is set to "trusted."  On the i