java.io.IOException on Blackberry 9700
Hey... Uhm... When I try to use a webservice (SlackerRadio on my BlackBerry 9700), it is said it is impossible to activate due to the failure of activation of: java.io.IOException: General Socket error. How can I fix? Please and thank you
Hello and welcome to the forum of Java developers.
Before look us at your problem, it seems to me that you are not a developer of BlackBerry, but have installed the Slacker App and have problems with him? If Yes, then you should use the Slacker support procedure (sorry I'm not aware of it), because they know how they wrote at the request and so they will have a better idea of what changes you can make to the configuration, so that it will work for you.
Let us know if you develop for BlackBerry, and then we'll try to help you.
Tags: BlackBerry Developers
Similar Questions
-
java.io.IOException: APN is not specified
Hello
I saw that this topic was opened at other times, but I don't know if I understand what I have to do.
First of all, I got this code:
String url1 = "www.myurl.com;
con = (HttpConnection), Connector.open (url1).
is = con.openInputStream ();
But when I try it in my BB device, I got java.io.IOException: APN is not specified. (Try the code with the blackberry MDS services simmulators email in the works of eclipse Simulator)
So, as I read somewhere there, I tried this code:
TransportDetective td =new TransportDetective();
if ( TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_BIS_B) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_MDS) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_TCP_CELLULAR) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_TCP_WIFI) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_WAP) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_WAP2))
{
String url2 = 'www.myurl.com;
URLFactory urlFactory =new URLFactory(url2);
final ServiceRecord defaultTCPSR = td.getDefaultTcpCellularServiceRecord ();
final String connectionURL = urlFactory.getHttpDefaultTcpCellularUrl (defaultTCPSR);
HttpConnection conn = (HttpConnection), Connector.open (connectionURL);
}
But when I paste in my code, I wonder to create classes of URLFactory and also TransportDetective.
I looked on the net and I found codes for the class here: http://ecuadorblackberry.ec/?p=425
But when I try, I get that td.getDefaultTcpCellularServiceRecord () returns a null value, so it does not work.
The only thing I want, is to connect to a web service from my application, how can I do?
Thank you
Sorry one thing yet.
You have discovered, you can specify the options of AFN directly on the URL.
Because you are in Spain and will sell to people in Spain only, then you can check the network and provide the correct APN information for this network. Watch RadioInfo. You can use
getCurrentNetworkName()
and try to match the name, or
getMNC (RadioInfo.getCurrentNetworkIndex ())
and look for the associated MNC code and match from there.
Once you know the network, you can specify the AFN on the URL.
Who help me?
-
Consume Webservice - java.io.IOException: General socket error
Hey,.
I'm trying to consume a webservice ( www.webservicex.net, but also tried other forecasts) with a smart blackberry phone, but I still have a java.io.IOException.
I generated stubs with the Java Wireless Toolkit 2.5.2. Now, I call the heel of the Java application.
My MDS is running and are configured for use with my proxy. I can view each page with the built-in browser.
The call of the stub works like this:
public class BB_WeatherStart extends MainScreen { public BB_WeatherStart() throws RemoteException { com.weather.WeatherForecasts weather = null; WeatherForecastSoap_Stub stub = new WeatherForecastSoap_Stub(); weather = stub.getWeatherByZipCode("10024"); LabelField longi = new LabelField(); longi.setText("Longitüde" + weather.getLongitude()); add(longi); LabelField status = new LabelField(); status.setText("Status" + weather.getStatus()); add(status); } }
The instantiation of the stub works, but the call of the method getWeatherByZipCode returns this exception.
This is the code for the method:
public com.weather.WeatherForecasts getWeatherByZipCode(java.lang.String zipCode) throws java.rmi.RemoteException { Object[] inputObject = new Object[1]; inputObject[0] = zipCode; Operation op = Operation.newInstance(_qname_GetWeatherByZipCode, _type_GetWeatherByZipCode, _type_GetWeatherByZipCodeResponse); _prepOperation(op); op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://209.162.186.60/GetWeatherByZipCode;deviceSide=true"); Object resultObj; try { resultObj = op.invoke(inputObject); } catch (JAXRPCException e) { throw e; } //Snip.. the Rest of the method is never reached ;) }
The Exception is thrown in the call to op.invoke (inputObject);
I also tried the hostname instead of IP address, but then I get a j "" ava.io.IOException: bad DNS address "and if I try without the"; " deviceSide = true' I get the message "Local port: 19780 APN:"rim.net.gprs"APN username: password 'null' AFN: there is no connection"null"
Thanks for your help
Tina
After watching a little I don't think that the original problem was with the connection I think it is related to a null value returned by the web service. I generated a set of stubs from the web service, you were using and tried with the same result as you. I got a version of 4.5 and made some settings (I don't specifically know who he was) and the error has become ' java.rmi.MarshalException: nillable not element of array in response type is not met. ". Went up to version 4.7 and here it works very well. If you run this with a test tool web service call, you see a null of WeatherData to the bottom element which is the likely culprit. I read somewhere that BB do not have NULL values in some earlier versions.
hope that helps.
T
-
Java.io.ioException: Tunnel Timed out received
Hello
We have developed a Java ME application that has been evaluated for fine fonctinner on Blackberry 9000 using the Wifi Interface. Downloaded the application on our server and the application installed on the device using OTA. The cod was signed through Blackberry. Application installs correctly and when it is launched, he's trying to connect to our server by using the HTTP connection. We use the direct TCP with Vodafone (India) APN setting (I tried www, portalnmms and blackberry.net) but with all 3 APNs, the error is the same:
java.io.IOException: Tunnel Timed Out
With the URL '; deviceside = true' is specified for a direct TCP connection. Default browser to HTTP is configured for the Internet browser.
HTTPDemo installed JDE, device samples and it also gives the same error.
Tried to contact the service provider for the mistake of tunnel... but no help.
Can someone help pls on this issue? Are there network tools to diagnose problems of tunnel on blackberry?
Model: Blackberry 8310
Version: 4.5.0.55 (Platform 2.7.0.68)
Thank you
Bennett
Try the NetworkDiagnostics tool of the RIM. In addition, look at the log of events to see if the right NPP (those that you set in the Options-> advanced-> TCP) is actually used by the operating system - sometimes WAP 2.0 TCP is used instead.
Another thing you could try is to take the this BlackBerry SIM card and insert it in a non-BlackBerry phone, say, a Nokia. Then you can check if this unit can connect to the Internet and you might also find what NPC he uses.
-
Hi all
I develop an application that communicates with a database MySQL via PHP stored on the server scripts. Until today I've developed using the Simulator, and everything has been fine. I now started to test on a device and, while being connected to wifi, everything is still fine. However, the minute I turn off wifi and let the network provider, O2 UK, I get:
"Request failed: reason: java.io.IOException: Tunnel failed".
The source of the connection code is as follows:
public void run() { // The following code will only build under JDE 4.5 and later try { String connectionParameters = ""; // JDE 4.3 is required to get WLANInfo if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) { // Connected to a WiFi access point connectionParameters = ";interface=wifi"; } else { int coverageStatus = CoverageInfo.getCoverageStatus(); ServiceRecord record = getWAP2ServiceRecord(); if (record != null // In JDE 4.5 CoverageInfo changed the name of COVERAGE_CARRIER to COVERAGE_DIRECT // The constant value for both is the same, '1', so you can use that to avoid any // dependency on JDE 4.5 && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { // Have network coverage and a WAP 2.0 service book record connectionParameters = ";deviceside=true;ConnectionUID=" + record.getUid(); } else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { // Have an MDS service book and network coverage connectionParameters = ";deviceside=false"; } else if ((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { // Have network coverage but no WAP 2.0 service book record connectionParameters = ";deviceside=true"; } } // Pop up a dialog showing the parameters chosen UiApplication.getUiApplication().invokeLater( new DialogRunner("Connection Params: " + connectionParameters)); HttpConnection connection = (HttpConnection) Connector.open(url + connectionParameters); connection.setRequestMethod(method); if (method.equals("POST") && postData != null) { connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded"); OutputStream requestOutput = connection.openOutputStream(); requestOutput.write(postData); requestOutput.close(); } int responseCode = connection.getResponseCode(); if (connection instanceof HttpsConnection) { HttpsConnection secureConnection = (HttpsConnection) connection; String issuer = secureConnection.getSecurityInfo() .getServerCertificate().getIssuer(); UiApplication.getUiApplication().invokeLater(new DialogRunner("Secure Connection! Certificate issued by: " + issuer)); } // Really you should check for more than just HTTP_OK if (responseCode != HttpConnection.HTTP_OK) { screen.requestFailed("Unexpected response code: " + responseCode); connection.close(); return; } String contentType = connection.getHeaderField("Content-type"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); InputStream responseData = connection.openInputStream(); byte[] buffer = new byte[10000]; int bytesRead = responseData.read(buffer); while (bytesRead > 0) { baos.write(buffer, 0, bytesRead); bytesRead = responseData.read(buffer); } baos.close(); connection.close(); screen.requestSucceeded(baos.toByteArray(), contentType); } catch (IOException ex) { screen.requestFailed(ex.toString()); } }
I scoured these forums and tried everything I can find. I tried different settings, including changing the APN settings both wap and mobile options for O2. Nothing seems to solve this problem.
Any help would be appreciated!
Thank you
Jack
OK, good news. Fixed. Thanks a lot for your answers. I would have understood the connection settings as they appear to have been the problem.
I don't remember exactly which it generated, but I decided to try replacing it with the generator of connectionParameter above with the snippet connSuffix here:
http://supportforums.BlackBerry.com/T5/Java-development/connecting-your-BlackBerry-http-and-socket-c...Worked like a dream, so I'm very indebted to all those who contributed to this. It now seems to work little matter the type of connection is available including BES.
In case anyone is interested, however, I tried all combinations of settings APN bloody O2, but it came to nothing. I am disappointed that it was the connection settings I developed that a book by Apress, and I followed this particular part, Word for Word.
Thank you all for the world of useful information here!
-
Curve 8320 java.io.IOException: connection not writable
Hey guys,.
Does anyone know of specific problems with the connections involving 8320 to the images? It seems to me this error:
java.io.IOException: connection not writable
When I try to upload an image. I know that the code is correct, because I got it runnning on the 8830, 8900, 9000 and 9530.
Anyone know of a particular way of dealing with that on this version?
Thanks for your help and your time
EDIT: It is also worth noting that I have a series of other connections to Web pages using the formats the https and http which work perfectly well with the 8320. It only occurs with the download of images.
Apparently he has developed before, for example,
http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=16200
You can view the code? At least that anyone happen to know of a bug that would cause this, at least consider a timing
or weird problem because they may appear only in certain configurations.
-
Anytime I try to connect my blackberry 9700 with my Hp compaq 615 laptop
Whenever I try to connect my blackberry 9700 with my laptop Hp compaq 615 I always get this error message... The bluetooth device driver is not installed. Install the latest driver for the device.
Hello
What version of Windows operating system is installed on your computer?
I suggest to install the drivers provided by blackberry on the computer and check if this can help,
Also try the steps in the following Microsoft article and check if it helps.
Set up a Bluetooth enabled device (for Vista): http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device
Solve problems with Bluetooth (for Vista) devices: http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices
Hope the information is useful.
-
Cannot connect my BlackBerry 9700 with Windows.
Original title: Divece driver does not
Hi, I have a Blackberry 9700. I tried to connect it to my PC, which runs on windows Vista (also another one that turns under W7) and know it has no driver. and can not find a. Also tried several times to download as remove that to redownload the file of the driver from the website RIM still cannot find a driver, even thought that he integrates the latest version, and still claims the CD which is not included in any pack 9700.
Please send me some answear because I'm going nuts.
Hello
1. How do you try to connect your BlackBerry to your computer? You use a USB cable or via Bluetooth?2. could you give us the exact error that you are experiencing?3. What is the status of this device in the Device Manager?See the links below for help on Device Manager.
Open the Device Manager
http://Windows.Microsoft.com/en-us/Windows-Vista/open-Device-Manager
Method 1.
Check if there is no driver available for BlackBerry 9700, through Windows update. You can also try to update this device in the Device Manager.
You can also check the items below that explain to update hardware drivers.
Updated a hardware driver that is not working properly
http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly
Method 2.
First of all, you need to install the BlackBerry Desktop Software from the link below and then try borrowed the BlackBerry with your Windows computer using the USB cable. Navigate on the following link and in the dropdown choose the first option:BlackBerry Desktop Software version 5.0 Service Pack 1 and then press next and download it. Install this software and check if it works.
https://www.BlackBerry.com/downloads/browseSoftware.doHere is the alternative link to download the software above.
http://NA.BlackBerry.com/eng/services/desktop/Here is the support page for desktop software:
http://NA.BlackBerry.com/eng/support/software/desktop.jspYou can also download the e-guides for your BlackBerry for more information.
http://docs.BlackBerry.com/en/smartphone_users/subcategories/?usertype=1&category=BlackBerry+smartphones&subcategory=BlackBerry+bold+9700+seriesThis is the homepage of support BlackBerry:
http://NA.BlackBerry.com/eng/support/
Important note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.I hope this helps.Thank you, and in what concerns:
Shekhar S - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly. -
BlackBerry Smartphones Blackberry 9700 crashes a lot
My blackberry 9700 suspended began quiet often.
He also always shows full application storage memory. While my memory card offers plenty of available space.
Few people, said that the app store is in d phone memory and not the card support, however the applications I have are just whatsapp, fancy smiley, shazam, Google talk, you tube, world blackberry, bbm, blackberry travel and protect.
And other default applications such as a calculator and a manager of files etc.
That would be the reason that it works slowly or not responding sometimes? I delete log d at least 3 times a day, but the problem still persists.
Could someone please help?
Some good advice from prince2012, but let me add a question: what OS are you running? The "BOLD" originally shipped with OS 4 and can be updated to OS 5 (I think that these figures are correct). However, many people have decided to spend in addition to OS 6, which is not a good idea on a 9700. If you are currently running OS 6, I recommend you go back to OS 5.
I hope that helps you.
-
Hello
I m opening HttpConnection with
HttpConnection connection = null; try { connection = (HttpConnection)Connector.open(targetURL); int status = connection.getResponseCode(); System.out.println("status is : " + status); if (status == HttpConnection.HTTP_OK) { System.out.println("HttpConnection.HTTP_OK : "+connection.getResponseMessage()); connection.setRequestMethod("POST"); //connection.setRequestMethod(HttpConnection.POST); System.out.println("connection.setRequestMethod(POST); /*connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Content-Language", "en-US"); //Send request wr = new DataOutputStream(connection.openOutputStream()); wr.writeChars(sendRequest); wr.flush(); wr.close } } catch (IOException e) { System.err.println("ERROR =====> " + e.toString()+":: "+e.getMessage()); e.printStackTrace(); }
But I m is
java.io.IOException: null for setRequestMethod("POST")
Until it runs fine.
What is the problem in my code?
You do it in the wrong order. You need to do the setRequestMethod(), the setRequestProperty() and the openOutputStream() before calling getResponseCode().
-
java.io.IOException:Tunnel down in a call to url
Hello
I wrote a code that use HTTPConnection to call a url:
HttpConnection conn = (HttpConnection), Connector.open (url);
conn.setRequestMethod (HttpConnection.GET);
int respCode = conn.getResponseCode ();
...It's ok in my Pearl and send the url correct, but on "BOLD" my friend, I caught this exception:
java.io.IOException:Tunnel FailedI also test who call for help
StreamConnection c = null;
S InputStream = null;
try {}
c = Connector.open (url) (StreamConnection);
s = c.openInputStream ();
...and
ContentConnection c = null;
DataInputStream tell = null;
try {}
c = Connector.open (url) (ContentConnection);
int len = (int) c.getLength ();
say = c.openDataInputStream ();
...but it's the same.
Also, I can call the url by bb browser and it's ok.
I tested the app by WIFI and Edge.
It's really weirdThanks in advance
You must understand the functioning of connections of BB.
Please look at the sticky thread on communications at the top of this forum.
BTW, this is a double post on the BB developer forum, where I also answered your question.
-
BlackBerry Smartphones BlackBerry 9700 new gold Version of the software download problem.
I tried several times to download BlackBerry 9700 gold new Verson Softwar different laissΘes of the BB site but I got 9 percent download only. How can I easily get full download new version of the software?
https://swdownloads.BlackBerry.com/download/contactFormPreload.do?code= F804D21145597E42851FA736E221DA3F & dl = 8BDFD306B1CD60AECB3FC3B7E4C00C46
My problem is solved. In fact, I'm Asian and I was downloading more software BB which is not for the countries of Asia:
BlackBerry Handheld Software v6.0.0.2921 (Multilingual)
Package Version: 6.0.0.2921
Composed of:- Applications: 6.0.0.666
- Software platform: 6.6.0.241
- File name: 9700M_PBr6.0.0_rel2921_PL6.6.0.241_A6.0.0.666_Rogers_Wireless_Inc.exe
- File size: 155,36 MB
Note: The version numbers of software platform and Applications are located under Options-about screen on the handheld.
- Download Software
and I got "BlackBerry Handheld Software v6.0.0.2921 (Asia)" successfully downloaded.
Thanks for your reply.
-
BlackBerry Smartphones from blackBerry 9700 reboot screen stuck and deformed
I rebooted my blackberry 9700, but it is stuck on restart screen where it says blackberry with unfinished start line and a distorted screen
Hey scramba,
Welcome to the community of BlackBerry Support Forums.
Have you tried to remove the battery? If so, I would say to do a reload own the software of the device as shown here: http://btsc.webapps.blackberry.com/btsc/KB11320, please test before you restore all data on the device.
I hope this helps!
-
BlackBerry Smartphones BlackBerry 9700 - OS 6
Hi all
Someone knows where to download the latest Blackberry 9700 OS 6?
Thank you.
Kind regards
BH Yeo
This is the official version.
https://www.BlackBerry.com/downloads/entry.do?code=15CF76466B97264765356FCC56D801D1
Instructions for installation on ANY carrier 9700:
1 download the BONES above files to the PC then install it to the PC by running (double click) the downloaded file.
2. go in c:\program files Research in motion\apploader and delete the file named "vendor.xml." Users of Vista/Win7: in the apploader folder, simply click on "Compatibility files" to see the Vendor.xml file. Once you have that - just delete the vendor.xml file here (even if you have deleted or think that you have previously deleted in the folder) and voila, it will allow you to update the newly installed operating system!
3. plug in the BB and double-click on "Loader.exe." It is located in the same place as the above vendor.xml file.The process takes about 45 minutes to an hour depending on the amount of data you need to back up and restore during the process. Once he did load the new OS, it will reboot (it may do it twice during the entire process.) You will see a black "BlackBerry" screen with a status bar for up to 20 minutes at a time while the DM says "waiting for initialization."
If, for some reason, you end up with a white screen with small icons and the number 507, simply connect the PC again and run Loader.exe again, and it should load the operating system on the device. -
BlackBerry smartphone how to download the file Word for Blackberry 9700
How to download word for blackberry 9700?
I launch Desktop Manager-> Media-> Media Manager, but it fails. But I can't find any icon to transfer files from PC to device Backberry word.
My Blackberry is 9700, V5.0.0.330 (Platform 5.1.0.91)
A word document is not that a media file would be my first assumption on why it would fail using the Media Manager.
Have you tried attaching the file to an e-mail and send to yourself or the document and connect your device to your PC and drag and drop into document folder in the memory of your device or media?
Maybe you are looking for
-
Laptop goes down when using the internet - Satellite Pro L100
Hi, I had my laptop (satellite pro L100) 5 days and I connect through a router to the internet, but in the last days when im using the internet, a Help window automatically opens and approximately 90 internet Explorer windows open, it became really f
-
How to get a second y axis in the xy graph
Hello I know that there are some issues around this topic. But if someone can give a step by step description visible value, how to get a second axis please? I spent a few hours trying to figure that out. LabView online said: "... drag the name of si
-
When I try to register (Photo Story 3 has encountered a problem and must close) what I do
Original title: photo story 3 error When I try to register (Photo Story 3 to encode a problem and must close) what I do
-
HP ENVY Phoenix h9-1300 t CTO - replacement of power SUPPLY and GPU
Hi all I bought my PC a couple of years ago and have been wanting to upgrade a little to the height. I'm looking to replace my Radeon HD 7770 and 600W PSU which is included in the PC with the following parts: Video card R9 sapphire Radeon 290 Tri - X
-
I can't crop, drag and resize any window
I am unabe to crop, drag, resize, or any window - Word battery or simply on the desktop as well as pages online. I have something to lock without knowing? So yes, whats up with that?