Bug in the API BES12 setUsersActivationPassword?

Hello corporate developers!

While preparing our migration of the device from BES10 to BES12, I've developed some tools with the Web services of BlackBerry BES12.1.1. Everything is running, but I have a problem with the generation and sending of a random activation using the API password "setUsersActivationPassword".

I call the API and users receive the activation password and user BES12 interface indicates the period of activation as expected. All right, BUT...

The issue is the registration of the e-mail address of the user with the ID of the PRS in the BlackBerry Infrastructure to allow Enterprise activation simple and straigth forward on the BlackBerry.

My Java method to manage demand for Activation password and logs:

private static boolean generateActivationPassword(String accountName, com.rim.ws.enterprise.admin.User user) {
        final String METHOD_NAME = "generateActivationPassword()";
        final String BWS_API_NAME = "_bws.setUsersActivationPassword()";
        logMessage("Entering %s", METHOD_NAME);
        boolean returnValue = false;

        SetUsersActivationPasswordRequest request = new SetUsersActivationPasswordRequest();
        request.setMetadata(REQUEST_METADATA);
        // request.setExpiryHours(24); // wird mit Standard = 48 überschrieben
        request.getUsers().add(user);
        request.setGenerateAndEmailRandomPassword(true);

        SetUsersActivationPasswordResponse response = null;
        try {
            logRequest(BWS_API_NAME);
            response = _bws.setUsersActivationPassword(request);
            logResponse(BWS_API_NAME, response.getReturnStatus().getCode(), response.getMetadata());
        } catch (WebServiceException e) {
            // Log and re-throw exception.
            logMessage("Exiting %s with exception \"%s\"", METHOD_NAME, e.getMessage());
            throw e;
        }

        if (response.getReturnStatus().getCode().equals("SUCCESS")) {

            if (response.getIndividualResponses() != null) {
                for (IndividualResponse individualResponse : response.getIndividualResponses()) {
                    logMessage("Message: %s (Code: %s)", individualResponse.getReturnStatus().getMessage(), individualResponse.getReturnStatus()
                            .getCode());
                    logMessage("Request UID: %s", individualResponse.getUid());
                }

                returnValue = true;
            }

        } else {
            logMessage("Error Message: \"%s\"", response.getReturnStatus().getMessage());

            if (response.getIndividualResponses() != null) {
                for (IndividualResponse individualResponse : response.getIndividualResponses()) {
                    log.error(String.format("Individual Response - Code \"%s\", Message: \"%s\"", individualResponse.getReturnStatus().getCode(),
                            individualResponse.getReturnStatus().getMessage()));
                }
            }
        }

        logMessage("Exiting %s with %s", METHOD_NAME, returnValue);
        return returnValue;
    }
28.07.2015 14:07:27,116 DEBUG : Entering generateActivationPassword()
28.07.2015 14:07:27,116 DEBUG : Calling _bws.setUsersActivationPassword()...
28.07.2015 14:07:29,241 DEBUG : ..._bws.setUsersActivationPassword() returned "SUCCESS"
28.07.2015 14:07:29,241 DEBUG : Execution Time: 0,7531 seconds
28.07.2015 14:07:29,241 DEBUG : Request UID: b7963c52-a841-419a-976b-05597583d6b2
28.07.2015 14:07:29,241 DEBUG : Message:  (Code: SUCCESS)
28.07.2015 14:07:29,241 DEBUG : Request UID: a95f7e29-6388-4b97-bb3a-96645f516255
28.07.2015 14:07:29,241 DEBUG : Exiting generateActivationPassword() with true

Is there no workaround solution for the registry API information with the BlackBerry infrastructure? Am I doing something wrong or miss some peace of code here?

Thanks for helping!

Greetings from the Germany,

Daniel

P.S.: Generate a password for the user BES12 interface saves the data in the infrastructure properly!

It isn't a fix available for this today.  You are a subscriber to BlackBerry TSupport?  If so, I recommend there curious to see if this would be possible.

Tags: BlackBerry Developers

Similar Questions

  • That I found a bug in the API? : Adding multiple disks SOAP error

    I am able to add the drives linearly as below:

    My $vmSpec = VirtualMachineConfigSpec-> new (deviceChange = > [$devSpecs [0]]);

    $vmView-> ReconfigVM (spec = > $vmSpec);

    My $vmSpec = VirtualMachineConfigSpec-> new (deviceChange = > [$devSpecs [1]]);

    $vmView-> ReconfigVM (spec = > $vmSpec);

    My $vmSpec = VirtualMachineConfigSpec-> new (deviceChange = > [$devSpecs [2]]);

    $vmView-> ReconfigVM (spec = > $vmSpec);

    However, when I try to add all disks at the same time I get a SOAP fault

    My $vmSpec = VirtualMachineConfigSpec-> new (deviceChange = > \@devSpecs);

    $vmView-> ReconfigVM (spec = > $vmSpec);

    The error:

    SOAP fault:

    -----------

    Error string: cannot complete the operation because the file or the /vmfs/volumes/ba5e81fe-201a6c4e/paul-vm1/paul-vm1_0_3.vmdk file already exists

    Lack of details: FileAlreadyExistsPAULWORK > clear

    Is there anyone out there who knows what's going on?

    I did a dump as you said, and it was very helpful.  I needed to add the code below to make it work

    It turns out that I need a unique key for each disk that I add.  Thank you for your help

    my $disk = VirtualDisk-> new)

    controllerKey-online $devSpec-> device-> controllerKey,

    unitNumber-online $devSpec-> device-> unitNumber,

    key            => -1 *($i + 1),

    support-online $devSpec-> device-> storage

    capacityInKB-online $devSpec-> device-> capacityInKB,

    );

    $devSpec = VirtualDeviceConfigSpec-> () new

    operation-online $devSpec-> operation,

    fileOperation-online $devSpec-> fileOperation,

    device-online $disk,

    );

    Is there a better way to do that

  • x 64 (64-bit) bug in the C API

    I try to get the C API of 64-bit running.  I have the 32-bit running API, and it is not working properly.  It seems that no API call in the 64-bit environment, which returns more than a single data type replaces a box of memory it does not.

    I work in VB.NET and enveloping with a marshaling calls.  The simplest example of a call that is not working properly is querying the active channels on the scope:

    C header:

    niVB_Status NIVB_DECL (niVB_MSO_QueryEnabledAnalogChannels)
    niVB_MSO_InstrumentHandle instrumentHandle,
    char * channels.
    size_t channelsSize,
    size_t * channelsSizeOut);

    There are several different ways to encode a managed, unmanaged for this translation.  First is to use an allocation to build a pointer on a buffer zone:

    Pointer = Marshal.AllocHGlobal (MAX_CSTRING_LENGTH)

    Then, the declaration looks like this:

    _
    Public Shared Function niVB_MSO_QueryEnabledAnalogChannels_64 (ByVal instrumentHandle As Integer, ByVal channel As Integer, ByVal channelsSize As UInteger, ByRef channelsSizeOut As UInteger) as niVB_Status
    End Function

    When the call is made, the call to channelsSizeOut returns 23 characters (which is correct).  Channels IntPtr is however cancelled (this should never happen, he suggests that the battery is getting damaged.)  If I put a very wide range locally around the pointer, sometimes it is not damaged.

    Or you can call the function by using a call to stringbuilder.  Basically, it replaces the IntPtr parameter with a string generator using marshaling for a pointer:

    Dim bufChannels As New StringBuilder (MAX_CSTRING_LENGTH)

    then the call looks like this:

    _
    Public Shared Function niVB_MSO_QueryEnabledAnalogChannels_64 (ByVal instrumentHandle As IntPtr, ByVal channel As StringBuilder, ByVal channelsSize As UInteger, ByRef channelsSizeOut As UInteger) as niVB_Status
    End Function

    Yet once, calling this function causes the stringbuilder class being together (Nothing), which is essentially showing that stack space where is the pointer to the StringBuilder is getting damaged.

    It is important to note that this code works perfectly with the 32-bit version of the DLL (with a programming construct).

    I don't think it's a bug in the C API; I can do the following for both x 86 and x 64 without triggering of MSVC stack Canaries. (Note that for brevity, it does no checking error in this code snippet.)

    #include
    #include
    #include ' nivirtualbench/nivirtualbench.h '.

    int main (int argc, char * argv)

    {

    niVB_LibraryHandle libHandle = NULL;

    niVB_MSO_InstrumentHandle msoHandle = NULL;

    size_t channelsSizeOut = 0;

    char * enabledChannels = NULL;

    niVB_Initialize (NIVB_LIBRARY_VERSION & libHandle);

    niVB_MSO_Initialize (libHandle, "brandonbench", false, & msoHandle);

    niVB_MSO_QueryEnabledAnalogChannels (msoHandle, NULL, 0, & channelsSizeOut);

    enabledChannels = (char *) calloc (channelsSizeOut, sizeof;

    niVB_MSO_QueryEnabledAnalogChannels (msoHandle, enabledChannels, channelsSizeOut, & channelsSizeOut);

    printf ("permit to channels: %s\n", enabledChannels);

    Free (enabledChannels);

    niVB_MSO_Close (msoHandle);

    niVB_Finalize (libHandle);

    }

    I suspect that the problem is in your marshaling. Size_t parameters are probably better represented using System.UIntPtr and not the type UInteger; size_t is 32-bit on 32-bit platform and 64 bits on 64-bit platforms, but UIntegers are 32-bit at a time. Try to write channelsSizeOut, it's probably what is triggering the corruption of the stack.

  • Updated the API levels

    Hi all

    I installed the Momentics IDE on a Win10 and a Win7 PC and when it comes to installing any of the native SDK for Blackberry 10, I get "'Change to the API level' has encountered a problem"

    Details:

    There was an error updating SDK. Press the Details button to review the error.
    SDK Install or Update Operation operation failed: An error occurred while installing the items
    An error occurred while installing the items
    session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]bbndk.win32.cshost.10.3.1.995 1.0.0, action=com.qnx.tools.ide.sdk.manager.core.actions.SdkManagerInstallAction).
    error in opening zip file
    error in opening zip file
    An error occurred while installing the items
    session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]bbndk.win32.cshost.10.3.1.995 1.0.0, action=com.qnx.tools.ide.sdk.manager.core.actions.SdkManagerInstallAction).
    error in opening zip file
    error in opening zip file
    

    The above example is 10.3.1 Although it happens on any of them. When I tried to file a bug report, I get

    An error occured sending the report. Please try again.   
    
    Reason: Moved Permanently
    

    I tried:

    • remove the bbndk and relocation directory
    • Change the permissions on bbndk to full control for all users
    • installation on a FAT32 volume
    • building a machine virtual from Windows Installer media and running the IDE install on it.

    Is there a way to download/install the SDK outside of the IDE?

    It is difficult, but it is possible to download and manually install the API level, but you need to know the exact URL of each file API, you need.

    Two useful links...

    https://supportforums.BlackBerry.com/T5/native-development/how-do-I-install-the-SDK-BB10-offline/TD-...

    https://supportforums.BlackBerry.com/T5/native-development/manual-installation-of-BlackBerry-API-for...

    Some of my own instructions for this are in that first link.

    rsngb2 wrote:

    I was hoping I could get the files required by other means (FTP or other). Also, I was wondering if someone else could download an any of them from the IDE.

    I get that I'm late game here since BB10 is practically an orphan, but I still have some ideas that I want to try on the platform.

  • Blocked ConnectionFactory: trying to access the api.

    Problem:

    1. my application uses the ConnectionFactory class for 5.0.x and 6.0.x platforms.

    2. one of the testers reported that the Bold 9700 v5.0.0.169 (Platform 5.1.0.30), it cannot start application. Shows applications message " Application trying to access the api blocked ' where is the name of the application. Also, Tester reported that the previous version of application (where ConnectionFactory served) starts correctly.

    3. I'm sure asking signed correctly, because I was able to install it on several Bold 9700 DeviceAnywhere devices. The only difference I found is that these devices have v5.0.0.174 (Platform 5.1.0.146).

    Can anyone confirm that this is a bug in the previous OS 5.0.x? Is it okay for me to suggest the update of the device to the customer?

    How the application has been installed?  If they use the WAP browser, read on...

    The JAD file used during the download of applications using the Explorer lists the COD file sizes.  These are the sizes previously signed, which tools do not update after signatures have been applied.  In most cases, this won't matter, but some WAP Gateways carrier truncates the COD file based on the size specified in the JAD file, which cuts the signatures for the application.

  • Possible bug - Apex 5 API

    Hello

    I create the schema and Apex workspace by line command/API. The Apex 4 everything was fine. The Apex-5 it throws ORA-20876: APEX motor Stop when I use wwv_flow_api.set_security_group_id for a new create workspace through the API. Creating with Apex Instance Admin interface is very well. Please see below for example:

    --Create Schema
    
    CREATE USER myuser  IDENTIFIED BY mypassword
    DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
    QUOTA 100m on users;
    
    GRANT CREATE TRIGGER, CREATE SEQUENCE, CREATE SYNONYM, CREATE TABLE, CREATE VIEW,
    CREATE TYPE, CREATE SESSION, CREATE MATERIALIZED VIEW , CREATE PROCEDURE  TO myuser;
    
    ALTER USER myuser GRANT CONNECT THROUGH apex_rest_public_user;
    
    --Create a new Workspace
    
    DECLARE
      l_s  number;
    BEGIN 
    
      apex_instance_admin.add_workspace (
            p_workspace          => 'myuser',
            p_primary_schema     => 'myuser',
            p_additional_schemas => '');
    
    
      l_s := apex_util.find_security_group_id ('myuser'); 
        
        --Setting the security group ID to create user etc in the new workspace.
        --However following throws the error
    
        wwv_flow_api.set_security_group_id (l_s);
        
    END;    
    

    After investigation, I found that if I revoke the CREATE PROCEDURE of the user privilege and re-create the workspace, everything is fine.

    My environment: Oracle 11 g/Linux/Apex 5.0.1

    All thoughts are welcome.

    Habib

    Hi Habib.

    Thanks for finding this. It is indeed a bug, I filed #21530759. The reason for this problem is that add_workspace calls an API that load the info from the workspace in a global variable, at some stage, when the workspace is not yet in account_status = ASSIGNED but account_status = AVAILABLE. The subsequent call to set_security_group_id reuses data in the global variable instead of query information of (modified) workspace.

    Kind regards

    Christian

  • Cannot update the END_DATE_ACTIVE column in the HZ_CODE_ASSIGNMENTS Table through the API

    Hello

    I'm not able to update the column END_DATE_ACTIVE HZ_CODE_ASSIGNMENTS Table through the API: hz_classification_v2pub.update_code_assignment.
    After running with all the facings that he managed, but it is not properly updated the end_date_active to the date given as parameters when executing the API defines it rather end_date_active to null.

    Please help.

    Thanks and greetings

    Salvation;

    What is your version of the EBS? If you are on r12.x you can hit bug. Please see:
    Unable to update HZ_CODE_ASSIGNMENTS end_date_active with January 1, 2012 [1166367.1 ID]

    Respect of
    HELIOS

  • Any bugs in the CEP Oracle 11.1.1.3.0

    Hello

    It seems that there are a few bugs in the CEP Oracle 11.1.1.3.0.

    1. the documentation says that customized osgi bundles must be placed in the %DOMAIN_HOME%/serverName/modules/ext or in the % DOMAIN_HOME%/serverName/modules. As far as I understand that oracle CEP provides its own OSGI environment, which is based on the implementation of eclipse equinox. The problem is that the beams in the %DOMAIN_HOME%/serverName/modules or the %DOMAIN_HOME%/serverName/modules does not support OSGI pieces. The environment CEP tries to start some fragments of OSGI, which is false. Example: Try to slf4j api and implementation, which is the fragment to the slf4j api bundle.

    2 is it fair that when deploying an application with JMS/output adapters CEP Oracle does not bundle classloader to load configuration jms, for example instantiate the implementation of the InitialContextFactory, specified using the jndi factory tag. If an implementation expected resource, specified using the jndi-provider-url tag, in the classpath, this resource is not found because of the class loader, which is not a class loader of the boot where jms adapter is configured.

    Best regards
    Sergey

    Hello

    You're right - the library bundles do not currently support the fragment OSGi bundle function.

    You use a third party JMS provider? Oracle CEP supports the implementation of JMS provider classes in the bundle of the application itself, or as a set of package library. Packaging classes as a library package is usually preferable because it avoids the need to redeploy the classes whenever the application changes. This blog describes the steps for packaging open MQ (the same basic steps are followed to any third-party provider).

    http://blogs.Oracle.com/CEP/2010/05/using_open_mq_as_an_oracle_cep.html

    Kind regards

    Seth

  • There seems to be a bug in the Pages.  I imported a text in my document to a different font.

    I imported a text in my document Pages.  The two texts were different.  Then I selected all the text and selected in Times New Roman for everything.  I saved and you leave.  I have then opened the document, and the types of two texts are still there.  How can I get everything to be Times New Roman?  That's why I think there is a bug in the Pages.

    Probably, you have two versions of the document and opened a bad.

    Peter

  • Customize the black guest "* is full screen" when using the API of full-screen mode full screen shutter?

    The prompt on the top of the screen is so big and not very attractive. Y at - it any way/API to change his style?

    Another problem is that if the mode full screen is enabled on a machine with two monitors, you can toggle focus on programs in another monitor. But whenever you focus on the browser full screen, black prompt is displayed again, which is annoying.

    Hi fordbzd,

    This could be a big question for https://www.stackoverflow.com or https://www.mdn.com

    These are third party, but they are nice places to start:

    It depends on the api used as well to track down the call for the notification of full screen or a video player:

  • Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug? Thank you

    Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug?

    When the same text is seen in another browser, it is displayed correctly as "two."

    The same question is displayed on another computer.

    Thank you.

    Sounds that you use a font that supports ligatures (Palatino?).

  • IOS 9.3 there bugs for the iphone 6?

    Hi guys I have an iPhone 6 currently running in iOS 9.2.1 asked if it is wise to update the iOS to 9.3. Are they bugs in the new iPhone OS 6? Should I update the OS or not?

    just do the update via iTunes by keeping your connected phone. so far no bugs recorded

  • When I updated my iPhone 6 more iOS 9.3 my camera will not be to the point and seems blurred by far. I already reset my iPhone and my mother worked... Anything other ideas, might be a bug in the iOS update?

    When I updated my iPhone 6 more iOS 9.3 my camera will not be to the point and seems blurred by far. I already reset my iPhone and my mother worked... Anything other ideas, might be a bug in the iOS update?

    I would say "try and do a restore as new iPhone" like everyone else but I'm having a similar problem and nothing works! I've restored all the possible ways and nothing. I got my screen replaced and I still have the same home button but my phone updated with error 53 (makes the phone unusable) but the camera did work before the update. and Apple has released iOS 9.1.2 (13D 20) to correct the error 53 (mainly for other reasons) but when I go to use the camera, it is only black! If someone could help 'discovered' and I would be great!

  • Put into hibernation - insufficient system resources exist to complete the API (Tecra M4)

    I just thought I'd pass on my experience with this problem.

    I recently updated my Tecra M4 2 GB of RAM memory. Everything was fine except everyonce in a while he would not hibernate. However, it would suspend to RAM (standby). It seemed to happen after the antivirus software has managed to (which I had changed at the same time). I studied this way, but it also happened if I had a lot of programs running. So, a quick google search revealed why almost all laptops come with only 512 MB of RAM.

    There is a problem with Windows, freeing the memory in a way that allows it to be written to the hard disk, preventing the hibernation and to create the very vague error message "insufficient system resources exist to complete the API".

    The solution is to contact Microsoft by phone and ask them for the fix for the #909095 of the Knowledge Base article. The fix is free but the MS site makes it seem as if you have to pay £200 to contact Ms support

    This seems to have solved my problem!
    Hooray!

    This is the Knowledge Base article:
    http://support.Microsoft.com/?kbid=909095

    Here's the Blog I found the solution on:
    http://www.ntwizards.NET/2004/10/13/Hibernate
    Of course, the only problem with contacting MS support is that I received a LOT of phone calls asking me what I thought of their support... it was very good, so I don't really mind, but I find it funny that I continue to have called and asked the same questions!

    Hi Kelly

    Thanks for this useful information.
    It of very nice that you posted this tip. I think that it s very useful for users of the forum who might have the same problems on laptops.

    Concerning

  • First bug in the new HP update (7820)

    There is a bug in the application 2-var statistics.

    SHIFT + TRACE SETTINGS - see the image:

    Now look at the calculator after upgrade:

    Where the top menu of the page?

    In 7820, the brand is on the SYMB screen next to his color choices on the right (2nd line S1 config).  Line color selection is on the left (3rd line S1 config).

Maybe you are looking for