Snapshot "UNDEFINED" object invalid

Here's what I'm doing:
create snapshot TEST as select * from TEST@TEST_MASTER;
This creates two objects of name TEST - a table and an object of type "UNDEFINED".
Now, here's the problem:
The status of the "UNDEFINED" object will change to "INVALID" anytime I do a refresh. The refresh succeeds, all of the data is moved over and everything appears great, except that the status is "INVALID". I can recompile the snapshot and the status remains "VALID" until I do another refresh at which time the status changes back to "INVALID".
I have searched every book I can find, as well as this site, and news to get more information on the "UNDEFINED" object, but can't find anything. If anyone has a suggestion, I'd be very appreciative.
Cheers,
Scott

This is an Oracle 8i bug that is fixed in Oracle 9i. Actually, I believe it is two bugs. The Materialized View showing up as UNDEFINED has to do with a bad view in the data dictionary. I believe a object of type '28' isn't getting decoded properly. The materialized view being 'INVALID' shouldn't be an issue. If you would like to fix this grant 'query rewrite' and 'global query rewrite' to the owner of the materialized view. Then do a 'alter materialized view <view_name> compile' to put it back in a VALID state. The bug related to this has to do with not being able to pick up these grants view a ROLE (DBA in most cases).

Similar Messages

  • Pls-00905 object invalid

    Hi,
    I have a code which drops and creates a job.
    But, while dropping the job i am getting an error -object invalid.
    what could be the possible reason for my job to be invalid.
    The job calls a pl sql block which in turn runs thru a loop and calls a procedure.
    I am using oracle 11 rel2

       FOR cur_date IN (SELECT       TO_DATE (v_prevprocesdte, 'dd-mon-yyyy')
                                   + LEVEL dt
                              FROM DUAL
                        CONNECT BY   TO_DATE (v_prevprocesdte, 'dd-mon-yyyy')
                                   + LEVEL <= v_procesdte)
       LOOP
          DBMS_SCHEDULER.DROP_JOB(JOB_PRC_DROPACQTXN);
          DBMS_SCHEDULER.create_job
             (job_name             => 'JOB_PRC_DROPACQTXN',
              start_date           => SYSDATE + 1 / 1200,
              repeat_interval      => 'FREQ=DAILY; INTERVAL=1',
              end_date             => NULL,
              job_class            => 'DEFAULT_JOB_CLASS',
              job_type             => 'PLSQL_BLOCK',
              job_action           => 'BEGIN FOR cc IN (select * from src_txn)
                                        LOOP
                                v_errm :=null;
                                prc_drop_acq_txn(''cur_date.dt'',''cc.src'',''cc.txn_type'',v_errm);
                                IF v_output=1
                                THEN
                                dbms_output.put_line(v_errm);
                                END IF;
                                END LOOP;
                               END;',
              comments             => NULL,
              enabled              =>TRUE
       END LOOP;

  • Extendscript (JS): How to guard undefined object properties?

    Just picked up this Extendscript for a quick utility function. I can't seem to use any of the "usual" Javascript logic contstructs to test for undefined object properties.
    Example:
    typeof(app.activeDocument) === "undefined"
    This is an *error* in Extendscript (Error 1302: No such element). I don't believe it should be, but if I'm supposed to do something different in Extendscript I am all ears.
    Thank you
    Edit: Now posted to the correct forum.

    You could fix up something like:
    var nicer_obj = function (obj) {
        var new_obj = {}
        for (key in obj) {
            if (obj.hasOwnProperty(key)) {
                try { new_obj[key] = obj[key]; } catch (err) {}
        return new_obj;
    typeof nicer_obj(app).activeDocument; // 'undefined' or 'object'
    For what it’s worth, I also think it’s really stupid and annoying that the built-in objects don’t behave at all like you’d expect typical ECMAScript objects to behave. Browsers used to have similar quirks (which is why everyone just uses jQuery), but many of those have been worked out by now.

  • af:panelGroup -- undefined object?

    Hi,
    Using ADF, I created a JSF jsp page that has three textboxes and two buttons-resetButton and submitButton. Trying to write some JavaScript code to make the resetButton work (clear the contents of all 3 textboxes). I was able to obtain the documet and form objects. But when I asked for panelGroup object, it returned me a undefined object, which means I cannot keep on tracking down to panelForm and inputText textboxes to reset their contents.
    Does anybody know how to solve it? Thanks.
    Annie

    Thank you very much for your reply. I appreciate it.
    I have been working on the Web Developer extension after reading your email. It is totally new to me and I am so happy to know that there is a powerful tool that can do so much for me.
    I downloaded "Internet Explorer Developer Toolbar" for IE. Opened my query page with "view DOM". In order to track down the compoent I want, I gave every component on the way an id. But I still won't be able to access underneath the first form. I was trying to type the source code here, but the format is so messy. Just delete it. Well, the tree is like this, form id=form1----div id=form1:queryPage----div id=form1:header----table id=form1:targetForm----tbody id=tbody1----tr id=tr1----td id=td1----table class=xs id=inndertable---- tbody id=tbody2----tr id=form1:ke__xc_----td id=td2----input class=x6 id=form1:ke
    My javascript is:
    alert(document.form1.form1:queryPage.id)
    I am sorry I could figure out how to copy it from the developer toolbar, so I typed. Hopefully you can get an idea how it looks. If I use "document.form1.id" it will return me "form1". But nothing underneath form1 can be accessed. Any help?
    Annie
    Message was edited by:
    user447669

  • [svn:fx-trunk] 8551: Fix for focusSkin and errorSkin to account for bogus bitmap snapshots when objects are 3D transformed .

    Revision: 8551
    Author:   [email protected]
    Date:     2009-07-14 11:31:50 -0700 (Tue, 14 Jul 2009)
    Log Message:
    Fix for focusSkin and errorSkin to account for bogus bitmap snapshots when objects are 3D transformed.
    Bugs: SDK-17766
    Reviewer: Glenn
    QE Notes: None
    Doc Notes: None
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-17766
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ErrorSkin.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as

  • Object Invalid error in PL/SQL

    Hi,
    This is Pat.
    I am writing simple queries on my oracle 8i
    and they are executing correctly.
    But when i include them in a procedure the procedure
    gets created with compilation errors.
    also when i execute the procedure it gives me an error
    saying :
    OBJECT.<login_name>.<procudure_name> is invalid.
    Since the query is running on the SQL prompt it has no problems
    and the syntax for a procedure is made by juss
    adding
    create procedure procedureone
    as
    begin
    <query>
    end;
    i donno y isnt it working..??
    any insights.
    plzz help.

    I am executing the select statements on SQL prompt and i am getting the desired output.
    but i am selecting several attributes of the table and displaying them after implementing a join with other tables.
    i have not included INTO in the select clause.
    If i use into then how can i display all the tuples of the results...??
    I will get only one value into the variable after writing INTO.
    do i need to use a loop.
    here is a similar query i am tryin to execute which doesnt work when put inside a procedure.
    create or replace procedure abc
    AS
    BEGIN
    select one,two,three,(four*five) AS Total
    from xyz,pqr
    where <join of 2 tables>
    END;
    how do i use INTO with this and still display all the results..??
    plzz help

  • Object Invalidation in Oracle 11g R2

    Hi All,
    I found a distinct behaviour in oracle 11gR2 which is not even available in previous releases . Let me explain with an example.
    --creating a small table
    create table TEMPSAMPLE (COL1 VARCHAR2(10),COL2 VARCHAR2(10),COL3 VARCHAR2(15),COL4 VARCHAR2(15));
    -- Now Creating an Primary key index for table TEMPSAMPLE
    ALTER TABLE TEMPSAMPLE ADD CONSTRAINT PKTEMPSAMPLE PRIMARY KEY (COL1,COL2);
    ---CREATING A VIEW ON THE ABOVE TABLE
    CREATE OR REPLACE VIEW VWTEMPSAMPLE AS
    SELECT * FROM TEMPSAMPLE;
    -- CREATING A PACKAGE WHICH USES TEMPSAMPLE AND VWTEMPSAMPLE OBJECTS.
    CREATE OR REPLACE PACKAGE PKGSAMP AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER);
    END PKGSAMP;
    CREATE OR REPLACE PACKAGE BODY PKGSAMP IS
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER)
    AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    BEGIN
    VAL1:='RAVI';
    FOR RC IN (SELECT * FROM VWTEMPSAMPLE)
    LOOP
    DBMS_OUTPUT.PUT_LINE('COL1 '||RC.COL1);
    DBMS_OUTPUT.PUT_LINE('COL2 '||RC.COL2);
    DBMS_OUTPUT.PUT_LINE('COL3 '||RC.COL3);
    END LOOP;
    INSERT INTO TEMPSAMPLE VALUES('REC05','RAVI','EEE','CK');
    DELETE FROM TEMPSAMPLE WHERE COL1='RECO1';
    UPDATE TEMPSAMPLE SET COL4='CKR' WHERE COL1='RECO2';
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||INVAL);
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||VAL1);
    END VERIFYSAMP;
    END PKGSAMP;
    --CREATING A PACKAGE PKGSAMP2 WHICH USES TEMPSAMPLE TABLE ITSELF
    CREATE OR REPLACE PACKAGE PKGSAMP2 AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER);
    END PKGSAMP2;
    CREATE OR REPLACE PACKAGE BODY PKGSAMP2 IS
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER)
    AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    BEGIN
    VAL1:='RAVI';
    FOR RC IN (SELECT * FROM TEMPSAMPLE)
    LOOP
    DBMS_OUTPUT.PUT_LINE('COL1 '||RC.COL1);
    DBMS_OUTPUT.PUT_LINE('COL2 '||RC.COL2);
    DBMS_OUTPUT.PUT_LINE('COL3 '||RC.COL3);
    END LOOP;
    INSERT INTO TEMPSAMPLE VALUES('REC05','RAVI','EEE','CK');
    DELETE FROM TEMPSAMPLE WHERE COL1='RECO1';
    UPDATE TEMPSAMPLE SET COL4='CKR' WHERE COL1='RECO2';
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||INVAL);
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||VAL1);
    END VERIFYSAMP;
    END PKGSAMP2;
    -- OBJECT STATUS OF PACKAGES
    SELECT OBJECT_NAME,OBJECT_TYPE,STATUS FROM USER_OBJECTS WHERE OBJECT_NAME IN ('PKGSAMP','PKGSAMP2','VWTEMPSAMPLE');
    OBJECT_NAME   OBJECT_TYPE  STATUS*
    VWTEMPSAMPLE     VIEW     VALID
    PKGSAMP2     PACKAGE BODY     VALID
    PKGSAMP2     PACKAGE     VALID
    PKGSAMP     PACKAGE BODY     VALID
    PKGSAMP     PACKAGE     VALID
    Alter table TEMPSAMPLE DISABLE constraint PKTEMPSAMPLE KEEP INDEX;
    DROP INDEX PKTEMPSAMPLE;
    --OBJECT STATUS OF PACKAGES AFTER DROPPING INDEX
    SELECT OBJECT_NAME,OBJECT_TYPE,STATUS FROM USER_OBJECTS WHERE OBJECT_NAME IN ('PKGSAMP','PKGSAMP2','VWTEMPSAMPLE');
    OBJECT_NAME   OBJECT_TYPE  STATUS*
    VWTEMPSAMPLE     VIEW     INVALID
    PKGSAMP2     PACKAGE BODY     VALID
    PKGSAMP2     PACKAGE     VALID
    PKGSAMP      PACKAGE BODY     INVALID
    PKGSAMP     PACKAGE     VALID
    Alter table TEMPSAMPLE ENABLE constraint PKTEMPSAMPLE;
    As per the above process, if we observe that drop of index on a table arel lead to invalidation of view which* depends on that table  and all the objects which uses this view will also get invalidated.*
    The above invalidation is being occurred only in Oracle 11g R2, due to which we are facing the issue in our application.
    We got a procedure where we disable a constraint , drop a index and process the insertion/updation into the tables. After successfull insertion/updation, at finally we are enabling the constraint.
    This worked fine with previous releases of oracle 11g R2 , where as we recently migrated to 10g R2 which was leading to invalidation of all packages which uses the view , and in the application which uses previous db sessions are unable to access the invalidated package and raising an exception.
    Please provide the solution if any possible

    I tested the behavior in 10.2.0.4 and 11.2.0.3
    In 10.2.0.4, The view was valid if we disabled the constraint using the keep index option but it became invalid after dropping the index. SO i guess you are making them as unusable and rebuilding them after data load.
    in 11.2.0.3, The view became invalid as soon as we disabled the constraint using the keep index option.

  • Cannot drop queue objects - invalid username/password

    Folks - I'm having an issue where I cannot drop the user that owns my AQ/streams objects from an 11g database.
    SYS@bwapepd1> drop user streams cascade;
    drop user streams cascade
    ERROR at line 1:
    ORA-24008: queue table STREAMS.LB_SUBS_SOURCE_QT must be dropped first
    So then I try to drop the queue -
    SYS@bwapepd1> execute dbms_aqadm.drop_queue('STREAMS.LB_SUBS_SOURCE_Q');
    BEGIN dbms_aqadm.drop_queue('STREAMS.LB_SUBS_SOURCE_Q'); END;
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 3472
    ORA-06512: at "SYS.DBMS_AQADM", line 167
    ORA-06512: at line 1
    So, next I tried to drop the queue table with a force -
    SYS@bwapepd1> BEGIN
    dbms_aqadm.drop_queue_table(
    queue_table => 'STREAMS.LB_SUBS_SOURCE_QT',
    force => TRUE);
    END;
    BEGIN
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4215
    ORA-06512: at "SYS.DBMS_AQADM", line 197
    ORA-06512: at line 2
    I've tried as both SYS and the STREAMS owner and both get the same invalid username/password error.
    Any help is much appreciated.
    Thx!
    rb

    There is insufficient information here to help you but my recommendation would be:
    1. Stop the queue
    2. Drop the queue
    3. Drop the queue table
    4. Drop the user with cascade
    If you are getting an insufficient privs message when logged on as SYS then you need to make sure that you are where you think you are: You are not. Perhaps you have a remote connection, for example.
    PS: Is this Windows and are you using the joke that is remote desktop? That is one example of not being where you think you are.

  • Exporting for Dreamweaver - undefined object?

    When I attempt to export my document (just text, no images) I get this error message: "undefined is not an object." I have no idea what it means. There are no errors showing in the document and no links at all, so that not the problem.
    Any ideas?

    No images. There are some tables made in CS3 and some footnotes. I wanted to use just about 10 pages from a larger document, so I made a copy and deleted all but the 10. I noticed that in this reduced document there were the prior master pages carried over, so I selected all the pages and applied the "none" master to them. It leaves one other master page I cannot delete. All I can think of that is different.

  • Executing security_pkg.create_secu_owner causes sys objects invalid?

    Hi everyone,
    Just trying to confirm.
    We've been investigating why the SYS owned UTL_FILE and other packages suddenly became invalid on the database (9.2.0.5)
    The only activiy we can find based on the audit logs during the time when the utl_file became invalid is this command:
    BEGIN security_pkg.create_secu_owner('XXXXXX','aaaaa'); END;
    *input parameters have been changed for security purposes.
    can executing the security_pkg.create_secu_owner really cause the UTL_FILE to become invalid?
    thanks,

    I had exec utlirp.sql..
    Well you were asked to run utlrp.sql. I can't speak about the time that it will take to get complete. For the invalid objects, there are two ways to make them valid,one run utlrp.sql and see how many become valid and the other ( painful one) is to manually look for the errors in their compilation and sort it out.
    Aman....

  • ConversionException on [undefined] object

    Hey there,
    I am using Toplink 10g (9.0.4.2). DB is Oracle8i. I am working on an existing project. I have a new EJB with a String primary key, a boolean field and 3 other String data fields. When I map this class in toplink workbench as an EJB descriptor I get the most weirdest error from ejbc thrown by toplink.
    This is how it looks -
    [java] Exception [TOPLINK-14016] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.ejb.DeploymentException
    [java] Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-3001] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.ConversionException
    [java] Exception Description: The object [undefined], of class [class java.lang.String], could not be converted to [class java.lang.Boolean].]
    [java] Internal Exception: Exception [TOPLINK-3001] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.ConversionException
    [java] Exception Description: The object [undefined], of class [class java.lang.String], could not be converted to [class java.lang.Boolean].
    I cant figure out what is it trying to convert. If I remove the class from workbench, it compiles fine. But it complains even if you just add the class to the project and the entire class unmapped. I have no clue where to look since the compiler is so helpful.
    Would someone be kind enough to guide me on what could be going wrong?
    TIA!

    I get this error during compilation. ejbc (weblogic81) throws this error
    [java] Local Exception Stack:
    [java] Exception [TOPLINK-14016] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.ejb.DeploymentException
    [java] Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-3001] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.ConversionException
    [java] Exception Description: The object [undefined], of class [class java.lang.String], could not be converted to [class java.lang.Boolean].]
    [java] Internal Exception: Exception [TOPLINK-3001] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.ConversionException
    [java] Exception Description: The object [undefined], of class [class java.lang.String], could not be converted to [class java.lang.Boolean].
    [java] at oracle.toplink.ejb.DeploymentException.errorCreatingProject(DeploymentException.java:81)
    [java] at oracle.toplink.internal.ejb.cmp.CmpProjectReader.readProject(CmpProjectReader.java:74)
    [java] at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator.java:49)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    [java] at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    [java] at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    [java] at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    [java] at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    [java] at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    [java] at weblogic.ejb20.ejbc.EJB11CMPCompiler.generatePersistenceSources(EJB11CMPCompiler.java:87)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:249)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:517)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [java] at weblogic.ejbc.main(ejbc.java:29)
    Sorry, I dont quite understand where to change manually to "true" or "false". All data fields in my class are Strings with direct mappings to varchar db fields

  • IMP do some sysman objects invalid

    Hi folks
    I have a doubt.
    I can not use imp schema, or impdp
    If I do a full import using the "IMP", a lot of objects from sysman stay INVALID.
    What I can do to fix this ?
    Maybe recreate the EM repository ?
    Tks
    Mantovam

    Hi there,
    A Sybrand says we need more information before we can help you on this. Please post the version of the database where the export was created and the version where you are trying to do an
    import.
    export in 10.2.0.4. Import in 10.2.0.4
    Also the command line with any parameters that were used when creating the export and attempting the import.
    imp full-y ignore=Y
    Finally, can you specify where you witness the invalid status for the objects. Was it during the import that you noticed an error or after the import and in either case what error did you see ?
    Don't have ERROR messages, only Warning message in the end of import.
    Tks
    Mantovam

  • FRM-41045 no such object: invalid ID

    Hi everyone,
    I have an Alert with three buttons:
    1 Save,
    2 Rollback
    3 Return to Item and not change anything.
    The module is a master detail module. When the user presses the Edit-Button, there is a new record inserted on detail level, with a new date time. All the other fields have the same values.
    This Alert will pop up, when the user presses the save button, after he pressed the edit button. Because for the system, the record already was in the database, the moment the user presses save, the message FRM-40401 -- No changes to save is displayed. I filtered this out.
    When the user says yes (first button) the system saves. I, at first, had the built-in Commit_Form here but it gave me the FRM-41045 Error message.
    Then I removed it and the error message stayed away.
    Can anyone tell me why this message (FRM-41045) is displayed and what its premisses are?
    Thanx
    Hans van Baal

    That error will be rasied by a Get/Set_<something>property call. e.g Setalert_property.
    If you are passing Object IDs around - for instance variables of type ITEM or ALERT, you might want to do an ID_NULL() check on them before using them.

  • Deserialize Object Invalid Class Exception

    I receive the followign error when attempting to deserialize an Integer class:
    java.lang.Integer; Local class not compatible: stream classdesc serialVersionUID=1360826667802527544 local class serialVersionUID=1360826667806852920
    java.io.InvalidClassException: java.lang.Integer; Local class not compatible: stream classdesc serialVersionUID=1360826667802527544 local class serialVersionUID=1360826667806852920
         at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:560)
         at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:604)
         at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:981)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:402)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:272)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1231)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:272)
         at nyerges.matt.Serialization.DeserializeObjectFromString(Serialization.java:50)
         at nyerges.matt.TestSerialization.main(TestSerialization.java:35)
    Here is my main class and method:
    package nyerges.matt;
    * @author n0139292
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class TestSerialization {
         public static void main(String[] args) {
              Integer i = new Integer(10);
              System.out.println(i);
              String res = Serialization.SerializeObjectToString(i);
              Integer q = (Integer) Serialization.DeserializeObjectFromString(res);
              System.out.println(q);
    }Here is the code for the serialization class:
    package nyerges.matt;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    * @author n0139292
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class Serialization {
         public static String SerializeObjectToString(Object o)
              try{
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   ObjectOutputStream oos = new ObjectOutputStream(baos);
                   oos.writeObject(o);
                   oos.flush();
                   oos.close();
                   String toSend = new String(baos.toByteArray());
                   return toSend;
              }catch(Exception e){
                   System.out.println(e.getMessage());
                   e.printStackTrace();
              return null;
         public static Object DeserializeObjectFromString(String s)
              try
                   byte[] bs = s.getBytes();
                   ByteArrayInputStream bais = new ByteArrayInputStream(bs);
                   ObjectInputStream ois = new ObjectInputStream(bais);
                   Object toGet = (Object) ois.readObject();
                   ois.close();
                   return toGet;
              }catch(Exception e)
                   System.out.println(e.getMessage());
                   e.printStackTrace();
              return null;
    }This does not deal with RMI or Marshalling problems, since I am doing it on the same computer within seconds of each other. This was developed and ran with WebSphere if that helps.
    Thanks in advance,
    Matt

    Check this out for a discussion on this:
    http://forum.java.sun.com/thread.jspa?threadID=479051&messageID=2228486
    Oh, as an aside and you might also want to take a look here, for method names:
    http://java.sun.com/docs/codeconv/

  • Status Of Objects INVALID

    Hi all
    I am trying to load the netscape LDAP supporting classes into database(loadjava), i
    found the status of all the classes showing
    INVALID can any one suggest me the reason and
    how to over come it.
    Thanks
    Ramu
    null

    hi Ramu,
    I am also facing same problem. What I could figureout is that when we uoload a class file using loadjava the JVM inside the Oracle trys to compile that and if it could not found any of the refrenced class then it mark the status invalid. You can use -resolve option of loadjava to see the actual error.
    Now in my case it says oracle.sql.BLOB could not be found. When i looked in user_objects view it has INVALID status for all the oracle.sql.BLOB/CLOB etc.
    I think it has to do something with Oracle JVM. If you find out some solution for this pl mail me at [email protected]
    Thanks.

Maybe you are looking for