Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > BOOK: Professional BlackBerry
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2005, 02:53 PM
Registered User
 
Join Date: Aug 2005
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

 
Old August 12th, 2005, 03:05 PM
Authorized User
 
Join Date: Dec 2004
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
---
 
Old August 13th, 2005, 10:15 AM
Registered User
 
Join Date: Aug 2005
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

 
Old August 17th, 2005, 01:26 PM
Registered User
 
Join Date: Aug 2005
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?

 
Old August 17th, 2005, 01:45 PM
Authorized User
 
Join Date: Dec 2004
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
---





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.