How do you address Null Session streaming returned via blackberry bold 9000

Can Hi anyone help me solve the following exception in blackberry bold 9000:

«net.rim.device.internal.media.RimMediaException: Null session streaming returned '.»»

I want to create an application audio streaming online for blackberry devices. I wrote the code using 'API of Java ME' and then focused on the app for blackberry.

The code does not work in S60 Simulator, as well as on nokia devices, but when I try to load the same app in the blackberry device I get the exception above, after that the song plays for 30 seconds.

Can someone tell me how to solve this problem. Thanks in advance.

Thanks for your response, but my problem is resolved 2 days back.

Tags: BlackBerry Developers

Similar Questions

  • NULL session streams returned when you use MediaPlayer

    Hey people,

    When you try to play sound on blackberry os 6 on 9780 I get the error "session flow null returned" after 2 or 3 times of the sound during playback. The error is thrown in the prefatch statement:

    InputStream inputStream = this.getClass().getResourceAsStream(jarPath);
    
                if (inputStream != null)
                {
                    m_SoundPlayer = javax.microedition.media.Manager.createPlayer
                            (inputStream, "audio/mpeg");
    
                    m_SoundPlayer.realize();
    
                    m_SoundPlayer.prefetch();
    
                    inputStream.close();
                }
            }
            catch (IOException e)
            {
    
            }
            catch (MediaException e)
            {
                //#debug
                if (e.getMessage() != null)
                    DebugText.Instance().Write(e.getMessage());
            }
    

    I tried Googling the error with no luck. Anyone got any ideas?

    EDIT: I meant, the code works on os<>

    Hey,.

    Thank you much for the help. Impossible to get your solution work, maybe because I won't read SD card. My solution if it helps anyoneL

    public class CDSoundPlayer {
    
        boolean keepPlaying = false;
        Player m_Player = null;
    
        public void playSound(String file, boolean continuous)
        {
            try {
                if (m_Player != null) {
                    stopSound();
                }
                InputStream is = getClass().getResourceAsStream(file);
                if (is == null) {
                    //#debug
                    DebugText.Instance().Write("Error loading file");
                }
                m_Player = javax.microedition.media.Manager.createPlayer(is, "audio/mp3");
                m_Player.realize();
                m_Player.prefetch();
    
                VolumeControl vc = (VolumeControl) m_Player.getControl("VolumeControl");
    
                m_Player.setMediaTime(-1);
                m_Player.setLoopCount(-1);
                m_Player.addPlayerListener(new extendedPlayerListener(file, continuous, this));
    
                m_Player.start();
            } catch (IOException ex) {
                ex.printStackTrace();
            } catch (MediaException ex) {
                ex.printStackTrace();
            }
        }
    
        public void stopSound()
        {
            if (m_Player == null)
                return;
            try {
                m_Player.stop();
                try
                {
                    if(m_Player.getState() == Player.PREFETCHED) {
                        m_Player.deallocate();
                    }
                    if(m_Player.getState() == Player.REALIZED || m_Player.getState() == Player.UNREALIZED) {
                        m_Player.close();
                        m_Player = null;
                    }
                } catch (Exception e)
                {
                }
    
            } catch (MediaException ex) {
                ex.printStackTrace();
            }
        }
    }
    
        class extendedPlayerListener implements PlayerListener
        {
            String file;
            boolean playContinuous;
            CDSoundPlayer player;
    
        public extendedPlayerListener(String file, boolean b, CDSoundPlayer player) {
            this.file = file;
            this.player = player;
            playContinuous = b;
        }
    
        public void playerUpdate(Player player, String event, Object eventData) {
            if (event.equals( PlayerListener.END_OF_MEDIA))
            {
                this.player.stopSound();
                if (playContinuous)
                    this.player.playSound(file, playContinuous);
            }
        }
    
  • BlackBerry Bold 9000 BlackBerry Smartphones - adding a folder to the home page for each e-mail address

    I have four e-mail addresses on my BlackBerry.  On the desktop, I have a folder in the form of an envelope that says 'Messages' and in which are all messages to all my email addresses are placed.  I have another folder in the form of an envelope with a small globe below showing one of my email addresses, and it includes the messages that came to this address.  Before I had my BlackBerry repaired, I got "mail" general plus four separate files with small globes on them for each of my email addresses.  Please, can someone tell me how to recover these other records yet?

    Go to Setup email. As soon as it opens, press the menu key and select Return Service books.

  • BlackBerry Smartphones Can you synchronize all Outlook folders on a Blackberry "BOLD" using Microsoft Exchange?

    Hi, I use a Blackberry "BOLD" to view my Inbox, but I would love to see my other folders, including my spam folder. Is it possible to do? I do not use the Blackberry Exchange Server (BES) - I am using Microsoft Exchange.

    Thanks in advance for any help you can provide!

    Hi and welcome to the Forums!

    FYI - BES = Blackberry Enterprise Solution (or server)... it is not strictly for the Exchange...

    Use of the file is a feature of BES. So if you use it, then it is not available.

  • BlackBerry Smartphones how hide or show my phone number of my BB Bold 9000 to others?

    Hi guys,.

    I tried to research this topic in the help BB website and I got this:

    Go to Options-> General Options-> the following powers:

    (1) to request that your phone number is hidden, change the restrict my identity field to always.

    (2) to request that your phone number is displayed, change the restrict my identity field to never.

    (3) to request that the network operator decide to hide or display your number, change the restrict my identity field to determined network.

    However, I can't find the "General Options" function in my BB Bold 9000. Can someone enlighten me on this please?

    Really appreciate!

    Best regards

    Ken

    Hi guys,.

    I called my local is a Service of Telco and was able to solve this problem.

    I had to press the call (green) first to join the list of calls before pressing the menu button. This is the selection of the General Option.

    It is also for those who have the same problem.

    See you soon!

    Ken

  • How can you address web septerate in the home page

    on the page options on the home page I know that you can add more then 1 address what is the septerateor between web addresses

    Use the symbol "pipe." |

  • Simple? How do you want 'INSERT' function to return the empty space after a field?

    All,

    I just have a PET of brain? I have a situation where I have a field that must return a single space, with a value that has a space before and after it.

    Example:

    In the text == > I'm < field > go to the office. <-notice no space between the two am, < field > and will

    I mean if set to FALSE, then "I am * not * going to the office."
    If true, then "I go to the office."

    If it is true, I am just RETURN(""); <-this returns a blank space


    If FALSE, I tried:

    RET = 'no '.
    RETURN ("" & ret & "");

    This property returns "I am notgoing to UNRWA. <-don't notice any empty space after the 'no '?

    I tried

    RET = 'no ';
    RET2 = ("" & ret);
    RETURN (Insert (ret2, 3, ""));

    Always the same result. What is strange, that is, if I do a RETURN (Insert (ret2, * 2 *, "")); then he comes back "I'm not tgoing to office" <-note the space between the "o" and the "t"?

    Ideas?

    I forgot about it. Depending on which version you use, DAL actually supported a function that will make the hard space for you, like this:

    Val = FLOAT (160) & 'not' & CHAR (160)
    Return (Val)

  • How can I remove the videos from the sample on "BOLD" 9000 blackBerry smart phones?

    There are 2 videos of the sample under/system/samples/videos taking 73 MB.  I tried to remove them, but saw the No.

    options for the Explorer discovers (in media player).   If those who take a lot of space in the main of 128 MB flash, it's a huge waste and I need to get rid of them.  I'm already dipping down under 20 MB of free space on occasion, and I only had the phone for a few weeks.   I don't have many apps installed yet (just thinkMicro, Opera Mini, amAze and BeamReader).   I don't know there are other applications that I want to install in the future.

    Is there another Explorer of files that I could use, that has the privileges to delete these files?

    Thank you

    Dave

    Odd. I deleted my sample videos (Speed Racer, etc.) directly in the video menu. Highlight the name of the vid, Menu > delete.

  • List of contacts from blackBerry Smartphones: address display after having saved on Blackberry Bold 9700

    Question:

    FOUND THE SOLUTION!

    I called Rogers.

    It was a bug in the software. I just saved, then re-installed the software.

    A test - it was fixed.

    Only concern is to restore my data, the information is still in the address 1 field and I need to reintroduce the.

  • NULL the returned Session Streaming

    This happens ONLY on 7.1.

    I have about 10 buttons on the screen, each one is assigned some audio within its category.

               // load the audio
                InputStream is = getClass().getResourceAsStream(soundresource);
                _snd = Manager.createPlayer(is, "audio/mp3");
                _snd.realize();
                _snd.prefetch();
                is.close();
    

    Two of the added buttons, then an exception is thrown:

    net.rim.device.internal.media.RimMediaException: Null in Streaming Session returned

    Doesnt' seem to be my day for audio.

    If you try to create 10 media players at the same time?  Don't think that you can do.  I think you can create 1 or 2 (2 for CDMA devices).  Which explains the problem?

  • How to handle the null pointer exception in session management

    Hello
    I use jdeveloper 11.1.1.6.0 version.
    I am using following code session storage
            abcList  = new ArrayList<abcVO>();             
            JSFUtils.storeOnSession("key",abcList  );
    and retrieve it using the following sentense
             abcList  = (ArrayList<abcVO>) JSFUtils.getFromSession("key");
    It's ok I'm able to get session value because I record it first.
    But I want to know if the list is stored in the session scope earlier if not then want to store
    If the data are not present at a meeting and I'm its value before it is stored, he throws null pointer exception
      
            abcList  = (ArrayList<abcVO>) JSFUtils.getFromSession("key");
    How to check if the value is null or not null before you access the session.

    Hello

    if(JSFUtils.getFromSession("key") == null){
      .. create it here ...
    }
    

    Frank

  • How do you define a static IP address on an iPad Pro ethernet connection?

    How do you define a static IP address on an iPad Pro ethernet connection?  I use an ethernet USB adapter connected and lightning for USB adapter and it works very well for DHCP connections.  I'm at my lack of something?

    You can't control these things on an iPad, I'm sorry to tell you that.

  • How do you get a contact number or an e-mail address MSN Hotmail in Microsoft in Australia?

    Original title: Hotmail for the security update.

    How can you get an address or a contact number for MSN Hotmail account under Microsoft in Australia?

    Problem: I posted a spam problem on my Hotmail account.
    MSN; Sent a new code to reset my account.
    Problem: Contactable email address wasn't updated and codes have been sent to a non-existent e-mail address.
    Cannot activate this account for my msn which has years of details inside. MSN-Hotmail interest says it's
    Microsoft America property. And cannot sat.
    Anthony EGAN

    Hi Eleonora_maria,

    I recommend you ask your question in the support forum for Windows Live Hotmail for assistance.

    http://www.windowslivehelp.com/forums.aspx?ProductID=1


    Reference:
    Windows Live Hotmail Top issues and Support information

    Hope the helps of information.

  • How do you find the last time that an address older Windows Live Hotmail has been used if you don't remember the password?

    How do you find the last time an old hotmail address was used... especially if you can't remember the exact password?

    original title: old hotmail address

    How do you find the last time an old hotmail address was used... especially if you can't remember the exact password?

    Good enough if you can't on the account and you can't prove it is yours in order to regain access (via password self-service reset, etc)-then you won't know anything about the account.

  • I want Windows Internet Explore 7 return not Windows Internet Explorer 9 How do you please

    I want Windows Internet Explore 7 return not Windows Internet Explorer 9 How do you please

    Buna,

    Microsoft has this exact Information available for you.

    "How to install or uninstall Internet Explorer 9?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-i-install-or-uninstall-Internet-Explorer-9

    And that he will explain to you too much here on earlier Internet Explorer, you still.

    Note

    After you uninstall Internet Explorer 9, the previously installed version of Internet Explorer will be available on your computer. There is no need to reinstall.

    Revedere.

Maybe you are looking for

  • Have 4 GB of RAM on Satellite U400 but says OS only have 2 GB

    Have recently downgraded notebook Toshiba Satellite U400 (model PSU44A-00J00C) of original Windows Vista business to Windows XP Pro (pack 3 update service) assistance of the system recovery discs. Have 4 GB of RAM installed on the laptop with 32-bit

  • Satellite L850D - slow all in game

    Hello I have a L850D Satellite and I have a problem to play a game.Its so slow work as the computers in the 1990s. What could I do to makeit right work and without problems? WINDOWS 7

  • Failure to PCI-5102

    Hello I wonder if I did something wrong with my scanner 5102. He worked for a few weeks in production, but now it does not work, just a half noisy sinusoid. After inspecting I found 3 sons than here where it is burned on the circuit board. When in pr

  • X 2000 problem with itunes

    Hello I have a new X 2000 v2 2.0.04 firmware. When I use it -itunes on my PC with seven working and gives me error 8003. -l'Apple Store on my iPad and my iPhone won't download or upgrade the application. -itunes on my macbook air with mountain lions

  • OfficeJet Pro 8500 has Premium - setting the default value of print quality?

    How do I put permanently by default of this printer, ink more fast and the lowest use draft printing black & white? I continue to put when it prints and it goes right back to the way it was before. I do not see a menu to turn on the printer screen or