In the log.nsf : 10:52:25 AM HTTP JVM: ERROR: null

I have problem when i tried to run my agent (java)on web. In my form I have one button with the code: @Command([ToolsRunMacro];“agent”).My log.nsf register: 10:52:25 AM HTTP JVM:ERROR: null.But, when I run this same agent in notes client I don´t have problem, my log.nsf register: 11:39:15 AM JVM: Java Virtual Machine initialized.

Why I can not run my agent in web?

Thank you for your help!