How do the error of debugging JSP page/Javascript on the Blackberry browser on Simulator

Hi, expert,

at present, we are porting a web app (html5) from Iphone to Blackberry. It is written in JSP/javascript ajax in the backend. It is usually work the browser Blackberry 6.0 on a simulator. However, one of the page could be made, it shows just a blank page.

I've seen an error like this onscreen Simulator MDS - CS:

<2011-09-05 11:57:37.822="" edt="">: [1172] :::
d receipt for non-existent packages! 904265821 >
<2011-09-05 11:57:37.854="" edt="">: [1175] :::
G = invalid, DEVICEPIN:CONNECTIONID = 2100000 a: 1770114602, SEQUENCE = 1, information
tion = packet received for a connection timed out >

However, I have seen the error on other pages when they are displayed correctly. Not sure why we continue to see this error.

So, it could be a javascript error as well. Not sure at this stage. The page is written as a JSP page with javascript/ajax inside, which is the same as other pages that work. Very weird.

No idea how I could debug to this case?

Starting from the 7.0 you can use the web Inspector and in 5.0 you can debug using our tools, but in 6.0 you're stuck with more traditional methods such as the suggestion of chicoxmlof try/catch or alert statements

Tags: BlackBerry Developers

Similar Questions

  • Is there a way to get the owner of BlackBerry phone to the BlackBerry browser number?

    We are trying to identify the user by their BlackBerry phone number in a web application Java running on a WebSphere version 6.1 application server (JDK5.0). BlackBerry users access the application through BlackBerry browser. Is it possible to get the phone from the owner of the number with type of JavaScript code and pass the phone back number to the Web server? Has anyone done this type of programming?

    We use curve and BlackBerry Torch.

    Thank you in advance.

    It is not possible to read the phone number of the user of the BlackBerry browser application.  There is no object of JavaScript in the context of the browser which allows a web site to access this type of information (or the browser exposes this info).

    However, during the incorporation of an object browser in a Java application (for example using the framework WebWorks, or creating an application of Java-Web hybrid from scratch), you have the ability to access the necessary telephone API which allows you to read the active phone number.

    One suggestion would be to create a BlackBerry application using the WebWorks platform, which support your JSP page.  Your users then install and use this client on their BlackBerry (instead to access the content via the browser), and then you can use device API such as the phone API to add functionality for your application.

    Sincerely,

    Adam

  • Unable to get the BlackBerry Curve 8530 Simulator appears in Eclipse, run config-&gt; device

    For all fans of Eclipse...

    I installed the BlackBerry Curve 8530 Simulator, which can be run inside BlackBerry JDE, but impossible to make it appear as one of the options under device to the Eclipse IDE. The simulators that appear in Eclipse in run configuration are 9000, 9550, 9700. I just like being in the Eclipse IDE.

    Thanks... any help would be appreciated.

    -Carl

    Yes!

    I understand the problem.

    Please read my last entry in the database of bugs:

    https://www.BlackBerry.com/jira/browse/JAVAAPI-904

    (1) download Eclipse Galileo example: eclipse-java-galileo-SR1 - Win32.zip
    (2) unzip it anywhere. example c:\
    (3) follow these instructions to use the update site: http://na.blackberry.com/eng/developers/javaappdev/javaupdate.jsp
    (4) install BlackBerry_Simulators_5.0.0.337_8530 - Verizon.exe (you may need)

    I also, want to test with the new Simulator that I noticed in the download area!

    BlackBerry_Simulators_5.0.0.508_8530 - Verizon.exe

    I hope this helps!

    -Carl

  • What version of the BlackBerry browser supports the HTML5 video element? Any estimate of the number of blackberry phones that support video?

    What version of the BlackBerry browser supports the HTML5 video element? Any estimate of the number of blackberry phones that support video?

    The

    https://developer.BlackBerry.com/HTML5/documentation/html_elements_2006657_11.html

  • BlackBerry Smartphones how well the Blackberry Desktop software runs on a Mac

    I have a friend that synchronizes its BB 8830 on his computer. It sound it is considered a passage to a Mac, and I wanted to know how well the BB desktop software runs on a Mac. How would you answer this question?

    Calendars for the BB desktop software and better synchronization with Mac Mail and address book of contacts or it works better with MS Office 2011?

    Thank you very much for the research.

    Hey johnbigbootie,

    Welcome to the community of BlackBerry Support Forums.

    BlackBerry Desktop Software will be able to synchronize, you must make sure that the BlackBerry has OS 4.5 or more and it syncs with Outlook 2011.

  • How to connect the port device series to the Blackberry without Martin Simulator

    Is there a program that can interface with the Blackberry Simulator to connect to a device connected to the serial port of the computer to simulate a Bluetooth connection?  I can't believe that Martin is the only way to do it.  Martin offers a free demo version sort of their program?  I searched everywhere but found no one.  I don't need a bluetooth receiver real but just the software in order to supply data from serial port to the Simulator (and I guess that convince the Simulator data from serial port to a Bluetooth device).   Thanks for any help that anyone can provide.

    I'm not aware of any device that will help with this.

    Two suggestions:

    (a) you can write some sort of test, that will feed a data script as if it came from a Bluetooth device.  I got it done in the past - it does not test the treatment of Bluetooth, but it allows you to drive the application program.

    (b) it is not really difficult to test on the device.  Little painful to recompile and reload, but if you have a test drilling (a), then you are only testing the Bluetooth part, which you won't be able to test a connection series anyway.

  • the BlackBerry browser history

    Hello

    Is there a way to access a blackberry browser history list, in the application.

    Concerning

    None

  • Word document and clearing the Blackberry browser cache automatically

    I hope that is clear enough, let me give you general information.

    I developed an application of launchpad for launching the BB browser and it points to a Web site on the intranet that allows end-users to access a word document.

    The end users have access to this document periodically throughout the day to see it has updated content.

    The content of this document is updated regularly throughout the day, a problem arises, however, as the browser cache a copy of this document once it is loaded at the start and can be only manually clear the cache of the browser via the OPTIONS > DELETE the BROWSING DATA > now CLEAR will allow the end user see the updated document to update. This aspect should be done whenever the user wants to see the document, which is unacceptable.

    I realize account by using a word document is not an optimal solution, but under certain constraints, it was the only option available at the moment, which brings me to my question.

    Y at - it no practical way, whether programmatically, through BES settings or programmatically so that the browser delete it has cached content automatically?

    All of these options are excluded, are there no known method to simulate clicks, or control on a BB, be internally via the BB API or even 3 options part where this might be film script in the app to ban? (think windows GUI automation similar to AutoIt or something in that sense).

    Basically, I need a solution where the end user will not need to go into the options and delete the data itself, I realize this is the simple answer to this problem, but there are reasons why this isn't an option.

    I searched the forums here, but also google extensively and found previously that similar surveys were not happy with the results, I hope the further development or even 3rd party solutions may have been raised for this problem.

    Any input would be much appreciated.

    Hi @GSPSDev,

    On the first issue, caching is done based on the URL instead of emptying the cache, all you have to do is add a timestamp to the URL query string and the browser does not load the document from the cache. For example: If your original URL is: http://foo.bar/a.doc, then each time your shipment a request, send it to: http://foo.bar/a.doc?t=%timestamp% (timestamp is simply the value of System.currentTimeInMillis ()).

    On the second issue, the BB API allows you to simulate clicks of the user using the EventInjector:

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/system/EventInjector.html

    Hope that helps,

    E.

  • Location.Replace does not go to the specified page in the BlackBerry browser

    I have a Web site that contains a database of bands and places. Blog visitors can consult the database and view schedules of when and where a band plays. The search results can be filtered based on one or more search criteria (the name of the band, genre, place name, city, etc.). http://atlbands.com

    I decided I would make a printable version of the mobile device of the search page. This page is taken down to the bare bones. I got rid of all the images and a pop-up calendar. The search page contains a number of drop-down lists SELECT HTML, which are populated by php/mysql. After making the desired choice, a "submit" button calls a javascript function that produces a URL and use location.replace to redirect to a new page.

    The new page parameters, runs a query and returns a list of the annexes. The page works as expected in IE and Firefox, as well as on an iPhone. It does not work on BlackBerry. I used the BB Simulater and I can see what is happening.

    The search page is http://atlbands.com/msearch.php

    Is an example of a URL that can be generated on this page

    http://atlbands.com/mresults.php?band=&genre=&venue=North%20River%20Tavern&city=&ZipCode=&County=&da...

    What is strange, is that this URL is generated on the BB,

    http://atlbands.com/mSearch.php?band=&genre=&venue=North%20River%20Tavern&city=&ZipCode=&County=&day...

    As you can see, the URL points to the msearch.php page and mresults.php page. Of course this page expected not all parameters, so that the user sees just the page reset, with all their selections deleted.

    I tried to use location.href and location.assign, but they do the same thing. The funniest is that the regular search page works on the BB (although it is not very easy to navigate on a mobile device).  The difference is that the search page and the results are on the same page. The results of a search using a small screen of BB, I wanted to have all the space available to display the results and takes all the space displaying the options SELECT again.

    Is there a known problem regarding the redirection on the BB page, or have I made a mistake in coding?

    TIA

    Dave

    atlbands.com

    Is there a reason that you use javascript to make sending the form?

    Well, there is certainly no good reason. You're right, using the standard post method is all that is necessary in this sceario, solves my problem. Thanks a lot for your help. I have renamed the page http://atlbands.com/mobile.php

  • BlackBerry 10 how to activate Google search tools in the Blackberry browser?

    When you use Google there is usually an option to tools at the top right. This allows me to limit the search to a country, for example.

    But I don't see this option in the browser on my passport? Any way to activate it I have?

    Hi yoyoma3,

    If you browse to www.google.com on the passport of BlackBerry, scroll down and choose the option that says to "View Google in:" and choose Classic mode.

    Once you select which, in the view of the office, changes of Google in the mobile view. See your available options?

  • View Source in the Blackberry 9530 Storm Simulator - browser

    Hello

    We use a Blackberry 9530 Simulator. When a web page is displayed in the browser, can "view us source"?

    Found some articles, where it was suggested to use ALT RBV?.
    Where we type?

    Thank you
    Nini

    I just realized you were testing the STORM.

    So, it's a little different.

    1 simulate - Blackberry - left-coast-to the top tile.

    2 goto Web page

    3 menu - see the keyboard

    4. keep the! 123 button clicked until it displays a lock icon in the upper left corner

    5. click on 3? $4

    This shows the source in the storm

    see you soon

    Andrew

  • Net_rim_bb_phone_app (64) application is unresponsive; process ended the Blackberry Javelin 8900 (Simulator)

    Hi all.

    I have PhoneListener custom (up to AbstractPhoneListener).

    During the disconnected call (callDisconnected), I show animation countdown. It works very well on "BOLD" (Simulator and device), but I am getting error Application net_rim_bb_phone_app (64)... on 8900.

    Animation is indicated, but after a few seconds he broke down with the error.

    Please take a look of my code and say what I've done wrong, thanks.

      public void callDisconnected( int callId )    {        if( RedirectOptions.getInstance().isInjectingEndCall() )        {            // Reset            RedirectOptions.getInstance().setIsInjectingEndCall( false );
    
                showCountdownAnimation();        }    } 
    
    private void showCountdownAnimation()    {        final AnimationPopup popup = new AnimationPopup();
    
            CountdownBoardField countdownBoard = new CountdownBoardField();        countdownBoard.setAnimationListener( new AnimationListener()        {            public void onAnimationStart()            {            }
    
                public void onAnimationEnd()            {                UiApplication.getUiApplication().invokeLater( new Runnable()                {                    public void run()                    {                        if( popup.isDisplayed() )                        {                            UiApplication.getUiApplication().popScreen( popup );                        }                    };                } );
    
                    if( popup.isIsInterrupted() )                {                    injectRedial();                }                else                {                    runChirp();                }            }        } );
    
            popup.add( countdownBoard );
    
            UiApplication.getUiApplication().invokeLater( new Runnable()        {            public void run()            {                UiApplication.getUiApplication().pushGlobalScreen( popup, 0, UiEngine.GLOBAL_MODAL );            }        } );    }
    

    Discussion of animation: (CoundownBoardField)

    /**     * Handles the animation.     */    private class AnimatorTimer extends Timer implements IAnimator    {        // #region Fields
    
            private int mType;
    
            private boolean mKeepGoing;
    
            private boolean mEventsAllowed;
    
            // #endregion
    
            // #region Constructors
    
            public AnimatorTimer()        {            super();
    
                mEventsAllowed = true;        }
    
            // #endregion
    
            // #region Implementation
    
            public synchronized void denyEvents()        {            mEventsAllowed = false;        }
    
            public synchronized void allowEvents()        {            mEventsAllowed = true;        }
    
            public synchronized void stopAnimation()        {            mKeepGoing = false;        }
    
            public synchronized void startAnimation()        {            mKeepGoing = true;
    
                run();
    
            }
    
            public boolean isAlive()        {            return mKeepGoing;        }
    
            private void fireOnEndEvent()        {            CountdownBoardField.this.mAnimator = new AnimatorTimer();
    
                if( mListener != null && mEventsAllowed )            {                mListener.onAnimationEnd();            }
    
            }
    
            public int getAnimationType()        {            return mType;        }
    
            public void setAnimationType( int animationType )        {            int type = animationType;
    
                if( animationType == Constants.ANIMATION_DEFAULT )            {                type = Constants.ANIMATION_PROGRESS;            }
    
                mType = type;        }
    
            private void doProgressAnimaion()        {            TimerTask task = new TimerTask()            {
    
                    public void run()                {                    --mAngle;
    
                        if( mAngle <= 0 )                    {                        mKeepGoing = false;                    }
    
                        if( !mKeepGoing )                    {                        // stop timer                        cancel();
    
                            fireOnEndEvent();
    
                            return;                    }
    
                        UiApplication.getUiApplication().invokeLater( new Runnable()                    {                        public void run()                        {                            invalidate();                        }                    } );                }            };
    
                super.scheduleAtFixedRate( task, 0, mTimerInterval );        }
    
            public void run()        {            switch( mType )            {                case Constants.ANIMATION_PROGRESS:                {                    doProgressAnimaion();                }                    break;
    
                    default:                {                    throw new NotImplementedException( "Animation type: " + mType );                }            }
    
            }    }
    

    * AnimationPopup lance animation when invoked:

     protected void onUiEngineAttached( boolean attached )    {        super.onUiEngineAttached( attached );
    
            if( attached )        {            int count = getFieldCount();
    
                for( int i = 0; i < count; i++ )            {                animate( getField( i ) );            }        }    }
    

    Thanks for help.

    I solved the problem by adding some Thread.yield () in the wire of animation loop.

    The problem is Simulator suspended for a little time when disconnects the call. I guess, it's simultaor only 8900 problem.

    However, I changed my code and treatment events throug global event listener.

  • BlackBerry smartphones, I've lost the Blackberry browser menu

    One that you can scroll to find addons such as USAtoday, etc.. I don't know how to get it back.

    The browser icon is missing?

    If so try to re-registration of the device by going to Options | Advanced options | The host routing table. Select the "BOLD" entry, press the menu button and select Save now. That should send a message of registration of your provider to the device. Then try to remove the battery for 30 seconds.

  • BlackBerry Smartphones integrated into the Blackberry browser will not open

    the browser built-in to my blackberry curve 8520 opens... it seems that it's now unclickable... no response after all... I already have rmoved the battery and put on, the app doesn't reset... still no response...

    Darksilver Hello,

    Please take a full backup using desktop software preconfigured and do a security wipe.

    Home screen > Option > security option > Security wipe > check emails and contacts (do not check memory card and 3rd aprty app). Type blackberry and click on clean up.

    This will help you out of this problem.

    Thank you.. !

  • Are blackBerry smartphones there plug-ins for the Blackberry browser?

    I think that the browser would be a bit faster if the ads could be blocked, as in Mozilla products. Also scripts.

    Is it available among the applications?

    Thank you.

    Don.

    You can disable the script in the options of the browser, but you can not block ads.

Maybe you are looking for