[b]Stream Corrupted Exception with ORACLE8i LITE[/b]

Our application on the client needs to insert word documents in the form of BLOBS in the ORACLE I LITE database.
I am using the below JDBC driver to store and retrieve the BLOB from the database and i have the ODBC driver for the Oracle LITE installed on the machine.
String jdbcURL = "jdbc:Polite:egcaspacclient";
String uid = "system";
String passwd = "***";
String driver = "oracle.lite.poljdbc.POLJDBCDriver";
But i try to read the BLOB from the database i am getting a streamCorrupted exception while reading the StreamHeader. I am using ObjectInputStream and ObjectOutputStream to store and retrieve the BLOB information.
I infact tried the same code with the ORACLE8i database and it is working.
I read some documentation that Oracle LITE supports storing the BLOBS.
I am wondering if anything wrong with the driver i am using.
Also the datatype in the BLOB column of the database is showing as undefined. But i see some information is stored to that column when i insert the BLOB.
I would appreciate if anybody provide with some clues.
Thanks
Surendra

This forum is meant for discussions about OTN content/site and services.
Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
Product forums:
http://forums.oracle.com/forums/index.jsp?cat=9
Technology forums:
http://forums.oracle.com/forums/index.jsp?cat=10
As a general guideline, please first search the forum to see if your question is already answered. You will find answers for the most frequently asked questions by simply searching the forum. This will help you to find the answer right away and will save time for all of us.

Similar Messages

  • Stream Corrupted Exception using ORACLE LITE 8i

    Our application on the client needs to insert word documents in the form of BLOBS in the ORACLE I LITE database.
    I am using the below JDBC driver to store and retrieve the BLOB from the database and i have the ODBC driver for the Oracle LITE installed on the machine.
    String jdbcURL = "jdbc:Polite:egcaspacclient";
    String uid = "system";
    String passwd = "***";
    String driver = "oracle.lite.poljdbc.POLJDBCDriver";
    But i try to read the BLOB from the database i am getting a streamCorrupted exception while reading the StreamHeader. I am using ObjectInputStream and ObjectOutputStream to store and retrieve the BLOB information.
    I infact tried the same code with the ORACLE8i database and it is working.
    I read some documentation that Oracle LITE supports storing the BLOBS.
    I am wondering if anything wrong with the driver i am using.
    Also the datatype in the BLOB column of the database is showing as undefined. But i see some information is stored to that column when i insert the BLOB.
    I would appreciate if anybody provide with some clues.
    Thanks
    Surendra

    This forum is meant for discussions about OTN content/site and services.
    Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
    Product forums:
    http://forums.oracle.com/forums/index.jsp?cat=9
    Technology forums:
    http://forums.oracle.com/forums/index.jsp?cat=10
    As a general guideline, please first search the forum to see if your question is already answered. You will find answers for the most frequently asked questions by simply searching the forum. This will help you to find the answer right away and will save time for all of us.

  • Stream Corrupted  exception BLOB + Oci driver

    Hi,
    I have used blob which is java object and using Weblogic oci driver. So far things
    are fine. I'm able to inser ,update etc.
    If i change my database charset to UTF8 i get stream corrupted Exception. I'm
    using weblogic 6 and is using its connection pool. i have added connection pool
    settings to config.xml.
    If instead of connection pool i explicitly load driver and while connecting i
    add this to properties object
    props.put("weblogic.oci.min_bind_size", "660");
    props.put("weblogic.codeset","UTF8");
    This works fine.
    Now my problem is how do i set this above mentioned properties to config.xml.
    any help will be appreciated.
    Regards
    -Sugs

    Hey suganda,
    Can you please send me the code you are using for insertion and
    retrieval. I am not able to retrieve a blob, i don't know hy
    i am using oci drivers like you. so please help
    "Soumik" <[email protected]> wrote:
    >
    Hi
    I guess what you can do is.
    Open the weblogic server console
    got to the connection pool that you have
    In the
    Propertie
    (Key=Value) textbox
    write
    weblogic.oci.min_bind_size=660
    weblogic.codeset=UTF8
    the operation will automatically write it to config.xml
    soumik
    "Sugandha" <[email protected]> wrote:
    Hi,
    I have used blob which is java object and using Weblogic oci driver.
    So far things
    are fine. I'm able to inser ,update etc.
    If i change my database charset to UTF8 i get stream corrupted Exception.
    I'm
    using weblogic 6 and is using its connection pool. i have added connection
    pool
    settings to config.xml.
    If instead of connection pool i explicitly load driver and while connecting
    i
    add this to properties object
    props.put("weblogic.oci.min_bind_size", "660");
    props.put("weblogic.codeset","UTF8");
    This works fine.
    Now my problem is how do i set this above mentioned properties to config.xml.
    any help will be appreciated.
    Regards
    -Sugs

  • Problem with Oracle8i Lite and Forms 6i

    Problem:
    I have installed first Oracle8i Lite Version 4.0.0.2.0 on my computer witch has no network card and it works wery well with The Open Client Adapter (OCA).
    Then, I have installed Oracle Forms and Reports Release 6i, and from this moment, I get this message : "OCA-30002: ubofscr function not supported".
    In the release notes, I can read :
    "OCA Release 6.0.5.3.0 is installed for compatibility with Oracle Required Support Files version 8.0.5. If you install newer client tools which upgrade your Required Support Files to version 8.0.5.1, you may experience an error message, "OCA-30002: ubofscr function not supported". To upgrade OCA to correct this problem, copy the OCA605290.zip file from the \WIN32 folder of the Oracle8i Lite CD-ROM, unzip it and follow the instructions in the README.TXT file which it contains."
    But on my Oracle8i Lite CD-ROM, there is no OCA605290.zip file from the \WIN32 folder.
    What can I do ?
    null

    You could try to "hide" the db-link by creating a local view above the dblink-table.

  • Stream Corrupted while connection

    We have a java swing game that relies on connection with the server and that is established through object stream. Our problem is that in between game play �Stream Corrupted Exception� occurred and connection breaks.
    Is there a way we can avoid this, so that connection will carry on till the game finish?
    here is code at server for sending data
    public void sendMessage(CMessage cMessage)
         if(bIsClosed==false)
           try
                ObjectOutputStream objOutputStream=new ObjectOutputStream(socket.getOutputStream());
              objOutputStream.writeObject(cMessage);
              objOutputStream.flush();
           }catch(Exception e)
                bIsClosed=true;
                System.out.println("Error Sending Message "+cMessage.get_title()+e.toString());
              server.removeConnection( socket );
    }at receiving at client
    Object objMessageRecived;
    CMessage cMessageRecived;
    while(true)
         try
              objMessageRecived=(new ObjectInputStream(socket.getInputStream())).readObject();
              cMessageRecived=(CMessage)objMessageRecived;
              m_cWindow.handle_message(cMessageRecived);
    catch(IOException ex){
              System.out.println("Error in connection "+ex.toString());
              break;
         catch(ClassNotFoundException ce){System.out.println("Error in connection !!!!!! "+ce.toString());}
    }Thanks for all your suggestions,
    -Vidhi.

    thats not a problem bcause we r using it quiot regularly.
    and one more importent thing i like to say is after happening of this error actually connection is not breaked but client was't recived any message form server but can send am many as it can

  • JDeveloper 2 and Oracle8i Lite

    Hello,
    I'm trying to connect to an 8i Lite using the 8i Lite JDBC
    driver in JDeveloper 2.0, but it keeps telling me that it can't
    find the driver anywhere. The documentation says to add the JAR
    files to the library. The location of the 8i Lite JAR files is
    set in the CLASSPATH. Even if I add location of the JAR files
    to the project library it doesn't seem to find it. Is there
    anyone out there who can help me out?
    Thanks in advance.
    Kind regards,
    Eric Sirois
    null

    Hi
    Oracle JDeveloper can use the driver which comes with Oracle8i
    Lite to connect to the Oracle8i Lite database. To configure
    Oracle JDeveloper to work with the Oracle8i Lite database:
    1. Install JDeveloper.
    2. Install Oracle8i Lite 4.0 or higher.
    3. Launch JDeveloper.
    4. Add a library for Oracle Lite by following these steps:
    Choose the menu option Tools | Default Project Properties.
    Click the Libraries button at the bottom of the dialog.
    Click the New button on the lower right to add a new library.
    Name the library Oracle8i Lite by typing in the Name field.
    Add the path to the Oracle8i Lite driver by typing in the Class
    Path field.
    This should be a jar file called
    <oracle_home>\lite\classes\olite40.jar, but
    check the documentation for your version of Oracle Lite.
    If you are using JDK1.1, you also need to add
    <oracle_home>\lite\classes\oljdk11.jar to the Class path
    Click OK to add the Library. JDeveloper analyses the dependencies
    for the > driver and returns to the Default Project Properties
    dialog.
    Click Add to add Oracle Lite to the default project properties
    for all future generated projects. Alternatively, you may add
    the Oracle Lite driver on a project by project basis by
    selecting Project | Project Properties
    and adding the newly created library to the current project.
    5. Quit JDeveloper.
    6. Add the Oracle Lite jar file to the IDE Classpath by following
    these steps:
    Open the file <jdev_home>\bin\jdeveloper.ini.
    Under the section [Java_Global], add the path of the Oracle Lite
    drivers to the IDEClassPath. This should be jar files called
    <oracle_home>\lite\classes\olite36.jar and
    <oracle_home>\lite\classes\oljdk11.jar, but check the
    documentation for your version of Oracle Lite.
    7. Restart JDeveloper.
    regards
    Eric Sirois (guest) wrote:
    : Hello,
    : I'm trying to connect to an 8i Lite using the 8i Lite JDBC
    : driver in JDeveloper 2.0, but it keeps telling me that it can't
    : find the driver anywhere. The documentation says to add the
    JAR
    : files to the library. The location of the 8i Lite JAR files is
    : set in the CLASSPATH. Even if I add location of the JAR files
    : to the project library it doesn't seem to find it. Is there
    : anyone out there who can help me out?
    : Thanks in advance.
    : Kind regards,
    : Eric Sirois
    null

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error while creating a simple trigger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    I want to create a simple trigger on 8i Lite.
    first I created .java file and got the .class file after successful compilation.
    The .class file is sitting in my local C:\ drive.
    I have a table having only two columns in 8i Lite and the structure is
    TABLE : SP
    ACC_NO NUMBER,
    ACC_DESC VARCHAR2(20)
    Then I issued the command :
    SQL> ALTER TABLE SP ATTACH JAVA SOURCE "JournalInst" in '.';
    After that getting the following error :
    alter table sp attach java source "JournalInst" in '.'
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-8028] error in calling a java method
    Following is the cause/action for the error code :
    POL-8028 Error in calling a Java method
    Cause: Most commonly refers to a problem when converting between Java and Oracle Lite datatypes.
    Action: Check the calling parameters.
    I can't understand where I am wrong ?
    Could anybody help me out ?
    Here is my source code of .java file
    import java.lang.*;
    import java.sql.*;
    class JournalInst {
    public void INSERT_JOURNAL(Connection conn, double AccNo, String AccDesc)
    System.out.println("Record Inserted for :"+AccNo +" "+AccDesc);
    Thanks in advance for solutions.
    Sarada
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • Error while creating a simple function, procedure or triger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    While creating a simple proceudre/function/trigger on the database, it's throwing the following error:
    create or replace function test return number is
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error
    Here is my sample code.
    create or replace function test return number is
    begin
    return 0;
    end;
    Tried to create the same function in the user SYSTEM too but got the same error message.
    Thanks in advance for the soluton.
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • HowTo Close stream on exception (FindBug)

    Hi there.
    I've just started to use the tool FindBugs which seems to work all right as far as it goes.
    But it claims, that in the following code the method may "fail to close stream on exception":
         void writeToFile(String fileName){
              System.out.print("Creating "+fileName+" ..");
              try {
                   FileOutputStream fos = new FileOutputStream(new File(fileName));
                   PrintWriter o = new PrintWriter(fos);  //this line is marked as error-prone
                   o.println("Some String");
                   o.close();
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              System.out.println(".done");
         }Whereas if I comment out the line with the o.println-call, everything's fine again for "FindBugs".
    I have absolutely no clue to what's meant by "on exception", since neither the line itself nor the following line throws an Exception.
    (BTW: adding an "finally" block or closing the stream after the try-catch-block doesn't seem to solve the problem for FindBugs).
    So, what's my problem? The code seems to work yet. But FindBugs seems to be a neat tool and since I don't like having code that might fail to close streams on exceptions,
    I'd like to hear from some of you how you'd code a simple block like that.
    (Add to that: I hate being corrected by a programme (At least as long as this fucker seems to be smarter than me ;) So now it's time for me to learn!! )
    Any suggestions about how to improve my programming technique are gratefully taken, as well as blind guessing around about what the hell FindBugs thinks I should do better.
    -T-

    Hi,
    This is the first time I am using findbugs tool. I have this piece of code
    <target if="javadoc.packages" name="findbug" >
    <!--<available file="etc/javadoc_build.inc" property="javadoc.buildinc"/>-->
    <findbugs home="D:\bin\common\_lib\build\findbugs"
    output="xml"
    outputFile="bcel-fb.xml" >
              <!--<auxClasspath path="${basedir}/lib/Regex.jar" />-->
              <sourcePath path="C:\java.zip" />
    <class location="C:\java.zip" />
    </findbugs>
    </target>
    My questions are
    1)Is the <auxClasspath> extension required.
    2)on running ant task, i get the following error
    D:\deepak\buildProcess_2\logging>ant findbug
    Buildfile: build.xml
    [taskdef] Could not load definitions from resource tasks.properties. It could not be found.
    findbug:
    findbug:
    BUILD FAILED
    file:D:/deepak/buildProcess_2/_setup/docs.xml:190: Could not create task or type of type: findbugs.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'findbugs'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and optional.jar is absent
    Fix: look for optional.jar in ANT_HOME/lib, download if needed
    - The task was not built into optional.jar as dependent
    libraries were not found at build time.
    Fix: look in the JAR to verify, then rebuild with the needed
    libraries, or download a release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 3 seconds
    Anyone suggest me a solution.
    bye,
    with regards,
    Deepak.

  • Help on Palm replicating with 9i Lite

    Please help!!
    I've been strugling with Oracle Lite and palm for over 3 weeks
    with little success.
    My actual status:
    - Oracle 8i as database server on Windows NT
    - Oracle 9iLite 5.0 server on a Windows 2000 machine
    - Palm OS 3.5 with Emulator
    - I'm using webtogo.exe, not any application servers.
    - I found out that there are inumerous errors that the Packaging
    wizard doesn't show, so now I only run the webtogo in debug mode
    (-d)
    - Looking at those errors, I have been able to create some
    snapshots with success.
    - When I sincronize with the palm, either by hotsync or by
    mSync, I get some nonsense errors:
    On Palm:
    - Emulator memory errors
    - Errors after mSync consolidates that don't have any reference
    anywhere else, like -9025:0
    On the webtogo console:
    - I get the error ORA-00942 (view or table doesn't exist) quite
    often
    - I get the java null pointer exception quite oftenly
    For 2 times, my replication process seemed to work. I tried some
    very simple examples (1 table with 1 column). After replication,
    the database was created and I could access the table data on
    palm through mSQL and even see my data. When that happenned I
    can replicate as many times as I want without a problem. After
    that I removed the application and tried to recreate it with the
    same parameters and it didn't work any more!!!
    I had some conclusions of which I'm not so sure anymore:
    1 - After publicating an application with the publication
    wizard, I should wait until MGP completes a cycle before trying
    to replicate
    2 - I should include all fields of my snapshot, one by one,
    instead of using *
    3 - All the tables I'll replicate must be created with the
    system user !!!
    4 - After I delete an application, I'd better create a new
    emulator session (in a palm that would mean a hard reset),
    instead of believing that the sync process will erase the old
    database properly.
    5 - The Database name on the cliente must be filled, although
    the webtogo server log doesn't say anything about it when I
    publish the application.
    My instincts tell me I should wait because there must be a patch
    on the way. My problem is that I must deliver a project that's
    complete, only lacking the replication part.
    Any ( I really mean any ) kind of help would be very welcome,
    Eduardo Thuler

    It is a Palm OS issue. v5.1 is not supported until Olite 5.0.2.2.
    If you have access to metalink, you can check if that version is posted.

  • Media Corrupted Exception On MediaPlayer Restart

    I have created a simple application to test out JavaFX. Withing that Proof-Of-Concept application, I load both sound and video into separate instances of a MediaPlayer. While running the application from the IDE, I can stop and start both the sound and video players with no problems. However, when I run it from my local IIS rendering it within Firefox, the first run works. I can .play() and then .stop() the players. When I attempt to .start() the players again, I receive a media corrupted exception and the player state remains in the "STOPPED" state. I have also attempted to "rewind" the media by doing a .seek() to the beginning of the media using its start time (Duration).
    If needed, I can post code snippetts; however, I was hoping to get a call on "best practices" for stopping and starting the MediaPlayer. Do you need to implement a state machine to watch the state of the player to ensure it is in the proper state before sending a .play() or .stop()?

    Log a issue report => https://javafx-jira.kenai.com
    Include in the issue report a link to your video file so that a developer can help you debug your issue.
    Also specify your environment, (OS, codecs, etc) in detail in the issue report.
    I did create a transparent flv which worked in the past (unfortunately I don't have the original flv and I don't have the files or toolchain to generate a new one).
    I think the transparent flv was larger than 512pixels (but can't remember for sure).
    There is a transparent flv sample included with the Ensemble sample application, you could use some media diagnosis tools to compare how your media is encoded with the media from Ensemble and see if there are any major differences which might cause an error.
    The fact that it works for a size < 512 pixels would seem to indicate a limitation of the JavaFX media system for your runtime environment.

  • AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

    Hi folks,
    Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve:
    1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place
    2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true
    attached is the .zip file (as3_Countdown Timer_ver 1.0.1_by Ronny Depp.zip) with all flash source files containing:
    a) The FLash Source (file: timer_module.fla) - (FLA flash source file - Flash CS3 Professional, Flash Player 9, actionscript 3.0)
    b) com.othenticmedia.utils.dateAndTimeManagement package including 2 .as actionscript 3.0 Class files.
           i) com.othenticmedia.utils.dateAndTimeManagement.DateAndTimeManager Class in the said package. (file: DateAndTimeManager.as)
           ii) com.othenticmedia.utils.dateAndTimeManagement.CountdownTimer Class in the package. (file: CountdownTimer.as)
    c) The compiled SWF file version of this Application's blueprint. (file: timer_module.swf).
    What i need to confirm is: ........................................................ see the next post of mine. (for Problems  need to be Resolved)

    Problems to Resolve:
    Problem#1) - Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place.
    Problem#2) - Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true;
    Problem#1 Description:
    I need to pinpoint the Logical TimeSync Exception, i am still unable to figure out. That is I'm using a webservice in my Application to Synchronize the Time with the actual ET (eastern time) with accomodation of auto-adjustment for EDT GMT-4 (eastern daylight time) & EST GMT-5 (eastern standard time), times. I am using the zipcode: "10012" to pass it to the Web Service in urlRequest object, to retrieve the Current ET eastern time according to EDT & EST time settings for Manhattan/Brooklyn areas or others within  New York, NY 10012.
    Currently the Web Service is returning accurate date/time based on local EDT GMT-4 daylight time.
    Is there some defined set of dates for EDT & EST times for New York region that I can check for to ensure the correct Dates/Times for Eastern Time in New York area ??? I am using NY zipcodes because i am sure to get correct ET values.
    The Major Problem Part: is I need to correct the time by 2 seconds or approx. 2 secs, some millisecs.
    When I retrieve the Time Value from WebService, it lags behind for 2 seconds as compared to DateObj i create using computer's local time, on my Windows XP Service Pack 2 with Automatic Updates turned-on. And I'm sure about my Windows will be having latest updates for Time Management already installed. I also added the 2 secs. to the TimeSync(ed) Date to make correction to this Date obj.
    I call my custom fucntion addSeconds(dateObj:Date, secs:int) to add 2 seconds to the Date by Converting Seconds to Milliseconds.
    Please comb through the as code in files attached and Help Me Out !!!
    Problem#2 Description:
    Secondly I need to Detect the End of Stream state while using FLVPlayback component, an rtmp:// live Stream from FLASH MEDIA SERVER.
    I need to Play a YuMe Post-Roll Ad when Steam Finishes/Ends.
    Live Broadcast Stream Event starts every night on Wednesdays & Saturdays exactly  at 10:59 PM EDT GMT-4.
    Live Events only Streams/Broadcasts the stream for 50secs. exactly. When [playback stopped] it plays a PostRoll Ad and after the CountdownTimer again comes back to life. The Next upcoming Event is calculated & the Countdown begins until Next Event's time/date is reached.
    Here is the  code on the frame 1 on the MainTimeline: (rest of the params like source, volume, skinAutoHide are Set using Property Inspector for FLVPlayback instance on Stage)
    //myStream instance of FLVPlayback is on the Stage
    myStream.isLive = true;// Frame 1 Actions in the FLA
    myStream.addEventListener(VideoEvent.COMPLETE, onEndOfStream);
    myStream.addEventListener(VideoEvent.STATE_CHANGE, onState);
    myStream.addEventListener(String(VideoError.NO_CONNECTION), onStreamError);
    myStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    /*if(myStream.stopped){
         trace("tracy: "+myStream.state);
    } else if(myStream.state == VideoState.STOPPED){
         trace("tracy: "+myStream.state);
    function onStreamError(event:VideoError) {
         trace(event.code + "\n\t" + event);
    function onState(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function onEndOfStream(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   //connectStream();
                   break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: "/* + myStream.source*/);
                   break;

  • Need Help!!! Oracle8i Lite

    Hi there,
    I defined a connection against an oracle8i lite (4.0.1.x). This connection works fine - I can see the tables within the table-browser.
    Try to create a new bc4j-package against this oracle8i lite with just 1 very small entity (table test with the column test_id). The business components package wizard "hangs" up when trying to load the keys at creating the entity object. This is the last action this wizard ever does:-(
    I need help!!!
    My environment is Win2k, Oracle8i Lite, Jdev 9.0.2.
    Any ideas???

    Hi guys,
    I downloaded 8iLite on my laptop just last week and had similar problems trying to log in to SQL Plus 8.0
    This is what worked:
    Upon install, Oracle provides us with a starter database called polite.odb - but to use this, you must do the following.
    1. Open the ODBC Data Source Adminstrator, click on Drivers tab to make sure that Oracle Lite 40 ODBC Driver is present.
    2. Click on the User DSN tab, click on Add, select Oracle Lite 40 ODBC Driver, and type the following:
    Data Source Name: POLITE
    Description: (whatever)
    Database Directory: (this should be your Oracle Home directory) for example: D:\orant\oldb40
    Database: polite.odb
    now you can log into SQL PLUS like so:
    Username: SYSTEM
    Password: (type anything here) for example: abc
    Host String: ODBC:POLITE
    for further info, look at: http://technet.oracle.com/products/8i_lite/
    documentation -- user's guide -- before you begin -- Installing Oracle Lite -- using the starter database
    Good Luck!
    null

  • Oracle8i Lite and PalmIII

    Hello.
    I'm testing Oracle8i Lite 4.0 with PalmIII and I have problem. I
    try to install demo database ADDROLRL4P. All is OK, but when I
    hotsync data between Palm and PC I get hotsync error:
    Consolidator Error:
    java.lang.NumberFormatException: 3,00
    and no data synchronize.
    Where is problem?
    Thank you very much for your answer.
    J. Fikker
    null

    Hello,
    i will do this within next day's, i will report you what happen's
    in my enviroment.
    But in advance, i had a similar problem with a other Pilot
    application. I had to upgrade my palm OS. Do you have the newest
    version ?
    See www.palm.com
    Wolfgang
    null

Maybe you are looking for

  • Unable to load CWI on C2948G

    I have a new Catalyst 2948G-GE-TX switch and I’m trying to copy the web interface to it, however it can’t find the file on the TFTP server. I’ve downloaded two copies of the file from different ISPs in case one was corrupted, the first file matches t

  • Looking for help with iweb...

    i recently got iweb 08 and have been trying to get a few things to work... first of all, is there a way to put adsense ad's into text boxes (and then use word wrap), also, ive noticed that what ive done in the meantime is to create a box inside my te

  • How do you copy the templates from another webstie and use them as your own?

    Hi Everyone, I was told that with Dreamweaver it is possible to copy another websites templates? What are the steps in copying another websites template with Dreamweaver? I would like to know I am a newbie when it comes to this program so please make

  • ADF Faces: Initially checking (radio) table's first row programatically

    How can I initially check table's first row radio button programatically (from the backing bean)? Setting current row in the iterator to be first row does not help. af:table attribute selectionState is set to bindings.PersonInformationPersonCustomers

  • What version of QT for Final Cut Studio 1?

    I'm building a hard drive for video editing and I seem to remember that FCP 5 (comes with Studio) doesn't play well with some newer versions of Quicktime. It will be a 10.4 machine. What version of QT should I install? Is 10.4.11 ok too? Thanks for y