BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-02-2008, 06:48 AM   #1 (permalink)
New Member
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

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

Siemens Amiga Pocket Machine 172 For Both Ear Hearing Aid (White, Blue)
$99.1
Siemens Amiga Pocket Machine 172  For Both Ear Hearing Aid (White, Blue) pictureSiemens Amiga Model 172N Pocket Hearing Aid For Hear Loss
$80.95
Siemens Amiga Model 172N Pocket Hearing Aid For Hear Loss  picture1x WD33C93-PL Western Digital ENHANCED SCSI BUS INTERFACE IC Amiga 3000 A2091
$2.29
1x WD33C93-PL Western Digital ENHANCED SCSI BUS INTERFACE IC Amiga 3000 A2091 pictureNEW 1PCS MC68882FN33A PLCC-68 FPU Math Coprocessor Chip Apple Mac Amiga Vintage
$11.35
NEW 1PCS MC68882FN33A PLCC-68 FPU Math Coprocessor Chip Apple Mac Amiga Vintage pictureWD33C93A-PL00-08 DIP-40 Controller Chip upgrade for Amiga 3000 A2091 A590
$3.05
WD33C93A-PL00-08 DIP-40 Controller Chip upgrade for Amiga 3000 A2091 A590 picture






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