My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 25: datagram:// and socket:// shemes should allow omitting of port number for server mode connections
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2010


 
Reported by damyan.m...@gmail.com, Jan 8, 2010

UDPDatagramConnection udpServer = (UDPDatagramConnection) Connector.open
("datagram://:");

This line should create server mode UDPDatagramConnection, bound to system 
assigned port. Instead I get NumberFormatException: For input string: "".

This is due to bug in org.microemu.cldc.datagram.Connection.openConnection
() method, where the {port} part of the url string is supposed to be there 
(and contain valid integer), but in fact it is missing. 

https://code.google.com/p/microemu/source/browse/trunk/microemulator/
microemu-javase/src/main/java/org/microemu/cldc/datagram/
Connection.java#139

This code is the same in v2.0.3, v2.0.4-Snapshot and in trunk of SVN 
repository.

Similar problem exists in org.microemu.cldc.socket.Connection.open(String 
name), when trying to to create socket server with system assigned port 
like this: ServerSocketConnection socketServer = (ServerSocketConnection) 
Connector.open("socket://:");
Jan 18, 2010
Project Member #1 bar...@gmail.com
Fixed in trunk (future 3.0 version)
Status: Fixed
Labels: Milestone-3.0

Powered by Google Project Hosting