Forum Stats

  • 3,876,074 Users
  • 2,267,056 Discussions
  • 7,912,419 Comments

Discussions

SDK 3.2 emulator and socket problem

970702
970702 Member Posts: 1
edited Jun 14, 2013 5:18AM in Java ME SDK
Hi, all

I use syntax

javax.microedition.io.Connector.open("socket://host:port")

to create socket connection

and it works fine until sdk 3.2, in the new emulator i get exception:
java.io.IOException: IOError in socket::open = 11004\n
- com.sun.midp.io.j2me.socket.Protocol.open0(), bci=0
- com.sun.midp.io.j2me.socket.Protocol.connect(), bci=184
- com.sun.midp.io.j2me.socket.Protocol.open(), bci=216
- com.sun.midp.io.j2me.socket.Protocol.openPrim(), bci=4
- javax.microedition.io.Connector.open(), bci=47
- javax.microedition.io.Connector.open(), bci=3
- javax.microedition.io.Connector.open(), bci=2

i think it can be problem in
..\javame-sdk\3.2\work\JavaMEPhone1\device.properties

in line
runtime.internal.security.domain: maximum

k it makes maximum security, but i tryed to remove this line and wrote minimum, but nothing helps

please, help me to fix it )

Answers

  • 973378
    973378 Member Posts: 1
    Please check if you are using a proxy.
    This may cause problems with your socket connection
  • Perhaps you should not change the properties file but rather provide the parameter on startup,

    also note:

    minimum. All permissions are denied to MIDlets in this domain.

    maximum. All permissions are granted to MIDlets in this domain. Maximum is the default setting.

    emulator.exe -Xdomain:maximum .....

    also sheck the port you are trying to access; the port number should be higher than 1024.

This discussion has been closed.