BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-02-2008, 06:48 AM   #1
guna
New Member
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 4
Default WAPIOException on openInputStream()

Please Login to Remove!

Hi,

Am getting net.rim.device.cldc.io.waphttp.WAPIOException when i try to get the InputStream.

The code is,

c = (HttpConnection) Connector.open(destUrl,
Connector.READ_WRITE, true);
os = c.openOutputStream();
int length = msg.length;
int offset = 0;
while (offset < length) {
int xferBytes = 512; //send 512bytes at once
if ((length - offset) < xferBytes)
xferBytes = (length - offset);
os.write(msg, offset, xferBytes);
offset += xferBytes;
}
os.close();

is = c.openDataInputStream();


still the getting connection and writing got success, [thats i verified by using the log messages] but why i try to get InputStream, am getting the exception.

Note: The same code is execute perfectly at first time. This exception only in model 8310, v4.2.2.163 [Platform 2.5.0.24].

Please guide me how can i avoid this exception.


Thanks & Regards
Guna.
Offline  
Closed Thread



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 On
HTML code is Off

Forum Jump


FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign AAA picture

FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign AAA

$168.54



Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh picture

Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh

$219.95



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$118.19



Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5 picture

Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5

$124.95



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$118.19



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$118.19







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.