Push the message undeliverable to the live Device - Simulator (Eclipse) works

My app works great on different simulators, receive messages from my server (all on localhost). However, I can't make it work when I plug in my phone via USB. I select my phone in the list of Blackberry devices and then installs the application, starts the listener in the background and I can open the user interface. Messages are delivered to the MDS, but they then fail with the message:

PushServlet: FAILURE - cannot map device XXXXX a host to the PDAP.

I tried to add my device Simulator "rimpublic.property" section, but that didn't work either: I think that it comes to queue messages.

Any advice?

Thank you

Karl

I found the answer. It is the combination of two things:

(1) I had to use 'ApplicationManager.getApplicationManager () .inStartup ()' to delay my code from running until the aircraft was ready.

(2) I tried to debug using my direct phone with an SDM server on my laptop (localhost). I never had this work, but once I opted for the reality of the BES server, the debugger kicks and everything worked as expected.

Karl

Tags: BlackBerry Developers

Similar Questions

  • I'm unable to use the Live View function when working with JavaScript in Dreamweaver.

    I'm currently trying to set up my own Web site with dreamweaver and am very familiar with the languages Java and JavaScript. However, whenever I try to use the Live View function it never let me. In addition, I can't get a preview of my work in a browser, as to do so is greyed out.

    However, I noticed that when using html in a project, all these functions are available. Any ideas how I can be able to use these features?

    Or perhaps you mean a .jsp file that is a Java Server Page.

    Modern web pages are almost entirely HTML code with CSS for styles and JavaScript for functionality added as games & slideshows or interactive menus.  It does not seem possible for me that you have been creating web pages entirely with JavaScript.

    Nancy O.

  • Custom BrowserField appears in the real device Simulator only

    Hey guys, I got some piece of code that I can use to display HTML data stored in a variable. It worked fine in the Simulator, but when I tried to view it on a real device (I use 8900), it shows nothing.

    Here is the code (HTMLField.java): (I use the code here: http://supportforums.blackberry.com/t5/Java-Development/Display-HTML-in-a-Screen-Field/td-p/335074/p...)

    package app;
    
    import java.io.IOException;
    
    import javax.microedition.io.HttpConnection;
    
    import net.rim.device.api.browser.field.BrowserContent;
    import net.rim.device.api.browser.field.Event;
    import net.rim.device.api.browser.field.RedirectEvent;
    import net.rim.device.api.browser.field.RenderingApplication;
    import net.rim.device.api.browser.field.RenderingException;
    import net.rim.device.api.browser.field.RenderingOptions;
    import net.rim.device.api.browser.field.RenderingSession;
    import net.rim.device.api.browser.field.RequestedResource;
    import net.rim.device.api.system.Application;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.io.http.HttpHeaders;
    
    /**
     * A field which displays HTML content.
     * @author Febiyan Rachman
     */
    public class HTMLField extends VerticalFieldManager implements RenderingApplication
    {
        private String data;
        private static final String REFERER = "referer";
        private RenderingSession renderingSession;
        private HttpConnection currentConnection;
        private Field field;
    
        /**
         * Default constructor
         * @param data
         */
        public HTMLField(String data)
        {
            this.data = data;
            renderingSession = RenderingSession.getNewInstance();
            // Enable JavaScript
            renderingSession.getRenderingOptions().setProperty(RenderingOptions.CORE_OPTIONS_GUID, RenderingOptions.JAVASCRIPT_ENABLED, true);
        }
    
        /**
         * Start parsing thread
         */
        public void parseHTML()
        {
            if(!data.startsWith("";
            HTMLFieldConnection thread = new HTMLFieldConnection(data, null, this);
            thread.start();
        }
    
        /**
         * Parse HTML
         * @param data
         */
        public void parseHTML(String data)
        {
            this.data = data;
            if(!data.startsWith("";
            HTMLFieldConnection thread = new HTMLFieldConnection(data, null, this);
            thread.start();
        }
    
        /**
         *
         * @param connection
         * @param event
         */
        public void processConnection(HttpConnection connection, Event event)
        {
            // Cancel previous request
            if (currentConnection != null) {
                try
                {
                    currentConnection.close();
                }
                catch (IOException e1) {
                }
            }
    
            // Set the current connection to the created connection
            currentConnection = connection;
    
            BrowserContent browserContent = null;
    
            try
            {
                browserContent = renderingSession.getBrowserContent(connection, this, event);
    
                if (browserContent != null)
                {
                    // Create a field which displays the HTML content
                    Field newField = browserContent.getDisplayableContent();
                    // Add field to this manager
                    if (newField != null)
                    {
                        if(field != null)
                        {
                            synchronized (UiApplication.getEventLock())
                            {
                                replace(field, newField);
                                field = null;
                                field = newField;
                            }
    
                        }
                        else
                        {
                            synchronized (UiApplication.getEventLock())
                            {
                                add(newField);
                                field = newField;
                            }
    
                        }
                    }
    
                    // Finish!
                    browserContent.finishLoading();
                }
            }
            catch (RenderingException renderingException)
            {
                System.out.println("RenderingException : " + renderingException);
            }
            catch (Exception exception)
            {
                System.out.println("Exception : " + exception);
                exception.printStackTrace();
            }
        }
    
        /**
         * @see net.rim.device.api.browser.field.RenderingApplication#eventOccurred(net.rim.device.api.browser.field.Event)
         */
        public Object eventOccurred(Event event)
        {
            int eventId = event.getUID();
    
            switch (eventId)
            {
                case Event.EVENT_URL_REQUESTED:
                {
                    HTMLFieldConnection thread = new HTMLFieldConnection(data, null, this);
                    thread.start();
                    break;
                }
                case Event.EVENT_BROWSER_CONTENT_CHANGED:
                {
                    break;
                }
                case Event.EVENT_REDIRECT:
                {
    
                    RedirectEvent e = (RedirectEvent) event;
                    String referrer = e.getSourceURL();
    
                    switch (e.getType())
                    {
                        case RedirectEvent.TYPE_SINGLE_FRAME_REDIRECT:
                            // Show redirect message
                            Application.getApplication().invokeAndWait(new Runnable()
                            {
                                public void run()
                                {
                                    Status.show("You are being redirected to a different page...");
                                }
                            });
    
                            break;
    
                        case RedirectEvent.TYPE_JAVASCRIPT:
                            break;
                        case RedirectEvent.TYPE_META:
                            // MSIE and Mozilla don't send a Referrer for META Refresh.
                            referrer = null;
                            break;
                        case RedirectEvent.TYPE_300_REDIRECT:
                            // MSIE, Mozilla, and Opera all send the original
                            // request's Referrer as the Referrer for the new
                            // request.
                            Object eventSource = e.getSource();
                            if (eventSource instanceof HttpConnection)
                            {
                                referrer = ((HttpConnection) eventSource).getRequestProperty(REFERER);
                            }
                            break;
                    }
    
                    HttpHeaders requestHeaders = new HttpHeaders();
                    requestHeaders.setProperty(REFERER, referrer);
                    HTMLFieldConnection thread = new HTMLFieldConnection(this.data, event, this);
                    thread.start();
                    break;
    
                }
                case Event.EVENT_CLOSE:
                    break;
    
                case Event.EVENT_SET_HEADER:        // No cache support
                case Event.EVENT_SET_HTTP_COOKIE:   // No cookie support
                case Event.EVENT_HISTORY:           // No history support
                case Event.EVENT_EXECUTING_SCRIPT:  // No progress bar is supported
                case Event.EVENT_FULL_WINDOW:       // No full window support
                case Event.EVENT_STOP:              // No stop loading support
                default:
            }
    
            return null;
        }
    
        public int getAvailableHeight(BrowserContent browserContent)
        {
            return 0;
        }
    
        public int getAvailableWidth(BrowserContent browserContent)
        {
            return 0;
        }
    
        public String getHTTPCookie(String url)
        {
            return null;
        }
    
        public int getHistoryPosition(BrowserContent browserContent)
        {
            return 0;
        }
    
        public HttpConnection getResource(RequestedResource resource, BrowserContent referrer)
        {
            return null;
        }
    
        public void invokeRunnable(Runnable runnable)
        {
        }
    
    }
    

    BrowserApp.java

    package app;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.ui.container.MainScreen;
    
    /**
     * @author Febiyan Rachman
     */
    public class BrowserApp extends UiApplication implements FieldChangeListener
    {
        HTMLField htmlField;
        EditField textField;
    
        public static void main(String[] args)
        {
            // TODO Auto-generated method stub
            BrowserApp app = new BrowserApp();
            app.enterEventDispatcher();
        }
    
        /**
         * Default constructor
         */
        public BrowserApp()
        {
            MainScreen screen = new MainScreen();
            screen.setTitle("Browser Test");
            htmlField = new HTMLField("");
            //screen.add();
            textField = new EditField("Tes : ", "");
            ButtonField button = new ButtonField("click", ButtonField.CONSUME_CLICK);
            button.setChangeListener(this);
            screen.add(textField);
            screen.add(htmlField);
            screen.add(button);
            pushScreen(screen);
        }
    
        // parseHTML and display it
        public void fieldChanged(Field field, int context)
        {
            // TODO Auto-generated method stub
            htmlField.parseHTML(textField.getText());
        }
    
    }
    

    HTMLFieldConnection.java

    package app;
    
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInputStream;
    import java.io.DataOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    import javax.microedition.io.HttpConnection;
    
    import net.rim.device.api.browser.field.Event;
    
    public class HTMLFieldConnection extends Thread implements HttpConnection
    {
        private long streamLength = 7000;
        private DataInputStream dataInput;
        private InputStream in;
        private String encoding = "text/html";
        private HTMLField htmlField;
        private Event event;
        private String data;
    
        /**
         * Default
         * @param data
         * @param event : event object for eventOccured() function
         * @param htmlField : HTML display field
         */
        public HTMLFieldConnection(String data, Event event, HTMLField htmlField)
        {
            this.data = data;
            this.htmlField = htmlField;
            this.event = event;
        }
    
        public String getURL()
        {
            return "";
        }
    
        public String getProtocol()
        {
            return "";
        }
    
        public String getHost()
        {
            return "";
        }
    
        public String getFile()
        {
            return "";
        }
    
        public String getRef()
        {
            return "";
        }
    
        public String getQuery()
        {
            return "";
        }
    
        public int getPort()
        {
            return 0;
        }
    
        public String getRequestMethod()
        {
            return "";
        }
    
        public void setRequestMethod(String s) throws IOException
        {
    
        }
    
        public String getRequestProperty(String s)
        {
            return "";
        }
    
        public void setRequestProperty(String s, String s1) throws IOException
        {
    
        }
    
        public int getResponseCode() throws IOException
        {
            return 200;
        }
    
        public String getResponseMessage() throws IOException
        {
            return "";
        }
    
        public long getExpiration() throws IOException
        {
            return 0;
        }
    
        public long getDate() throws IOException
        {
            return 0;
        }
    
        public long getLastModified() throws IOException
        {
            return 0;
        }
    
        public String getHeaderField(String s) throws IOException
        {
            return "";
        }
    
        public int getHeaderFieldInt(String s, int i) throws IOException
        {
            return 0;
        }
    
        public long getHeaderFieldDate(String s, long l) throws IOException
        {
            return 0;
        }
    
        public String getHeaderField(int i) throws IOException
        {
            return "";
        }
    
        public String getHeaderFieldKey(int i) throws IOException
        {
            return "";
        }
    
        public String getType()
        {
            return "text/html";
        }
    
        public String getEncoding()
        {
            return encoding;
        }
    
        public long getLength()
        {
            return streamLength;
        }
    
        public InputStream openInputStream() throws IOException
        {
            return in;
        }
    
        public DataInputStream openDataInputStream() throws IOException
        {
            return dataInput;
        }
    
        public void close() throws IOException
        {
    
        }
    
        public OutputStream openOutputStream() throws IOException
        {
            return new ByteArrayOutputStream();
        }
    
        public DataOutputStream openDataOutputStream() throws IOException
        {
            return new DataOutputStream(new ByteArrayOutputStream());
        }
    
        public void run()
        {
             try
             {
                 in = new ByteArrayInputStream(data.getBytes("UTF-8"));
                 dataInput = new DataInputStream(in);
             }
             catch (Exception e)
             {
                 System.out.println("HttpConnectionImpl : Exception : " + e);
             }
            this.htmlField.processConnection(this, this.event);
        }
    }
    

    Is there something wrong with it?

    Yes, as I finally tried again and again, it seems that the OS 5 does not support old stuff like that, it has its own browserfield2.

  • Why NEITHER cDAQ-9178 isn't in the DAQmx device simulated in MAX?

    Hi all

    I want to create a device that simulated for cDAQ-9178. But Max, I could not find it. It lists only NOR cDAQ-9172. I have the version of NOR-DAQmx 8.9.5.

    Thank you

    Raja

    LV 2009

    Hello Dennis,.

    NEITHER cDAQ-9178 is listed under DAQmx 9.0.2 supported device.

    Thank you

    Raja

  • Audio recording of Windows: the audio device does not work any

    I use a mobile Intel (R) Celeron (R) M with Microsoft WindowsXP Professional version 2002.

    The audio peripheral speakers do not work all of a sudden and there is no sound out put at all.

    But if I use Logitech and Microsoft HD camera mike and hear on Skype. But the speaker and mike does not otherwise for any other application.

    When I try it says there was a problem in the installation of this equipment:

    "The Conexant High definition Smartaudio HD2 - Code 18 is not installing.

    Reinstall the drivers for this device (Code 18)

    Could someone help me in the presentation how to solve this problem and help me to get the missing audio device installed.

    Thanks and greetings

    Srinivas Thompson

    Hello

    I suggest to follow the steps mentioned below and check if the problem persists.
     
    (a) click Start and select Control Panel, click on "Classic view" in the menu on the left.
    (b) double click on the "Device Manager"
    (c) expand "Sound, video and game controllers"
    (d) in the Properties dialog box of the device, on the driver tab, click set to update driver to start the Upgrade Wizard to update the material.
    Alternatively, you can uninstall the driver and then click Scan for hardware changes to reload the drivers.
     
    Also, follow the steps from the link below and check if that helps.
    How to troubleshoot sound problems in Windows XP

    http://support.Microsoft.com/kb/307918/en-GB

     
    Hope this information helps.
  • PowerEdge 2850 message error, no display, usb devices do not work and all readers are off (a little)

    Hello! I'm here in the dell community because I'm having an error with a PowerEdge 2850 server. When I boot it all seems to work, but inspection closer both blue and yellow led on the front is off. All devices (such as a keyboard) will not turn on. Supplies seems to work perfectly well with the error led out of power and both of the Green led on the power supply on. The drives at the front lights up but then after 2 seconds the led for every hard drive goes off and then when you reconnect the drives it will be on for 2 seconds then turns off.

    I tried:

    Reset all RAM chips and CPU in the case

    Replugin all hard drives from the server

    I tried multiple monitors

    has tried just using the power supply instead of the power brick or a surge protector

    and tried to run it only out of a raid, everything ends up in the same result

    I have no idea what to do so im just going to ask the community of dell. Thank you!

    Hello.

    What is the error specific are you? Try the system at least to the POST with the following components:

    • System Board
    • Processor
    • A bar of memory in DIMM1-A or B-DIMM1
    • Power supply
    • Riser
    • Control Panel and bottom of basket (necessary only when the last power state was off. Ensure that all USB devices, including the keyboard are disconnected.
  • Device Simulator to work, don't

    Hello

    I installed the component package 4.6.1 for eclipse, that contains the Simulator for 8900Curve...

    Now trying to open the Http connection I get the error of Tunneling...

    But interesting is that I get this only Simulator... app works well on real device...

    I set deviceside = true and interface = wifi for connection... and all works well on other simulators, but not on this one...

    Someone knows why?

    Thank you.

    Kris

    Go to the 'Manage connections' option on your desktop 8900 Simulator and check that 'WiFi' is enabled.

  • At the start, get Windows Live Essentials has stoped working. Help?

    When I start my HP desktop computer first in the morning, I always get a message saying that Windows Live Essentials has stopped working. What should I do?
    Thank you; Howard Thacker

    When I start my HP desktop computer first in the morning, I always get a message saying that Windows Live Essentials has stopped working. What should I do?
    Thank you; Howard Thacker

    Is it true that Windows Live Essentials has stopped working?

    Have you tried the programs that are part of WLEssentials to check if they are or not?

    If none of them work, then go to programs and features and uninstall all.

    Here is the link to download WLEssentials 2011, if you want to re - install a fresh copy:

    http://explore.live.com/Windows-Live-Essentials?OS=other

  • Site catalyst pushing the company does not

    I am trying to push my live site and can't seem to make it work.  I have a subscription to creative cloud and can't figure out how to get accommodation for working on my site.

    Hello

    I think that you have published the site of Muse, please connect to the admin of the site > in dashboard, there will be "Launch Site" > click on it.

    This would push the live site.

    If you're still having problems, please contact directly.

    Thank you

    Sanjit

  • Who should be subjected to the App world, Simulator or device?

    Hello

    I use the SDK of webworks for BB10 command-line to package and sign my apps. I found 2 subfolders named "Simulator" and "peripheral" generated.

    My first question is what should I submit the .bar file in the subfolder "peripheral" in appworld?

    In addition, the .bar in "Simulator" folder works fine once deployed on the BB10 Simulator. I'm trying to deploy the file .bar 'device' folder on the Simulator, but there is a dialog error popped up. I don't know if it will happen in the event of physical device, because I have no alpha device yet.

    Here's some of my file config.xml

      
      
      
      
    
      
      
      
        
      
    

    I have an alpha device and only use the "Device".bar files to test my apps. Works very well on alpha machines.

  • Error: One of the USB devices attached to this system has malfunctioned, and windows does not recognize it.

    tried already everything written here. When I plug my USB device (3 of them) my Windows a sad of the USB devices attached to this system has malfunctioned, and windows does not recognize it. I tried plugging it into another winXP machine, it won't work. Can you help me?

    Original title: usb malfunction

    His salvation,

    Thanks for posting your query in Microsoft Community Forum.

    1. What are the troubleshooting steps you have tried so far?
    2. If it works much earlier? If so, did you do changes on the computer before this problem?
    3. What type of USB device you are using?

    As you mentioned that the USB device does not work when plugged into a WinXP machine, it may be a problem with the device itself. In addition, the question may also arise if the currently loaded USB driver has become unstable or damaged or if your PC requires an update for problems that could conflict with a device USB and Windows.

    Therefore, I suggest you try the following methods (skip the ones that you already tried) and check if the problem persists.

    Method 1:

    Please try the fixit (s) provided below which will help you solve common problems associated with devices and USB ports.

    If method 1 does not work, try Method 2.

    Method 2:

    Remove and reinstall all USB controllers.

    1. Open Manager devices by clicking the Start button, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the list of the categories of equipment, locate and expand Bus USB controllers.
    3. Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
    4. Restart the computer and let the USB controllers get reinstalled.
    5. Plug in the removable USB device and test to make sure that the problem is solved.

    If the problem persists, go to method 3.

    Method 3:

    This method will install the latest drivers from device to your USB device.

    1. Click the Start button, type Windows Update in the search box, and then click Windows Update in the results pane.
    2. Click find updates. When the scan finished, click optional review updates.
    3. Click the check box next to the update, and then click install updates.
    4. If you are prompted, read the license agreement, then click I agree.
    5. Follow the instructions on the screen to download and install updates.
    6. If you are prompted, restart your computer.

    More information: Update a hardware driver that is not working properly

    If the device fails after updating the driver, you can try to roll back the driver with its previous version.

    Restore a driver with its previous version

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • Problem with reading on the computer devices.

    HI - first timer here. I hope I'm posting in the right place.

    Let's start with a picture.

    The image 'Before' is more or less what my device drivers dialog box looked like before I did
    the error that I will discuss. (More or less because I did an image search on Google to find a)
    image close to my original configuration and displays.)

    The image of the 'After', this is what it looks like now.

    How I got here, it's that I've been playing with the sound on my laptop Toshiba Satellite P755-S5215 (Windows 7, 64-bit). Right click on the Realtek device, I saw "disable." By mistake, I thought it would be grey on the speakers and then I'd be able again to the right and select 'enable '. Simple - but wrong.  Disable meant 'remove.'

    So now some of the applications that require the Realtek device do not work, even though I can still hear the sound in my headphones.

    Am, I watered? Or is it possible to get the speakers to work?

    Thanks in advance.

    Kind regards
    -Prom

    Been answered in another forum - thought I'd stop here.

    Right click in the dialog box opens a context menu with the option

    to display hidden disabled devices. I did it, allowed the unit again.

    Problem solved.

    Kind regards
    -Prom

  • Devices no longer works, usb does not get detected, CD-ROM & CD/DVD-R do not recognize disc

    Original title: devices suddenly stopped working?

    All my devices (that I used a few weeks very well) stopped working.  Help please... I'm trying to upload pictures from my camera to my computer, but my USB is not detected.  My card is not detected.  And my CD-ROM & CD/DVD-R do not recognize the disc.

    Hello

    1. What is the brand and model of the computer?

    2. you receive an error message?

    3. all devices do not work on your computer?

    4. the Device Manager shows all the yellow icons for unknown devices? You have installed all the drivers?

    5. have you made changes on the computer before this problem?

    Method 1:

    You can run the fix - it from the following link.

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2:

    You can read the following article.

    Advanced troubleshooting tips for General USB for Windows XP problems

    http://support.Microsoft.com/?kbid=310575

    Method 3:

    You can read the following article.

    How to troubleshoot common problems that occur when a Windows XP-based computer cannot read a CD or DVD

    http://support.Microsoft.com/kb/321641

    See also:

    Your CD or DVD drive is missing or is not recognized by Windows or other programs

    http://support.Microsoft.com/kb/982116

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows

    Explanation of error codes generated by Device Manager in Windows XP Professional

    http://support.Microsoft.com/kb/310123

  • Windows Live Messenger has stopped working so I can not connect.

    Original title: I can't sign in to MSN messenger. I get a message saying that "MSN Live Messenger has stopped working". If anyone knows how I can fix it. My hotmail works if I go through internet. ___

    Hope someone can help me.  My MSN messenger does not work.  I get a message indicating that "live msn messenger has stopped working" I can get hotmail if I go through the internet, but not MSN messenger.  Anyone know what I can do about it?

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

    They will help you with your WLM questions when repost you your questions in the Forums above Windows Live Messenger.

    See you soon.

    Mick Murphy - Microsoft partner

  • Satellite L300-19F and WXP - audio device does not work

    Hello

    I installed Windows XP Home edition on my Satellite L300-19f after change SATA compatibility I installed Windows XP Home edition and installed all the drivers and everything's fine, but the audio device does not work. I downloaded the driver from DOWNLOAD & support center, but he can not detect.

    BTW: he used to work on Vista.
    What should I do?
    And thank you

    -Download driver audio Realtek HD Realtek page.
    -Go to the Device Manager
    -Remove the sound card.
    -Remove the High definition Audio Controller
    -Restart the laptop.
    -Reinstall the Realtek HD audio driver

Maybe you are looking for