HTML5 Micro API NullPointerException Bug.

From what I can tell, the program for the microphone API example - https://developer.blackberry.com/html5/apis/blackberry.media.microphone.html

will have always a NullPointerException uncaught on function "RecordPlayer.writeSavedData ()" line: 1197 when you use Blackberry JDE 7.1.0. Still saves the file, it will first the exeption. I tried on an earlier version 6.0.0 and it worked fine. I heard that he even worked on 7.0.0. Does anyone know a solution to this? I think it's a bug, or it may just be a problem with the code example.

I finally managed to find that it was a section of the code of the function 'stop' in Record.java. I don't know if that would break some functions of the Microphone API, but I just commented on it:

Stop recording, close the OutputStream and player.
/ * If (_rcontrol! = null) {}
try {}
_rcontrol.commit ();
} catch (IOException e) {}
MicrophoneNamespace.handleError (_errorCallback, e);
}
_rcontrol = null;
}*/

I don't know how he was throwing a NullPointerException, but without this article, the code works perfectly fine.

Tags: BlackBerry Developers

Similar Questions

  • Oracle cards HTML5 Javascript API Reference

    It is here the right place to get help to start with that?

    If this is not the case, can someone please lead me to the right place/group?

    Yes.

    The API reference and tutorial are part of the sample application mvdemo that you can download on OTN (Oracle Fusion Middleware MapViewer downloads)

    An online version of an old one (11.1.17.3) is available on a demo system (which can be disarmed soon) to the http://slc02okf.oracle.com/

  • ODI Java API: NullPointerException when creating an OdiInstance

    Hello

    Maybe someone can help me. The following problem is driving me crazy.

    Based on this guide ( ODI SDK Setup and Config in Eclipse - ODIExperts.com ), I am trying to connect to a repository ODI in Java (in Eclipse).

    The createInstance causes an error. I use the following code:

    Connection

    MasterRepositoryDbInfo masterInfo = new MasterRepositoryDbInfo (Url, driver, Master_User, Master_Pass.toCharArray (), PoolingAttributes()) new;

    WorkInfo WorkRepositoryDbInfo = new WorkRepositoryDbInfo (WorkRep, new PoolingAttributes());

    OdiInstanceConfig odiInstanceConfig = new OdiInstanceConfig (masterInfo, workInfo);

    OdiInstance odiInstance = (odiInstanceConfig) OdiInstance.createInstance;

    The last line gives a NullPointerException:

    Sep 24, 2014 16:47:58 org.eclipse.persistence.default

    INFO: EclipseLink, version: Eclipse - 2.3.1.v20111018 persistence Services - r10243

    Sep 24, 2014 16:47:58 org.eclipse.persistence.default

    INFO: master-session connection successful

    Sep 24, 2014 16:47:58 org.eclipse.persistence.default

    NEWS: successful connection meeting

    java.util.logging.ErrorManager: 5

    java.lang.NullPointerException

    to java.util.ResourceBundle.getBundle (unknown Source)

    at org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator.getHeader(ExceptionMessageGenerator.java:95)

    at org.eclipse.persistence.exceptions.EclipseLinkException.printStackTrace(EclipseLinkException.java:165)

    at org.eclipse.persistence.exceptions.IntegrityException.printStackTrace(IntegrityException.java:107)

    at java.util.logging.SimpleFormatter.format (unknown Source)

    at java.util.logging.StreamHandler.publish (unknown Source)

    at java.util.logging.ConsoleHandler.publish (unknown Source)

    at java.util.logging.Logger.log (unknown Source)

    at org.eclipse.persistence.logging.JavaLog.internalLog(JavaLog.java:290)

    at org.eclipse.persistence.logging.JavaLog.log(JavaLog.java:261)

    at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3100)

    at org.eclipse.persistence.internal.sessions.AbstractSession.logThrowable(AbstractSession.java:4293)

    at org.eclipse.persistence.internal.sessions.AbstractSession.handleSevere(AbstractSession.java:4422)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:535)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:476)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:435)

    at org.eclipse.persistence.sessions.broker.SessionBroker.initializeDescriptors(SessionBroker.java:576)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:676)

    at org.eclipse.persistence.sessions.broker.SessionBroker.login(SessionBroker.java:713)

    at oracle.odi.core.persistence.toplink.ContextualRepositorySessionBrokerFactoryBean.createRepositoryServerSessionBroker(ContextualRepositorySessionBrokerFactoryBean.java:334)

    at oracle.odi.core.persistence.toplink.ContextualRepositorySessionBrokerFactoryBean.afterPropertiesSet(ContextualRepositorySessionBrokerFactoryBean.java:131)

    at oracle.odi.core.OdiInstance.initializeJpaPersistence(OdiInstance.java:886)

    at oracle.odi.core.OdiInstance.initOdiInstance(OdiInstance.java:823)

    to oracle.odi.core.OdiInstance. < init > (OdiInstance.java:681)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:609)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:548)

    at MyFirstSDKCode2.main (MyFirstSDKCode2.java:30)

    Exception in thread "main" java.lang.NullPointerException

    to java.util.ResourceBundle.getBundle (unknown Source)

    at org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator.getHeader(ExceptionMessageGenerator.java:95)

    at org.eclipse.persistence.exceptions.EclipseLinkException.toString(EclipseLinkException.java:253)

    at java.lang.Throwable. < init >(Unknown Source)

    at java.lang.Exception. < init >(Unknown Source)

    to java.lang.RuntimeException. < init >(Unknown Source)

    to oracle.odi.core.exception.OdiRuntimeException. < init > (OdiRuntimeException.java:58)

    to oracle.odi.exception.OdiUncheckedException. < init > (OdiUncheckedException.java:50)

    to oracle.odi.core.config.OdiConfigurationException. < init > (OdiConfigurationException.java:37)

    to oracle.odi.core.config.UncategorizedConfigurationException. < init > (UncategorizedConfigurationException.java:48)

    to oracle.odi.core.OdiInstance. < init > (OdiInstance.java:691)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:609)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:548)

    at MyFirstSDKCode2.main (MyFirstSDKCode2.java:30)

    Check this blog - http://www.odipundits.com/2014/01/jpsexception.html

    I hope that helps!

  • Embedded flash/html5 video question

    Hello

    I was wondering if anyone can help.

    1 - is possible to play videos html5 without OS 2 controls showing next to clock (I know that I can display controls in the player in the app itself)

    2 - during playback of video flash from a playbook remote address (e.g. youtube) stays on, if I integrate swf file locally playbook goes out (backlight & Eve) even if the video game. Is it possible to keep the playbook on playback of local swf files?

    hope that makes sense, thanks for any help... Since faffing around everyday.

    Gwil

    Don't know what version of device/OS refer you to but for PB or BB10 to answer question 1: right now it seems that we will see the same functionality to implement controls in the bar near the clock, PB and BB10. Maybe an OS, PB, inspires others, BB10? I also think that the HTML5 media API should follow the implementation of devs, so if you set the

    HTML5MediaObject.controls = false;
    

    It should also display the controls in the top next to the clock bar. I think it would be a good point to file a feature request for the repo for PlayBook or BB10.

    2nd Mmmh), has never worked with flash on mobile and I can not wait day for audio/video flash is chased out of the mobile OSs since HTML5 media is already there. On the other hand, this looks like a bug to me. Perhaps, you must also file a report with the framework of PB?

  • BB10 - Audio/video in HTML5 - reading file from the file system

    Hello.

    I tried to read a file from the file system on the BB10 Dev Alpha, using the HTML5 video + HTML5 Audio implementation, but it seems to not work for me with the following source code:

    var audio = document.createElement('audio');
    audio.src="/accounts/1000/shared/music/testfile.wav";
    audio.controls = true;
    
    var video = document.createElement('video');
    video.src="/accounts/1000/shared/videos/testfile.avi";
    video.controls = true;
    

    Referring to the HTML5 Audio API documentation and Video of HTML5 , I used the example presented here source code, but I still get the following error message:

    Anyone now how to get it working or if it is not yet implemented in the BB10 WebWorks API/framework?

    Well, I believe that what could be the problem.  In order to access to the / shared the location of the folder, your application should allow the permission to do so.  This can be done by adding the following to your config.xml file:

    
        access_shared
    
    

    Next, you need to whitelist the way file:/// by adding an element to access.  I remember that's how its done:

    
    

    Note You can whitelist all areas using the following:

    
    

    Hope that helps.

  • Errors in the documentation of the API in WebWorks

    Can we start a list of errors in the documentation? A couple I picked up so far:

    1. HTML5 File API is not supported by PlayBook. It was falsely announced that supported: https://developer.blackberry.com/html5/apis/filesystem.html
    2. FilePickerOptions filter the example values don't work property, you must precede the extensions with *, for example ["*.jpg", "*.bmp"]. https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.Invoke.card.filepickeroptions.HTML#filter

    Thanks for catching these.

    Please feel free to log these errors using the Manager of public incidents and submit it to the "Documentation" project title: https://www.blackberry.com/jira/secure/Dashboard.jspa.

    We will be able to keep track of issues and resolutions, and since it is open to the public, users can check if their problems have been reported as well.

  • Dynamic resizing of Textfield with HTML5 Canvas?

    Hello

    If my company is currently using Flash CS4 because all our AS2 code. I really want to move from the dark ages to Adobe animate CC. One of the main drivers is HTML5 Canvas and be able to support all mobile devices.

    So that this transition to work, I need to be able to do 2 things from the start:

    1. I need to get the variables passed in the ColdFusion page that is generated flash animation.

    2. I need to manipulate the data (like the formatting of phone number)

    3. I need to be able to keep the text fields in a defined width and mitigate the text to fit without distortion.

    EX: If I didn't do this in AS2 it would work. Did not understand how to do the same thing to animate:

    If (this ._width > 200) {}

    This ._width = 200;

    }

    This stuff is possible with Adobe animate CC? It is possible with HTML5 Canvas or should I publish with air?

    Is there a site that shows all the animated objects and properties that can be manipulated with Javascript for use with the Web?

    If possible, I'd love to be able to save an image to preview at run time and possibly make web-to-print

    In canvas mode, all audiovisual operations are managed by the library of CreateJS. There is a lot of documentation and examples for that flow. Very little of it is explicitly linked to the Flanimate IDE.

    You cannot directly set the width and height on the CreateJS objects. You can set the scaling factors X and Y, which should be sufficient if you are willing to do a little math.

    Width and height of determining dynamic objects can be difficult, because CreateJS is limited by what supports the HTML5 canvas API. There is a blog post, discuss the issue here:

    http://blog.createjs.com/update-width-height-in-Easeljs/

  • Re: decoder VP9

    When I visit https://www.youtube.com/html5,
    He said to me "What that this browser supports?"
    It lists HTMLVideoElement, H264 and VP8

    Why does it not save that Firefox now plays VP9?
    I add a plugin for Firefox?

    MSE is not yet fully supported, MSE & WebM VP9 is negative.

  • DataList does not work in the developer edition

    In other words, there is no support for the functionality of Firefox Developer Edition 38.0.5 HTML5 Datalist.

    You can test this by displaying the page in any browser...

    https://hacks.Mozilla.org/2010/11/Firefox-4-HTML5-forms/

    And you'll notice that it works for the most part, everything except the browser Firefox Developer Edition.

    Question on StackOverflow: http://stackoverflow.com/questions/30790027/html5-datalist-not-working-bug-in-firefox-developer-edition-38-0-5

    Is this an oversight? A bug? It is slated to be fixed/fixed already? Or I will begin do are aware of the problem? Thank you!!!

    The current construction of (aurora) Firefox is Firefox 40.0 a2.

    The demo page works fine for me with the current version (38.0.5) and the current construction of Developer Edition and the selection list opens with a double click.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    Create a new profile as a test to see if your profile is the source of the problem.

    See "create a profile":

    If the new profile works then you can transfer files from a profile already used in the new profile, but be careful not to copy files corrupted to avoid transporting more problems.

  • How can I bypass the popup: '"Appname" would like to know your position. Allow or deny.

    Hello:

    I'm an Android Developer. I'm playing with this firefox os now and try to create applications.
    Its very cool. I liked it so far
    I installed it on my nexus and emulator

    So, I created a button for one of my test apps to access the user's current location.
    When I click on it - it is said:

    "Appname" would like to know your position.
    Allow or deny (buttons)

    Is it possible to ignore this popup?
    It is an implementation of privacy in the HTML5 geolocation API. fix?
    Can I get around this?
    If so, where the code is located?

    Please see the attachment for the popup.
    Thank you

    -John

    Where to go for support the developers

  • Another application is already listening to the application ID - PushWoosh

    I'm developing an application of crossed with phonegap and Jquery mobile platform. I'm trying to implement push notifications for the blackberry application using PushWoosh.

    After installing the application, I am able to successfully save and receive Push Notifications. But, when I close the application and open it again, I get an error that says "another application already listening for Application 27 ID."

    Where should I put the register in my code method such that it gets only run at startup / first installation?

    All the world is facing this problem? If so could you please explain how to solve this problem.

    I'm new to the WebWorks development and can use all the help...

    Thank you 1 million.

    Info:

    PhoneGap 2.8.0

    jQuery 1.9.1

    jQuery 1.3.1 Mobile

    SDK WebWorks

    PushWoosh

    HTML5 is an API that allows you to systematically store data on the local storage device. After have registered you once save an indicator of storage that you can check. The solution is not specific to WebWorks, just use the HTML5 standard API.

  • BlackBerry.utils does not properly

    Blackberry.utils package does not work as described in the last SDK WebWorks.

    First, the space of names so that it won't, according to documentation, it should be Blackberry.utils, but it's actually just "Utils" (at least for me). Bar package manager can not find a feature with the id "blackberry.utils" unless you manually change the manifest to say "blackberry.utils" instead of just "utils".

    But even in this case, missing funtions as blackberry.utils.stringToBlob.

    For this reason I cannot create/save/load files using the SDK WebWorks, is this a problem on my end or there at - it something wrong with this version of the SDK? (I already tried to reinstall)

    Ah yes, that would explain then. The Utils API is not available on BlackBerry 10:
    https://developer.BlackBerry.com/BBOS/HTML5/APIs/BlackBerry.utils.html

    It was available on BBOS and PlayBook. If we check the BB10 docs, it is more listed in the API reference:
    https://developer.BlackBerry.com/HTML5/APIs/

    To save/load/create the files using the SDK software BlackBerry 10, we now have the HTML5 Filesystem APIs, which shouldn't require the Utils APIs:
    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.IO.html

  • How to save photos in a folder without display in the photo gallery of BB10

    I want to develop an application for taking photos, but I want these used in the application and you can not see in the Gallery of photos, is - it possible?

    (1) If you use the HTML5 Filesytem APIs to save the image, it must be saved to your application space by default unless you leave explicitly via the sandbox sandbox:
    BlackBerry.IO.sandbox = false;

    Documentation:
    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.IO.html

    Data URIs, the easiest route is to create a element in JavaScript, draw the image on the canvas and then retrieve the data URI across the canvas API. There are a lot of good information on this integration from here:
    http://www.html5rocks.com/en/tutorials/canvas/integrating/

  • How can I block the alert that appears when you try to access the GPS coordinates?

    I develop an application that has access to the GPS coordinates and when I try to access appear a message that says "a JavaScript asked the physical location of your device. You want to offer this to the script? Can I block this alert?

    If you use the HTML5 geolocation API (lots of examples on a google search) instead of blackberry.location.latitude etc., you will be asked only the first time.

  • How to read file returned by the file picker

    I'm going to obviously stupid here, but for the life of me I can't figure out how read in a text file returned by the file picker.  I am currently getting the good full path of the file in the file picker but where do I go from here?  BlackBerry.IO.file does not seem to exist in Blackberry 10 and I'm confused as to how I would use the HTML5 File API from only a file returned by the file picker path.

    Can someone please spit out a quick and dirty example showing me the rudiments of reading in the data file from a path returned by the file picker, please?

    Thank you very much

    DM

    Don't know if you have the path to the file, and then you left there. One thing to note. The file MUST be inside you bar (sandbox) OR you need to add the <> ermit > access_sharedermit >
    and then he can live the file in the shared folder on the device.

    Here is a code that you can use to read a file. I poached it our docs found here:https://developer.blackberry.com/html5/apis/blackberry.io.html

    
    

Maybe you are looking for

  • remove the document of Quebec

    I have a document in the that I can't delete and so nothing will print.  I have a HP officepro 1800 and use Windows 8.1.  any help would be appreciated.

  • system disabled the code: 59628592

    Please help me im forgotten pass and PIN

  • Laptop does not open when turned on

    Need help getting into my laptop.when I turn it on, a blue screen appears saying enter password administrator or power on password.its 8-digit password, but I do not know a password. Woud like comments on what to do. I press on enter 3 times and a sy

  • Firewall for PC

    I have a general query related to the firewall for small LAN. We have two PC that connects to the internet via ADSL line. They want to access certain resources of the local network of the company by establishing another NIC on the PC and plug it into

  • How can I remove a directory tree that is too deep?

    I used ROBOCOPY to copy the contents of theC:\USERS\ALL USERS in an external drive USB FAT32.  I forgot to include the /XJ switch and, therefore, now have a directory tree that continues to repeat the Application data in a subdirectory. When I try to