0 Replies Latest reply on Jun 5, 2008 10:46 PM by (Avijit_Ajay)

    Forms API

      Hi
      I have been trying to use the form api to use a xdp template for rendering it.
      however when i try to hit the servlet i get the following error when the RenderUsageRightsForms method is invoked.

      The following exception occurred: java.lang.NullPointerException
      com.adobe.livecycle.formsservice.exception.RenderFormException: java.lang.NullPointerException
      at com.adobe.formServer.utils.Options.isCacheModeManual(Options.java:528)
      at com.adobe.formServer.TemplateStream.validate(TemplateStream.java:131)
      at com.adobe.formServer.TemplateStream.getTemplateStream(TemplateStream.java:212)
      at com.adobe.formServer.Template.validate(Template.java:1165)
      at com.adobe.formServer.Template.loadTemplateFromCache(Template.java:1209)
      at com.adobe.formServer.RunTimeContext.getTemplate(RunTimeContext.java:1480)
      at com.adobe.formServer.Controller.tweakXMLData(Controller.java:382)
      at com.adobe.formServer.Controller.render(Controller.java:117)
      at com.adobe.formServer.FormServer.renderForm(FormServer.java:191)
      at com.adobe.formServer.FormServer.renderForm(FormServer.java:256)
      at com.adobe.formServer.docservice.FormsDocService.renderForm(FormsDocService.java:446)
      at com.adobe.formServer.docservice.FormsDocService.renderForm(FormsDocService.java:405)
      at com.adobe.formServer.docservice.FormsDocService.renderPDFFormWithUsageRights(FormsDocServ ice.java:135)
      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:585)
      at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:181)
      at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:134)
      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
      at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)
      at sun.reflect.GeneratedMethodAccessor374.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
      at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)

      Kindly advise
      Thanks in advance
      Avijit