can't find bundle
Hi ,
I am taking this error in a socket connection.What can i do?
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
Thx
[526 byte] By [
iozturka] at [2007-11-27 10:11:28]

Would "bad luck" be appropriate ?
The system tells you that the resource com/rim/samples/server/socketdemo/resources.properties cannot be found.
Maybe you should ensure that it exists and that it's correctly located regarding class path.
Maybe you have some doc about com.rim.samples.server.socketdemo.SimpleSocketServer that tells you more about this ressource.
I tried classpath bu it didn't work.I have no docs unfortunately
> I tried classpath bu it didn't work.I have no docs
> unfortunately
Make sure a file named resources.properties exists in a directory com/rim/samples/server/socketdemo/ relative to your class path.
If not, check in the SimpleSocketServer class what kind of information is supposed to be retrieved from that properties file, and create one accordingly. (Still, this class is not documented ?)
i am really sure that it exits. this error occurs when server is running and then client connects to server. but when i removed this resource file, it gives error when i try to run server.
> when i removed this resource file, it gives error when i try to run server.
Of course it did. What did you expect?
ejpa at 2007-7-28 15:13:39 >

i mean, program is aware of resource file in fact. but it gives error when client trys to connect.
>. but when i removed this resource file, it
> gives error when i try to run server.
Doctor! Doctor! When I shove this stick into my ear it hurts real bad!
Stop doing that then.
this is not my main problem.i just wanted to show something but forget it.
when the file exists there is still error i explained !!
> i explained
Not really. You didn't make it clear whether you got the same error under both circumstances, or which of the two circumstance led to the stack trace you provided. If you got the MissingResourceException both times, the resource is still missing, no two ways about it.
ejpa at 2007-7-28 15:13:39 >

there is a difference between two of them.When the file exists (normally it must be there of course) server runs without no problem and it starts to listen clients. but when a client tryes to connect it server gives an error. (java.util.MissingResourceException: Can't find bundle for base name c
om/rim/samples/server/socketdemo/resources.properties, locale tr_TR)
But in other way-when i remove the file- server doesn't even start! (Of course it is normal for it not to start.) But what i am trying to say is,when i think about first situation i can say that server has no problem with that file at first(it runs normally) but than when a client trys to connect than it says "cant find bundle"
I mean in a way it is aware of that resource file.
I think it is clear now.
It is still clear that the resource is missing.
ejpa at 2007-7-28 15:13:39 >

> there is a difference between two of them.When the
> file exists (normally it must be there of course)
> server runs without no problem and it starts to
> listen clients. but when a client tryes to connect
> it server gives an error.
> (java.util.MissingResourceException: Can't find
> bundle for base name c
> m/rim/samples/server/socketdemo/resources.properties,
> locale tr_TR)
>
> But in other way-when i remove the file- server
> doesn't even start! (Of course it is normal for it
> not to start.) But what i am trying to say is,when i
> think about first situation i can say that server has
> no problem with that file at first(it runs normally)
> but than when a client trys to connect than it says
> "cant find bundle"
> I mean in a way it is aware of that resource file.
>
> I think it is clear now.
It is clearly stupid that is for sure.
Why are you getting worked up about this? Either way the file is missing at some point and when it goes missing something blows up.
What is the big fucking deal? Why are you going on and on about this?
STOP REMOVING THE FILE.
> But in other way-when i remove the file- server doesn't even start!
Is the exception stacktrace/message the same ?
The MissingResourceException can be thrown either if no resource bundle for the specified base name can be found or if no object for the given key can be found.
In your OP, the stack trace corresponds to the first case.
But I suspect it is the second case that happens when you don't delete the file. That means: an entry cannot be found in the file for the specified key.
do you have any useful idea or not?
> do you have any useful idea or not?
Yes I recommend giving up, programming is not for you. You lack both common sense and communication skills which is not a good mix.
cotton.m, you are just a waste of time..
TimTheEnchantor , thanks for trying to help.
> do you have any useful idea or not?
Would you mind posing the stack trace for the case when the file is present and a client tries to connect ?
> cotton.m, you are just a waste of time..
Well my dear friend I am not the one who started several threads on this stupid topic. I am not the one who hijacked another thread with this same stupid question. I am also not the one who posts mainly incoherent drivel on this same stupid topic. And last but not least I am not the one who has yet to post any actual code or provide any useful information to get the stupid problem solved.
So while I appreciate your opinion to the utmost sadly you are wrong. You have so far wasted the time of everyone trying to help you.
Again, partially for your communication skills (or lack thereof) but moreso for the brilliant display of your logic and problem solving skills (or lack thereof) I highly recommend you give up. You lack the mental capacity and problems solving abilities for programming.
So stop wasting everyones time already and just give up.
Love and kisses,
cotton
initial start:
http://forum.java.sun.com/thread.jspa?threadID=5193472&tstart=0
i'm always waiting for my last question mister iosturk...