Skip to content

Tag: java

Java FTP 550 error

I’m getting this error (550 the filename, directory name, or volume label syntax is incorrect. ) I think the url is correct (obviously not though). Any thoughts? Here is the url: Here is the invocation method: ftp class: Answer If the FTP server is running Windows, the ‘*’ characters are the…

How can I draw with Graphics2D on the JGraphX graph?

How can I can draw with Graphics2D on the JGraphX graph? I tried something like this: Answer First, graph.refresh(); will erase the dranw line since it will re-render all the graph on the graphics of the component. Secondly, don’t forget to call the draw function in the ADT Thread Other than that, it sh…

Hibernate SaveOrUpdate – multiple workthreads

While I have been able to find information on how Hibernate’s transaction work, so the database doesn’t corrupted, it has been harder to understand how Hibernate treats an object which is shared between threads, and each thread tries to save it to the database. This is my theoretical question: 1) …