Advertisement
Nickname
spike
Registered since:
August 24, 2004
Short bio:
Java Developer in the Financial Industry. Formerly Supply Chain and Retail. Prefers thick-client apps over Web (hence Wicket is the Web Framework of choice).
Home page:
 
Total posts:
530

Forum posts by Kondwani Mkandawire:

36 pages [ Previous 1 ... 26 27 28 29 30 31 32 33 34 35 36 Next ]
Posted in Java Answers Forum, Jul 4, 2005, 8:58 PM
I initially thought it was the Hibernate Moduleswhich my server uses (my hibernate is configuredto connect on a different port) but commenting thehibernate parts out in my Servlet doesn't helpany.
Posted in Java Answers Forum, Jul 4, 2005, 6:42 PM
default JBoss (Tomcat) Listening at Port 8080
Posted in Java Answers Forum, Jul 4, 2005, 3:16 AM
I stuck a triple slash in the url code and I now get:java.net.ConnectException: Connection refusedURL url = new URL(getCodeBase(), "http:///localhost:8080/MyServlet")
Posted in Java Answers Forum, Jul 4, 2005, 2:39 AM
Hi Folks:I have a perfectly functional Applet (atleast before itattempts a connection to a DatabaseServlet that I haveimplemented).I have a Servlet that is meant to spit out Data uponvarious requests connecting to a Database via someHibernate modules (successfully tested separately).Unfortunately I receive the following error in myJava Console...
Posted in Java Answers Forum, Jun 23, 2005, 3:34 AM
Hi Folks:Just wanted ya'll guys take on this. I was scratchingout a Swing Applet (hoping to use it in my MozillaBrowser). After hours of coding, I find that Mozilla(well atleast on the machine I'm using) din't havethe Java Plugins installed by default. I hence couldonly test it via appletviewer.Furthermore applet capabilities also seem to...
Posted in Java Answers Forum, Jun 22, 2005, 6:11 PM
Haven't had a chance to dig into it again.Seems like a harsh one if its returning nullon the InputStream there should be a back andforth communication as your Client communicateswith whatever telnet deamon, don't understand whyit would return a null. I'll try readingfrom the input Stream via my own createdBuffers when I have a chance for now,...
Posted in Java Answers Forum, Jun 21, 2005, 12:18 AM
You have:Process P=r.exec(cmd);Somewhere in your code, try include this (after eliminatingthe username and password from your run.bat file) andsee what your get.BufferedWriter buffOut = new BufferedWriter(new OutputStreamWriter(P.getOutputStream())); BufferedReader buffIn = new BufferedReader(new InputStreamReader(P.getInputStream())); String...
Posted in Java Answers Forum, Jun 20, 2005, 10:26 PM
I guess you learn a new thing everyday.Apparently Jakarta Commons Net provides a libraryfor all this Jargon. I was going to suggestwriting a Telnet Client that behaves as the Telnet Protocol does (I wouldn't even beginto understand where to start from).But my suggestion is that you google the librarydownload it and bingo you're on your way.Good...
Posted in Java Answers Forum, Jun 20, 2005, 9:25 PM
o is a telnet command to connect to a servervia default port 23.As I said, I don't have access to a Windowsbox, so I have no clue what the problem is.Try to alter your run.bat file to havetelnet someserver.comusernamepasswordThen run it as ran initially. If that worksyou can simply set your program up as you initiallydid only that before...
Posted in Java Answers Forum, Jun 20, 2005, 6:07 PM
OK once again, I'm running a Linux machine and all thatstuff seems to run different on my Linux box.My immediate approach to a task like that from yourmachine though would be to collect all thos Stringsbefore creating the String []cmd array.i.e.print: Please enter Server to connect toString server = EnteredString (collected via buffered...
Posted in Java Answers Forum, Jun 19, 2005, 9:10 PM
> the process was running without a visible console when we> put exec("java MyTest").> but when I tried puting the following array in exec() ,the> child process started running in a separate visible> console.I got this line from some other source . but not> sure what are the roles of each of these elements > can anybody tell what are the roles...
Posted in Java Answers Forum, Jun 17, 2005, 2:09 AM
Copied and pasted ran perfectly on my machine.What runtime error message do you receive?Do you receive a runtime error message?
Posted in Java Answers Forum, Jun 17, 2005, 1:43 AM
I'm sure all the suggested methods would work(never used JSPs so I have no clue how you'd goabout it). But as for the Java Socket programmingroute, you'd probably want to write a server,and have two controllers (as clients interactingwith that Server) which has a set of rules.My Soccer 2003 Software Engineering projectused a similar TCP/IP...
Posted in Java Answers Forum, Jun 17, 2005, 1:31 AM
Okay Check out the API description for Runtime.exec():Executes the specified string command in a *separate process*My guess is that it waits for this process (being theparent process to complete) before running the exec command.And according to your code with your infinite while loop,that process never does complete.Try commenting out the while...
Posted in Java Answers Forum, Jun 17, 2005, 12:35 AM
You can not be serious man!!Java is a relatively new language, let alone theSwing API.The swing API is *mainly* to provide developerswith a library to create GUIs - Graphical User Interface (whose sole purpose is to provide Userfriendly Interfaces: drop down menus, etc).Now I say *mainly* because I'm not a Sun MicroSystems engineer so I have no...
36 pages [ Previous 1 ... 26 27 28 29 30 31 32 33 34 35 36 Next ]
Advertisement