org.apache.velocity.runtime.directive.MacroParseException: Invalid arg #0 in directive #MY_DIR

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via velocity-user by Nathan Bubna, 1 year ago
Invalid arg #0 in directive #MY_DIR
via velocity-user by Evgeny Ryabitskiy, 1 year ago
Invalid arg #0 in directive #MY_DIR
via velocity-user by Nathan Bubna, 1 year ago
Invalid arg #0 in directive #MY_DIR
via velocity-user by Evgeny Ryabitskiy, 1 year ago
Invalid arg #0 in directive #MY_DIR
via velocity-user by Evgeny Ryabitskiy, 1 year ago
Invalid arg #0 in directive #MY_DIR
via velocity-user by bluejoe2008, 1 year ago
Invalid arg #0 in directive #MY_DIR
org.apache.velocity.runtime.directive.MacroParseException: Invalid arg #0 in directive #MY_DIR
at org.apache.velocity.runtime.parser.Parser.Directive(Parser.java:802)
at org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:373)
at org.apache.velocity.runtime.parser.Parser.process(Parser.java:311)
at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:105)
at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1131)
at ru.diasoft.fa.dsutils.macro.MacrosProcessor.processTemplate(MacrosProcessor.java:53)
at ru.diasoft.fa.dsutils.macro.MacrosProcessorTest.testNoLockDirective3(MacrosProcessorTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.