Object deserialization and specific classloaders

Hi,
I must load jars during the runtime in a specific classloaders, it's works, but how could i use this class loader to deserialize object i receive from wire ? is it possible to include my specific classloader in the search tree of the main classloader ?
thanks in advance.
Francois

871637 wrote:
how could i use this class loader to deserialize object i receive from wire ?You don't. You use a classloader to load a class.
is it possible to include my specific classloader in the search tree of the main classloader ?No. If you want your classloader to load a class, you have to make sure that class is not on the classpath, else it will be loaded by the system classloader.

Similar Messages

  • How to cast an Object into a specific type (Integer/String) at runtime

    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    Example:
    public class TestCode {
         public static Object func1()
    Integer i = new Integer(10); //or String str = new String("abc");
    Object temp= i; //or Object temp= str;
    return temp;
         public static void func2(Integer param1)
              //Performing some stuff
         public static void main(String args[])
         Object obj = func1();
    //cast obj into Integer at run time
         func2(Integer);
    Description:
    In example, func1() will be called first which will return an object. Returned object refer to an Integer object or an String object. Now at run time, I want to cast this object to the class its referring to (Integer or String).
    For e.g., if returned object is referring to Integer then cast that object into Integer and call func2() by passing Integer object.

    GDS123 wrote:
    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    There is only one way to have an object of an unknown type at compile time. That is to create the object's class at runtime using a classloader. Typically a URLClassloader.
    Look into
    Class.ForName(String)

  • BW 3.5 - How can I select TADIR objects in a specific date range?

    Hi everybody,
    I have the necessity to obtain a list of BW objects in a specific date range. I have observed that using TADIR table it is impossible because a timestamp is not present. I have also the necessity to group the BW objects using the object type of the TADIR table (e.g. PROG for Program).
    Any idea?
    Many thanks in advance for your kind support.
    Regards,
       Giovanni

    Hi Giovanni
    I would suggest you try put table TADIR in SE11 and generating a "Where-Used List (CtrlShiftF5)" Also you should try double click on data element SOBJ_NAME in the database view of TADIR and generate a Where-Used List on that field, then you can see the relationships of the table/field.
    I hope this works for you
    Good Luck
    Ben
    Please Assign Points if Useful

  • Needed SAP CRM Data model with Object, Entity and Attribute level details

    Hello all,
                 We are working on a huge IS-U / CRM implementation and we are still in the data gathering phase. The client has a whole load of legacy systems that will be replaced with IS-U and CRM. Right now we are in the process of developing data models using Excel first and then presenting them to the client to go forward from there. For this we need to have all the business objects, entities and their attributes.
    I know about the SD11 transaction, but we don't have a CRM system yet. My colleagues have access to a German ERP system and they were able to get models for HR, FI and Asset management. I tried for the Business partner / customer in there, but the models were not proper.
    So, once again, I need the specific data models out of SD 11 for  CRM business partner. If anybody has the information, please do pass it on to me as I need them urgently. It would be a great help if somebody can do so.
    Regards
    Rajesh

    I suggest the following:
    Please, check whether the system works if you activate the implementation BUPA_F4_AUGRP.
    In addition check the notes 559662, 674869 and 782927. Maybe the notes are already implemented but you can try then the implementation of the BADI (SE19). It should resolve your issue.
    I have implemented this Badi solution before, and after activation; the search help ; nor search result list did NOT show any Business partners anymore that had an authorization group I was not allowed to see.
    kind regards
    Davy Pelssers
    SAP CRM/Security consultant

  • Object ID and Object ID Version fields in Displaying Object Properties - XI

    Hi,
    In displaying Object Properties in XI we can see different fields like Type, Description, SCV, Object ID, Object ID Version, Status, Person Responsible, Changed On, Changed By, Display Language, Original Language.
    But when i refer to the SAP Library documentation for these fields, Object ID and Object ID Version are not included. Here is the link for the documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/f0/fc9a3de2ec0753e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/f0/fc9a3de2ec0753e10000000a114084/frameset.htm
    With that said, i have no information on those two fields, only assumptions i've made that i would like to verify in this forum with the questions below
    1.
    Please correct me if i'm wrong, the Object ID is the unique identifier for the object and the Object ID Version is directly connected with the versioning concept for IR and ID, so the Object ID is generated when you create the object  (e.g. MM) and the Object ID Version changes every time that object is edited and change list activated for it. Is this correct?
    Or does the Object ID change every time the object is edited and change list activated for it?
    What is the behavior of these two fields when transported? e.g. dev to qa...  are they both retained on the target IB's?  (specifically for ID objects because the change list needs to be activated first on the target ID)
    2.
    Does any one know where the Object ID and Object ID Version gets stored?  (saved on a table in the ABAP stack or saved somewhere in the Java stack? e.g. can be viewed in Visual Admin or a URL)  I am thinking of extracting all the XI objects with their corresponding Object ID and Object ID Version (per system) in one step.  I know this is possible only if the Object ID & Object ID Version are stored in an ABAP table...
    Kindly give me some inputs.
    Please answer directly with the questions above. I will reward points for it.
    Thanks in advance.

    HI,
    >Please correct me if i'm wrong, the Object ID is the unique identifier for the object and the Object ID Version is directly connected with the versioning concept for IR and ID, so the Object ID is generated when you create the object (e.g. MM) and the Object ID Version changes every time that object is edited and change list activated for it. Is this correct?
    The Object Id is created the first time you create the object.
    Object Version Id is created the first time you save/activate a object.
    Now suppose if you modify the object a new Object Version Id will be created but the Object ID will remain the same.
    For IR Objects the Object Id & Object Version ID will remain the same across systems.
    For ID Objects the Object Id & Object Version ID is not the same across systems.
    Not sure about the table. Can you try in SE11 and check all tables with SXMS*. Could be also that tables might not be available from GUI i.e you might have to login to DB to find out.
    Regards,
    Sumit

  • LSMW - Access to Specific Objects Permissions to specific users

    Hi guys,
    I want to know if it is possible to allow access to specific users that are in charge of the execution of a specific object of and LSMW.
    Regards,
    Eric

    Hi guys,
    One solution i got right now (but it isn't the ideal), is to debug the execution step of the LSMW in order to find the name of the program that iit's been call and the one that its call inthe step in wich the files are been specify. Then develop a "Z" program that calls both of them and give the user the access to this new transaction.
    Any better sugestion?.
    Regards,
    Eric

  • Performance of object deserialization

    Hi :) I am serialising a (rather large) object graph. The resulting file is about 10 megabytes. The deserialization of this object graph takes about 6.5 seconds, which is a little long.
    So my questions are these:
    (1) Is there a way to improve the performance of object deserialization?
    (2) Is object deserialization the way to go? Would I get better performance is I wrote the object to a binary file myself?
    Thanks :)
    Kind regards,
    Ben

    You can get better performance writing the object to a binary file yourself, yes.
    In particular, if you keep the data in multiple files or a chunked RandomAccessFile, you can read in only the parts you need and speed up the process (assuming you don't need to read all the data in at once.)
    But yeah. The overhead you get from reading/writing the serialised headers can add to the size of the file, and the time taken to read it back. Particularly if you know exactly what objects appear in the file, and what order they appear in.

  • Unpermitted combination of business object BUS2032 and sales doc. category

    Dear all
    I try to create a sales document category L (Debit memo request) with the BAPI BAPI_SALESORDER_CREATEFROMDAT2
    I get the error message: Unpermitted combination of business object BUS2032 and sales doc. category  L
    Is there a specific Bapi for creating this sales document?
    Herbert

    Magic or not, but try something like this
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
    EXPORTING
       ORDER_HEADER_IN = lt_order_header_in
       BUSINESS_OBJECT = 'BUS2096'
       WITHOUT_COMMIT = ' '
    IMPORTING
       SALESDOCUMENT = l_vbeln
       RETURN = li_return
    TABLES
    ORDER_ITEMS_IN = lt_order_items_in
    ORDER_PARTNERS = lt_order_partners.

  • Excel 2013 "cannot use object linking and embedding error"

    Hi
    We are using excel export as pdf functionality and have the following DCOM configuration
    1.start->run and type 'DCOMCNFG'
    2: Open 'DCOM Config' and locate 'Microsoft Excel Application'
    3: Set its identity to 'This User' and give specific service user
    On opening excel  we are getting  "cannot use object linking and embedding error" and the microsoft sugestions tells to change to launching user which is not an option for us,Is there any other suggestion to fix this issue by keeping Dcom
    configuration with'This User'
    Thanks in advance
    Pradeep

    Hi
    when excel is opened, a warning pops up saying "Cannot use object linking and embedding" . This
    fix change the DCOM ID to Launching User) does not work for us. We need the Excel DCOM ID to use a particular user "domain\user" in order to access excel from our website.
    Is there any other suggestions
    Thanks in advance
    Pradeep

  • Pinning an object to a specific area

    Hey Muse Team,
    I was wondering if I could pin an object to a specific area of the website. In my case I have a defined area for the website and would like to pin an object so as to if someone opens the page in a smaller sized browser than the page itself the object is still visible, but if the have a much larger browser than the page itself, the image stays inside the page and not surpass it.
    Thank you,
    Carlos

    Do you want something like in the first movie of this post? http://blog.lilybiri.com/reset-effects
    Explanation of setting a motion path in this old post: http://blog.lilybiri.com/editing-motion-paths-and-reusing-customized-e
    You can also edit the XML that defines a motion effect, but know that those movements are always relative to the original place of the object.

  • How do I center objects (photos and animations) so they stay centered with the other page elements?

    How do I center objects (photos and animations) so they stay centered with the other page elements?

    Geez .. Your class doesn't fulfill the javabean specifications. The properties should not be public.
    It should rather look likepublic class TheAddress {
        // Properties ---------------------------------------------------------------------------------
        private String address1;
        private String address2;
        // Constructors -------------------------------------------------------------------------------
        public TheAddress() {
            // Default constructor.
        public TheAddress(String address1, String address2) {
            // Full constructor.
            this.address1 = address1;
            this.address2 = address2;
        // Getters ------------------------------------------------------------------------------------
        public String getAddress1() {
            return address1;
        public String getAddress2() {
            return address2;
        // Setters ------------------------------------------------------------------------------------
        public void setAddress1(String address1) {
            this.address1 = address1;
        public void setAddress2(String address2) {
            this.address2 = address2;
    }

  • Difference between blueprints and specifications

    What is the difference between blueprints and specifications?

    I'm not sure about the context of your question, however mechanical drawings and architect's plans used to be produced using 'blueprints', a photographic print in white on a bright blue ground or blue on a white ground. So a blueprint is a plan or drawing.
    Putting it in the Java context: According to John Smiley's book 'Learn to Program with Java' published by McGraw-Hill Osborne ISBN 0-07-213189-6, "... a Class is a template or model for the Object which is instantiated from it, just like a house is an object created from an architectural blueprint."
    So you can think of a Class as being a sort of template, used to produce Objects.
    Perhaps the Specification that you're referring to is the definition of the requirements for the program.
    I hope that helps.

  • Questions on ADF View Objects, Links and Iterators

    I have a number of questions regarding using ViewObjects in applications where there are alot of relationships between tables.
    First, lets say that I have ViewObject SomeView that was added to the App Module (AM) as VO1. And because it has a number of "detail" records that have to be iterated through in a "report like" view it has those other VO's added under it as "children" in the AM.
    So I have
    VO1 (an instance of SomeView)
    --> VO2 (an instance of some other view)
    --> VO3 (an instance of some other view)
    that is used on pages where only a single VO1 is shown at a time.
    Now because I had another page I wanted to make that had a listing of all SomeView objects. Some of the fields in SomeView are foreign keys to records in VO2 and VO3 and while I don't want to show all the fields from VO2 and VO3, I do want to show a name field from each rather than just the foreign key.
    My experience (though I've never read this anywhere) tells me that when doing a "table" that is a list of rows from a VO, you can't display info from the child VO's because the child VO's are on whatever record corresponds to the "currentRow" in the parent VO and just displaying the rows in a rangeSet doesn't make each the "currentRow" so even we display 10 records in a for loop, the "currentRow" is just one, and the child VO's iterators aren't moved as we go through the for loop. (Can someone confirm if I am correct on this conclusion????)
    So the only way I know of to show some field from a related table in each row is to make the VO have the entity objects from the related tables be part of the view as references. Is this the only way?
    If I do that on a view that didn't have other views as children defined in the AM I don't have any problem and it works like I want.
    But if I do it on a view that did have other views as children defined in the AM it makes the page(s) using that view with the children iterators behave badly. Half the information quits showing up, etc.
    For example, ... if I go to the "SomeView" which was defined with only one entity object association, and I add the entity objects (that are the basis of instances of VO2 and VO3 ) as referenceable only, it totally breaks the page where I display a single VO1 and use it's VO2 and VO3 children. IS THIS NORMAL OR AM I MISSING SOMETHING?
    So, is the solution that I have to have more view objects defined for different purposes ?
    Can anyone give any general guidelines for when/where to use different view objects vs. when to use different iterators. I'm not having much luck with using secondary RSI's and haven't found much info on them.
    Also, how about issues of naming iterators that are in various binding containers (ie. UI Model for a page). If I do and LOV it creates an iterator and gives it a default name like ViewNameIterator1. If I already have a different page that uses a regular (non LOV) iterator with that name, and the user goes back and forth between those pages, is that a clash?
    Finally, I've read a couple of Steve Muench's blogs on View Link consistency but I'm not sure what the rules are on when it applies and doesn't. How you turn it on or off, etc. One of his examples in http://radio.weblogs.com/0118231/2004/02/27.html talks about it in the context of two view objects that are NOT typically "linked" in a master/detail kind of way. Like an AllDepartments and a DepartmentsLessThan view. Do you have to create a View Link between them to have results of one be reflected in the other if they aren't used in the same page in a web app? Or does it happen automatically (with the caveat that you have to do the rowQualifies method). Just feels like I'm missing some pieces.
    Thanks in advance,
    Lynn

    Hi,
    I am also interested in a best-practice note from oracle.
    Currently we store history in seperate history tables for columns that changed. All this implemented in our BaseEoImpl overriding the EntityImpl.prepareForDML().
    Thanks

  • Error when determining a number from object BI_TSDTEL and number 01

    Hi BW Experts,
    After Transporting Infosources (Master & Transaction) to BW QA, the transfer rules were not getting activated in QA. The following error message was diaplyed.
    "Error when determining a number from object BI_TSDTEL and number 01
    Object name can only contain characters from syntactical character set
    Object name can only contain characters from syntactical character set
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Transfer structure 0IM_FA_IQ_2_SB activated under the name 0IM_FA_IQ_2_SA
    It is not necessary to copy dependent objects for transfer structure 0IM_FA_IQ_2_SA
    Transfer structure 0IM_FA_IQ_2_SA does not exist
    Error RSAR 440 when handling objects with type R3TR ISTS."
    I have gone through the Note: 674818.
    Could someone clear me about BI_TSDTEl, By using this do we need to maintain object intervals manually in all the systems like BW ( Dev & QA ), R/3 (Dev & QA).
    Because  I have not seen the Intervals in R/3 ( Dev & QA) systems.
    please could someone provide Inputs for this.
    Thanks in Advance
    Regards
    SK

    Hi,
    Try to see that transfer structure is existing in the sytem which is connecting in
    the BW quality.
    You need the same to be transported from the development server of R/3 to quality server of R/3.
    Just check if this helps.
    Regards
    Rahul Bindroo

  • Storing XML using XSU, object VIEW and INSTEAD OF trigger

    Here is the point:
    I've got 2 tables which are linked:
    CREATE TABLE dept (
    deptno NUMBER PRIMARY KEY,
    deptname VARCHAR2(20)
    CREATE TABLE emp (
    empno NUMBER PRIMARY KEY,
    empname VARCHAR2(20),
    deptno NUMBER REFERENCES dept(deptno)
    I've got the following message, which I want to insert in the tables using XSU (I already have a PL/SQL stored procedure which work perfectly for insertion into 1 table, using DBMS_XMLSave.insertXML or xmlgen.insertXML):
    <DEPT>
    <DEPTNO>10</DEPTNO>
    <DEPTNAME>IT</DEPTNAME>
    <EMP>
         <EMPNO>1</EMPNO>
         <EMPNAME>John</EMPNAME>
    </EMP>
    <EMP>
         <EMPNO>1</EMPNO>
         <EMPNAME>Phil</EMPNAME>
    </EMP>
    </DEPT>
    So I've created the following object:
    CREATE TYPE emp_t AS OBJECT
    empno NUMBER,
    empname VARCHAR2(20)
    CREATE TYPE emplist_t AS TABLE OF emp_t;
    CREATE TYPE dept_t AS OBJECT
    deptno NUMBER,
    deptname VARCHAR2(20),
    emplist emplist_t
    Now I understand that I should create an object VIEW and an INSTEAD OF trigger (That's what I read many times),
    but I don't know how to structure the view and the trigger.
    Could you help? (Example of a similar context, piece of code)
    Thanks a lot
    Marion

    Hi John,
    I have exactly the same issue as you experienced back in January. I have a complex data modelling requirement which requires the need to pivot rows into columns using ROW_NUMBER() and PARTITION clauses. To hide the complexity from the middle tier, I have created a database view and appropriate INSTEAD OF triggers and mapped my EO to the view. I have overriden the lock() method on the EO implementation class (to avoid ORA-02014) and would like to try the same solution you used with the pl/sql call to lock the record.
    My question is, how did you manage the release of the lock if the transaction was not rolled back or committed by your application i.e. if the user closed the browser for instance.
    In my naivity, I would like to think that the BC4J framework would release any locks for the database session when it found the servlet session to be terminated however my concern is that the lock would persist and cause complications.
    Any assistance greatly appreciated (if you would be willing to supply your lock() method and pl/sql procedure logic I would be even more grateful!).
    Many thanks,
    Dave
    London

Maybe you are looking for

  • How to get row number of selected entry from OVS search result

    Hi, Anyone having any idea on how to get row number of the  selected entry/ how to differentiate rows in OVS search result in ON_OVS method? Regards, Jatin

  • I purchased a song and it's corrupted, won't let me re-purchase

    I purchased a song and it would almost completely download, but then give me an error message saying I should check my network connection.  After two more times, the error message changes to the song is now corrupted.  I have gone into the Store and

  • Macbook Startup Problems, and Problems

    When I startup my Macbook, it has been getting stuck on the blue screen typically associated with the startup and log-in. A few unique characteristics of my problem: The screen regularly flashes white from the blue Every so often(rarely) the screen c

  • Why this strange behaviour in sql*plus linesize?

    Friends, when i set the linesize above 200 the result is going out of my 17inch monitor. but when i set the linesize to 100 its displaying correctly. This linesize i tested with the "desc tablename" here is the output.... SQL*Plus: Release 10.2.0.1.0

  • [solved] Wmii + Dualmonitors

    Hello all, Short version: do dual monitors work with wmii? I *finally* ordered a new monitor from Radioshack after I got a nice gift card in the mail from them (I guess I won a contest or something.) Anyway, I'd like to continue to use my 10 year old