Thank you Karl for pointing it. I will debug it some more.

On Fri, Aug 28, 2015 at 6:07 PM, Karl Wright <[email protected]> wrote:

> Hi Dileepa,
>
> This is the actual problem:
>
> >>>>>>
> Caused by: org.apache.velocity.exception.MethodInvocationException:
> Invocation of method 'bodyEscape' in  class java.lang.Class threw exception
> java.lang.NullPointerException at viewSpecification.html[line 23, column 38]
>     at org.apache.velocity.runtime.parser.node.ASTMethod.
> handleInvocationException(ASTMethod.java:243)
>     at org.apache.velocity.runtime.parser.node.ASTMethod.execute(
> ASTMethod.java:187)
>     at org.apache.velocity.runtime.parser.node.ASTReference.
> execute(ASTReference.java:280)
>     at org.apache.velocity.runtime.parser.node.ASTReference.
> render(ASTReference.java:369)
>     at org.apache.velocity.runtime.parser.node.SimpleNode.render(
> SimpleNode.java:342)
>     at org.apache.velocity.Template.merge(Template.java:356)
>     at org.apache.velocity.Template.merge(Template.java:260)
>     at org.apache.velocity.app.VelocityEngine.mergeTemplate(
> VelocityEngine.java:354)
>     at org.apache.manifoldcf.ui.i18n.Messages.outputResourceWithVelocity(
> Messages.java:159)
>     at org.apache.manifoldcf.agents.transformation.stanbol.Messages.
> outputResourceWithVelocity(Messages.java:119)
>     at org.apache.manifoldcf.agents.transformation.stanbol.
> StanbolEnhancer.viewSpecification(StanbolEnhancer.java:639)
>     at org.apache.jsp.viewjob_jsp._jspService(viewjob_jsp.java:1024)
> <<<<<<
>
> You are passing a null value to bodyEscape somewhere in your view
> template, indeed at line 23 column 38.  I can't say more than that.
>
> As for differences between 2.1 and 1.8, there are some, but I suspect
> maybe the problem is that you're not properly prefixing your variables, and
> there's a name collision?
>
> Karl
>
>
> On Fri, Aug 28, 2015 at 8:20 AM, Dileepa Jayakody <[email protected]>
> wrote:
>
>> Hi All,
>>
>>
>> I developed a mcf transformation connector which works with mcf-1.8 well.
>> But when I install the same in mcf-2.1 at run time when I try to view the
>> job specification of the connection I get the below jsp error.
>>
>> Any tips why it's working in mcf 1.8 and not in mcf 2.1?
>>
>> Thanks,
>> Dileepa
>>
>> [qtp266121309-357] WARN org.eclipse.jetty.server.HttpChannel -
>> /mcf-crawler-ui/viewjob.jsp?jobid=1438771035135
>> org.apache.jasper.JasperException: An exception occurred processing JSP
>> page /viewjob.jsp at line 728
>>
>> 725:                 {
>> 726:                     try
>> 727:                     {
>> 728:
>> transformationConnector.viewSpecification(new
>> org.apache.manifoldcf.ui.jsp.JspWrapper(out,adminprofile),pageContext.getRequest().getLocale(),os,1+j);
>> 729:                     }
>> 730:                     finally
>> 731:                     {
>>
>>
>> Stacktrace:
>>     at
>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
>>     at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
>>     at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>     at
>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769)
>>     at
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
>>     at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>>     at
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
>>     at
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>>     at
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
>>     at
>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>>     at
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>>     at
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
>>     at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>>     at
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>>     at
>> org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
>>     at
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>>     at org.eclipse.jetty.server.Server.handle(Server.java:497)
>>     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
>>     at
>> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)
>>     at
>> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>>     at
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)
>>     at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)
>>     at java.lang.Thread.run(Thread.java:745)
>> Caused by: org.apache.velocity.exception.MethodInvocationException:
>> Invocation of method 'bodyEscape' in  class java.lang.Class threw exception
>> java.lang.NullPointerException at viewSpecification.html[line 23, column 38]
>>     at
>> org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243)
>>     at
>> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
>>     at
>> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
>>     at
>> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
>>     at
>> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
>>     at org.apache.velocity.Template.merge(Template.java:356)
>>     at org.apache.velocity.Template.merge(Template.java:260)
>>     at
>> org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:354)
>>     at
>> org.apache.manifoldcf.ui.i18n.Messages.outputResourceWithVelocity(Messages.java:159)
>>     at
>> org.apache.manifoldcf.agents.transformation.stanbol.Messages.outputResourceWithVelocity(Messages.java:119)
>>     at
>> org.apache.manifoldcf.agents.transformation.stanbol.StanbolEnhancer.viewSpecification(StanbolEnhancer.java:639)
>>     at org.apache.jsp.viewjob_jsp._jspService(viewjob_jsp.java:1024)
>>     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>     at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>>     ... 23 more
>> Caused by: java.lang.NullPointerException
>>     at org.apache.manifoldcf.ui.util.Encoder.bodyEscape(Encoder.java:127)
>>     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
>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
>>     at
>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
>>     at
>> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
>>     ... 36 more
>> [qtp266121309-357] WARN org.eclipse.jetty.server.HttpChannel - Could not
>> send response error 500: org.apache.jasper.JasperException: An exception
>> occurred processing JSP page /viewjob.jsp at line 728
>>
>> 725:                 {
>> 726:                     try
>> 727:                     {
>> 728:
>> transformationConnector.viewSpecification(new
>> org.apache.manifoldcf.ui.jsp.JspWrapper(out,adminprofile),pageContext.getRequest().getLocale(),os,1+j);
>> 729:                     }
>> 730:                     finally
>> 731:                     {
>>
>>
>>
>> ------------------------------
>> This message should be regarded as confidential. If you have received
>> this email in error please notify the sender and destroy it immediately.
>> Statements of intent shall only become binding when confirmed in hard copy
>> by an authorised signatory.
>>
>> Zaizi Ltd is registered in England and Wales with the registration number
>> 6440931. The Registered Office is Brook House, 229 Shepherds Bush Road,
>> London W6 7AN.
>>
>
>

-- 

------------------------------
This message should be regarded as confidential. If you have received this 
email in error please notify the sender and destroy it immediately. 
Statements of intent shall only become binding when confirmed in hard copy 
by an authorised signatory.

Zaizi Ltd is registered in England and Wales with the registration number 
6440931. The Registered Office is Brook House, 229 Shepherds Bush Road, 
London W6 7AN. 

Reply via email to