Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Close error on open?

 
Bill Ceglia
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code opens a connetion to the serial port on an i85s phone, reads from it, and then closes the connection.
sc = (StreamConnection)Connector.open(ConnectParams, Connector.READ);
if(sc != null)
{
is = sc.openInputStream();
is.read(bytearrayin);
is.close();
sc.close();
}
This routine is called every so often in a timer, the problem I am having is the first time through everything works fine but when the routine executes the second time or more it gets an error "Close Indication on open()". This says to me that the close is not working correctly or there is some other error happening???
 
maria_raytsin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'v got the same error(Close Indication on open()) maybe now you know what is the problem?
If you can please send me replay by e-mail
maria@more4tec.com.
TIA
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maria_raytsin,
JavaRanch has a naming policy which is strictly enforced. Please replace the underscore in your display name with a space. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic