org.apache.maven.lifecycle.LifecycleExecutionException: Error creating from archetype

Apache's JIRA Issue Tracker | Libor Tvrdik | 7 years ago
  1. 0

    All resources are formatted using Velocity. This is about right (even if the parameter <resource format="true/false"> would be good). The problem occurs when I set the sources of the *"#"* character. In [Velocity user guide - Escaping|http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#escaping_vtl_directives] says that it is possible to use *"\#"*. But after run "mvn archetype:create" still getting: {code} [DEBUG] ********************* Debug info for resources created from generated Model *********************** [DEBUG] Was build element found in generated POM?: true [INFO] ********************* End of debug info from resources from generated POM *********************** [ERROR] ResourceManager.getResource() parse exception: org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 101, column 0. Encountered: <EOF> after : "" [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error creating from archetype Embedded error: Error merging velocity templates Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 101, column 0. Encountered: <EOF> after : "" [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error creating from archetype at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating from archetype at org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:253) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 16 more Caused by: org.apache.maven.archetype.old.ArchetypeTemplateProcessingException: Error merging velocity templates at org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:905) at org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:742) at org.apache.maven.archetype.old.DefaultOldArchetype.processResources(DefaultOldArchetype.java:798) at org.apache.maven.archetype.old.DefaultOldArchetype.processTemplates(DefaultOldArchetype.java:695) at org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:331) at org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:230) ... 18 more Caused by: org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 101, column 0. Encountered: <EOF> after : "" at org.apache.velocity.Template.process(Template.java:141) at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:423) at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:341) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440) at org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:899) ... 23 more [INFO] ------------------------------------------------------------------------ {code} It is curious that in the class javadoc (/** @see XY#get() */ everything works. The problem is resources (see attached file). Could you please fix this problem? I need the *"#"* for comments.

    Apache's JIRA Issue Tracker | 7 years ago | Libor Tvrdik
    org.apache.maven.lifecycle.LifecycleExecutionException: Error creating from archetype
  2. 0

    maven custom archetypes (Ant, Maven and Build Tools forum at Coderanch)

    coderanch.com | 8 months ago
    org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrErr or: Lexical error at line 11, column 2. Encountered: <EOF> after : ""
  3. 0

    {noformat} 013-09-09 14:40:22,530 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] Parser Exception: templates/com/javahollic/jira/jemh/email/text/errorhint.vm 2013-09-09 14:40:22,532 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] org.apache.velocity.runtime.parser.ParseException: Encountered "#end\n" at line 52, column 1. Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... at org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3441) at org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3318) at org.apache.velocity.runtime.parser.Parser.process(Parser.java:313) at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:105) at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1131) at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1086) at org.apache.velocity.Template.process(Template.java:124) 2013-09-09 14:40:22,534 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] ResourceManager.getResource() parse exception 2013-09-09 14:40:22,535 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... 2013-09-09 14:40:22,535 QuartzScheduler_Worker-1 ERROR anonymous JEMH [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... at org.apache.velocity.Template.process(Template.java:141) at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:446) at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:370) at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBodyImpl(DefaultVelocityManager.java:117) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:66) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy507.getEncodedBody(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy507.getEncodedBody(Unknown Source) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.createEmail(DefaultJEMHMessageManager.java:2222) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.encodeAndSendEmail(DefaultJEMHMessageManager.java:2136) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.sendHintOgramEmail(DefaultJEMHMessageManager.java:599) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:396) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:247) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:368) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:271) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Audit event 318 now has 1 hints {noformat}

    JIRA | 3 years ago | Andy Brook
    org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ...
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {noformat} Details: ------- org.apache.velocity.exception.ParseErrorException: Encountered &quot;#end\n&quot; at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: &lt;EOF&gt; &quot;(&quot; ... &lt;RPAREN&gt; ... &lt;ESCAPE_DIRECTIVE&gt; ... &lt;SET_DIRECTIVE&gt; ... &quot;##&quot; ... &quot;\\\\&quot; ... &quot;\\&quot; ... &lt;TEXT&gt; ... &quot;*#&quot; ... &quot;*#&quot; ... &lt;STRING_LITERAL&gt; ... &lt;IF_DIRECTIVE&gt; ... &lt;STOP_DIRECTIVE&gt; ... &lt;INTEGER_LITERAL&gt; ... &lt;FLOATING_POINT_LITERAL&gt; ... &lt;WORD&gt; ... &lt;BRACKETED_WORD&gt; ... &lt;IDENTIFIER&gt; ... &lt;DOT&gt; ... &quot;{&quot; ... &quot;}&quot; ... at org.apache.velocity.Template.process(Template.java:141) at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:446) at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:370) at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBodyImpl(DefaultVelocityManager.java:117) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:66) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:57) at sun.reflect.GeneratedMethodAccessor2030.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy528.getEncodedBody(Unknown Source) at sun.reflect.GeneratedMethodAccessor2030.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy528.getEncodedBody(Unknown Source) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.createEmail(DefaultJEMHMessageManager.java:2174) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.encodeAndSendEmail(DefaultJEMHMessageManager.java:2088) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.sendHintOgramEmail(DefaultJEMHMessageManager.java:599) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:396) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:247) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:368) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:271) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {noformat}

    JIRA | 3 years ago | Andy Brook
    org.apache.velocity.exception.ParseErrorException: Encountered &quot;#end\n&quot; at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: &lt;EOF&gt; &quot;(&quot; ... &lt;RPAREN&gt; ... &lt;ESCAPE_DIRECTIVE&gt; ... &lt;SET_DIRECTIVE&gt; ... &quot;##&quot; ... &quot;\\\\&quot; ... &quot;\\&quot; ... &lt;TEXT&gt; ... &quot;*#&quot; ... &quot;*#&quot; ... &lt;STRING_LITERAL&gt; ... &lt;IF_DIRECTIVE&gt; ... &lt;STOP_DIRECTIVE&gt; ... &lt;INTEGER_LITERAL&gt; ... &lt;FLOATING_POINT_LITERAL&gt; ... &lt;WORD&gt; ... &lt;BRACKETED_WORD&gt; ... &lt;IDENTIFIER&gt; ... &lt;DOT&gt; ... &quot;{&quot; ... &quot;}&quot; ...
  6. 0

    {noformat} 013-09-09 14:40:22,530 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] Parser Exception: templates/com/javahollic/jira/jemh/email/text/errorhint.vm 2013-09-09 14:40:22,532 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] org.apache.velocity.runtime.parser.ParseException: Encountered "#end\n" at line 52, column 1. Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... at org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3441) at org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3318) at org.apache.velocity.runtime.parser.Parser.process(Parser.java:313) at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:105) at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1131) at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1086) at org.apache.velocity.Template.process(Template.java:124) 2013-09-09 14:40:22,534 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] ResourceManager.getResource() parse exception 2013-09-09 14:40:22,535 QuartzScheduler_Worker-1 ERROR anonymous JEMH [velocity] org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... 2013-09-09 14:40:22,535 QuartzScheduler_Worker-1 ERROR anonymous JEMH [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... at org.apache.velocity.Template.process(Template.java:141) at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:446) at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:370) at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBodyImpl(DefaultVelocityManager.java:117) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:66) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy507.getEncodedBody(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy507.getEncodedBody(Unknown Source) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.createEmail(DefaultJEMHMessageManager.java:2222) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.encodeAndSendEmail(DefaultJEMHMessageManager.java:2136) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.sendHintOgramEmail(DefaultJEMHMessageManager.java:599) at com.javahollic.jira.emh.service.ProcessorRunner.execute(ProcessorRunner.java:396) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:247) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:45) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:368) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:271) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Audit event 318 now has 1 hints {noformat}

    JIRA | 3 years ago | Andy Brook
    org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at templates/com/javahollic/jira/jemh/email/text/errorhint.vm[line 52, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ...
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.velocity.exception.ParseErrorException

    Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 101, column 0. Encountered: <EOF> after : ""

    at org.apache.velocity.Template.process()
  2. Apache Velocity
    VelocityEngine.mergeTemplate
    1. org.apache.velocity.Template.process(Template.java:141)
    2. org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:423)
    3. org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:341)
    4. org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)
    5. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440)
    5 frames
  3. Maven Archetype Common
    DefaultOldArchetype.createArchetype
    1. org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:899)
    2. org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:742)
    3. org.apache.maven.archetype.old.DefaultOldArchetype.processResources(DefaultOldArchetype.java:798)
    4. org.apache.maven.archetype.old.DefaultOldArchetype.processTemplates(DefaultOldArchetype.java:695)
    5. org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:331)
    5 frames
  4. Maven Archetype Plugin
    MavenArchetypeMojo.execute
    1. org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:230)
    1 frame
  5. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
    1 frame
  6. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    8 frames
  7. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  9. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    4 frames