Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6792566

kernel installer should install jre/lib/audio/soundbank.gm

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 7
    • 6u10
    • deploy

      FULL PRODUCT VERSION :
      java version "1.6.0_07"
      java version "1.6.0_10"
      java version "1.6.0_11"


      ADDITIONAL OS VERSION INFORMATION :
      Windows XP SP3

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      JMF 2.1.1e

      A DESCRIPTION OF THE PROBLEM :
      If I use version 1.6.0_11 or 1.6.0_10 MidiSequencer.getSequencer() throws an exception
      If I rollback to version 1.6.0_07, everything works ok!
      It is a definitive problem after updates ( 10 or 11 )

      I report it because I cannot find this in your bugs database!

      It also works good with java 1.5

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Very simple:
      Sequencer seq = MidiSequencer.getSequencer();

      using java 1.5 to .6.0_07 returns a correct sequencer

      if we use 1.6.0_10 or 1.6.0_11 I just get an exception:
      MIDI OUT Transmitter not available!


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
        To play my MIDI file again after update 1.6.0_10

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      04-Jan-2009 11:46:07 lookingnotgood.TheMIDINightmare GetSequencer
      SEVERE: null
      javax.sound.midi.MidiUnavailableException: MIDI OUT transmitter not available
              at com.sun.media.sound.AbstractMidiDevice.createTransmitter(AbstractMidiDevice.java:444)
              at com.sun.media.sound.AbstractMidiDevice.getTransmitter(AbstractMidiDevice.java:299)
              at javax.sound.midi.MidiSystem.getSequencer(MidiSystem.java:451)
              at javax.sound.midi.MidiSystem.getSequencer(MidiSystem.java:348)
              at lookingnotgood.TheMIDINightmare.GetSequencer(Main.java:35)
              at lookingnotgood.Main.main(Main.java:84)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      /*
       * To change this template, choose Tools | Templates
       * and open the template in the editor.
       */

      package lookingnotgood;

      import java.io.File;
      import java.util.logging.Level;
      import java.util.logging.Logger;
      import javax.sound.midi.MidiDevice;
      import javax.sound.midi.MidiSystem;
      import javax.sound.midi.MidiUnavailableException;
      import javax.sound.midi.Sequence;
      import javax.sound.midi.Sequencer;

      /**
       *
       * @author Javier ###@###.###
       */

       class TheMIDINightmare
       {
           File f;
           Sequence seq;
           Sequencer TheSequencer;
           int DeviceIndex = -1;


           public void GetSequencer()
           {
               MidiDevice dev;
               TheSequencer = null;
              try {
                  TheSequencer = MidiSystem.getSequencer();
              } catch (MidiUnavailableException ex) {
                  Logger.getLogger(TheMIDINightmare.class.getName()).log(Level.SEVERE, null, ex);
              }
           }

           void GetSequence(String aFileName)
           {
               boolean R = false;
               try
               {
                  f = new File(aFileName);
                  seq = MidiSystem.getSequence(f);

               }
               catch(Exception e)
               {
               }
           }


           public void Go()
           {
                   try
                   {
                          TheSequencer.open();
                          TheSequencer.setSequence(seq);
                          TheSequencer.setLoopCount(0);
                          TheSequencer.start();

                   }
                   catch(Exception e)
                   {

                   }

               }
       }

      public class Main {

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              TheMIDINightmare test;

              test = new TheMIDINightmare();

              test.GetSequencer(); // HERE IS THE BUG

              test.GetSequence("c:\\tmp\\a.mid"); // I play this file with version 1.6.0_07
              test.Go();
          }

      }


      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Rollback the update 1.6.0_10 or 1.6.0_11 to 1.6.0_07
      and everything goes perfect!

      SUPPORT :
      YES

      Release Regression From : 6u7
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: