socket connection

Hi,

I want to create a socket connection. When i run the server and then connect it from blackberry simulator of jde it gives these errors on server side:

Exception in thread "main" java.lang.ExceptionInInitializerError

at com.rim.samples.server.socketdemo.SimpleSocketServer.run(SimpleSocket

Server.java:176)

at com.rim.samples.server.socketdemo.SimpleSocketServer.main(SimpleSocke

tServer.java:150)

Caused by: java.util.MissingResourceException: Can't find bundle for base name c

om/rim/samples/server/socketdemo/resources.properties, locale tr_TR

at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle

.java:1508)

at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1262)

at java.util.ResourceBundle.getBundle(ResourceBundle.java:717)

at com.rim.samples.server.socketdemo.Worker.<clinit>(SimpleSocketServer.

java:24)

... 2 more

What can i do?

[980 byte] By [iozturka] at [2007-11-27 10:11:12]
# 1

everything is in this line:

java.util.MissingResourceException: Can't find bundle for base name

com/rim/samples/server/socketdemo/resources.properties, locale tr_TR

ResourceBundle can't find properties file ...

suparenoa at 2007-7-28 15:11:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

But it exists.It must find the file.I added files' path to classpath.But it did not work.

iozturka at 2007-7-28 15:11:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

what is the name of the file and where did you put it?

suparenoa at 2007-7-28 15:11:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

name of file is resources.properties (i read something in a post in this forum and i've changed it resources_tr_TR.properties but it didnt work too). it locates in com\rim\samples\server\socketdemo

iozturka at 2007-7-28 15:11:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

did you try resources_tr.properties

?

suparenoa at 2007-7-28 15:11:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

yes,i tried now. but it didn' work

iozturka at 2007-7-28 15:11:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7

did you map the resources file in the jad?

suparenoa at 2007-7-28 15:11:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...