owh its working.
it's so depressing that the problem was that simple. i did set the script timelimit to 1 before but forgot to change it back.

i found another problem.
when i upload with file name Main.java, its working fine. but when i upload with different file name, its compiler-error.
i did upload from a different user and different team but the result is compiler-error.
i checked here 
https://www.domjudge.org/docs/admin-manual-8.html#ss8.4
it says that the file name must be Main.java and class name must be Main.

is that normal?? or is there a way to upload with different file name other than Main.java?


On Thu, Nov 12, 2015 at 6:10 PM, Jaap Eldering <jaap@jaapeldering.nl> wrote:
On 12-11-15 01:52, adi ansyah wrote:
> ok, the zip file is attached

Ok, so what I see here in compile.meta: the compile script ran for 1
second, but actually didn't use any CPU time, then it received an alarm
signal (probably because of running out of time) and then the terminate
signal.

In the admin interface under configuration settings, what are the
"script timelimit" and "script memory limit" set to?

Secondly, in compile.{tmp,out} there is the line:

cp: 'Main.java' and './Main.java' are the same file

Are you using the "java_javac" compile script (instead of the default
"java_javac_detect")? Because this is the only place I see where a 'cp'
command is executed in the compile phase, see:
https://github.com/DOMjudge/domjudge/blob/master/sql/files/defaultdata/java_javac/run#L29

If so, this could explain things in combination with the fact that the
submitted file is already named "Main.java". Could you try submitting a
Java source with a filename different from the main class? Also, please
try and switch to the "java_javac_detect" compile script. Please send
any error messages and the associated judging zip files.

Jaap


> On Thu, Nov 12, 2015 at 12:01 AM, Jaap Eldering <jaap@jaapeldering.nl
> <mailto:jaap@jaapeldering.nl>> wrote:
>
>     First of all, please do keep replies going to the list.
>
>     On 11-11-15 12:51, adi ansyah wrote:
>     > yes, i'm using domjudge live image, domjudge-live_2015-08-23 with
>     > domjudge version 5.0.0.
>
>     Ok, strange. I've just tested that live image and Java submissions
>     compile fine here.
>
>     > did i need to check the chroot too?
>
>     No, sorry, that's not relevant for compiler errors.
>
>     > here is the log :
>     [...]
>     >
>     > the full log is attached.
>     > thx
>
>     Unfortunately the logs don't show any useful errors. Could you please
>     look on the domjudge-live image under
>     /var/lib/domjudge/judgings/domjudge-live-0/endpoint-default
>
>     There should be subdirectories of the form cX-sYY-jZZ for each
>     submission/judging there. Check in the webinterface what one of the java
>     compiler-errror's submission and judging ID is and please send a zip
>     file of that directory. The files compile.{out,tmp,meta} may contain
>     some clues as to what goes wrong.
>
>     Jaap
>
>
>     > On Wed, Nov 11, 2015 at 8:24 PM, Jaap Eldering <jaap@jaapeldering.nl <mailto:jaap@jaapeldering.nl>
>     > <mailto:jaap@jaapeldering.nl <mailto:jaap@jaapeldering.nl>>> wrote:
>     >
>     >     Hi Adi Ansyah,
>     >
>     >     First, which version of DOMjudge are you using? Is this on the
>     live
>     >     image?
>     >
>     >     If not, did you build a chroot environment with the script
>     >     dj_make_chroot and enable it in etc/judgehost-config.php? See the
>     >     documentation:
>     https://www.domjudge.org/docs/admin-manual-8.html#ss8.1
>     >
>     >     Finally, to trace down the problem, please send us the
>     judgedaemon log
>     >     file, which should be located under
>     >     $PREFIX/domjudge/judgehost/log/judge.$HOSTNAME.log
>     >
>     >     Jaap
>     >
>     >
>     >     On 11-11-15 07:34, adi ansyah wrote:
>     >     > i ask my friends to try a testing contest with Hello world
>     as the
>     >     > question problem.
>     >     > i find that every single "java" code is rejected with message
>     >     > "compiler-error".
>     >     > but no problem when they upload C code.
>     >     >
>     >     > here is the java code :
>     >     >
>     >     > public class hello {
>     >     >
>     >     >     public static void main(String[] args) {
>     >     >         System.out.println("Hello world!");
>     >     >     }
>     >     >
>     >     > }
>     >     >
>     >     > here is the error message as admin :
>     >     >
>     >     >
>     >     >       Compilation unsuccessful
>     >     >
>     >     > Compiling aborted after 1 seconds, compiler output:
>     >     > /usr/sbin/runguard: warning: timelimit exceeded (hard wall
>     time):
>     >     aborting command
>     >     > /usr/sbin/runguard: warning: command terminated with signal 15
>     >     > /usr/sbin/runguard: warning: timelimit exceeded (soft wall time)
>     >     >
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > DOMjudge-devel mailing list
>     >     > DOMjudge-devel@domjudge.org
>     <mailto:DOMjudge-devel@domjudge.org>
>     <mailto:DOMjudge-devel@domjudge.org
>     <mailto:DOMjudge-devel@domjudge.org>>
>     >     > https://www.domjudge.org/mailman/listinfo/domjudge-devel
>     >     >
>     >
>     >     _______________________________________________
>     >     DOMjudge-devel mailing list
>     >     DOMjudge-devel@domjudge.org
>     <mailto:DOMjudge-devel@domjudge.org>
>     <mailto:DOMjudge-devel@domjudge.org
>     <mailto:DOMjudge-devel@domjudge.org>>
>     >     https://www.domjudge.org/mailman/listinfo/domjudge-devel
>     >
>     >
>
>
>
>
> _______________________________________________
> DOMjudge-devel mailing list
> DOMjudge-devel@domjudge.org
> https://www.domjudge.org/mailman/listinfo/domjudge-devel
>

_______________________________________________
DOMjudge-devel mailing list
DOMjudge-devel@domjudge.org
https://www.domjudge.org/mailman/listinfo/domjudge-devel