How can I solve the error "media corruption error"?

I have asynchronous errors in Media and MediaPlayer objects: [com.sun.media.jfxmediaimpl.NativeMediaPlayer@1b0a038] "Error: medio corrupto": "Error: medio corrupto".
When the program runs in NetBeans the error doesn´t appear "quickly". When the program runs in command line, the error appears the first time I change the video.
I have this problem since I started my application in JavaFx 2.0 in october, first I thought that I was doing wrong, then I wait for 2.0.2 realease but today I tested my program with the new release and I had the same result.
Is it a bug? Can be a problem of the video? Can be a problem of my video card?
I test my program in 5 computers and I have the same error.
I think that is very strange that there are videos that always fail and there are videos that never fail.
Perhaps is the content of the video? Perhaps is the way that the video was created? All my videos are created by a graphic designer with 3D Studio.
Thanks!
package pruebafx;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.media.Media;
import javafx.scene.media.MediaErrorEvent;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaView;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import javafx.stage.Stage;
* @author Solange
public class PruebaFX extends Application {
    private static final Logger logger = Logger.getLogger("pruebafx.pruebafx");
    private static final String MEDIA_PATH = "/images/";
    private static final String VIDEOLOGO_PATH = MEDIA_PATH + "logo.flv";
    private static final String VIDEOSALUDO_PATH = MEDIA_PATH + "saludo.flv";
    private static Group root;
    private static Group grupo2;
    private static Scene scene;
    private static MediaPlayer mpLogo;
    private static MediaPlayer mpSaludo;
    private static Media mLogo;
    private static Media mSaludo;
    private static MediaView mediaView;
    private static Text text1 = new Text();
    private static Text text2 = new Text();
    private static final Color color = Color.BLACK;
     * @param args the command line arguments
    public static void main(String[] args) {
        Application.launch(args);
    @Override
    public void start(Stage primaryStage) {
        try {
            FileHandler fh = new FileHandler("DisplayManagerlog-%u-%g.txt", 100000, 100, true);
            // Send logger output to our FileHandler.
            logger.addHandler(fh);
            // Request that every detail gets logged.
            logger.setLevel(Level.ALL);
            // Log a simple INFO message.
            logger.info("Starting PruebaFX");
        } catch (Exception e) {
            System.out.println(e.getMessage());
        primaryStage.setTitle("Change Videos");
        root = new Group();
        grupo2 = new Group();
        mLogo = new Media(myGetResource(VIDEOLOGO_PATH));
        mSaludo = new Media(myGetResource(VIDEOSALUDO_PATH));
        mpLogo = new MediaPlayer(mLogo);
        mpSaludo = new MediaPlayer(mSaludo);
        mediaView = new MediaView(mpLogo);
        mpLogo.setOnEndOfMedia(new Runnable() {
            public void run() {
                mpLogo.stop();
                mediaView.setMediaPlayer(mpSaludo);
                mpSaludo.play();
                root.getChildren().remove(grupo2);
        mpSaludo.setOnEndOfMedia(new Runnable() {
            public void run() {
                mpSaludo.stop();
                mediaView.setMediaPlayer(mpLogo);
                mpLogo.play();
                root.getChildren().add(grupo2);
        mLogo.setOnError(new Runnable() {
            public void run() {
                logger.severe("Error en Media mLogo");
                logger.severe(mLogo.getError().getMessage());
        mSaludo.setOnError(new Runnable() {
            public void run() {
                logger.severe("Error en Media mSaludo");
                logger.severe(mSaludo.getError().getMessage());
        mpLogo.setOnError(new Runnable() {
            public void run() {
                logger.severe("Error en MediaPlayer mpLogo");
                logger.severe(mpLogo.getError().getMessage());
        mpSaludo.setOnError(new Runnable() {
            public void run() {
                logger.severe("Error en MediaPlayer mpSaludo");
                logger.severe(mpSaludo.getError().getMessage());
        mediaView.setOnError(new EventHandler<MediaErrorEvent>() {
            public void handle(MediaErrorEvent t) {
                logger.severe("Error en MediaView mediaView");
                logger.severe(t.getMediaError().getMessage());
        text1.setText("Hola");
        text1.setFill(color);
        text1.setX(10);
        text1.setY(10);
        text2.setText("Chau");
        text2.setFill(color);
        text2.setX(10);
        text2.setY(50);
        grupo2.getChildren().addAll(text1, text2);
        root.getChildren().addAll(mediaView,grupo2);
        scene = new Scene(root, 300, 250);
        primaryStage.setScene(scene);
        primaryStage.show();
        mpLogo.play();
    public String myGetResource(String path) {
        return (this.getClass().getResource(path).toString());
}This is the log file:
<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
<log>
<record>
  <date>2011-12-16T18:17:24</date>
  <millis>1324070244703</millis>
  <sequence>0</sequence>
  <logger>pruebafx.pruebafx</logger>
  <level>INFO</level>
  <class>pruebafx.PruebaFX</class>
  <method>start</method>
  <thread>12</thread>
  <message>Starting PruebaFX</message>
</record>
<record>
  <date>2011-12-16T18:17:35</date>
  <millis>1324070255234</millis>
  <sequence>1</sequence>
  <logger>pruebafx.pruebafx</logger>
  <level>SEVERE</level>
  <class>pruebafx.PruebaFX$6</class>
  <method>run</method>
  <thread>12</thread>
  <message>Error en MediaPlayer mpSaludo</message>
</record>
<record>
  <date>2011-12-16T18:17:35</date>
  <millis>1324070255234</millis>
  <sequence>2</sequence>
  <logger>pruebafx.pruebafx</logger>
  <level>SEVERE</level>
  <class>pruebafx.PruebaFX$6</class>
  <method>run</method>
  <thread>12</thread>
  <message>[com.sun.media.jfxmediaimpl.NativeMediaPlayer@1b0a038] "Error: medio corrupto": "Error: medio corrupto"</message>
</record>
<record>
  <date>2011-12-16T18:17:35</date>
  <millis>1324070255234</millis>
  <sequence>3</sequence>
  <logger>pruebafx.pruebafx</logger>
  <level>SEVERE</level>
  <class>pruebafx.PruebaFX$4</class>
  <method>run</method>
  <thread>12</thread>
  <message>Error en Media mSaludo</message>
</record>
<record>
  <date>2011-12-16T18:17:35</date>
  <millis>1324070255250</millis>
  <sequence>4</sequence>
  <logger>pruebafx.pruebafx</logger>
  <level>SEVERE</level>
  <class>pruebafx.PruebaFX$4</class>
  <method>run</method>
  <thread>12</thread>
  <message>[com.sun.media.jfxmediaimpl.NativeMediaPlayer@1b0a038] "Error: medio corrupto": "Error: medio corrupto"</message>
</record>

Noelia, i have the same problem, did you solved it ?I had the same issue as Noelia when I investigated Noelia's issue originally (see the TwoVideos sample application in this thread: Re: How can I play different videos with only one MediaPlayer?
I tried running the TwoVideos sample application today on Windows XPsp3, JavaFX 2.1b17, JDK7u4ea and I was unable to reproduce the problem, so it is likely fixed either 2.1 or (less likely I believe) a Windows 7 only related issue.
http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html
If you can reproduce the issue with the latest developer preview, then log a bug at http://javafx-jira.kenai.com with environment details, steps, sample media and code to reproduce the issue.
Please contact me ainchilc at gmail dot com.If it is an answer to an unanswered question on a public forum, it is best to post the answer on the forum, then everybody who reads the forum will know what the answer is.

Similar Messages

  • How can i solve the vpn server could not be found error on my iphone 5s?

    how can i solve the vpn server could not be found error on my iphone 5s?

    FWIW, back at work we have a Palo Alto Networks firewall and VPN. Have configured both the iPhone and the iPad with the pertinent details.
    If I connect while in the premises (same LAN), connection is instantaneous and flawless.
    If I connect while away, no matter which external network, the first attempt to connect ALWAYS fails with a NOT FOUND error. Yet if I try again immediately after, it ALWAYS connects with no further issues.

  • I'm a Mac user, at the start of Adobe Lightroom I receive an error of changing modules. How can I solve the problem?

    I'm a Mac user, at the start of Adobe Lightroom I receive an error of changing modules. How can I solve the problem?

    Error changing modules | Lightroom
    Mylenium

  • How can i solve the error (-3221)?

    How can i solve the error (-3221)?

    You get this error because there is no App Store in your country. Are you in Iran?  Unless you can legitimately establish an apple ID in another country then there is nothing you can do to fix this

  • HT203200 How can i solve the -50 error when downloading video from itunes??

    How can I solve the -50 error when downloading video from itunes.   The apple support people cannot even figure it out!??

    The 2330 error often means some sort of damage to the filing system as might happen if the battery fell out while the disk was in use.
    Try running a disk check to see if it finds and fixes any errors.
    http://support.microsoft.com/?kbid=315265

  • HT6195 Big problem with the last security update, how can I solve the problem?

    Yesterday I installed the last system update in my secondary computer, a Macbook Pro (OS 10.8.5, if I remember well), from that moment is impossible to restart it. How can I solve the problem?
    Today Apple is worst than Windows, but is considerably more expensive! I am seriously considering to change to Windows, in less than 3 months I had serious problems with two Apple computers and I changed 4 computers (always Apple) in less than 6 years.

    tmjavier,
    feel free to use whichever operating system best suits your needs. Since this is a user-to-user forum, whether you use OS X or Windows will affect no one’s bottom line here.
    Regarding your MacBook Pro, you can try booting it into Recovery mode by holding down a Command key and the R key as it starts up. Once the  OS X Utilities menu appears, select Disk Utility. On the left-hand side of the Disk Utility window, select your internal disk’s boot partition (typically called “Macintosh HD”). On the right-hand side, press the Verify Disk button if it’s not greyed out; if it is greyed out, or if it reports that errors were found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu to restart in normal mode. Is it able to reach the login screen now?

  • My Apple TV states in general menu "Activation: failed". What does that mean and how can I solve the problem?

    My Apple TV states in general menu "Activation: failed". What does that mean and how can I solve the problem?

    Hello MichaMuc,
    I found some steps to help resolve the "Activation: failed" error messsage you are getting on your Apple TV:
    Restart your base station or router. Sometimes this is done by turning the router off for a few seconds, and then on again, but check the documentation provided by the manufacturer.
    To restart your Apple TV, press and hold Menu and Menu down/scroll ( - ) for about 6 seconds and then choose Restart from the menu.
    If the issue continues after restarting, reset your router or base station and Apple TV to factory settings
    Reset your base station or router. Use the documentation provided by the manufacturer to reset to factory settings.
    To reset your Apple TV perform a factory restore.
    You can find the full article here:
    Apple TV: Troubleshooting wireless connections
    http://support.apple.com/kb/ht1595
    Thank you for posting in the Apple Support Communities. 
    Best,
    Sheila M.

  • App store doesn't work on yosemite. how can I solve the problem?

    app store doesn't work on yosemite. how can I solve the problem?

    Reinstall Lion, Mountain Lion, Mavericks or Yosemite without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, Mavericks, or Yosemite
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • HT4623 i was updating my i phone 4 to ios 7 , and this message appeared " This device isn't eligible for the requested build" , how can i solve the problem?

    i was updating my i phone 4 to ios 7 , and this message appeared " This device isn't eligible for the requested build" , how can i solve the problem?

    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
    Copied from this website.
    http://support.apple.com/kb/TS3694#error3194

  • HT1364 I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanen

    I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanent?  I have an older machine with Windows XP.

    I don't believe mounting the hard drive should be necessary, unless you have several external drives and want your computer to recognise them as folders, rather than drives. I've never had to mount a hard drive, ever. If you don't know how to do it, then it shouldn't be necessary now.
    Try this:
    Prepare iTunes so that it can see the external drive.
    Make a note of which drive-letter the external drive has been allocated. (Look in Windows Exploer)
    Look at the file location for a song. Make sure it plays (and therefore that iTunes has found it). Highlight it and select File/Get Info/Summary>Where: and make a note of the drive letter for that song.
    Close and shut down the computer.
    The next time you turn the computer on again, connect the external drive
    Before you start iTunes - check the external drive in Windows Explorer. Is it ready, does it have the same drive-letter that it had last time? Can you go into the drive and see the files on it?
    Once you can, start iTunes. (If the drive lettter has changed, you need to work out why before going any further.)
    If iTunes fails to find your external drive, you need to check where iTunes is looking for your Library.
    Select the same song you checked before (presumably iTunes can no longer find it). Follow the procedure for locating it. You should be able to see where iTunes thinks the file is. It's the drive that counts. Which drive letter is iTunes looking at? Is it the same one that it was previously (which should also be the same one that the drive has now).
    What happens, which step do you have problems with?
    Message was edited by: the fiend

  • I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on th

    I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on the FTP server Blog.

    You haven't a problem. You simply did not read the iWeb Help :

  • MY IPOD IS RECOGNIZED BY THE PC (WIN 7) as a digital camera. ONE WEEK AGO WAS SEEN AS hd. How can I solve the problem?

    MY IPOD IS RECOGNIZED BY THE PC (WIN 7) as a digital camera. ONE WEEK AGO WAS SEEN AS hd. How can I solve the problem?

    First, try disabling the camera notification for the iPod.  See this article for details on how to do this.
    http://support.apple.com/kb/TS1500
    B-rock

  • How can i solve the contact itunes support issue when trying to make in app purchases

    how can i solve the "please contact itunes support" issue when trying to make in app purchases? my account has available credit from a gift card

    Click here and request assistance.
    (69559)

  • I HAVE TO INSTAL A PRODUCT C LLED "KUDANI AIR " . FAILURE TO DO SO IS BASED ON  ADOBE AIR , SO I AM TOLD . HOW CAN I MAKE SURE THAT IS THE CASE ?? HOW CAN I SOLVE THE PROBLEM IF THIS IS THE CASE ??

    I HAVE TO INSTALL A PRODUCT CALLED "KUDANI AIR " . FAILURE TO DO SO IS BASED ON  ADOBE AIR , SO I AM TOLD . HOW CAN I MAKE SURE THAT IS THE CASE ?? HOW CAN I SOLVE THE PROBLEM IF THIS IS THE CASE ??

    if you try to install an app that depends on adobe air, you should be prompted to download and install adobe air (unless it's already installed).
    you can download and install directly so you're not prompted by that app, Adobe - Adobe AIR

  • Every time i want to delete something  the iMac wants my password.. before it was not like this.. even with pictures.. how can i solve the problem so can delete my pics without my password all the time

    With everything i want to delete the iMac wants my password, before it was not like that, i'm getting crazy of it.. Even with pics he's asking for my password..
    How can i solve the problem and delete stuff without filling in my password every time..
    Already thnx for your support and help..

    Normally, that's caused because of a permissions problem. Have a look at this site > http://www.thexlab.com/faqs/trash.html#Anchor-Files-46919

  • The trakcpad can not move files not even on the desktop! how can i solve the problem?

    While i was using my pc, suddenly it stopped working and i was not able any more to move folders on the desktop or move them from the desktop to a usb. How can i solve the problem???

    In Finder's menubar,  Finder > Preferences > General tab > check external disks

Maybe you are looking for

  • ME21N, ME22N, ME23N call ME12 instead of ME13

    Hi Our users would like to be able to go from ME21N, ME22N, ME23N and directly to ME12, so that they can make changes in the info records. As standard the transaction codes ME21N, ME22N, ME23N calls up ME13 which is display mode of the info recrod. I

  • User editable text

    I am developing a Flash game for canvas, and I want to give the user the option to put value in a text field, and ability to modify it during the game. Is there a way to do this? through Flash CC? naybe in javaScript code? please any help! thanks!

  • Lookup properties not configured correctly

    Hi, I have configured lookup query ,in which I am taking value from the RO form data like below. UD_IDMSP.UD_IDMSP_IDMS_VERSION = '$Form data.UD_IDMSRF_IDMS_VERSION$' Although the resuls are coming as expected I am getting "Lookup properties not conf

  • Wscompile only generates classes for the first wsdl:portType encountered

    Greetings. When compiling a WSDL with port types as follows below; classes are generated for port type: AccountsManagement only.   <portType name="AccountsManagement">       <operation name="CreateAccount" parameterOrder="Account">           <input m

  • Can I share photostream with someone who does not use Apple devices?

    If I share a photostream with someone who does not use Apple products, will they be able to view the Photostream?