If you need some extra ammo to convince your Java-coding friends(?) that they have strayed far from common sense, ask them how to copy a file in Java (look at the two given options). No, java.io.File has rename and delete, but no copy.
That Java thing is really kewl, here is what the link let too:
HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.ee.servlet.HandleJspServlet.invoke(HandleJspServlet.java:114) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) &nb sp; at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) &nbs p; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) &nb sp; at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) &nb sp; at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) Caused by: com.TeamNoggin.util.DBManager$InvalidDBException: com.TeamNoggin.util.OracleDataSourceManager: error calling releaseConcreteConnection - ORA-00020: maximum number of processes (610) exceeded
at com.ee.util.SessionUtil.createSession(SessionUtil.java:97) ... 23 more
Hahaha, oh man, this is sooo much fun. Pity you can't see the code though, it was really horrible. I managed to sanitize it down to 30 lines for my needs, but it's still rather kludgy to say the least.
Something similar came up on perlmonks a while ago. I posted some java solutions that were as fast as perl, and not nearly as verbose as the solutions given on experts-exchange. They require JDK 1.4 though.
LOL (Score:3, Funny)
That Java thing is really kewl, here is what the link let too:
mirod
Reply to This
Re:LOL (Score:2)
Hahaha, oh man, this is sooo much fun. Pity you can't see the code though, it was really horrible. I managed to sanitize it down to 30 lines for my needs, but it's still rather kludgy to say the least.
-- Robin Berjon [berjon.com]
Re:LOL (Score:1)
Also, for fun, look at the java code for the Copy task [apache.org] in Ant [apache.org].
Ditto... (Score:2)
Jason
Re:Ditto... (Score:3, Insightful)
Yeah, you can System.exec(), but that's just wrong...
-- Robin Berjon [berjon.com]
Discussion on Perlmonks (Score:1)
http://www.perlmonks.org/index.pl?node_id=148355
cheers,
- danboo