How do I omit an object when serializing?

I want to serialize a class that has an object of a class that has an AudioClip object in it and Java is not letting me serialize it. I think there is a way to tell the output stream to skip an object in a class but I can't remember how and I can't find much help online. Can someone help me?

for anything you want to have serialized declare its class implements Serializable
for anything field you want to skip on serialization declare the field transient

Similar Messages

  • How to replace all existed objects when impdp a schame ???

    I wrote 2 functions which do expdp and impdp
    the impdp funciton is :
    create or replace function impdp_schema(fromusr in varchar2,
                                            tousr   in varchar2,
                                            dir     in varchar2,
                                            dmpfile in varchar2,
                                            logfile in varchar2 default null)
      return number as
      h1        NUMBER;
      job_name  varchar2(128);
      job_state varchar2(32767);
      ret       number;
    BEGIN
      if dir is null or dmpfile is null then
        return 1;
      end if;
      ret := 0;
      job_name := 'IMP' || to_char(sysdate, 'yyyymmddhh24miss');
      h1 := DBMS_DATAPUMP.OPEN('IMPORT',
                               'SCHEMA',
                               NULL,
                               job_name,
                               'COMPATIBLE',
                               DBMS_DATAPUMP.KU$_COMPRESS_METADATA);
      DBMS_DATAPUMP.ADD_FILE(h1,
                             dmpfile,
                             dir,
                             null,
                             DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
      if logfile is not null then
        DBMS_DATAPUMP.ADD_FILE(h1,
                               logfile,
                               dir,
                               null,
                               DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
      end if;
      DBMS_DATAPUMP.METADATA_REMAP(h1,
                                   'REMAP_SCHEMA',
                                   UPPER(fromusr),
                                   UPPER(tousr));
      DBMS_DATAPUMP.set_parameter(h1, 'TABLE_EXISTS_ACTION', 'REPLACE');
      DBMS_DATAPUMP.START_JOB(h1);
      dbms_datapump.wait_for_job(h1, job_state);
      dbms_datapump.detach(h1);
      dbms_output.put_line(job_state);
      return ret;
    exception
      when others then
        dbms_output.put_line(SQLERRM);
        dbms_datapump.detach(h1);
        return 1;
    END;------------------------------------
    when I test this function, I found some errors :
    Master table "SYS"."IMP20100823152536" successfully loaded/unloaded
    Starting "SYS"."IMP20100823152536": 
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"WIS00001" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_ID_WIS_LOG" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_TID_TABLENAME" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WIS_MASS" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_1" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_2" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_3" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSEDIT" already exists
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    . . imported "WIS00001"."WITS_98_PIC"                    28.28 KB      97 rows
    . . imported "WIS00001"."DRAWING_CONTROL"                26.94 KB     218 rows
    Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
    ORA-31684: Object type PROCEDURE:"WIS00001"."PROC_GETITEM" already exists
    Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
    Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
    **Job "SYS"."IMP20100823152536" completed with 9 error(s) at 15:30:12**---------------
    how to replace all objects when exist ??? include sequence, table, procedure/function???
    </pre>
    Edited by: UNISTD on 2010-8-23 上午12:50

    I love posts without a 4 digit version number. This may well be because of a bug, and as this post is lacking a 4 digit version number, nobody will be able to answer it.
    You posted in vain.
    I recommend you search on Metalink whether there are issues with this parameter.
    Sybrand Bakker
    Senior Oracle DBA

  • How can I animate an object when it is clicked on like a hyperlink?

    I'm creating a game for teaching purposes. Imagine Family Feud. Six boxes on a slide. Under each box is an answer. Clicking on any box makes it go away and reveals the answer. Since it is impossible to know the order of the selections, I can't hyperlink to a new slide. Animations only seem to be triggered by "mouse click" or "with previous" which does not allow individual selection and random order. Powerpoint for Windows had a "triggers" feature which allowed objects to animate individually when selected. Is there something in Keynote that would do this?

    Welcome to the forums!
    Keynote is not designed to do non-linear multimedia -- it is just a presentation application, intended for linear slide-by-slide shows. Unfortunately it does not have a feature similar to PowerPoint's triggers.

  • How to close the Sound object

    I'm using Flash CS3, running code in ActionScript 3.
    I use the Loader class to load a child SWF file, which then
    takes over the entire area on my website that is reserved for
    Flash. If the user decides to stop watching the SWF file before it
    is completed, he hits the "close" button within the child SWF,
    ultimately causing the Loader.unload() method to be executed. So
    far, so good, only the sound from the remaining portion of the SWF
    file keeps playing. According to the Flash Docs for the
    Loader.unload() method:
    "As a best practice, before you unload a child SWF file, you
    should explicitly close any streams in the child SWF file's
    objects, such as LocalConnection, NetConnection, NetStream, and
    Sound objects. Otherwise, audio in the child SWF file might
    continue to play, even though the child SWF file was unloaded."
    It then gives an example that assumes you already have access
    to the Sound object, so closing the Sound object is done by:
    mySound.close();
    The only problem is that I have no idea how to access the
    Sound object when I use the Loader.load() method. Where is this
    beast? I can't seem to find anything in the documentation that
    tells me how to find the Sound object after calling Loader.load().
    As a temporary fix, I modified the target SWF file so that when the
    "close" button is hit, it calls the "stop()" function; however,
    this only stops the sound, it does not close the associated Sound
    object, and I presume it continues to lurk around in memory with
    nothing useful to do. (When the user hits the "close" button in the
    child SWF file, it creates a "bubbling" event so that the Loader
    class can call the Loader.unload() method on it.)
    I've attached code for your reference.
    Any help is deeply appreciated!
    -Dan

    Ack! Looks like I hijacked this thread, sorry.
    I'm doing almost exactly the same thing the OP is doing...
    Loader class to load an external SWF (which is a video file FLV).
    If the user hits the "close" button on the video, the video goes
    away as it should but the audio continues.
    I understand that I need to close any NetConnection and
    NetStream objects in addition to unloading the movie. What I don't
    understand is how to do that. I'm sure that it's a syntax thing I'm
    just not getting right. I would just really like a more detailed
    explanation of stopping NetConnections and NetStreams (but an
    explanation for the not-so-actionscript-experienced LOL).
    Thanks.

  • Script Object when rendering to HTML

    Hi,
    I am developing a form that requires the same script to be reused many times. This form is going to be rendered out to HTML through Workflow, and I'm not sure how to access a script object when rendering to HTML. The root of my form is MISForm so I tried this:
    MISForm.variables.getXML.getXMLDoc("http://lcwftest:8080/services/getEmployeeInfo?method=s ynchronousInvoke&empnum="+this.rawValue);
    getXML being the script object and getXMLDoc being the function. But this returns MisForm is not defined.
    I also tried a reference straight to the object
    getXML.getXMLDoc("http://lcwftest:8080/services/getEmployeeInfo?method=synchronousInvoke&e mpnum="+this.rawValue);
    but that also returned "is not defined"
    How do I reference the script object.

    I believe it gets something like
    xfa.resolveNode("MISForm").getXML.getXMLDoc...
    It also depends on if your script object is located in the root or if it is located within your page if you understand what I am trying to say. With pdf you can have a global script and reference it on each page but with html I would be more than happy if you find a solution on it... you have to have the script object on each page.

  • I recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    i recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    I would try contacting Apple.
    http://www.apple.com/support/ipodtouch/contact/

  • How to remove duplicates when serializing?

    hi,
    I think this has been asked before but have not been able to find the answer in the forums or google..
    I'd like to save space when serializing a structure to disk, as the storage medium is slow and it is expensive to deserialize large objects. I know that the thing I'm serializing has the same object duplicated in it several times and that its being written out several times.
    is there any way to do this (3rd party libraries etc..)?
    ideally you'd also be able to configure whether objects are duplicated or not by identity or .equals equality?
    thanks,
    asjf

    hi,
    I think this has been asked before but have not been
    n able to find the answer in the forums or google..
    I'd like to save space when serializing a structure
    to disk, as the storage medium is slow and it is
    expensive to deserialize large objects. I know that
    the thing I'm serializing has the same object
    duplicated in it several times and that its being
    written out several times.When you say "same," do you mean by identity or by equals? I'm pretty sure that serialization by default does not duplicate the same object (by identity). If you want to avoid serializing "same by equals" you'll probably have to roll your own, overriding readObject/writeObject or whatever methods the docs say to override for custom serialization.
    Be aware though, that "same by equals" doesn't really mean the objects will behave the same way. I'd be very careful using that.

  • How do I install Photoshop when serial number is called invalid even though I have registered it?

    How do I install Photoshop when serial number is called invalid even though I have registered it?

    https://helpx.adobe.com/x-productkb/global/my-serial-number-doesnt-work.html

  • How can i find my ipod when i dont have serial number

    how can i find my ipod when i dont have serial number

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T, Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. Lost or Stolen iPhone? Here’s What to do
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on MobileMe
      3. OS X Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
      1. VUWER 1.5.4
      2. Sneaky ******* 0.2.0
      3. Undercover 4.7
      4. LoJack for Laptops Premium Mac
      5. STEM 2.1
      6. MacPhoneHome 3.5

  • How to create lock object  when the total length is more than 300bytes?

    Dears:
    I want to create lock object for a add-on table , and the total length of  table's fields is more than 300 bytes.
    When I acitve this object, it will show "Total length of lock argument for table ZTEST_XXX longer than 300" error message in log.
    Is there any way  which can create  lock object when total length > 300bytes? 
    Thanks in advance.
    Best regards
    Lily

    Hi, Sudhi Karkada Sandeep Kumar 
    Thank you very much for your help.
    When the total length of  keys is more than 150bytes, lock object can't be created.
    Best regards,
    Lily

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to Use Transient View Objects to Store Session-level Global Variables

    hi
    Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
    Based on this documentation I created the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
    It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
    Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
    On rollback the Transient View Object instance keeps its row and attribute values.
    Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
    questions:
    - (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
    - (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
    Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
    at http://blogs.oracle.com/smuenchadf/examples/#90
    It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
    This can be illustrate with a small change in the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
    It now shows the result of both these expressions on the page ...
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
    See also the screencast at http://screencast.com/t/k8vgNqdKgD
    Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
    public class MyCustomADFBCDataControl
      extends JUApplication
      @Override
      public void setTransactionModified()
        ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
        Transaction vTransaction = vApplicationModule.getTransaction();
        if (vTransaction.isDirty())
          super.setTransactionModified();
    }Resulting in what seems to be more consistent/expected transaction (dirty) information,
    see also the screencast at http://screencast.com/t/756yCs1L1
    Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
    Currently, question (q2) remains.
    regards
    Jan

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • How can I create a object for a note?

    Hi experts,
        I need to apply the note 501905 but when I try in the SNOTE transacction I receive this error:
    Object REPS Z_MRM_DELETE_PP does not exist; create it
    Diagnosis
    The SAP Note that you want to implement contains changes to an object that does not yet exist in your system.
    SAP Notes contain only changes to objects that already exist. This means that the the system cannot automatically create new objects during the implementation of this SAP Note.
    Procedure
    1. Cancel the SAP Note implementationl.
    2. Create an empty object REPS Z_MRM_DELETE_PP with the corresponding object editor.
    3. Restart the SAP Note implementation.
    How can I create that Object??
    Thanks for the help!

    Hi Carlos,
    It says that you have to create a new program with a name Z_MRM_DELETE_PP.
    Once you create and activate the program you can execute the SAP Note.
    All this processure will be written in the SAP Note.
    Please Go through the Note using below:
    Step1: Use T.code SNOTE.
    Step2: Use menu GOTO --> NOTE BROWSER. Provide the Note no and EXECUTE.
    Step3: Double click on the displayed line.
    Here you will get the information to do before implementing the note.
    Go through all the documentation, and once you did all the development given in the note then you can implement the note.
    Regards,
    Sreekanth.

  • TS2755 How do I turn of imessage when i no longer have the iphone!?

    How do I turn of imessage when i no longer have the iphone it was activated on? so frustrating dont get any messages from iphone friends also it seems like there is no solution to this problem and to make it worse apple cant help without a serial number!!

    please
       Allan Sampson  
       wjosten  
    can you do something about my message, to much personnal info. Possible to make it diseappear ?

Maybe you are looking for

  • Size of web pages and inserted files (assets).

    Hi, everyone. As I am optimizing some web pages on my site I would like to see the overall size of each page and individual images displayed on iWeb. Is there a way to see what the overall size of each page in iWeb will be once finished as well as th

  • PDF's won't print using Reader 9.4.6

    Have windows Windows XP OS, Adobe Reader 9.4.6.  PDF's won't print, but all other types of docs print fine.  Get error message "Pages not selected", although I've selected pages.  Tried different printer, same problem.  Tried to upgrade to 9.5, but g

  • Export and import of 3 Gb table

    Dear , I have table with more than 3 million records, i need to export this table and import into a different database . can you please help me with the export and import options options so that i can speed up the process... for you information this

  • Cannot change number of rows in layout set

    I have created a layout set with a custom Collection Grid Renderer to show XML forms news items. I have changed the <i>number of rows</i> property to <i>3</i> to set the number of items to display to 3, but only one item is displayed. I have changed

  • Development plan by Employee - Talent Management

    Dear Luke, Greetings. From one of your blog understand very clearly that Development plans are only accessible by TMS and Manager. And not by Employee. But this could be well accepted when the it comes to larger organization. In the event of small or