missing net.rim.device.resources.Resource of class, ask not appearing is not in the Simulator

Hi all

I use the Eclipse JDE plugin to develop my application.  It worked well until I have start using hash tables in my code.  After that my application will not work and gave error "error loading of class net.rim.device.resources.Resource.

This class is part of the standard library and do not know what this error is due to.

I tried to reinstall eclipse and all the plugins and now my request will not even appear in the Simulator .

Help, please.

Thank you

Sri

What M.Sohm said is true. To expand a bit about it: If you have a ResourceBundle and the package in the file .rrh statement is at odds with the .jdp, strange things can happen. And if you move a ResourceBundle in a different package, training package not updated automatically, you must address yourself.  Make sure that the package in the .rrh statement corresponds to the Package Explorer view say it should be.

So when you add hash tables, which was the only thing that you added?

Do not panic on the application not appearing is not in the Simulator.  When you run an application in the Simulator, build files (.cod, .jar, etc.) are copied into the directory of Simulator (\plugins\\components\simulator).  When you reinstalled, the directory of Simulator has been rebuilt from scratch, without the build of your application files.  Because you can't build, you don't get new build files to copy into the Simulator.

Hang in there.

Tags: BlackBerry Developers

Similar Questions

  • Suddenly the apps work not (start.. net.rim.device.api.ui.manager .class not found error)

    All of a sudden my apps no longer work

    always "start XXXX error: class 'net.rim.device.api.ui.manager' not found.

    everything compiles fine

    remove all my cod, jar,... directory of Simulator

    clean all projects

    Nothing helps

    from a demo app

    My applications have dependencies to some libraries

    really, you're wondering where to find

    any ideas?

    reason: size of the resource of a library project has been nearly 8 MB

    one of my libraries (where the wallpaper of my browser are stored as png resources) becomes a size of about 7.5 MB

    I know that 8 MB less certain overhead is the maximum allowed size

    (this is the reason why I use some library projects)

    I have learned the hard way that a message like

    NullPointer INTERNAL means "application or a resource too large.

    in this case last month as he tried to PACKAGE an application where the limits of size (app 8MB max size + resource set size 8 MB max) are reached

    but this time there was no error when packing - my library projects and soft with dependencies to these libraries compile well and packing has been without any reported errors

    This time, it occurs during EXECUTION of the application and an error like ' net.rim... class ui. Manager not found "is not very intuitive to think that the size of the resource of one of your library projects is too large

    I don't want to revisit the discussion why these limits exist on modern smartphones (do not have these limits with Android or iPhone), but...

    PLEASE PLEASE RIM

    -Why not offer a message meaningful all-in-package as ' Attention: size of the XXX project resources (or the size of the app) is near the maximum of 8 MB - please restructure your projects instead of "class not found during the race.

  • ScalableGraphics and net.rim.device.api.ui.Graphics

    I was robbed on a bug in my SVG code for too long and now, I discovered that I can use the bad Graphics class.

    ------------SNIP------------------------
            scalablegraphics.bindTarget(graphics);
    
            for(int i=0;i
    

    In the method object, I'm rendering SVG standard above that works for a little while and finally fails.  I am hunting the failure on mine, but in the process I've stumbled upon the documentation that call the bindTarget(Graphics g) aims to link to one of these graphics implementations:

    (From JDE 4.7 of the ScalableGraphics class documentation, whether)

    The type of the Graphics object depends on the Java profile that this specification is implemented, as follows:

    • javax.microedition.lcdui.Graphics on profiles support LCDUI;
    • java.awt.Graphics on profiles supporting AWT;
    • either of the above on the profiles of LCDUI and AWT support.

    My questions to the people here:

    1. is this simply an artifact of Sun Java documentation not updated to include the "net.rim.device.api.ui.Graphics" as a viable link?
    2. It's pure chance that SVG seems to work with the class Graphics RIM?
    3. Everyone uses the class Graphics RIM with SVG?

    Thank you

    Mike

    It is a question of JavaDoc, which I have updated you.  The net.rim.device.api.ui.Graphics class is supported here.

    Can you elaborate on what stops working?  What model of smartphone BlackBerry and the version of the software BlackBerry device test you on?  You can find this under Options, all on the BlackBerry Smartphone.

  • Untrapped exception blackBerry Smartphones: lack of resources net.rim.device.apps.internal.bis.resource.BISClient

    Hello

    I got a new Blackberry, the 9360, not more than 24 hours and I got this error "exception Eception: lack of resources net.rim.device.apps.internal.bis.resource.BISClient"

    I don't know how to cope, but I get this every time I have to restart the device.

    Can someone help me?

    Thank you

    All your support remains I said earlier... your carrier or dealer is responsible for all your formal support and services. Enter your questions for them, and they would have the possibility of that degenerate into RIM if necessary. Carriers are 100% responsible for packages of OS they choose to get out... RIM releases OS packages only for carriers and companies decide if they wish to release to their users, and if they do while they are responsible for support for it.

    Good luck!

  • HttpPushDemo throws the error of missing on real device resource

    I am trying to run the example of httppushdemo on a real device to test for problems with an application to push.  However, if I run the application in the device, I get the error "Missing resource com.rim.samples.device.resource.HTTPPushDemoRes.

    I looked everywhere to find out how to get the resource on the device and impossible to find a solution.  The documentation I found would lead me to believe that it should be compiled in the Cod.

    Why I'm so confused (and frustrated after a long day of our push to debug problems)

    Thank you

    -Bill

    In older levels (4.3 and earlier OS), RIM ran the code, so that the resources (labels field, the names of menu etc.) where in a separate package.  It's a good way to demonstrate how you could internationalize applications, but also everyone confused because putting the application on the device, you need to charge upward of the cod resources as well.

    At the latest OS (4.5 +), they do not do this.

    The demo of http push has not changed, so you can take the source of the 4.5 or later in a previous level JDE and compile it.  It will take so NOT all external files of cod.  That's what I recommend you do.

    However, for you to win download the JDE together for a single file, it is here:

    /**
     * HTTPPushDemo.java
     *
     * Copyright © 1998-2008 Research In Motion Ltd.
     *
     * Note: For the sake of simplicity, this sample application may not leverage
     * resource bundles and resource strings.  However, it is STRONGLY recommended
     * that application developers make use of the localization features available
     * within the BlackBerry development platform to ensure a seamless application
     * experience across a variety of languages and geographies.  For more information
     * on localizing your application, please refer to the BlackBerry Java Development
     * Environment Development Guide associated with this release.
     */
    
    package com.rim.samples.device.httppushdemo;
    
    import java.io.*;
    import javax.microedition.io.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.util.*;
    import net.rim.device.api.io.http.*;
    
    /**
     * The client side of a simple HTTP Push system.
     * This application will listen for image data on the specified port and
     * render the data when it arrives.
     */
    public class HTTPPushDemo extends UiApplication
    {
        // Constants ----------------------------------------------------------------
        private static final String URL = "http://:100"; // PORT 100.
        private static final int CHUNK_SIZE = 256;
    
        // Members ------------------------------------------------------------------
        private ListeningThread _listeningThread;
        private HTTPPushDemoScreen _mainScreen;
        private RichTextField _infoField;
        private RichTextField _imageField;
    
        public static void main(String[] args)
        {
            HTTPPushDemo theApp = new HTTPPushDemo();
            theApp.enterEventDispatcher();
        }
    
        // Constructor --------------------------------------------------------------
        public HTTPPushDemo()
        {
            _mainScreen = new HTTPPushDemoScreen();
            _mainScreen.setTitle(new LabelField("HTTP Push Demo" , LabelField.USE_ALL_WIDTH));
    
            _infoField = new RichTextField();
            _mainScreen.add(_infoField);
    
            _mainScreen.add(new SeparatorField());
    
            _imageField = new RichTextField();
            _mainScreen.add(_imageField);
    
            // Spin off the listening thread.
            _listeningThread = new ListeningThread();
            _listeningThread.start();
    
            _infoField.setText("HTTP Listen object started");
    
            pushScreen(_mainScreen);
        }
    
        // Inner Classes ------------------------------------------------------------
        private class ListeningThread extends Thread
        {
            private boolean _stop = false;
            private StreamConnectionNotifier _notify;
    
            public synchronized void stop()
            {
                _stop = true;
                try
                {
                    // Close the connection so the thread will return.
                    _notify.close();
                }
                catch (IOException e)
                {
                    System.err.println(e.toString());
                }
                catch (NullPointerException e)
                {
                    // The notify object likely failed to open, due to an IOException.
                }
            }
    
            public void run()
            {
    
                StreamConnection stream = null;
                InputStream input = null;
                MDSPushInputStream pushInputStream=null;
    
                while (!_stop)
                {
                try
                    {
    
                        // Synchronize here so that we don't end up creating a connection that is never closed.
                        synchronized(this)
                        {
                            // Open the connection once (or re-open after an IOException),  so we don't end up
                            // in a race condition, where a push is lost if it comes in before the connection
                            // is open again. We open the url with a parameter that indicates that we should
                            // always use MDS when attempting to connect.
                            _notify = (StreamConnectionNotifier)Connector.open(URL + ";deviceside=false");
                        }
    
                        while (!_stop)
                        {
    
                            // NOTE: the following will block until data is received.
                            stream = _notify.acceptAndOpen();
    
                            try
                            {
                                input = stream.openInputStream();
                                pushInputStream= new MDSPushInputStream((HttpServerConnection)stream, input);
    
                                // Extract the data from the input stream.
    
                                DataBuffer db = new DataBuffer();
                                byte[] data = new byte[CHUNK_SIZE];
                                int chunk = 0;
    
                                while ( -1 != (chunk = input.read(data)) )
                                {
                                    db.write(data, 0, chunk);
                                }
    
                                updateMessage(data);
    
                                // This method is called to accept the push.
                                pushInputStream.accept();
    
                                input.close();
                                stream.close();
    
                                data = db.getArray();
    
                            }
                            catch (IOException e1)
                            {
                                // A problem occurred with the input stream , however, the original
                                // StreamConnectionNotifier is still valid.
                                System.err.println(e1.toString());
    
                                if ( input != null )
                                {
                                    try
                                    {
                                        input.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
    
                                if ( stream != null )
                                {
                                    try
                                    {
                                        stream.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
                            }
                        }
    
                        _notify.close();
                        _notify = null;   
    
                    }
                    catch (IOException ioe)
                    {
                        // Likely the stream was closed. Catches the exception thrown by
                        // _notify.acceptAndOpen() when this program exits.
    
                        if ( _notify != null )
                        {
                            try
                            {
                                _notify.close();
                                _notify = null;
                            }
                            catch ( IOException e )
                            {
                            }
                        }
                    }
                }
            }
        }
    
        private void updateMessage(final byte[] data)
        {
            Application.getApplication().invokeLater(new Runnable()
            {
                public void run()
                {
                    // Query the user to load the received message.
                    String[] choices = {"Ok" , "Cancel" };
    
                    if ( 0 != Dialog.ask("New message received. Do you want to render it?" , choices, 0) )
                    {
                        return;
                    }
    
                    _infoField.setText("Text received - size:  " + data.length);
    
                    try
                    {
                       _imageField.setText(new String(data));
                    }
                    catch (Exception e)
                    {
                        Dialog.inform(e.toString());
                        System.err.println(e.toString());
                    }
                }
            });
        }
    
        protected void onExit()
        {
            // Kill the listening thread.
            _listeningThread.stop();
    
            try
            {
                _listeningThread.join();
            }
            catch (InterruptedException e)
            {
                System.err.println(e.toString());
            }
    
        }
    
        private class HTTPPushDemoScreen extends MainScreen
        {
    
            /**
             * @see net.rim.device.api.ui.Screen#close()
             */
            public void close()
            {
                onExit();
    
                super.close();
            }
        }
    }
    
  • Class 'net.rim.device.api.ui.TouchEvent' not found

    I built the demo using the JDE 4.7.0.41 TicTacToeDemo application and tested using the simmulator without problem. Also, I do not change a signle code line.

    I also loaded on my phone, and when you start it on my phone, I got the following error:

    Error Starting TicTacToeDemo: Class 'net.rim.device.api.ui.TouchEvent' not found

    No idea why this error?

    You are right.  The version of the BlackBerry JDE must be equal or lower than the software version of terminal Blackberry target.  The following link explains it further.

    What is - an appropriate version of the BlackBerry JDE
    Article number: DB-00537

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/What_Is_-_Appr...

  • NET.rim.device.API.UI.decor.background class not found 8100 pearl

    Hello

    I finished my application. While testing the device, I get the error class net.rim.device.api.ui.decor.background not found. I'm testing the 8100 pearl device. But this application works well on Blackberry JDE 4.7.0.Please suggest me wat would be right...

    That the class was introduced in the 4.6 API, it does not exist in the 4.5 which is being tested for the pearls of 81XX series.

  • Question about l ' object net.rim.device.api.ui.Screen

    Hello world

    I have a class that accepts an object of type "Screen" (net.rim.device.api.ui.Screen) in its constructor. When I instantiate this class, I include a class that extends the screen as a parameter. For example:

    public ClassA extends MainScreen {
         public void tester(){
              ClassB classB = new ClassB(this);
         }
              public void sampleMethod(){        ...     }}
    
    public ClassB {
    
         Screen screen;
    
         public ClassB(Screen screen) {
              this.screen = screen;
         }
         public doStuff(){          screen.sampleMethod();     }}
    

    My problem is that ClassB calls methods that are placed, but unless I change type "Screen" in the "class A", I receive the error: "the sampleMethod() method is not defined for the type of screen.

    How can I me ClassB to accept different classes that extend screen?

    Thank you!

    "each screen implements a SampleMethod() interface.

    Then could ClassB looks like this?

    public ClassB {}

    SampleMethodInterface screen;

    public ClassB (form SampleMethodInterface) {}
    This.screen = screen;
    }

    public doStuff() {}
    screen.sampleMethod ();
    }
    }

  • net.rim.device.api.ui.decor.Background not available in Eclipse?

    Hi, I use Eclipse (v3.4.1) and therfore installed JDE plug-in for Eclipse version 1.0.0.67 has the Blackberry JDE 4.5.0 component Package.

    I checked JDE 4.5.0 and I know he has the base class because it doesn't even have the package of net.rim.device.api.ui.decor

    What I'm trying to do, is simply to add a LabelField to a title bar that has a PNG file as a background?  Is there a work around for this without having to make my own Field object?

    See you soon.

    Hello

    OS 4.5.x has not décor package yet. It was added only in 4.6 or later. So if you need to write your application for 4.5, you must implement your own domain, possibly replace methods paint (...) and (...) layout of fields.

    If you like about 4.5 and I want to just write your application to 4.6 or higher version, you will need to install the component via the Eclipse Update site 4.6 package. After successful installation, you can switch to the package of 4.6 component via preferences-> settings BlackBerry workspace.

    Hope this helps,

    Daniel

  • net.rim.device.api.io.file.FileIOException: file system error

    I get this error message "net.rim.device.api.io.file.FileIOException: file system error.

    FileConnection fc = null;
    try {}
    FC = (FileConnection), Connector.open (path);
    } catch (Exception ex) {}
    System.out.println (ex.getMessage ());
    ex.printStackTrace ();
    }

    The one you suggest why its kind. Thanks in advance

    "Its not allowing me" - unusual, what it actually does?

    I recommend that debug you this code initially on the Simulator.  Add a simulated SD card and try it.  You should find it easier than debugging on the device.

    Once you have your code works on the Simulator, so try on the device.

  • XMPP? net.rim.device.cldc.io.ippp.SocketBaseIOException: Connection refused: connect

    Hello

    My system is running under the power of Attorney and I confifured mds setting of Article number: DB-00047.

    After this adjustment, I am able to do the http connection.

    I have downloaded the open source XMPP from this link. and I'm doing the connection socket with my Gmail now, but through it throw net.rim.device.cldc.io.ippp.SocketBaseIOException: connection refused: exception, but when I add on the side of true device he throw "java.io.IOException: Peer refused the connection.

    final StreamConnection connection = (StreamConnection) Connector.open("socket://" + this.host + ":" + this.port, Connector.READ_WRITE);
    

    I also tried adding deviceside = 'true' and 'false' parameter but I got same result.please help where I am doing wrong or it is still problem of proxy that do not allow the socket connection. Thoughts or ideas is greatly appreciated.

    Thank you.

    Currently, the MDS - CS Simulator allows only proxies be set for straight HTTP connections.

    Kind regards

  • net.rim.device.api.io.IOPortAlreadyBoundException: SMS port already in use.

    It's strange, the code works fine on j2me, but it does not work on Blackberry. I'm testing with Blackberry 9000 V4.6 emulator. He throws net.rim.device.api.io.IOPortAlreadyBoundException: SMS port already in use. when I try to open a connection.

    The line below throws the exception:

    MC MessageConnection = (MessageConnection) Connector.open (connection);

    It seems that the port is already open, but I don't know that I finally closed the connection by exiting the application.

    The link below gives me a great help:

    http://supportforums.BlackBerry.com/T5/Java-development/SMS-MessageConnection/m-p/63975#M7177

  • net.rim.device.cldc.io.ippp.SocketBaseIOException in the ksoap plug-in

    Hello

    I use ksoap for post user and password to the server for connection module,

    Here is the code for the same,

    SoapObject request =new SoapObject (methodname in the namespace,);

    request.addProperty ("username", "hello");

    request.addProperty ('password', 'Hi');

    Envelope of SoapSerializationEnvelope = SoapSerializationEnvelope (SoapEnvelope.VER11) new;

    envelope. bodyOut = request;

    envelope. dotNet = true;

    HttpTransport ht = HttpTransport (webserviceurl) new;

    HT. debug = true ;

    HT. Call (soapaction, envelope);

    result = envelope.getResponse ((SoapObject));

    I use mds and 4.5 os, however after ht.call (envelope soapaction), ;  I'm special suite

     

    net.rim.device.cldc.io.ippp.SocketBaseIOException: Connection timed out: connect

    Help, please

    Thanks in advance

    You can do this mark as resolved then?  If necessary, especially if it might help someone else, can tell us how you solved the problem?

  • NET.rim.device.API.browser.field2 is based on webkit in OS6?

    I read this post on the differences between browser.field and browser.field2.

    http://supportforums.BlackBerry.com/T5/Web-development/net-rim-device-API-browser-Field2/m-p/416465;...

    On OS 5 browser.field2 is based on the rendering engine of mango. I was wondering if browser.field2 is still inspired by Mango in OS 6 or if it has been updated to use the new engine webkit based.

    Thank you

    Geoff

    The OS 6, browser.field2 has been updated and works on the WebKit engine.

  • Protocol not found: net.rim.device.cldc.io.rtsp.Protocol

    I try to use the rtsp video streaming without the browser and the native multimedia player. Whenever I try to open a connection to the 3gp file I get this Protocol not found error:

    "Protocol not found: net.rim.device.cldc.io.rtsp.Protocol".

    I get this to Connector.open (), it is not associated player.

    I'm testing with a youtube rtsp link:

    RTSP://rtsp2.YouTube.com/CnALENy73wIaZwk9rVk-nJ9fNRMYESARFEIoeXRhcGktTWV0b3ZhLVZpc2lvbmZvcllvdVR1YmUtdGU1ZjBxcHQtMEgGUghzdGFuZGFyZHIgwfgx8V-PaxNuQa-z3yd4eWD9LlbsOl3qUImVMV6ramMM/0/0/0/video.3gp

    I tried specifying connection settings three ways:

    * « ; = wifi interface.

    * « ; deviceside = true' with the correct apn settings

    * « ; deviceside = true; ConnectionUID = WAP2 trans' (firing from the service book)

    None of them will work. I am compiling to 4.3.0 and tests on a 4.6.0.210 9000.

    I also put the issue on the 4.6.0.190 9000 and 4.7.0.75 9530 simulators.

    The same link works very well when the call via the browser.

    I tried to use a data source because I expected the rtsp Protocol to be supported by the connector on 4.3.0 +, but I guess I can try just passing in the Locator directly to the createPlayer() call if the player is the only thing that was supported by it. I'll try later and after return.

Maybe you are looking for