| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> Bryin same <0> I did a restart after removing it as well <1> you got the jar not loaded error? <1> did you delete the "rets" directory? <0> I only have 1 war file in webapps <0> rets.war <0> Apparently, after removal, its still looking for servlet.jar under rets.war\WEB-INF\lib\ <0> Should I modify some config file so that it doesn't look for servlet there? <2> 'lo Bryin <3> my WTK doesn't create a .jar file any ide as to why? <0> Ok sorry. I am dumb <0> Dumb and hairy <0> There *was* a rets folder, along with the war <0> So I deleted the servlet.jar from the folder and now it works <0> Thanks Bryin <1> Yes indeed
<1> no problem IRR <1> simple mistake <3> if some one knows can that some one pleas tell my why my WTK doesn't creat a .jar file? is this common or must I change some settings for this to happen? <3> should the target platform be MIDP 1.0 or JTWI or doesn't it matter? <4> salam <3> why.. when I trie to download a app created with the WTK it downloads to 97% then it says "not accepted" why? <0> For an app hosted under tomcat, if I do http://server/app/abc.htm, is there a way to access that URL without the existence of abc.htm? <0> I mean, some redirection into an archive file that dishes out a response for abc.htm <5> has someone used webworks? <6> IRR: afaik, yes <3> why when I have just finished downloading my app the phone says "Isn't Accepted" ? I can't understand why? <7> Because it isn't accepted aka the phone can't handle it. <8> that sounds like a customer support question <3> I have the .jar and .jad file and it downloads to 100% then the message ocurrs.. I tried it on another phone as well.. but shouldn't it be accepted it's a rather neww phone or am I making some mestage in the creations process? <7> Alfei: how do you expect us to know? Check the phone's specs or try to create another midlet version. <7> you're probably better of starting with a midlet for cldc 1.0 <9> so... Say if I have an InputStream that is ISO-8859-1 encoded <9> and then say... if I create a BufferedReader and do a readLine() pulling data off and shoving it into a StringBuffer.. <9> and let's just happen to say this is XML data coming back on a Socket from an HTTP request.. <9> now how come the thing is putting in question marks instead of the cool spanish characters? <7> hmmm..... I'd have to check to be sure, not all readers deal with locales. <9> well it even gets better. <9> if I don't use BufferedRead.readLine() and attempt to use InputSTreamReader.read(char[]) it doesn't even return any data <7> hmmm. <9> this is so annoying me it's not even funny. <7> How are you displaying the StringBuffer? I'm not sure at all but I can't help wonder if this is an output issue rather than an input issue. <9> well I get back the XML from the remote site and parse it into a data structure and then use that in a bean for JSP output <9> but even if I log4j log each String that comes in from the reader.readLine() it still is putting in ?'s instead of the spanish characters <7> schitzo: hmm, then I have no idea :/ <6> Lion-O: uhm, tried freenode yet? <7> Clackwell: no, I don't see the point since I have no problems. <7> :-) <6> Lion-O: you seem to enjoy helping. wider audience over there. less moronic though. <7> Clackwell: hmm. its "yet another network" and I'm already joined with too many of them. <6> ok <7> Clackwell: actually I like forums and usenet better, you can learn a lot from those. <6> it used to be the nicest java channel i know. maybe it still is, but the impatience of various people (esp. me) with the influx of the type of morons we always have here has made it a bit sharper in tone. <9> yeah, but Lion-O couldn't help me with my encoding problem. <6> forums? eeks <6> Lion-O: did you hear that? <6> it sounded a bit like someone said something. maybe someone just farted. <9> I did have a burrito for lunch <7> hehe <9> and on that note I'm heading ${HOME} <6> bye <7> Clackwell: well, actually.. When it comes to channels I personally like the channels where the *really* lazy aren't kept on pampered untill it drives everyone nuts. Ofcourse you need to make a sharp seperation between those two but so far I kinda like it here. <6> Lion-O: that's why tone got sharper over there are freenode. more of those lazy bastards as of late. <7> aah, the tone at freenode.. I thought you referred to this channel. <6> well, this place is without hope. nothing but lazy newbies in here. <6> and hardly do you see new folks which actually help others, regardless of their tone. <7> hmmm. Not all of 'm.. I'm still new but don't consider myself lazy 8) <7> Clackwell: aye, that might be very true. <6> one of those over at freenode was a positive surprise in the end, recently. kept asking the stupidest questions. and now, after a few months in the channel, he starts helping others, and in a clueful enough fashion. <7> hmm, thats nice. <6> nice difference for a change. <7> Clackwell: I do have to admit finding it someone odd, or depressing, to see certain line of questioning. <7> Clackwell: for example, when I started out with Linux you eventually saw this happening at a larger scale also because it attracted more attention. <7> but I someone expected different I guess when it comes to a programming language.
<6> yeah. and now people are trying to learn linux and java and eclipse/netbeans all at the same time. <6> the required level of handholding/the noise of those is hard to bear. <7> aye <10> Is there a cheap way to send Objects thru sockets ? <7> another cl***ic example. hmmm, sockets. Never worked with those before but would seem that ServerSocket might be usefull for that kind of thing. <7> and considering that you can use InputStreams and the likes using sockets (abstract cl*** SocketImpl) you can basicly do anything with 'm. <7> its amazing what you can find by just looking at the JDK docs combined with Google. <7> For interested people, this looks like a nice tutorial on Socket programming: http://jan.netcomp.monash.edu.au/distjava/socket/lecture.html <11> Hi does anyone here use Javacreater <12> Hey all...I need a confirmation on an ***umption I've arrived at...Are instance variables evaluated before the constructor is called? Currently I'm loading in properties in the constructor and I use the value of the properties to set some instance variables...I know I can just set the instance variables in the constructor to avoid the problem...but I'd like to know for sure if this is necessary <13> Gevaudan_ I'm not sure I see what your problem is <12> calchas: sorry i was away...i have a string similar to "SELECT * FROM" + props.get("dbName") that is a static instance variable...I initialize Properties props in the constructor...I was wondering whether the constructor is evaluated first or the instance variables <13> constructors are not evaluated, any initialised (explict) variables are evaluated (initialised) before the constructor runs <12> calchas: gotcha, I think that was my problem...I've been trying to convert all of my global variables contained in an interface so that it uses a properties file instead...i've created a test program and it can both read and write the properties so it must be something in my logic...keep getting null pointer exceptions when the properties are used in my application logic...anyway, that is besides the point, thank you for answering <13> just debug the npe <13> you question still makes little sence to me <12> npe? think of it like this...I have this as an instance variable: String query = "SELECT * FROM" + props.get("dbName"); In my constructor I have this: props = new RepliProperties();...I was asking whether the constructor is initialized first which would of course mean that things would work OR whether it is the instance variable meaning I'd get a null pointer exception <13> null pointer exception <13> to my mind a static initialiser should be in a static block <12> that's what I was running into <13> and for non static ones you should use the constructor <12> one more question that has been plaguing me...i think the answer is no, but does a singleton cl*** with all static methods ever have its constructor called? i.e. when I type RepliProperties.getMysqlDriver() is the constructor ever called? <14> hi! <13> what you are calling instance variables have to be set before the constructor <12> gotcha <13> Gevaudan_ test it <13> sof_boy hi <14> how to invoque a jsp file with refresh option? not from the cache <12> calchas: i actually did which is why i thought the answer was no...seems like it should though but i thought otherwise once i saw i could not make the constructor static <14> i have a servlet, after modifing a data base dispay a new stat but with the old values....i have to close and open again to get the new ones ::((( <12> sof_boy: not sure if i understand what you mean <12> sof_boy: maybe this will help, i just read your first sentence: http://java.ittoolbox.com/documents/popular-q-and-a/jsp-caching-2075 <14> ok, in MVC , f1.jsp display table, and servlet s1 update it and call f1 <14> but f1 display allways old values <12> sof_boy: you could use the RequestDispatcher and the setAttribute method to attach the new data and send back to f1.jsp <14> that what i use :(( <14> RequestDispatcher rd=req.getRequestDispatcher(url); <14> rd.forward(req,res); <12> Are you using setAttribute() to attach the updated data? otherwise, it just forwards the original request and response which of course contains the old data <13> what is the method signature for RepliProperties.getMysqlDriver()? <14> could you tell me what i have to attach?.. after updating table! <13> if it returns an object that didn't exist befor that objects constructor did get called somewhere <12> calchas: that method is just a getter accessor method...basically the constructor calls loadProperties() which loads the properties from the file into the accessor instance variables so that I can call RepliProperties.getBeanName() <13> that isn't the method signature <13> public MyObject myMethod( int myParam ) { is a signature <14> wich object may i send to jsp??? i juste update table , and in the jsp there is a select request to display a table, but, never this select is not executed allaws <12> gotcha...just trying to give you background on what the cl*** does...right now it is public String getMysqlDriver() { but when I was experimenting with calling things by RepliProperties.getMysqlDriver() it was public static String getMysqlDriver() { <12> sof_boy: if you are using MVC, it is the data from the database which is actually populating the table...it's the values from the database <13> if the String didn't already exist it's constructor was called <12> calchas: very interesting...what if the instance variable is declared but not initiated ie. private String test = null; <13> then not <13> the declaration doesn't creat an object, just a reference <12> gotcha, thanks for looking into this...going to try debugging the null pointer errors I'm received now before it gets too late...afk <13> I thought you knew why you had them? <13> you are using props before it is initialsed from null <12> i did when i was using the static version, but now i'm using the dynamic non-static version of the properties file and initializing EVERYTHING in the constructor...everything tells me it should work...i created a test program and it can read and write the properties <14> Gevaudan_ when i do my dispatch....which object may i send to my jsp, case of updating table... <12> basically i have RepliProperties props = null; as an instance variable and in my constructor I have props = new RepliProperties(); String sql = "SELECT * FROM " + props.getMysqlDriverName(); <12> sof_boy: whatever information you are inserting into the database...it's usually better to create a javabean to hold that and then send it back to the client like: req.setAttribute("myBeanName", myBeanValue); dispatcher.forward(req, resp); <13> that should be fine <14> youre right <12> calchas: would it have anything to do with tomcat? i wouldn't think so but who knows <13> the std approach for npe is to System.out.println(">>>"+object); on the line before the exception, then check for a null result <13> rember it may be a null return <13> npe is easy to diagniose <13> =i <12> calchas: let me try, wasn't familiar with that command <13> -i <12> calchas: i think i found my problem but not sure the best way to have things work both ways...to access repliwiki.properties which is in /www/webapps/repliwiki from a regular old java program i give the path as ./repliwiki.properties ...but in tomcat I have to call getServletContext().... to get the path of the directory right? i don't have the command off the top of my head but i've used it before <14> thank you for your help brother <14> god night <12> np, later on <13> something like that
Return to
#java or Go to some related
logs:
#linux #linux #AllNiteCafe #linux #london #php #mirc malloc efficient memory use #chatzone #apache
|
|