Invalid streaming server destination.

I'm getting this error:
Player error:
Invalid streaming server destination.
Please try again later.
Occurred with userGUID:
8fd2977f-cb33-zzzz-xxxxxxxxxxx
Clip ID: 78d46377-27fb-4b08-yyyy-xxxxxxxxxxx
Flash Player Version: WIN 9,0,124,0
Please include as much additional information about your
computer as possible by filling in the following information:
Web Browser and Version #: Avant Browser Version 11.6 Build
13 (basically runs as a skin utilizing most of IE 7)
Operating System and Version #: XP SP3
Total System RAM Installed: 1GB
Free Hard Drive Space Available: 2GB
Any help please?

Hello
ECDS , is a system which consists of service routers , service engines ,etc . When user sends a request for video the service router will be responsibe with integration (DNS) will hendle the requests from user after that will send these requests to service engines and so  on  , for more details . Please find the below links which will help
http://www.cisco.com/en/US/products/ps11281/Products_Sub_Category_Home.html
http://www.cisco.com/en/US/prod/collateral/video/ps11281/solution_overview_c25-677672_ps11854_Product_Solution_Overview.html
Thank you

Similar Messages

  • ORA-16009: invalid redo transport destination;

    Dear friends.
    I am trying to set up phycial standby in Oracle 11g on linux in vmware.
    Everything seems to fine but The configuration is not taking effect.
    An error cropping repeatedly
    ORA-16009
    I am putting the errors and some of the contents.
    Standby System
    archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /disk1/oradata/arch
    Oldest online log sequence 2
    Next log sequence to archive 3
    Current log sequence 3
    Production System
    atabase log mode Archive Mode
    Automatic archival Enabled
    Archive destination /disk1/oradata/arch
    Oldest online log sequence 8
    Next log sequence to archive 9
    Current log sequence 9
    on Client Errors:
    ORA-16009: invalid redo transport destination
    PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
    Fri May 04 22:45:54 2012
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
    ORA-16009: invalid redo transport destination
    PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
    Fri May 04 22:47:45 2012
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
    ORA-16009: invalid redo transport destination
    PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
    Fri May 04 22:49:48 2012
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
    ORA-16009: invalid redo transport destination
    PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
    Fri May 04 22:51:40 2012
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
    ORA-16009: invalid redo transport destination
    PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
    On Production System Errors:
    ORA-16009: invalid redo transport destination
    Fri May 04 22:47:37 2012
    Error 1034 received logging on to the standby
    Fri May 04 22:47:48 2012
    RFS[43]: Assigned to RFS process 17922
    RFS[43]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
    RFS[43]: Client instance is standby database instead of primary
    RFS[43]: Not using real application clusters
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_17922.trc:
    ORA-16009: invalid redo transport destination
    Fri May 04 22:49:17 2012
    Destination LOG_ARCHIVE_DEST_2 is UNSYNCHRONIZED
    Thread 1 advanced to log sequence 14 (LGWR switch)
    Current log# 2 seq# 14 mem# 0: /disk1/oradata/oracldir/redolog2.log
    Fri May 04 22:49:18 2012
    Archived Log entry 17 added for thread 1 sequence 13 ID 0x2a7a0eb4 dest 1:
    Fri May 04 22:49:50 2012
    RFS[44]: Assigned to RFS process 17999
    RFS[44]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
    RFS[44]: Client instance is standby database instead of primary
    RFS[44]: Not using real application clusters
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_17999.trc:
    ORA-16009: invalid redo transport destination
    Fri May 04 22:51:42 2012
    RFS[45]: Assigned to RFS process 18057
    RFS[45]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
    RFS[45]: Client instance is standby database instead of primary
    RFS[45]: Not using real application clusters
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_18057.trc:
    ORA-16009: invalid redo transport destination
    Fri May 04 22:52:00 2012
    Error 1034 received logging on to the standby
    Fri May 04 22:52:32 2012
    Error 1034 received logging on to the standby
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc2_17414.trc:
    ORA-01034: ORACLE not available
    FAL[server, ARC2]: FAL archive failed, see trace file.
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc2_17414.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing
    ORACLE Instance orcl3 - Archival Error. Archiver continuing.
    Fri May 04 22:53:42 2012
    RFS[46]: Assigned to RFS process 18115
    RFS[46]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
    RFS[46]: Client instance is standby database instead of primary
    RFS[46]: Not using real application clusters
    Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_18115.trc:
    ORA-16009: invalid redo transport destination

    OK;
    I see several issues. Will post results back here in a Moment.
    Primary
    Missing several parameters :
    FAL_SERVER
    DB_UNIQUE_NAME
    LOG_ARCHIVE_DEST_STATE_1 ( should be ENABLE )
    LOG_ARCHIVE_DEST_STATE_2 ( should be ENABLE )
    Incorrect settings
    log_archive_dest_1
    log_archive_dest_2
    YOURS
    log_archive_dest_1="location=/disk1/oradata/arch"
    EXAMPLE FROM MINE
    log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY'
    YOURS
    log_archive_dest_2="Service=to_orcl1 lgwr sync affirm reopen=3"
    EXAMPLE FROM MINE
    log_archive_dest_2='SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
    Standby
    Missing several parameters :
    LOG_ARCHIVE_DEST_STATE_1 ( should be ENABLE )
    LOG_ARCHIVE_DEST_STATE_2 ( should be DEFER )
    FAL_SERVER
    DB_UNIQUE_NAME
    Incorrect settings
    log_archive_dest_1
    log_archive_dest_2
    (similar to primary issues)
    Summary
    OK, this is way off. I don't in any way want to be unprofessional or rude but I'm not sure how to help without wasting you time or mine. So I'm going to take a few educated guesses and hope I'm helping you.
    First I have a short note on how to do this here :
    http://www.visi.com/~mseberg/data_guard_on_oracle_11_step_by_step.html
    Second, you really need to understand the Oracle parameters needed by Data Guard so I would ask you read :
    Data Guard Concepts and Administration 11g Release 2 (11.2) E10700-02
    The section in chapter 3 "Set Primary Database Initialization Parameters"
    Third, you say vmware. By that do you mean two separate vmware servers? A Primary and a Standby of something else?
    More details here might help. Vmware is fine, but if I'm setting this up I want two Servers, one for the Primary and one for the Standby database.
    Will still post the details of Standby INIt ASAP
    Best Regards
    mseberg
    Edited by: mseberg on May 4, 2012 12:48 PM
    Edited by: mseberg on May 4, 2012 1:43 PM

  • Java.io.StreamCorruptedException: invalid stream header

    I am having a problem with sending two objects (over a socket). I have read in other posts that this could be due to trying to receive incompatible data types but my applications work fine if I send my objects synchronously rather than asynchronously.
    I will try my best to describe what my problem is as my code is very long.
    I have a server and a client application (2 apps). Multiple clients connect to the server and send their details (as an object) to the server. The server then amends the object (adds some more data) and sends it back to the clients. Both the SendObject and ReceiveObject class are threads and I have created a Listener (within the client) that activates when an object is received (asynchronous communication). The Listener method looks to see if the event is an instance of a particular class and casts is as appropriate (as per below).
    public void receivedObject(ReceivedObjectEvent e) {
         ReceiveObjectThread obj = (ReceiveObjectThread) e.getObject();
         if(obj.getObject() instanceof Player) {
              thePlayer = (Player) obj.getObject();
              theTable.setHandData(thePlayer.getHand());
         if(obj.getObject() instanceof GameData) {
              gameData = (GameData) obj.getObject();
              theTable.setPlayerList(gameData.getOpponents());
    }The objects that are passed between applications both implement Serializable.
    This all works fine synchronously object passing. However, if I try and spawn two sendObject threads within the server and the corresponding two receive threads within the client and wait for the Listener to activate (asynchronously) I get the following error:
    java.io.StreamCorruptedException: invalid stream header: 00057372
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
         at ReceiveObjectThread.run(ReceiveObjectThread.java:84)
    java.io.StreamCorruptedException: invalid stream header: ACED0006
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
         at ReceiveObjectThread.run(ReceiveObjectThread.java:84)
    I am sure that this problem is due to my limited knowledge on socket and data transfer. Therefore any help on this one will be gratefully received.

    Hello ejp, your reply is very much appreciated.
    If I explain how I have implemented my sockets you may be able to see where I wrong.
    When a player connects, the client sends the server a �player� object. The server receives the �player� object and passes the socket from which it connected (within the server) to a socket property within the �player� class. Whenever the server needs to send an object to that client (player), it sends the output stream from the socket property within that �player� object. ( player.getSocket().getOutputStream() ).
    Below is the code from the �SendObjectThread� class.
    * This class allows an object to be passed over a Socket
    * @author Harold Clements
    * @version 1.0.1 12-Jun-2007 (12-Jul-2007)
    //http://www.seasite.niu.edu/cs580java/Object_Serialization.html
    public class SendObjectThread extends Thread {
         private OutputStream out;
         private Object obj;
          * This constructor allows the user to passes the two parameters for transmitting.
          * @param out The data stream that the object is going to be sent to.
          * @param obj The object to be sent.
         public SendObjectThread(OutputStream out, Object obj) {
              this.out = out;
              this.obj = obj;
          * The main thread
         public void run() {
              try {
                   ObjectOutputStream objOut = new ObjectOutputStream(out);
                   objOut.writeObject(obj);
                   objOut.flush();
              } catch (IOException e) {
                   e.printStackTrace();
    }The client only has one socket which is defined when the client first makes a connection with the server. The �getOutputStream()� and �getInputStream()� are used for all communication from the client.
    Is this what you described in your first option?
    The funny thing about it all is if I create a new �receiveObjectTread� and wait for that to finish, then create another �receiveObjectTread� both objects in question (Player and GameData) are received correctly and the application works. I only have the problem when I set both threads off and leave it for the �ReceivedObjectEvent� listener to pick them up and cast them (as per my first post).
    Thanks again for your help,
    Harold Clements

  • Send email by BDK API, get 500:"Invalid stream ID specified" error

    I am sending a simple email without attachment by BDK in 2.1 by following main three steps:
    1. login the server and get the anticsrf string.
    2. upload the email body content with URI:
    http://IP:Port/comb/v1/d/session/upload?uploadscope=25589676100454&content_id=25589676080060&anticsrf=zhu8nv%2BX%2FsA%3D
    3. send the mail with URI:
    http://IP:Port/comb/v1/d/emsg/send?uploadscope=25589676100454&debug=true&anticsrf=zhu8nv%2BX%2FsA%3D.
    In the third step, the server response 500 error and capture the server response package as following:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><obh:restFault xmlns:obr="http://www.oracle.com/beehive/rest" xmlns:obh="http://www.oracle.com/beehive"><obh:fault><obh:debugInformation><obh:serviceInstanceId>814dc480-dbc7-4e8f-a6fb-59808adadb4c</obh:serviceInstanceId><obh:stackTrace>java.lang.RuntimeException: Invalid stream ID specified: MjU1ODk2NzYwODAwNjA=
    at oracle.ocs.mail.csi.stream.EmailOperationContextImpl.getOutputStream(EmailOperationContextImpl.java:96)
    at oracle.beehive.platform.rest.resource.hui.stream.StreamInMethod.action(StreamInMethod.java:178)
    at oracle.beehive.platform.rest.core.Mauna.doRequest(Mauna.java:463)
    at oracle.beehive.platform.rest.servlet.LahainaServlet.doRequest(LahainaServlet.java:60)
    at weblogic.servlet.http.AbstractAsyncServlet.service.....
    My question is what steam id is used for, where to set the stream id and what kind of stream id is right?
    Thanks in advance!
    Edited by: user13304957 on May 9, 2011 12:53 AM

    find the answer,
    for sending an email, first, "upload scope" value in upload body and send msg should be the same, second, and the last, in the sending msg step, the StreamedSimpleContentUpdater.contenStreamID should be the same as content id used in uploading body.

  • Need Help With: java.io StreamCorruptedException invalid stream header

    All:
    1. For some time I have tried to correct an error: "java.io StreamCorruptedException invalid stream header" , reoccuring in Jasper Reports source code.
    2. Based upon requirements, The Program packages variables into a HashMap, and creates a "BLOB" object which is inserted into an Oracle database. At a later point, the BLOB object is retrieved, and the "BLOB" contents are read into a byte array. The next occurring task is to retrieve data from the receiving byte array and reconstitute the original HashMap object.
    THIS IS WHEN THE PROGRAM FAILS !!!!!
    3. I can verify the number of bytes going in/out of the "BLOB" object as being the same count. I have tried different approaches listed on diverse sites w/o success. My Source Code Follows:
    // I tried to include only germane source code.
    // THIS SECTION GETS THE BLOB OBJECT AND PUTS IT INTO A BYTE //ARRAY
    rs = ps.executeQuery();
    if (rs.next())
    BLOB myblob =((OracleResultSet)rs).getBLOB("JASPERDATA");
    int chunkSize = myblob.getChunkSize();
    System.out.println("Incomming DATA size is ........." + chunkSize);
    textbuffer = new byte[chunkSize];
    int bytesRead;
    InputStream myis = myblob.getBinaryStream();
    OutputStream myout = myblob.getBinaryOutputStream();
    while((bytesRead = myis.read(textbuffer) )!= -1)
    myout.write(textbuffer);
    myout.flush();
    "" //code not germane to Discussion
              return (textbuffer); //Returns Byte Array
    // I tried to include only germane source code.
    byte [] textbuffer = adb.getBLOBFromQueue(dataFile); // Get Byte Array from above.
    int textbufferLength = textbuffer.length;
              HashMap localParamValueMap = null;
              Object in = new ObjectInputStream(new ByteArrayInputStream(textbuffer ));
              localParamValueMap = (HashMap) ((ObjectInputStream) in).readObject(); // THIS IS THE PROBLEM AREA EXCEPTION OCCURS AT "readObject"
    // ERROR RECEIVED IN TOMCAT
    //ERROR CALLSTACK
    java.io.StreamCorruptedException: invalid stream header
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
         at com.entservlet.DisplayJasperReports.doGet(DisplayJasperReports.java:72)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)

    Be sure that you are not seeing a secondary problem.
    In my case, with serialized objects back to the client, the client will see this expection when any of the following occurs:
    1) The server has timed out the session and instead of sending back an object, the object stream is seeing the login page.
    2) An error is occured somewhere inside of the jsp code and instead of getting a the expected serailized object in the stream, I'm getting the 500 status page...
    So...
    In your case you are going from one server to tomcat but I wouldn't be surprised if something similar is going on.
    -Dennis

  • Problem with StreamCorruptedException: invalid stream header: 3C68746D

    Hi
    I am attempting to code a project in Java which involves the user of object serialization to send a String via serialization from an applet embedded in a JSP tp a servlet all files are running on the same machine for testing purposes.
    However I seem to be getting StreamCorruptedException: invalid stream header: 3C68746D whenever I attempt to read the inputstream once I have written to it.
    My code is as follows below (I apologise for the lack of details I have attempted to comment and simplify my code as much as possible for improved readability)
    ////////////////////////APPLET CODE////////////////
    import java.io.*;
    import java.io.Serializable;
    import javax.servlet.http.*;
    import java.applet.*;
    import javax.swing.*;
    import java.net.*;
    *Compiled using netbeans 5.1
    *Uses Apache server embedded with netbeans
    *JSP address http://localhost:8084/TestServ
    *Applet is embedded within this page
    *Servlet address http://localhost:8084/TestServ/TServ
    public class Main extends javax.swing.JApplet {
    JFrame jf;//frame for the test applet
    JTextArea jt;//result text box
    public Main() {
    jt=new JTextArea();//set up applet
    this.add(jt);
    URL servletURL;
    HttpURLConnection servletConnection;
    InputStream iStream=null;
    try
    {   //this address as far as is known is correct
    servletURL = new URL( "http://localhost:8084/TestServ/TServ" );
    //open connection to servlet
    servletConnection = (HttpURLConnection)servletURL.openConnection();
    //set up connection
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    servletConnection.setUseCaches(false);
    servletConnection.setDefaultUseCaches(false);
    //have tried "GET" and "POST" and "PUT"(PUT not directly compatible with apache servers)
    servletConnection.setRequestMethod("POST");
    servletConnection.setRequestProperty("Content-type","application/octet-stream");
    /*Have also tried application/x-java-serialized-object*/
    //set object output stream
    ObjectOutputStream outStream =
    new ObjectOutputStream(servletConnection.getOutputStream());
    //write a string for test purposes (As far as I am aware String implements Serializable)
    outStream.writeObject("h");
    //flush and close connection
    //have tried a combination of flush and/or close
    outStream.flush();
    outStream.close();
    //get input stream rdy for objectinput stream
    iStream = servletConnection.getInputStream();
    catch(IOException e)
    jt.setText("Error in output "+e);
    ObjectInputStream oInStream=null;
    String str = iStream.toString();
    //iStream at this point equals ""sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@6754d6
    try
    //this is where the error occurs
    //upon even trying to create a objectinputstream using iStream IOException occurs
    oInStream = new ObjectInputStream(iStream);
    //program does not get any further
    oInStream.close();
    catch(IOException e)
    //this error has been driving me crazy :(
    jt.setText("Error in input "+e);
    Servlet code is below however it does not even reach this point
    (If reading input stream is removed from the applet the servlet provides the same error message)
    /////////////////////Servlet code (however does not reach this point)///////////////
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TServ extends HttpServlet {
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    ObjectInputStream inputFromApplet = null;
    InputStream in = request.getInputStream();
    BufferedReader inTest = null;
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet TServ</title>");
    out.println("</head>");
    out.println("<body>");
    try
    inputFromApplet = new ObjectInputStream(in);
    out.println("<h2>Sucess </h1>");
    catch(EOFException e)
    out.println("<h3>ERROR: " e " Error</h3>");
    out.println("<h3>End Servlet</h3>");
    out.println("</body>");
    out.println("</html>");
    out.close();
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    public String getServletInfo() {
    return "Short description";
    Thank you for your time I have searched for an answer for some time now and how found people in similar situations however no solution has been found
    Any help is appreciated
    Az

    The servlet isn't writing any objects back in reply. It is writing text. Not the same thing. If you want to read using an ObjectInputStream you have to write using an ObjectOutputStream.

  • Invalid stream header exception

    hi all
    I have a program to encrypt/decrypt a file using existing secret key
    which is generated by my java code and it works fine. I got a key from a friend and an encrypted file to decrypt it but the program throws this exception:
    java.io.StreamCorruptedException: invalid stream header: 87449FAA
    Exception in thread "main" java.security.InvalidKeyException: No
    installed provider supports this key: (null) this is my code:
    try
        //throws exception here
        ObjectInputStream in = new ObjectInputStream(new
    FileInputStream("key.dat"));
        key = (SecretKey)in.readObject();
        byte[] raw = key.getEncoded();
        skeySpec = new SecretKeySpec(raw, "AES");
        in.close();
    catch (Exception e)
        System.out.println(e);
    Cipher cipher = Cipher.getInstance("AES");
    cipher.init(Cipher.DECRYPT_MODE, skeySpec); Honestly i don't know how my friend creates the secret key but i think he uses some key generation tools. I suppose the key file is not corrupted because he used it to encrypt/decrypt other files.

    Looks like your friend did not use Java serialization to save the key in the file.
    Edited by: sabre150 on Apr 13, 2008 5:27 PM

  • Invalid stream header Exception - AES PBE with SealedObject

    I am trying to do an PBE encryption with AES algorithm and SunJCE provider, using the SealedObject class to encrypt/decrypt the data...
    And Im still getting the "invalid stream header" exception. Ive searched this forum, readed lots of posts, examples etc...
    Here is my code for encryption (i collected it from more classes, so hopefully I didnt forget anything...):
        //assume that INPUT_STREAM is the source of plaintext
        //and OUTPUT_STREAM is the stream to save the ciphertext data to
        char[] pass; //assume initialized password
        SecureRandom r = new SecureRandom();
        byte[] salt = new byte[20];
        r.nextBytes(salt);
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");
        Cipher ciph = Cipher.getInstance("AES/CTR/NoPadding");
        ciph.init(Cipher.ENCRYPT_MODE, key);
        ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
        int ch;
        while ((ch = INPUT_STREAM.read()) >= 0) {
          byteOut.write(ch);
        SealedObject sealed = new SealedObject(byteOut.toByteArray(), ciph);
        BufferedOutputStream bufOut = new BufferedOutputStream(OUTPUTSTREAM);
        ObjectOutputStream objOut = new ObjectOutputStream(bufOut);   
        objOut.writeObject(sealed);
        objOut.close();
      }And here is my code for decrypting:
        //assume that INPUT_STREAM is the source of ciphertext
        //and OUTPUT_STREAM is the stream to save the plaintext data to
        char[] pass; //assume initialized password
        SecureRandom r = new SecureRandom();
        byte[] salt = new byte[20];
        r.nextBytes(salt);
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");
        BufferedInputStream bufIn = new BufferedInputStream(INPUT_STREAM);    //MARK #1
        ObjectInputStream objIn = new ObjectInputStream(bufIn);   
        SealedObject sealed = (SealedObject) objIn.readObject();   
        byte[] unsealed = (byte[]) sealed.getObject(key);          //MARK #2
        ByteArrayInputStream byteIn = new ByteArrayInputStream(unsealed);
        int ch;
        while ((ch = byteIn.read()) >= 0) {
          OUTPUT_STREAM.write(ch);
        OUTPUT_STREAM.close();Everytime I run it, it gives me this exception:
    Exception in thread "main" java.io.StreamCorruptedException: invalid stream header: B559ADBE
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
         at javax.crypto.SunJCE_i.<init>(DashoA13*..)
         at javax.crypto.SealedObject.unseal(DashoA13*..)
         at javax.crypto.SealedObject.getObject(DashoA13*..)
         at oopsifrovanie.engine.ItemToCrypt.decrypt(ItemToCrypt.java:91)  //MARKED AS #2
         at oopsifrovanie.Main.main(Main.java:37)    //The class with all code below MARK #1I've also found out that the hashCode of the generated "key" object in the decrypting routine is not the same as the hashCode of the "key" object in the ecrypting routine. Can this be a problem? I assume that maybe yes... but don't know what to do...
    When I delete the r.nextBytes(salt); from both routines, the hashCodes are the same, but that's not the thing I want to do...
    I think, that the source of problem can be this part of code (generating the key):
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");But I derived it from posts like: [http://forums.sun.com/thread.jspa?threadID=5307763] and [http://stackoverflow.com/questions/992019/java-256bit-aes-encryption] and they claimed it's working there...
    Is there anyone that can help me?
    Btw, I don't want to use any other providers like Bouncycastle etc. and I want to use PBE with AES and also SealedObject to store the parameters of encryption...

    Yes, it really uses only one Cipher object, but it does decoding in a little nonstandard (not often used) way, by using the SealedObject class and its getObject(Key key) method. You can check these links for documentation: [http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#SealedObject] and [http://java.sun.com/javase/6/docs/api/javax/crypto/SealedObject.html] So the question is, why it doesn't work also with the AES routines, because it should.
    Btw, according to [http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html#SunJCEProvider] PBEWithSHA1AndDESede/CBC/PKCS5Padding is a valid JCE algorithm for the Cipher class.
    Firstly, I was generating the key for AES enc./decryption this way and it was working:
    char[] pass; //assume initialized password
    byte[] bpass = new byte[pass.length];
        for (int i = 0; i < pass.length; i++) {
          bpass[i] = (byte) pass;
    SecretKeySpec key = new SecretKeySpec(bpass, "AES");
    But I think, that it really wasn't secure, so I wanted to build a key from the password using the PBE.
    Maybe there's also a way how to do this part of my AES PBE algorithm: *KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);* manually (with my own algorithm), but I dont know how to do it and I'd like it to be really secure.
    Btw, thanks for your will to help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do I create a JMF streaming server with QuickTime Web Client?

    Can anyone give me some pointers on how to create a JMF streaming server and user can type in a rtsp URL on the web browser and be able to view the streaming video in QuickTime player?
    thanks

    JMF does not have RTSP server capabilities built-in. You would have to program the RTSP request-response protocol yourself.

  • Invalid Directory Server

    When adding a new connector view I am receiving the following error message in the Meta-Directory console:
    Invalid directory server.
    Meta-Directory requires Sun ONE Directory Server 4.1 or higher.
    Please install and specify the correct version
    We are using Meta-Directory 5.1.1 and Directory Server 5.2P4.
    Any help is much appreciated.
    Thanks,
    Jeff Norton

    Do you know when 5.1.1 is scheduled to be released?
    Meta-Directory 5.1 does not support Directory Server
    5.2
    The upcoming Meta-Directory 5.1.1 will support
    Directory Server 5.2
    You'll need to upgrade.
    - Paul

  • Where did the Quicktime streaming server go??

    It looks as if the Quicktime streaming server is gone for good - apparently it is not part of the Lion server install, and it can't be found on the Apple web site either. There is a page for it, but it doesn't actually provide any useful information.
    Does anyone has any idea what happened to this technology?

    Hello! I said... I want the ability to input analogue video into my camcorder so I can continue to transfer VHS and input and record video from other sources. The new HD cameras on the market will not allow you to record video from any source except for the lens.
    I have HD cable box. I want to record my HD programs from cable (HBO, Starz, etc) to my camera, download the video to my Mac from the camera and then edit them in iMovie and create professional looking movie DVD's in iMovie.
    iMovie HD can work with mini DV HD cameras and HD video. I was not aware of a system requirement for working with HD content.

  • Create a Flash-DVD with videos on a streaming server

    Hello
    As I am new to this forum, I hope I found the best place for my question. I have rented a few GB's on a streaming server, becouse I plan to open a little website with dancing videos on it. I have Adobe premiere pro cs4 to cut my video and encore to build a dvd. Since the dvd menu is quite practical I would like to use encore to place exactly the same project on my servers. This is how far as i got: I changed the script file so that my flash files got uploaded to my streaming server. I loaded the index.html, flashdvd.swf and AuthoredContent.xml onto my webserver, but nothing works..... I know that my streamingserver uses Wowza software... could this be the problem? Do I need a Adobe Streaming Server???
    If you want to check the files, please don't hesitate to see www.dance-tv.ch/swidako'09/index.html This is the "progressive download" version of the project, but it seems to have the same problem as the one on the streaming server.
    Can anyone help please?
    Thank you
    Oliver

    A PNG sequence can be used if you will go through the Flash authoring app itself to add interactivity, for example. If not, or in either case, you can create a FLV (Flash video) file with alpha. This can be used directly with the Flash player on the web.
    Just pull the key with Keylight, and when it's done, Add the Comp to the Render Queue, set the Output Module's channels to RGB+Alpha and then pick Flash Video (FLV) as format, with one of the Flash 8 presets. The preset will instruct you in the comment field to adjust the stretch settings in the Output Module to the size specified by the preset.
    For more information, see Render and export a Composition as an FLV or F4V file in After Effects Help.

  • Help needed with streaming server

    hello. i work with a firm that provides hosting. one of our
    clients has asked if it was possible to use a streaming server from
    flash. now, to try it out, i've downloaded the trial version for
    the flash media server 2. i've read through the documentation, but
    i still cannot make it do what i want. as an example, i've
    downloaded the 'dynamic playlist' example. i've set it up
    completely as it's said on the site tutorial, yet i cannot connect
    with the server. before you ask, yes, the server is running and the
    application is loaded. the only thing i've really changed in the
    example is the url of the server inside the xml file. when i test
    the flash in flash pro 8, i get the message
    NetConnection.Connect.Failed, no matter what address i use, be it
    localhost, the internal ip address of the firm, or the external ip
    address for access via the net. admitted, i'm not the most
    knowledgable person on flash, but i still need to get that server
    running.
    obviously, my boss wants that server up and running as soon
    as possible. can someone help me to set it up so i can make a
    connection with the server?
    i can be reached at [email protected] thanks in advance to those
    willing to help.

    Hi,
    please try this sample:
    http://www.adobe.com/devnet/flashcom/articles/broadcast.html
    The simplest sample works like this:
    1. Create a subdirectory in your [FMS_HOME] called "tutorial"
    2. Create a subdirectory in tutorial called "streams"
    3. Create a subdirectoy in streams called "video" (or use
    _definst_)
    4. Create a flv file using Flash Video and save it in your
    "video" directory.
    The server structure should look like this:
    [FMS_HOME]
    |------- applications
    ______|---------- tutorial
    ____________|---------- streams
    ___________________|----------- video
    ___________________________|---- videoToPlay.flv
    Now you can play the stream from within your flash
    application.
    The quickest application is created like this:
    1. Create a video instance (right click in "Library" and
    select "new video", name it "video" and make sure it's action
    script controlled. Then pull it onto the stage and make sure you
    give the instance a name, e.g. "myVideo")
    2. Now you need 5 lines of code.
    // a connection
    nc = new NetConnection();
    nc.connect("rtmp://localhost/tutorial/video"); // Important:
    No / (slash) at the end
    // Create stream onto your connection
    ns = new NetStream(nc);
    // Link your display to the stream
    myVideo.attachVideo(ns);
    // myVideo is the name of your video's instance (see above)
    // play the video
    ns.play("videoToPlay");
    // videoToPlay for videoToPlay.flv
    I hope this helps!

  • How do I install Quicktime Streaming Server?

    How do I install Quicktime Streaming Server?
    Thanks
    Mac mini G4   Mac OS X (10.4.6)  

    The Apple-supported QuickTime Streaming Server only comes with Mac OS X Server. What you need it QTSS's open-source twin Darwin Streaming Server. Download that, open the disk image, and just double-click on the package file to install.

  • General query regarding the implementation of a Flash Streaming Server

    Hey lads,
    I'm looking at setting up an Adobe Flash Streaming Server at
    work. It will be used primarily to stream training videos across
    our Intranet - we have ~1000 users at the moment, with the capacity
    to expand to ~2000). We are looking at both filming with a camera
    and screencasting (using either
    Camtasia or Adobe
    Captivate) and then encoding to .FLV
    Camtasia can encode directly to FLV, however I'm not too sure
    of the quality, so the Adobe Flash Media Live Encoder looks like a
    good option too. For the time being we will just be concentrating
    on the screencasting though.
    The good thing is i can download a development server for
    free from Adobe which gives me complete access with just a
    restriction on the amount of users that can access the content
    (10).
    From what i can gather the (simple) way it works (and that
    I want it to work) is that you have a standard template SWF
    file containing relevant actionscript (sitting in most probably in
    a html/php/asp/ect file on the webserver), which then calls the FLV
    file from the flash server and streams the content to the clients
    PC. I assume i will pass a variable to the SWF file (the video ID i
    want), and that will then be used to call the corresponding FLV
    file.
    So effectively a YouTube website, i.e:
    watch?
    v=WjK6wNIWzts
    I just wanted to know if anyone had any general tips on how i
    should approach this? Obviously quality vs file size will be a big
    point - deciding on a standard FLV format will be a mission,
    however i do have the benefit of an internal network so can anyone
    recommend some good encoding tips? I was actually thinking of
    encoding a low quality and high quality version, but i don't think
    that's really sustainable/effective.
    There is a bit of documentation around for this, but they
    tend not to answer the basic questions. Am i heading in the right
    direction?
    Thanks for your help :)

    If you are not able to find older version of connector on Metalink then raise an SR with Oracle and give proper Business Justification for the same.

Maybe you are looking for

  • Insert Multiple Records into Multiple ZTABLEs inside the BAPI

    Hi, I have a requirement to Insert or Update Multiple Records into a ZTABLE inside the BAPI. Is there any special approach inside the BAPI to insert or update ZTABLEs with multiple records. It looks like the simple INSERT Statement is not working. Ca

  • F110 - picking different bank for vendor

    Hello All I facing an error where after running proposal for some vendors in proposal showing different bank not their original bank as defined in master data. please suggest some solutions? regards.

  • Suppress Redo in an imp Process in a 9i database

    Hi, i want to import a 1 Terrabyte Table. Oracle Imp will should takes 12 days. So i want to suppress the generating of redos to increase speed. How could i achieve this in a 9i database. thanks a lot Wolle

  • SNAP_NO_NEW_ENTRY Error

    Hi, i have a report wich launches a batch-input process. The thing is that i've got this SNAP_NO_NEW_ENTRY dump, when i run this report in background. I've got no idea why the program is reporting this dump, and i have no idea what's the meaning of i

  • Show Minimal Master in CRM iframe

    Hello, I've got a SharePoint 2013 (online) and a Dynamics CRM (online). I want to show a document library within a customer in an iframe. For this I have to allow framing. No problem. The problem is I want to have a minimal.master in the IFrame at CR