Extra namespace was added after SOAPBody.addDocument(xmlDoc) is called

Hi all,
I am working on adding SAMLRequest to SOAP message using saaj-api 1.3.4 with Java1.5
However, when I add the XML doc using SOAPBody.addDocument(), extra namespaces were added to the soapBody
The XML I try to add is:
<samlp:Request RequestID="mhdefhnhjladllhdlfeihkcbbcabakodmnnmbjdl" MajorVersion="1" MinorVersion="1" IssueInstant="2013-01-11T00:31:49.492Z" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol"><samlp:AssertionArtifact>QUFFWm9QMkF1N1dCNE1PbHIyS3FUQXlQaTJWR0dXUzB5VmNpUm0vMUtIZ0RQbytjWnFGcFNoSlA=</samlp:AssertionArtifact></samlp:Request>
after soapBody.addDocument(doc)
I get
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">
<samlp:Request xmlns:axis2ns2="urn:oasis:names:tc:SAML:1.0:protocol" IssueInstant="2013-01-11T00:31:49.492Z" MajorVersion="1" MinorVersion="1" RequestID="mhdefhnhjladllhdlfeihkcbbcabakodmnnmbjdl">
<samlp:AssertionArtifact xmlns:axis2ns3="urn:oasis:names:tc:SAML:1.0:protocol">QUFFWm9QMkF1N1dCNE1PbHIyS3FUQXlQaTJWR0dXUzB5VmNpUm0vMUtIZ0RQbytjWnFGcFNoSlA=</samlp:AssertionArtifact>
</samlp:Request>
</soapenv:Body>
</soapenv:Envelope>
As you can see, "xmlns:axis2ns2", "xmlns:axis2ns3" are added to the SAMLRequest and body has xmlns:samlp namespace.
Here is How I did this:
String artRequest = buildSAMLRequest(samlArt);          
//build soap message
     DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
builderFactory.setNamespaceAware(true);
     InputStream stream = new ByteArrayInputStream(artRequest.getBytes());
Document doc = builderFactory.newDocumentBuilder().parse(stream);
     MessageFactory mf12 = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
     SOAPMessage message = mf12.createMessage();
     SOAPBody soapBody = message.getSOAPBody();     
soapBody.addDocument(doc);
//output as String for HTTP connection
ByteArrayOutputStream xmlout = new ByteArrayOutputStream();
message.writeTo(xmlout);
String strMsg = new String(xmlout.toByteArray());
Does anyone have idea how can I get rid of the extra namespace?
Thank you so much
David
Edited by: 898054 on Jan 10, 2013 4:46 PM

Thank you so much. Indeed, I have axis-saaj.jar in my project which caused the problem
Thanks
David

Similar Messages

  • Extra (Duplicate) Code Added After Editing Page

    At first I thought this was a problem when using templates
    but I've confirmed that it's more widespread that that. I've also
    found this posted a couple of times on other boards but nobody
    seems to have an answer.
    After I edit a page (html or php, doesn't make a difference)
    in Dreamweaver 8.02 extra code is added at the bottom of the page.
    This code duplicates a portion of what is already on the page, and
    it appears (although I can't say for certain) that the more editing
    I do the more code is added.
    The extra code is added after the closing </html> tag.
    Sometimes a portion of it will show up in Code view but more often
    than not I have to view the page in a text editor and remove it
    outside of Dreamweaver. But once the page is edited again then the
    problem repeats.
    Bizarre.
    Thanks.

    > I'll try and re-create the problem and post the before
    and after.
    The answer is always in the code.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "SilverR252" <[email protected]> wrote in
    message
    news:eneb22$2cg$[email protected]..
    >
    quote:
    You just haven't read the answers posted.
    > Well, I spent over an hour googling variations of the
    problems and found
    > it
    > referenced in only a couple of places. In neither post
    was there an
    > answer. You
    > can see that
    >
    http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/b35b5
    >
    0466da5ea05/8c5264cb11bf7d36?lnk=st&q=dreamweaver+extra+code&rnum=3#8c5264cb11bf
    > 7d36 and
    >
    http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/ae47c
    >
    5731780634d/012a96d2fb5c818f?lnk=st&q=dreamweaver+extra+code&rnum=8#012a96d2fb5c
    > 818f although the latter refers to MX.
    >
    >
    quote:
    Show us your template page, please.
    > As I said, I originally thought this was a problem only
    on child pages of
    > templates. However, it's happening in non-template
    pages.
    >
    > I'll try and re-create the problem and post the before
    and after.
    >
    > Thanks.
    >

  • Problems with DUPLICATE DATABASE when datafile was added after full backup

    Hi,
    I'm facing a problem when performing database duplication with the RMAN duplicate database command on a 10g database. If I preform the duplication from a full backup that is missing a datafile which was added to the database after the full backup, I get the following error message:
    Starting restore at 10-10-2009 18:00:38
    released channel: t1
    released channel: t2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/10/2009 18:00:39
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06100: no channel to restore a backup or copy of datafile 43The redo log which was CURRENTat the time of the datafile's 43 creation is also available in the backups. It seems like RMAN can't use the information from the archived redo logs to reconstruct the contents of datafile 43. I suppose that because the failure is reported already in the RESTORE and not in the RECOVER phase, so the archived redo logs aren't even accessed yet. I get the same message even if I make a separate backup of datafile 43 (so a backup that is not in the same backupset as the backup of all other datafiles).
    From the script the duplicate command produces, I guess that RMAN reads the contents of the source database's controlfile and tries to get a backup which contains all the datafiles to restore them on the auxiliary database - if such a backup is not found, it fails.
    Of course if I try to perform a restore/recover of the source database it works without problems:
    RMAN> restore database;
    Starting restore at 13.10.09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    creating datafile fno=43 name=F:\ORA10\ORADATA\SOVDEV\SOMEDATAFILE01.DBF
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to F:\ORA10\ORADATA\SOVDEV\SYSTEM01.DBF
    .....The datafile 43 is recreated and then redo is applied over.
    So, does anyone know if duplicate database can't use archived redo logs to recreate the contents of a datafile as a normal restore/recover does? If it's so, then it means it's necessary to perform a full database backup before every run of duplicate database if a datafile was added after such a backup.
    Thanks in advance for any answers.
    Regards,
    Jure

    Hi Jure,
    I have hit exactly the same problem during duplication.
    Because we backup the archive logs every 6 hours with rman I added an extra run block to this script.
    run
    backup incremental level 0
    format 'bk_%d_%s_%p_%t'
    filesperset 4
    database not backed up;
    (I also than hit a bug in the catalog which was solved by patching up the catalog dbs from 11.1.0.6 to 11.1.0.7.)
    This will narrow down the datafile not being part of any rman backup to 6 hours while skipping datafiles for which a backup already exists.
    Regards,
    Tycho

  • I CAN NO LONGER SYNC ANY OF MY APPLE PRODUCTS, WHEN I ATTACH THE I-PAD TO THE COMPUTER VIA USB IT DOES NOT TRY TO CONNECT TO THE PRODUCT,  I HAVE CHANGED CORDS, USB PORTS LOCATIONS, RE-INSTALLED I-TUNES.  THIS STARTED AFTER MORE RAM WAS ADDED

    I CAN NO LONGER SYNC ANY OF MY APPLE PRODUCTS TO I=TUNES, I HAVE CHANGED CORDS, CHANGED USB LOCATIONS, TRIED DIFFERENT ((I-PAD, I-PHONE) AND NONE WILL TRY TO SYNC.  I HAVE RE-INSTALLED I-TUNES. NOTHING WORKS.  THIS STARTED WHEN RAM WAS ADDED TO COMPUTER.

    Hi, can you take the RAM out and try again?  Sounds strange that RAM would cause this.
    What computer type are you using and what OS?

  • Adding extra namespace in the target structure

    Input file (currently generating from existing message mapping)
    <?xml version="1.0" encoding="UTF-8"?>\
    <pData xmlns:xsi="namespace1">
    <Name>name</Name>
    <ListChange>
    <status>Active</status>
    </ListChange>
    </pData>
    Required File
    <?xml version="1.0" encoding="UTF-8"?>\
    <pData xmlns:xsi="namespace1" xmlns="namespace2">
    <Name>name</Name>
    <ListChange>
    <status>Active</status>
    </ListChange>
    </pData>
    To add the extra namespace (xmlns="namespace2") used following ways.
    1.     Using XML Anonymiser bean module
    Still the no change in the output (only accepting one namespace at a time 1/2)
    2.     Using XSLT Mapping as 1st row in interface mapping
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8"/>
         <xsl:template match="/pData">
                   <pData xmlns:xsi="namespace1" xmlns="namespace2">
                   <xsl:copy-of select="/pData/Name"/>
                   <xsl:copy-of select="/pData/ListChange/status"/>
              </pData>
         </xsl:template>
    </xsl:stylesheet>
    We are getting the following error
    com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 54, 65, 73(:main:, row:8851, col:24)
    Any inputs are welcome.

    >
    Jayashri Rade wrote:
    > Input file (currently generating from existing message mapping)
    >
    > ********************************************************
    > <?xml version="1.0" encoding="UTF-8"?>\
    >
    > <pData xmlns:xsi="namespace1">
    >
    > <Name>name</Name>
    > <ListChange>
    > <status>Active</status>
    > </ListChange>
    >
    > </pData>
    > ********************************************************
    > Required File
    > ********************************************************
    >
    > <?xml version="1.0" encoding="UTF-8"?>\
    >
    > <pData xmlns:xsi="namespace1" xmlns="namespace2">
    >
    > <Name>name</Name>
    > <ListChange>
    > <status>Active</status>
    > </ListChange>
    >
    > </pData>
    > ********************************************************
    >
    > To add the extra namespace (xmlns="namespace2") used following ways.
    > 1.     Using XML Anonymiser bean module
    > Still the no change in the output (only accepting one namespace at a time 1/2)
    the bean is to remove namespaces.. not to add
    > 2.     Using XSLT Mapping as 1st row in interface mapping
    > ********************************************************
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <xsl:stylesheet version="1.0"
    > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    > <xsl:output method="xml" encoding="UTF-8"/>
    >
    >      <xsl:template match="/pData">
    >
    >                <pData xmlns:xsi="namespace1" xmlns="namespace2">
    >                <xsl:copy-of select="/pData/Name"/>
    >                <xsl:copy-of select="/pData/ListChange/status"/>
    >
    >           </pData>
    >
    >      </xsl:template>
    > </xsl:stylesheet>
    > ********************************************************
    > We are getting the following error
    > com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 54, 65, 73(:main:, row:8851, col:24)
    >
    > Any inputs are welcome.
    the code looks fine. but i prefer a simple java mapping with a string operation to replace the tag <pData xmlns:xsi="namespace1"> to <pData xmlns:xsi="namespace1" xmlns="namespace2">. it will be simple string handling plus you will not lose any performance by using a XSLT parser invoked.

  • JTextPane-Extra character is adding to StyledDocument. How to overcome it ?

    Hi All,
    In my application, when I tried to increase the font size of the styled text every time an extra character is adding and its font size is not increasing as expected. Please try to run the below application as mentioned steps below :
    After running the application
    Step 1: Click on "Button1" and observe console. You will find list of all characters.
    Step 2: Click on "Button2" and observe console. Now you can see the RTF text's byte[] at console.
    Step 3: Click on "Button3" and observe console. You will find list of all characters along with their updated font size. (One extra character will be show in character's list)
    Try to do Step2 and Step3 repeatedly
    each time one extra character will be added to list and the new character's font size not be reducing.
    I have two problems here
    1. When I copy RTF byte[] from one DefaultStyledDocument to another one extra character is adding the new document object. How to avoid this extra character from the new document ?
    2. Why every time the last character's font size is not increasing ?
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JTextPane;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DefaultStyledDocument;
    import javax.swing.text.Document;
    import javax.swing.text.Element;
    import javax.swing.text.SimpleAttributeSet;
    import javax.swing.text.Style;
    import javax.swing.text.StyleConstants;
    import javax.swing.text.StyleContext;
    import javax.swing.text.rtf.RTFEditorKit;
    public class CopyStyledTextDocument extends JFrame
        RTFEditorKit rtfKit = new RTFEditorKit();
        DefaultStyledDocument orgDoc = null;
         static final JTextPane pane = new JTextPane();
         static final JButton getStyledCharecters = new JButton();
         static final JButton saveOrgDoc = new JButton();
         static final JButton changeFont = new JButton();
        CopyStyledTextDocument()
            getStyledCharecters.setText("Button1");
            getStyledCharecters.setSize(50, 50);
            getStyledCharecters.addActionListener(
                      new ActionListener()
                           public void actionPerformed(ActionEvent e)
                                DefaultStyledDocument doc = (DefaultStyledDocument)pane.getStyledDocument();
                                String newChar = "";
                                int length = doc.getLength();
                                for(int i=0;i<length;i++)
                                     try
                                          newChar = doc.getText(i, 1);
                                          System.out.println("------- charPos : "+i+" char : "+newChar);
                                     catch(Exception ex)
                                          System.out.println("Error : "+ex);                                      
                                          ex.printStackTrace();
            saveOrgDoc.setText("Button2");
            saveOrgDoc.setSize(50, 50);
            saveOrgDoc.addActionListener(new ActionListener()
                           public void actionPerformed(ActionEvent e)
                                CopyStyledTextDocument.this.orgDoc = CopyStyledTextDocument.this.copyStyledDocument((DefaultStyledDocument)pane.getStyledDocument());
            changeFont.setText("Button3");
            changeFont.setSize(50, 50);
            changeFont.addActionListener(
                      new ActionListener()
                           public void actionPerformed(ActionEvent e)
                                Style newStyle = new StyleContext().addStyle(null, null);
                                DefaultStyledDocument newDoc = CopyStyledTextDocument.this.orgDoc;
                                int totalChars = newDoc.getLength();
                                for(int i=0;i<totalChars;i++)
                                     String newChar = "";
                                     Element charElement = newDoc.getCharacterElement(i);
                                     AttributeSet charArributeSet = charElement.getAttributes();
                                     try
                                          newChar = newDoc.getText(i, 1);
                                     catch(Exception ex)
                                          System.out.println("Error : "+ex);
                                          ex.printStackTrace();
                                     int fontSize = ((Integer)charArributeSet.getAttribute(StyleConstants.FontSize)).intValue();
                                     fontSize += 10;
                                     StyleConstants.setFontSize(newStyle, fontSize);
                                     try {
                                          newDoc.replace(i, 1, newChar, newStyle);
                                          System.out.println("------- charPos : "+i+" char : "+newChar+" fontSize : "+fontSize);
                                     }catch(Exception ex) {
                                          System.out.println("Error : "+ex);
                                          ex.printStackTrace();
                                     pane.setStyledDocument(newDoc);
         public DefaultStyledDocument copyStyledDocument(DefaultStyledDocument inputDoc)
             DefaultStyledDocument newdocument = null;
              try
                   ByteArrayOutputStream bOData = new ByteArrayOutputStream();
                   rtfKit.write(bOData, inputDoc, 0, inputDoc.getLength());
                   String styledText = new String(bOData.toByteArray());
                   System.out.println("------- RTF byte[] : "+styledText);
                   ByteArrayInputStream bIData = new ByteArrayInputStream(styledText.getBytes());
                   newdocument  = new DefaultStyledDocument();
                   rtfKit.read(bIData, newdocument, 0);
              }catch(BadLocationException ex)  
                   System.out.println("Error : "+ex);
                   ex.printStackTrace();
              catch(IOException ex)       
                   System.out.println("Error : "+ex);
                   ex.printStackTrace();
              return newdocument;
      public static void main(String args[]) throws BadLocationException
           CopyStyledTextDocument jf = new CopyStyledTextDocument();
           jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           Container cp = jf.getContentPane();
           Document doc = pane.getStyledDocument();
           SimpleAttributeSet set = new SimpleAttributeSet();
           StyleConstants.setFontSize(set, 12);
           doc.insertString(doc.getLength(), " SAMPLE \n", set);
           doc.insertString(doc.getLength(), " TEXT \n", set);
           doc.insertString(doc.getLength(), " OVER ", set);
           cp.add(getStyledCharecters, BorderLayout.WEST);
           cp.add(saveOrgDoc, BorderLayout.SOUTH);       
           cp.add(changeFont, BorderLayout.EAST);        
           cp.add(pane, BorderLayout.NORTH);
           jf.setSize(800, 700);
           jf.setVisible(true);
    }Due to urgency I placed little bit of info. in below link
    http://forums.sun.com/thread.jspa?threadID=5409367&tstart=45
    But here I am placing a sample application which represents the problem clearly.
    If you have any queries please feel free to ask.
    Thanks for you help
    Satya.

    Your feed has two episodes, and they both appear when subscribing. So far the Store hasn't picked up the newer episode.
    This episode has duplicated 'enclosure' tags - both containing the same media file URL: this shouldn't be a problem as iTunes should simply ignore the second one.
    When you add a new episode to a feed it usually takes 1-2 days before the Store picks up the change, though it appear immediately for subscribers. If in fact you didn't have the second episode in the feed when it was first submitted this would probably be the reason.
    It's just possible that something in the feed is upsetting the Store but not the iTunes application on subscribing (which doesn't involve the Store) - however apart from the duplicated enclosure tag there doesn't appear to be anything unusual. Your media filename for the second episode has a space in it, which isn't a good idea, but the feed is handling this correctly by substituting the code %20, so it's unlikely that this is throwing the Store. However it would be better to avoid spaces altogether - they aren't allowed in a URL (hence the need to substitute the code).
    I should give it a couple of days and see if the episode appears.

  • Image is not printing in PrintAdvanceDataGrid when the PrintAdvanceDataGrid was added to Vbox

    I tried to print the image in the PrintAdvance Data Grid  , image is not priniting  when the PrintAdvanceDataGrid was added to Vbox or Vgroup, can any one help?

    Images are loaded asynchronously, so they appear after the page is sent to the printer.  Using an image cache should help.
    -Alex

  • I purchases additional storage last night when advised by iCloud that I had little storage left on iCloud. Discovered that an unknown iPhone was added to my account resulting in lack of storage. How can I cancel this. And get refund?

    I purchased addional storage for iCloud after being advised that I was running out of storage. Later I discovered a iPhone which I do not own was added to my account . How I don't know. Anyway I want to cancel and get refund. How can I do this. Try various apple contact methods..can't get to talk or email anyone.

    I have the same problem. For about 1 month ago I extended my iCloud storage account (+20 GB) in order to maintain my backups for iPHONE and iPAD as my account would expire 14/10. In spite of this, I got an email 15/10, which said that iCloud was reduced to 5 GB. 2 hours later I received a new email with comfirmation on the purchase of +20 GB storage plan. However, I only have access to 5 GB on my iPad and iPhone. Called Apple Support but they couldn´t help me. Did you find any solution ?

  • I recently went to add services onto my Family safe guards page and when I clicked to add services a pop up window appeared informing me that I was ok with paying about $30 more a month  for services I was adding that were marked 0.00?

    I was wondering why free services cost an extra $30 and if this is a mistake somehow with your system how do I resolve it...My girlfriend has activity occurring on her phone that she says is not her and I was told originally by support since there were out of country charges that I may need to use these safe guards which I feel needs to be done until we figure out what is happening! The last time it came from out of the country and was almost charged an excessive amount for call that was never received or sent.

    it does not matter what services I added what occurs I believe is that my
    plan changes for some reason and then compiles the change in the plan and
    causes increase and the cost. I sorta noticed this when I went back on and
    tried to do it again. I have been dealing with another issue on my account
    so I sort of put this one on the back burner but I needed to be functional
    because part of my other issue is due to these rogue cause we've been
    getting life you're trying to add unnecessary charges to my phone account
    which is a completely separate issue.
    On May 28, 2014 5:26 AM, "Verizon Wireless Customer Support" <

  • My phone number was added to someone els's iPad and it says they are using my number for iMessage

    My phone number was added to someone els's iPad and it says they are using my number for iMessage

    Hi Mahmoudmuhmd,
    Welcome to the Support Communities!
    The telephone number on your Apple ID is tied to iMessages.  You may need to change the password for your Apple ID account to prevent others from using it.  Here are some articles that will help with this:
    Apple ID: Changing your Apple ID password
    http://support.apple.com/kb/HT5624?viewlocale=en_US
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796?viewlocale=en_US&locale=en_US
    iOS: Using Messages
    http://support.apple.com/kb/ht3529
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Cheers,
    - Judy

  • RMAN can't SET NEWNAME for datafiles added after Level 1

    Version: 11.2.0.3
    Platform : Solaris 10
    I have the most recent Level 0 , Level 1 and post-L1 Archive logs of the source DB.
    I am trying restore, recover in a different machine using plain RMAN (not RMAN DUPLICATE) into a new datafile location.
    After the Level 1 backup was taken, 2 datafiles (namdata01.dbf, finaldata01.dbf) were added ( this got 'recorded' on the subsequent post-L1 archivelogs )
    Before I ran restore and recover, I restored the latest control file from the most recent L1
    RMAN> restore controlfile from '/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk' ;Understandably, this control file doesn't have info about the 2 datafiles added after L1 .Wish I could restore control file from archive log :)
    So, I cataloged the archive logs as well using CATALOG command.
    RMAN> catalog start with '/u01/CATALOGTST/rmanBkpPieces';
    using target database control file instead of recovery catalog
    searching for all files that match the pattern /u01/CATALOGTST/rmanBkpPieces
    List of Files Unknown to the Database
    =====================================
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_08njqj8u_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc
    File Name: /u01/CATALOGTST/rmanBkpPieces/06njqj6h_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/09njqj90_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0anjqk3b_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
    Do you really want to catalog the above files (enter YES or NO)? YES
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_08njqj8u_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc                         -------------------> arch logs that contain info on the new datafiles
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc                         -------------------> arch logs that contain info on the new datafiles
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc                          -------------------> arch logs that contain info on the new datafiles
    File Name: /u01/CATALOGTST/rmanBkpPieces/06njqj6h_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/09njqj90_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0anjqk3b_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
    RMAN> EXITDuring Recovery , RMAN applied the archive logs and managed to create the datafiles successfully. But it can't restore the datafiles to the new location specified in the SET NEWNAME location. Luckily , I had created the original path and these 2 datafiles got restored there.
    RMAN can't seem enforce SET NEWNAME for datafiles added after Level 1 backup despite cataloging.
    Does SET NEWNAME .... thing work only for RESTORE ?
    Log of restore and recover
    $ cat restore-recover.txt
    run
    set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
    set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
    restore database;
    switch datafile all;
    switch tempfile all;
    recover database;
    $
    $ rman target / cmdfile=restore-recover.txt
    Recovery Manager: Release 11.2.0.3.0 - Production on Sun Sep 16 21:27:49 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SNTCDEV (DBID=2498462290, not open)
    RMAN> run
    2> {
    3> set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
    4> set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
    5> restore database;
    6> switch datafile all;
    7> switch tempfile all;
    8> recover database;
    9> }
    10>
    11>
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 16-SEP-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=18 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /u01/app/CLONE1/oradata/sntcdev/system01.dbf
    channel ORA_DISK_1: restoring datafile 00002 to /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    channel ORA_DISK_1: restoring datafile 00003 to /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    channel ORA_DISK_1: restoring datafile 00004 to /u01/app/CLONE1/oradata/sntcdev/users01.dbf
    channel ORA_DISK_1: restoring datafile 00005 to /u01/app/CLONE1/oradata/sntcdev/example01.dbf
    channel ORA_DISK_1: restoring datafile 00006 to /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    channel ORA_DISK_1: failover to piece handle=/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk tag=TAG20120828T234834
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:35
    Finished restore at 16-SEP-12
    datafile 1 switched to datafile copy
    input datafile copy RECID=8 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/system01.dbf
    datafile 2 switched to datafile copy
    input datafile copy RECID=9 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    datafile 3 switched to datafile copy
    input datafile copy RECID=10 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    datafile 4 switched to datafile copy
    input datafile copy RECID=11 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/users01.dbf
    datafile 5 switched to datafile copy
    input datafile copy RECID=12 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/example01.dbf
    datafile 6 switched to datafile copy
    input datafile copy RECID=13 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    renamed tempfile 1 to /u01/app/CLONE1/oradata/sntcdev/temp01.dbf in control file
    Starting recover at 16-SEP-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting incremental datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00001: /u01/app/CLONE1/oradata/sntcdev/system01.dbf
    destination for restore of datafile 00002: /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    destination for restore of datafile 00003: /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    destination for restore of datafile 00004: /u01/app/CLONE1/oradata/sntcdev/users01.dbf
    destination for restore of datafile 00005: /u01/app/CLONE1/oradata/sntcdev/example01.dbf
    destination for restore of datafile 00006: /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    channel ORA_DISK_1: failover to piece handle=/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk tag=TAG20120829T000356
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    starting media recovery
    archived log for thread 1 with sequence 13 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc
    archived log for thread 1 with sequence 14 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc
    archived log for thread 1 with sequence 15 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc
    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=12
    channel ORA_DISK_1: reading from backup piece /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
    channel ORA_DISK_1: piece handle=/u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1 tag=TAG20120829T000454
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    archived log file name=/u01/archLogs/arch_1_12_790513173.arc thread=1 sequence=12
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc thread=1 sequence=13
    creating datafile file number=7 name=/u01/app/oradata/sntcdev/namdata01.dbf
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc thread=1 sequence=13
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc thread=1 sequence=14
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc thread=1 sequence=15
    creating datafile file number=8 name=/u01/app/oradata/sntcdev/finaldata01.dbf
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc thread=1 sequence=15
    unable to find archived log
    archived log thread=1 sequence=16
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 09/16/2012 21:29:51
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 16 and starting SCN of 1004015
    Recovery Manager complete.
    $
    $
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Sun Sep 16 21:30:04 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select name from v$datafile;
    NAME
    /u01/app/CLONE1/oradata/sntcdev/system01.dbf
    /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    /u01/app/CLONE1/oradata/sntcdev/users01.dbf
    /u01/app/CLONE1/oradata/sntcdev/example01.dbf
    /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    /u01/app/oradata/sntcdev/namdata01.dbf           ----------------------> restored to old location ignoring SET NEWNAME ....
    /u01/app/oradata/sntcdev/finaldata01.dbf         ----------------------> restored to old location ignoring SET NEWNAME ....
    8 rows selected.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ cd /u01/app/oradata/sntcdev            # -----------------------------> the old location
    $
    $ ls -alrt
    total 243924
    drwxr-xr-x   3 oracle   oinstall     512 Aug  5 10:55 ..
    drwxr-xr-x   2 oracle   oinstall     512 Sep 16 20:59 .
    -rw-r-----   1 oracle   oinstall 104865792 Sep 16 21:29 namdata01.dbf
    -rw-r-----   1 oracle   oinstall 19931136 Sep 16 21:29 finaldata01.dbf

    RMAN> run
    2> {
    3> set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
    4> set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
    5> restore database;
    6> switch datafile all;
    7> switch tempfile all;
    8> recover database;
    9> }RMAN executes the commands in the run block stepwise. In your case, starting from "set newname for database..." and lastly executing "recover database...".
    Let me interpret it for you.
    1. You restored the controlfile from the L1 backup which does not have any information about the 2 newly added datafiles. You cataloged the backuppieces and the archives to this controlfile, which means that the controlfile would now be aware that the required backups and archives are in this cataloged location.
    2. You set newname for database to the desired location, thereby this command is executed restoring the database from the L0 and L1 backups. (These 2 backups do not have any information about the newly added datafiles and hence the 2 files would still not be restored).
    3. You execute restore database which restores the files from L0 and L1 backup.
    4. Switch datafile all, this renames all the files that were restored in the previous steps to the desired name/location that was mentioned in step 2.
    5. Recover database: This is where the archivelogs come into picture. The data in the archives would be created & recovered. The newly added datafiles are now created & recovered but RMAN does not go back to STEP 2 and STEP 4 to re-execute the commands in STEP2 and STEP4 to restore it to the desired location (STEP 2) and Rename it (STEP 4). The files will have to renamed later by moving them manually to the location that you require.
    So, RMAN does not execute the SET NEWNAME for datafiles which were added after the backup as the information about these files do not exist in the RMAN backuppieces.

  • RemoveChild for movie clip that was added in another function?

    Hello everyone.  I have 3 different functions for my preloader.  I have an Event.OPEN, ProgressEvent.PROGRESS, and an Event.COMPLETE.  In the event.OPEN function, I create a new variable that is data typed to the class name of my preloader that I set in it's property dialogue box.  This is just a simple circle animation.  Below is my code for it:
    function addPreloader(event:Event):void
        var myPreloader:mcPreloader = new mcPreloader();
        myPreloader.x = stage.stageWidth / 2;
        myPreloader.y = stage.stageHeight / 2;
        myPreloader.width = 75;
        myPreloader.height = 75;
        addChild(myPreloader);
    My ProgressEvent.PROGRESS function looks like so:
    function preloadImages(event:ProgressEvent):void
        var percent:Number = Math.round(event.bytesLoaded / event.bytesTotal * 100);
        percent_txt.text = percent + "%";
    and my Event.COMPLETE function looks like so:
    function imageLoaded(event:Event):void
        var myLoadedImage:Loader = Loader(event.target.loader);
        addChild(myLoadedImage);
        new Tween(myLoadedImage, "alpha", Strong.easeIn, 0, 1, 0.5, true);
        event.target.loader.removeEventListener(Event.OPEN, addPreloader);
        event.target.loader.removeEventListener(ProgressEvent.PROGRESS, preloadImages);
        event.target.loader.removeEventListener(Event.COMPLETE, imageLoaded);
    The only problem is that when it's done loading, I'd like to remove the myPreloader from the stage.  Since it is declared in the Event.OPEN function, I can't communicate with it via my Event.COMPLETE function.  How can I successfully remove it from the stage after it's done loading?  Thanks!
    Jesse

    Duh, thanks Kglad.  It's been a long week ;).
    Jesse
    Date: Thu, 9 Jun 2011 13:47:57 -0600
    From: [email protected]
    To: [email protected]
    Subject: removeChild for movie clip that was added in another function?
    var myPreloader:mcPreloader
    function addPreloader(event:Event):void
       myPreloader = new mcPreloader();
        myPreloader.x = stage.stageWidth / 2;
        myPreloader.y = stage.stageHeight / 2;
        myPreloader.width = 75;
        myPreloader.height = 75;
        addChild(myPreloader);
    My ProgressEvent.PROGRESS function looks like so:
    function preloadImages(event:ProgressEvent):void
        var percent:Number = Math.round(event.bytesLoaded / event.bytesTotal * 100);
        percent_txt.text = percent + "%";
    and my Event.COMPLETE function looks like so:
    function imageLoaded(event:Event):void
    removeChild(myPreloader);
    myPreloader=null;
        var myLoadedImage:Loader = Loader(event.target.loader);
        addChild(myLoadedImage);
        new Tween(myLoadedImage, "alpha", Strong.easeIn, 0, 1, 0.5, true);
        event.target.loader.removeEventListener(Event.OPEN, addPreloader);
        event.target.loader.removeEventListener(ProgressEvent.PROGRESS, preloadImages);
        event.target.loader.removeEventListener(Event.COMPLETE, imageLoaded);
    >

  • Typing on the Internet here and on Twitter  extra spaces  are added.

    Typing on Twitter  and on this website now, extra spaces are added at the beginning of where I started  dictating.  They are added it  at the moment  the dictation  microphone is switched off. It does not happen on Quick Drafts and on the notepad that came with the iPad. It did not happpen now with regular typing. On  Twitter the cursor starts out in strange places  including outside the box that you write in. And that is unrelated to dictation. Once I start typing it moves into the correct position.  This started after I updated to 8.3. And after Twitter stop letting iPads use the desktop site. But might be unrelated to both.

    You are my hero!    On the Twitter thing. (Still need a dictation hero. ) So happy to have that back.    One additional piece of info. I did what you said on the mobile site. So somebody in my in my boat can just go to Twitter on the mobile site and then do the touch the address bar pulldown thing. Which is even easier. Thank you so much!   

  • HT204187 Email account does not work on the Mac but works on my iPad and iPhone. The account information was added on the Mac. I keeps rejecting my password.

    I have seral email accounts on my Mac. One does not work on the Mac but works on my iPad and iPhone. The account information was added on the Mac. I keeps rejecting my password.

    You don't input the information in manually for iCloud mail. It is automatically set up for you when you sign into iCloud via System Preferences and choose the Mail checkbox. Sign out of iCloud or deselect Mail in iCloud preferences. Open Mail's preferences and choose accounts tab. If iCloud account still exists in the list, delete it. Sign back into iCloud or check the box for mail. The account will be auto created for you.

  • Updated to 7.0.6 on my iPhone 5s and now my phone is all out of whack. It won't sync the new playlists I added after the update though when it's plugged into iTunes it says it's synced. Help please!

    So I updated my iPhone 5s to version 7.0.6 yesterday, and now my iPhone music isn't working properly. It won't sync the playlists that I added after the update though when it's plugged in on iTunes it says that the music is synced. When I select a song in a playlist on the phone it shuffles through the playlists for like 3 seconds and picks a totally different song to play. I tried reinstalling iTunes, I tried restoring the iPhone, is it just a bug with the update? Nothing works. Any solutions are welcome.

    DFU mode? How do I do that? So far the only thing I can do is hold down both buttons to power it on and nothing is on the screen and it wont reconize on my computer....

Maybe you are looking for