| |
| |
| |
|
Page: 1 2
Comments:
<0> Anyone awake? <1> hmm, barely ;) <2> is it correct that SSLEngine.unwrap uses relative get methods on the p***ed buffer? So after I call the method the buffer will have the position immedietly after the last byte read? Thanks. <0> Lion-O: You familiar with Transport.send? <0> it's a blocking method <1> Bryin: no, never used it before. <1> wait a second <1> Bryin: the only time I used Transport.send was using JavaMail (javax.mail.Transport). <0> Lion-O: Yes, that's what I'm using too <0> if there's an SMTP server issue, it will block indefinitely <0> "Thread-0" daemon prio=5 tid=0x02f980a0 nid=0x99c runnable [339f000..339fd6c] <0> at java.net.SocketInputStream.socketRead0(Native Method) <0> at java.net.SocketInputStream.read(SocketInputStream.java:129) <0> at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) <0> at java.io.BufferedInputStream.read(BufferedInputStream.java:201) <0> - locked <0x109d8280> (a java.io.BufferedInputStream)
<0> and it just sits there... FOREVER! <1> hmmm <1> Let me fire up netbeans. Last time I (mis)used it it didn't lock up on me. And boy did I misuse it; my servlet was suppose to send an email, but the MTA on the box it was used was disabled. Now, I have to check my notes, but iirc it didn't throw an Exception. <0> looks like it is caused by some underlying TCP issue <3> Bryin: http://www.websina.com/bugzero/kb/sunmail-properties.html <3> good night <1> Bryin: Well, I checked.. turns out it threw an Exception (which I caught) but that was caused by the MTA not being active. <1> The Exception was enough for me because my registration routine picked it up and basicly told the user "Registration failed". <1> Clackwell: interesting URL, thanks. <1> This is a different approach then mine though. I basicly setup the parts of a MIME message (MimeMessage(), MimeBodyPart()) and used the static method Transport.send() with the MimeMessage as parameter. <0> THANKS YOU Clackwell!!! <0> mail.smtp.connectiontimeout int Socket connection timeout value in milliseconds. Default is infinite timeout. <4> Bryin: I had to hack/replace my javamail foo with a custom socket factory that also set an actual socket timeout. setting the timeout sets a 2nd thread to watch/do the timeout, which sadly didn't always work properly. <0> gah <0> I've been reading that all over the web <0> all sorts of similar approaches <0> there is a mail.smtp.connectiontimeout and a mail.smtp.timeout <4> thou my cusom socket factory was mostly (initially) to just accept any ssl cert without verification/keystore <0> high security there :) <0> obviously you just wanted the encryption <4> well its more I'm polling about 100+ pop/imap accounts for customers <4> so getting keystore settings for joe-random user kinda ****s. <0> smtp=>sms <4> polling pop/imap/xmmp->sms yep. <2> Is it possible to use a Selector with a ByteChannel? <5> anyone know the name of cl*** that implements Clip for java sound implementation from sun? <5> nm <6> high <6> how can i put a red wavvy line under a word in a JTExtPane..? <7> hi everyone , i have a proble, the problem is that when i try to retrevie if a user has the correct key to enter to the system, its late to valid it <7> and its table has onely six rows <7> hi everyone , i have a proble, the problem is that when i try to retrevie if a user has the correct key to enter to the system, its late to valid it <7> and its table has onely six rows <8> hi ppl anyone is ready to help me i want to write a good letter to find a place to getr experiance i am ready to work 4 free i just want to learn and get experiance <9> high <9> what's the better way to store an rtf file in SQL? BLOB or CLOB? <10> buttnovice: externally ;9 <10> buttnovice: otherwise, BLOB I would say. I don't trust an RTF to survive beeing reencoded in a diffrent charset <11> hello <11> i done a java application windowless <11> how can i insert a form? <11> i m a newbie <11> i have a main method but i don't know how to define a form <12> hi <12> why does the main method have to static and public? <12> any good, concise explanation for this? <10> corstan: if it wasn't public, it would not be acessible to be executed, and if it wasn't static, an object would have to be instantiated by the caller, and the caller insn't java <12> " an object would have to be instantiated by the caller, and the caller insn't java" ? <12> err <10> yes. that is what I said. Any particular reason to repeat it in bold? <12> no, what do you mean by that? <10> I mean that whatever calls main is an implementation detail. You want to ekep the interface to the "outsode" as small as possible and making it static allows you to hand over controll to the cl***loader directly instead of the caller having to know about more java details than it has to <13> corstan: you understand now? <10> if you want a more detailed explanation, and a better reasoning, there is always the JVM specifcations to read <13> " an object would have to be instantiated by the caller, and the caller insn't java" ? <13> how did you bold that? <10> how? <10> bold?
<12> what do you mean by "the caller isn't java"? <0> javaq: How did you underline that? <10> corstan: something needs to start a java application, right? ***uming you don't have an operating system written in java, somewhere there is a border between native code and java. conceptually, that border is at main() <12> aha, never thought of that <12> so is with C/C++ and so on <10> corstan: it's outside your application and thus implementation detail and not something you "should" know anything about when coding your application <12> so the reason for having 'public static' modifiers is basically to make a visible entry for the execution of the byte code all the way from the underlying OS ? <0> corstan: wlfshmn is referring to what is known as the 'bootstrap'. <1> Hm, more like for the jvm. <12> so it cannot be instantiated into the cl*** <10> corstan: it's a minimal interface point. like a big green button labeled "start" on a very cmplex machine that you know nothing about <12> ok <0> corstan: there are many uses for public static methods <12> to comply with the formalism of OOP main has to be both public and static <0> for example, utility cl***es <12> otherwise there's no "green button" <10> corstan: making it static provides that button as a single interface point, if it was a regular mathod, the operator would need to configure the entire machine, maybe hundreds of settings, before the machine started <1> if it isn't public there isn't a green button visible. if it isn't static it cannot be pressed without "openening" the cover. <0> it's the open contract for a cl*** method (i.e. doesn't require instantiation) <12> ok <12> I think I have heard what I needed to hear <1> corstan: I suggest checking out the cl***es explenation in the Java tutorial, it covers these details very well. <12> jepp <14> morning <13> bold <13> jottinger: you're so bold <14> am I? <13> [b]This is bold[/b] <13> BBCodes won't work here <13> omg <14> and thank god <15> Hi. Anyone here? need help with a if sentence <15> String opt = K; <15> if (opt = K) { <15> why dosent this work? <14> because it's an ***ignment, not an equivalence test <14> that's #1 <14> there's more, but that's the first obstacle to workinghood <15> this would have worked with a numeric int variabel. <15> how should i do it with a letteral variabel? <14> it wouldn't have worked with either one <14> = is ***ignment <15> ofc, i ment == <14> well, you don't check objects for equivalence with == <14> ever <15> well, im a total nub. but i works tho. <14> try "equals()" <15> thnx <16> Hi guys got a problem all detailed in in the pastebin <16> http://pastebin.com/774805 <3> img|cai`a: http://www.google.com/search?hl=en&q=draw+gif+image+java+applet&btnG=Google+Search <3> the almanac link looks good <10> img|cai`a: And if you have the code and a suggested solution, why not -try-? <16> I dont have a suggested solution m8 <16> I find it hard to grasp java <16> well programming in general <3> like rocket science, it's not for everyone. :) <16> hehe yea <16> guys my code g.fillOval <16> I can remove that and replace with it drawimage() <16> ? <3> try the java almanac. <16> How do I point to an image that isnt a url <16> but on the computer <3> seems how to load an image in java is the question. <3> tricky witha <3> tricky with applets, by the way, due to security. <3> img|cai`a: BEGINNERSBIBLES Download these two bibles (free of charge): 1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial/) 2) Bruce Eckel's "Thinking in Java" (http://www.bruceeckel.com/) <3> b<e <3> erh, bye <16> ;| <17> Hello <17> Does anybody know why java is giving me a 'Network Unreachable' error in Linux when is impossible to be that way? (machine in same network, no routers, tried direct telnet and works) <17> Y tried googling, but i didn't find anything
Return to
#java or Go to some related
logs:
grub hangs at LOADING STAGE 1.5 poweredge #MissKitten how to format hardisk using centos linux map local folder as disk windows 2000 #linux #c++ #javascript #skype #MissKitten XULRunner window.open iframe
|
|