masijade 1,351 Industrious Poster Team Colleague Featured Poster

It is obviously only needed if you are using a proxy. You should know whether this is the case or not. If not, ask your network administrators, both for whether or not one is in use, as well as its address.

Edit: And the connection refused could just as easily be coming from the proxy as from the wsdl. Solve that first.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

set the expires meta-tag and the no-cache pragma (google those terms in combination with HTML/HTTP).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Sorry, but I, for one, am not going to even try to decipher these scriptlets. You should not be using scriptlets, that is the technology from over a decade ago. Go through the JEE6 tutorials and learn to do this right.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It "says", definately, more than that.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm, wrap "file" in New File(file)? If your "Caesar" constructor needs a file as an argument.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

What "error"? Post the complete stacktrace. "It doesn't work" (which is essentially what you have said) is the singularly most useless problem description in the world.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Because variables are not overridden, they are hidden. Meaning it will take the instance variable of the Type that the instance is declared as.

Edit: IOW, as you can see, the first part of that String has nothing to do with method overriding, as no method either sets, nor retrieves the value of the variable. The variable is being set in the class instantiation and being referenced through the instance using the declared type of that instance.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

um, tic[index] = someChar?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

What symbol?

Post the entire stacktrace not just an incomplete summary of it.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Don't place spaces around the &

And don't use scriptlets. Learn how to do it all right. See the JEE 6 tutorials, and read through them completely.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

You would first need to convert your parallel array structure to a map or a single array of objects that contain both values.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Okay? And your question is? As a friendly reminder, this is not a homework service site.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

No one said it was one, but how is the system to know that? And simply signing probably will not help, as it looks as though you are trying to write into "Program Files" which the user cannot with UAC on.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Yes. That is what I said, isn't it? And check the constructors for JDialog (see the API docs, of course) so that you can properly define your constructors and properly set the "parent".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Okay? And the rest of my previous post?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

As far as not showing a border, etc, what does this

this.setUndecorated(true);

do?

Use JDialog (setting the parent in the constructor) rather than JFrame for the "additional" forms. Of course the "look and feel" of one frame is not automatically to a new frame, since it is a completely separate entity, and you haven't set it explicitly. JDialog (with a prent component) should take of that (and make it more correct, besides).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Its called security. You would need to get the users to "turn it off". What do you think would happen if browser applications could simply modify/create files anywhere on the file system? Do the terms "trojan" and/or "virus" (whether malicious or not) ring any bells?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

post the code for the initial frame creation, the setting of the look and feel (should be the same place, hopefully), as well as the code for the creation and display of the "second form".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

You can also use JLabel as the button and then add MouseListener to it.

Yes you can, but, truthfully, I would rather use the method outlined by mKorbel. That is mostly "personal opinion", but not completely, to tell you the truth. ;-)

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Why must you convert it? If it is for "homework"/"classes", then good luck.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

I guess your question is how to make it work?

You shouldn't have to "guess". What I am getting at is he should be posting a full "problem" description, not just describing what is supposed to happen and then a blurb of code that may, or may not, have been written by the OP, and then expect everyone to "finish" the code for them without even any hint as to what is still missing, or wrong.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

This looks like a tutorial to me.

It looks like someone posting their homework assignment, to me.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And your question is?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And your question is?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It's called reflection. See the tutorials.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

See the Desktop class.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

From the overall height of the desired image, of course.

Edit: And, of course, it is 5 - 2, not 2 - 5, in your example.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Because the graphics coordinates 00 is the upper right corner. simply subtract the coordinate you want to paint to from the over all height and use that as the y coordinate.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

create a prepared statement for the insert

create a statement (using a different connection) for the select

get a result set

iterate through the result set

for each row from the result set set the parameters on the prepared statement and call addBatch

for every 500 rows or so call executeBatch on the prepared statement

after the last read row call executeBatch on the prepared statement, again

finished (unless autocommit is turned off in which case you need to call commit)

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm, have that client close its socket?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Please Help me I can't start with this project !

Implement a city 'database' using unordered lists. Each record contains the name of the city (a character string of variable length), the mayor of the city and the co:ordinates of the city as integer x and y, Your system should allow city records to be inserted, deleted or searched by name or co:ordinates; it should also allow to change the name of the mayor . Implement this database using a linked list implementation java.

What does it mean ?

Exactly what it says?

from any place I can start ?

Thank you ;

With a text editor?

Edit: BTW this is a purposefully @ssholish post. Pay attention to what peter posted in his post.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm, don't. StringTokenizer is all but deprecated due to a few well known issues. Use a Scanner or a BufferedReader and String's split method.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm, use a JDialog, in modal mode?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm ...

Arrays.sort(arrayVar)

and take the first and last?

Edit: Nevermind, that's being a bit facetious. ;-)

Why don't you try posting your newest code, as well as a cut-n-paste copy of your attempt at running it?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

So I tried what you referred to.

I get this error now.

java.lang.NullPointerException
	at ClientForNoDupCollection.main(ClientForNoDupCollection.java:41)

Looked at line 41.

while (cReader.hasNext())

Looks like it's referring back to the top...as being null.

Uhm ...

public static void main(String args[]) {
		File file = new File(args[0]);
		Scanner cReader = null;
masijade 1,351 Industrious Poster Team Colleague Featured Poster

You cannot set a null value to a primitive array. You could initialize an array size 0 instead...

Uhm, Yes, you can. You cannot assign null to an element of the array but you sure can assign null to the array reference (which is what the OP did).

@OP your problem is that the second argument in your "read" call is the offset into the byte array (that is the first argument) which tells read where to start adding the bytes it reads, and "total" is probably already as large as size making that write beyond the end of the array.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Sorry, but tomcat does not need to "run as root", and anything the tomcat process executes will, of course, be executed with the same user as the tomcat process, so, why not simply run tomcat under a different user? Not that this is the answer to any "ssh" problem, as it would be a pain to execute tomcat under every user login that might be needed, so that part of your post is useful. However, you should be running tomcat under a user other than root already anyway, as, currently, running as root, if a hack makes its way onto the system through tomcat it will have root privileges. Do you not see that as a possible problem?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Guys, everything is a lot easier ) for every user and process pair linux has several restrictions(open files, pipe size, cpu time etc.) So open files limit is not big enough in your case.
to check your parameters use ulimit -a command. To change quantity of open files use ulimit -n wishedNumber command )
Good Luck!

So? Too many open files? Then why is the error

"java.net.SocketException: Too many open files"

Notice that "net"? Notice that "SocketException"?

Edit: As I said, file handles apply to sockets and files, and just because you can increase limits, it doesn't mean you should.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Oh ok. I missed those and you missed apache 's Mail api James
thanks

Who says I "missed" them? I never said those were the only choices.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Nope: no exceptions but thanks I happened to find a mis-spelled key in the xml.
it was hard to find. It works now .

And I can guarantee that that was causing an exception.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Why wouldn't it be possible to send one? Of course, you have to "create it" beforehand and then simply send it to the ouput stream after setting the content type.

As far as creating it, Google "Apache POI HSSF" (or "Apache POI XSSF" for Office 2007 or later).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Thanks for your answers. I was using a dateformat, because my sql table has the field as a datetime and not as timestamp. So I though I solve it with this dateformat snippet, since there is no getDateTime() in ResultSet.

And? You can still use get and set Timestamp on a DateTime field and the DB will still display the proper format when querying, so where's the problem with using the proper get and set calls?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Take a look at the anchor property.

Edit: You'll also need to look at the weightx property. You can read about it in the general notes for the GridBagLayout class.

And weighty, of course (if he wants the upperleft, otherwise he'll just get the left. ;-)

Ezzaral commented: Yes, and weighty too ;) +15
mKorbel commented: both contstrains +1 +9
masijade 1,351 Industrious Poster Team Colleague Featured Poster

Why not just use getDate (for only a date) or getTimestamp for an actual timestamp?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

They are not eligible for GC, with or without "line 5", as the "Runnables" are still referenced in the queue.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

You will find them in the tutorials.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

See the Swing Tutorials (you can find them at the main java tutorial site which you can find in the sticky thread in the forum).

Without much more information that is all we can say.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

By using the web container's connection pool and JNDI.

See your web containers documentation and the JEE Tutorials.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Check the logs. There is an error somewhere.

As far as not using scriptlets, all I can say is to read the tutorials (the JEE tutorials, of course).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It might help to know exactly what "doesn't work" means. In any case, do not use scriptlets.