Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > BOOK: Professional BlackBerry
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional BlackBerry
This is the forum to discuss the Wrox book Professional BlackBerry by Craig J. Johnston, Richard Evers; ISBN: 9780764589539
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional BlackBerry section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 11th, 2005, 02:53 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java application, error accessing local network

I read through the app deployment section of the book, however I didn't find an answer to this.

I wrote a Java application that accesses a servlet. When the servlet is publically accessible on the Internet, the Java application can see it.

However, when I move the servlet behind the firewall (say, 10.0.x.x), I get a connection failure.

I know that the Blackberry can access that server. If I type in the servlet URL, I can see it using the Blackberry Browser. I just can't see it with the Java application (I'm using HttpConnection Connector.open()).

So, I'm assuming its a configuration issue. I made a policy for the application and set 'local network connections' and 'internal network connections' to allow. However, I still can't connect my app to the internal servlet.

Any ideas?

Thanks,
-Warren

Reply With Quote
  #2 (permalink)  
Old August 12th, 2005, 03:05 PM
Authorized User
 
Join Date: Dec 2004
Location: , NJ, USA.
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ibanyan Send a message via MSN to ibanyan Send a message via Yahoo to ibanyan
Default

Hi Warren.

This is indeed a mystery. I will do a bit of digging around to see if I can come up with an answer to this.

Cheers.

Craig.

---
Craig J. Johnston
---
Reply With Quote
  #3 (permalink)  
Old August 13th, 2005, 10:15 AM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Craig. I'll whip up a very simple test case to access an internal network server.

-Warren

Reply With Quote
  #4 (permalink)  
Old August 17th, 2005, 01:26 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Craig,

I've tried using the sample application HttpDemo, that is provided in the IDE (this way we're working off the same code base).

I can access an internet URL with this app. However, I can't access an internal URL (after a bit of a delay, I finally get a connection failure).

This same internal URL can be accessed using the Blackberry browser, however.

I'm using a Nextel phone, using BES, and not using WAP.

Any ideas?

Reply With Quote
  #5 (permalink)  
Old August 17th, 2005, 01:45 PM
Authorized User
 
Join Date: Dec 2004
Location: , NJ, USA.
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ibanyan Send a message via MSN to ibanyan Send a message via Yahoo to ibanyan
Default

Hi Warren.

Now that you mention that you are using the Nextel BlackBerry, it makes sense. The Nextel, for some reason, always tries to access URL's using the Nextel network, and not MDS. You can force it to use MDS by doing this:
- Add deviceside=false at the end of the URL.

This URL has some details.

What are - The different ways to make an HTTP or socket connection
Article Number: DB-00396
http://tinyurl.com/appgw

I hope that this helps.

Cheers.

Craig.

---
Craig J. Johnston
---
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a Local Directory stonesbg ASP.NET 2.0 Basics 8 January 12th, 2007 06:39 PM
Login to local network using compact framework NetDevel18102 C# 0 November 3rd, 2006 09:46 AM
Accessing network registry katsarosj Pro Visual Basic 2005 0 August 12th, 2006 04:20 PM
Copy Files and Folders on Local Network rupakroy5 VB.NET 2002/2003 Basics 1 May 22nd, 2006 10:09 AM
Again a problem accessing a network resource nikunjn VS.NET 2002/2003 0 February 6th, 2004 02:47 AM



All times are GMT -4. The time now is 11:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.