Expand my Community achievements bar.

NameNotFoundException while calling FormService generatePDFOutput in a process

Avatar

Former Community Member
Hi All,



I have created a process which calls only one service, that is FormService generatePDFOutput. I have created three variables xfaForm for form, Document variables for inputXMLData and outputPDF. I have assigned these variables in the generatePDFOutput properties.



I am getting the following error,



Caused by: javax.naming.NameNotFoundException

at com.adobe.formServer.PA.XMLFormAgentWrapper.doPAExecute(XMLFormAgentW

rapper.java:278)

... 68 more



at com.adobe.idp.dsc.provider.impl.base.AbstractResponseHolder.handleExc

eption(AbstractResponseHolder.java:136)

at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMe

ssageDispatcher.java:137)

at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(A

bstractMessageDispatcher.java:57)

at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:2

08)

at pdf.pdfpageflow.PdfpageflowController.generatePDFAction(PdfpageflowCo

ntroller.java:61)

at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(F

lowController.java:869)

at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForwa

rd(FlowController.java:808)

at org.apache.beehive.netui.pageflow.FlowController.internalExecute(Flow

Controller.java:477)

at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(

PageFlowController.java:305)

at org.apache.beehive.netui.pageflow.FlowController.execute(FlowControll

er.java:335)

at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execu

te(FlowControllerAction.java:51)

at org.apache.struts.action.RequestProcessor.processActionPerform(Reques

tProcessor.java:419)

at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201

(PageFlowRequestProcessor.java:95)

at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunn

er.execute(PageFlowRequestProcessor.java:2042)

at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI

nterceptors.wrapAction(ActionInterceptors.java:90)



It is not clear for me which Name it is not able to find. Need help please.



Appreciate your help.



Thanks

Raghu
13 Replies

Avatar

Level 10
The generatePDFOutput operation doesn't take an xfaForm for any of its parameters.



The input parameter "Form" needs a string that represents the location of the xdp in the repository (ex. /Folder/myForm.xdp).



I'm wondering if that's the cause of your problem?



Jasmin

Avatar

Former Community Member
Hi Jasmin,



Thanks for the reply.



I have tried with you suggestion and I used a literal to indicate the form location, but still i am getting the same error.



I am out of options.



Any help is greatly appreciated.



Thanks

Raghu

Avatar

Level 10
How are you calling your process?



If you're calling it through API, make sure to put the following jar file in your projects:



adobe-output-client.jar

adobe-livecycle-client.jar

adobe-usermanager-client.jar



Jasmin

Avatar

Former Community Member
Jasmin,



Thanks for the reply.



Once I have added adobe-forms-client.jar in the project, the error is gone. I am getting the following error now,



Caused by: com.adobe.livecycle.formsservice.exception.RenderFormException: java.

lang.NullPointerException

at com.adobe.formServer.SnapIn.PDFForm.PDFForm.getRenderPolicy(PDFForm.j

ava:626)

at com.adobe.formServer.SnapIn.PDFForm.PDFForm.setCommonXCIForRender(PDF

Form.java:229)

at com.adobe.formServer.SnapIn.PDFForm.PDFForm.setXCIForRender(PDFForm.j

ava:190)

at com.adobe.formServer.SnapIn.PDFForm.PDFForm.updateXCI(PDFForm.java:16

4)

at com.adobe.formServer.Controller.doXFARender(Controller.java:620)

at com.adobe.formServer.Controller.doRender(Controller.java:488)

at com.adobe.formServer.Controller.render(Controller.java:131)

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(FormsDocSe

rvice.java:446)

at com.adobe.formServer.docservice.FormsDocService.renderForm(FormsDocSe

rvice.java:405)

at com.adobe.formServer.docservice.FormsDocService.renderPDFForm(FormsDo

cService.java:109)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)



Looks like i need to setup some policy. Any help is greatly appreciated.



Thanks

Raghu

Avatar

Former Community Member
Hi Jasmin,<br /><br />When is was setting up weblogic and deploying PDF Generator component through LC Config Manager, I got the below error<br /><br />[2007-07-18 15:21:22,468], FINE , Thread-4, com.adobe.livecycle.lcm.feature.de<br />ployment.LCMDeployerUtil, installComponent : ..\working\deployLC\deploy\adobe-pd<br />fgconfig-dsc.jar<br />[2007-07-18 15:23:16,913], SEVERE , Thread-4, com.adobe.livecycle.lcm.feature.de<br />ployment.DeployDSCs, Failed to deploy component.<br />com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to deploy com<br />ponent.<br /> at com.adobe.livecycle.lcm.feature.deployment.DeployDSCs.deployDSCFiles(<br />DeployDSCs.java:361)<br /> at com.adobe.livecycle.lcm.feature.deployment.DeployDSCs.deployDSCs(Depl<br />oyDSCs.java:117)<br /> at com.adobe.livecycle.lcm.feature.deployment.DeployDSCsTask$ActualTask.<br /><init>(DeployDSCsTask.java:85)<br /> at com.adobe.livecycle.lcm.feature.deployment.DeployDSCsTask$1.construct<br />(DeployDSCsTask.java:58)<br /> at com.adobe.livecycle.lcm.core.tasks.SwingWorker$2.run(SwingWorker.java<br />:114)<br /> at java.lang.Thread.run(Thread.java:595)<br />Caused by: java.lang.RuntimeException: | [com.adobe.livecycle.usermanager.client<br />.AuthorizationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:<br />Exception wrapped in DSCException is Null or NOT An Instance of UMException chai<br />nedException:ALC-DSC-012-000: com.adobe.idp.dsc.registry.ServiceNotFoundExceptio<br />n: Service: AuthorizationManagerService not found.chainedExceptionMessage:Servic<br />e: AuthorizationManagerService not found. chainedException trace:ALC-DSC-012-000<br />: com.adobe.idp.dsc.registry.ServiceNotFoundException: Service: AuthorizationMan<br />agerService not found.<br /> at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.getServic<br />e(ServiceRegistryImpl.java:972)<br /> at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.getHeadAc<br />tiveConfiguration(ServiceRegistryImpl.java:830)<br /> at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.resolveConfiguration(<br />ServiceEngineImpl.java:146)<br /> at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:58)<br /> at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMes<br />sage(AbstractMessageReceiver.java:88)<br /><br />Am I getting the error is the previous message because of this error.<br /><br />Any help is greatly appriciated.<br /><br />Thanks<br />Raghu

Avatar

Former Community Member
one more thing, when i deploy foundation component it is successful. But when i validate through Config Manager, I get a popup message, 'adobe-usermanager-dsc is deployed but is not currently running'.



Is this an issue?.



Thanks

Raghu

Avatar

Level 10
That is most likely the issue. Can you manually start it. You can use the adminui interface to start it (under Archive Ardministration/Service Manager).



Jasmin

Avatar

Former Community Member
Hi Raghu and Jasmine,

We are using adobe API for workflow (Livecycle). By default, it run in JBoss server sucessfuly, but, while migrating it to Websphere server, the below error is thrown. It seems that the API codes are not able to contact the server (WAS) to invoke the method. The samle program is as below.





----------------

package com.nwa.pan.proxy;



import java.util.*;

import com.adobe.idp.um.api.infomodel.*;

import com.adobe.idp.Context;

import com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient;

import com.adobe.livecycle.usermanager.client.DirectoryManagerServiceClient;

import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;



public class Authenticate

{

public static void main(String[] args) {

try {

/*Properties ConnectionProps = new Properties();

ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "iiop://efmd2.mn.nwa.com:9080");

ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","SOAP");

ConnectionProps.setProperty("DSC_SERVER_TYPE", "WebSphere");

ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");

ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");*/



Properties ConnectionProps = new Properties();

ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "iiop://efmd2.mn.nwa.com:17440");

ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");

ConnectionProps.setProperty("DSC_SERVER_TYPE", "WebSphere");

ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");

ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");



//Create a ServiceClientFactory object

ServiceClientFactory myFactory = ServiceClientFactory.createInstance(ConnectionProps);



// Create an AuthenticationManagerServiceClient object

AuthenticationManagerServiceClient authClient = new AuthenticationManagerServiceClient(myFactory);



// Authenticate the user

String username = "administrator";

String password = "password";

System.out.println("before");

AuthResult authResult = authClient.authenticate(username, password.getBytes());

System.out.println("after");

System.out.println(authResult);

// Get the authenticated users information

User authUser = authResult.getAuthenticatedUser();



System.out.println("Authenticated users canonical name: " + authUser.getCanonicalName());

System.out.println("Authenticated users domain name: " + authUser.getDomainName());

System.out.println("Authenticated users OID: " + authUser.getOid());



// For propagation purposes, initialize the principal if it has not already been set

DirectoryManagerServiceClient dirClient = new DirectoryManagerServiceClient(myFactory);

Principal principal = dirClient.findPrincipal(authUser.getOid());

if (principal == null)

{

Context context = myFactory.getContext();

context.initPrincipal(authResult);

System.out.println("Context: " + context.toString());

}

}

catch (Exception e)

{

System.out.println("Error Occurred: " + e.getMessage());

e.printStackTrace();

}

}

}

----------------------



Config used for EJB Protocol



----------------------------------



Properties ConnectionProps = new Properties();

ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "iiop://efmd2.mn.nwa.com:17440");

ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");

ConnectionProps.setProperty("DSC_SERVER_TYPE", "WebSphere");

ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");

ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");







Error Obtained



Error Occurred: Exception wrapped in DSCException is Null or NOT An Instance of UMException| [com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception wrapped in DSCException is Null or NOT An Instance of UMException chainedException:java.io.InvalidClassException: com.adobe.idp.dsc.authentication.PasswordCredential; local class incompatible: stream classdesc serialVersionUID = -8780765823884993748, local class serialVersionUID = 5130811361334818008chainedExceptionMessage:com.adobe.idp.dsc.authentication.PasswordCredential; local class incompatible: stream classdesc serialVersionUID = -8780765823884993748, local class serialVersionUID = 5130811361334818008 chainedException trace:java.io.InvalidClassException: com.adobe.idp.dsc.authentication.PasswordCredential; local class incompatible: stream classdesc serialVersionUID = -8780765823884993748, local class serialVersionUID = 5130811361334818008

at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:601)

at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1571)

at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1485)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)

at java.util.Hashtable.readObject(Hashtable.java:811)

at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:615)

at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1001)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1828)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1738)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1927)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1851)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1738)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)

at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiver.java:274)

at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(EjbReceiverBean.java:151)

at com.adobe.idp.dsc.provider.impl.ejb.receiver.EJSRemoteStatelessInvocation_b542628e.invoke(Unknown Source)

at com.adobe.idp.dsc.provider.impl.ejb.receiver._EJSRemoteStatelessInvocation_b542628e_Tie.invoke(_EJSRemoteStatelessInvocation_b542628e_Tie.java:161)

at com.adobe.idp.dsc.provider.impl.ejb.receiver._EJSRemoteStatelessInvocation_b542628e_Tie._invoke(_EJSRemoteStatelessInvocation_b542628e_Tie.java:88)

at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:613)

at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:466)

at com.ibm.rmi.iiop.ORB.process(ORB.java:503)

at com.ibm.CORBA.iiop.ORB.process(ORB.java:1553)

at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2680)

at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2554)

at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)

at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)







at com.adobe.livecycle.usermanager.client.ManagerServiceClient.throwNonUMExceptionAsUMException(ManagerServiceClient.java:53)

at com.adobe.livecycle.usermanager.client.ManagerServiceClient.handleException(ManagerServiceClient.java:90)

at com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient.authenticate(AuthenticationManagerServiceClient.java:87)

at com.nwa.pan.proxy.Authenticate.main(Authenticate.java:38)



























===============================================================











Config used SOAP Protocol



---------------------------------



Properties ConnectionProps = new Properties();

ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "iiop://efmd2.mn.nwa.com:9080");

ConnectionProps.setProp

Avatar

Level 1
Not sure if this will be helpful or not, but I found that you have to compile java components using the IBM Java 1.5 SDK (That comes with websphere) instead of the Sun Java 1.5 SDK when creating components for Websphere. Also make sure you have the latest updates to websphere 6.1 as the Java SDK didnt work for the base version.

Avatar

Level 10
LiveCycle only supports JDK 5.



Jasmin

Avatar

Level 1

Jasmine and Raghu,

         I am using RHEL 5 - 64 bit Linux on 3-Tera Virtual host with Java 5 , MySQL 5.0 and  adobe pre-configured Jboss 4.2 to install LiveCycle 8.2 and My intension is to get the Rights Management Service Installed  . After configuring the .ear files(using Rights Management alc-lfs not excluded-solution component  in the LCM CLI properties file ) and running the Jboss , I get the Jboss Running but with following Error

ERROR  [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public  abstract java.lang.Object  com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterLocal.doRequiresNew(com.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.TransactionCallback)  throws com.adobe.idp.dsc.DSCException:

ALC-DSC-000-000:  com.adobe.idp.dsc.DSCRuntimeException: Internal  error.

        at  com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew(EjbTransactionBMTAdapterBean.java:249)

        at  sun.reflect.NativeMethodAccessorImpl.invoke0(Native  Method)

.

.

.

.

Caused by:  java.lang.NoClassDefFoundError:  com/adobe/dctmconnector/config/DctmConnectorConfigBean

        at  java.lang.Class.getDeclaredConstructors0(Native  Method)

        at  java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)

        at  java.lang.Class.getConstructor0(Class.java:2671)

        at  java.lang.Class.newInstance0(Class.java:321)

        at  java.lang.Class.newInstance(Class.java:303)

        at  com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl$12.doInTransaction(ComponentRegistryImpl.java:877)

        at  com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew(EjbTransactionBMTAdapterBean.java:218)

        ... 199  more

2009-06-16 10:23:02,554 ERROR  [com.adobe.idp.dsc.startup.DSCStartupServlet] DSC Startup failed. Reason:  Internal error.

2009-06-16 10:23:02,554 WARN   [com.adobe.idp.dsc.startup.DSCStartupServlet] Unable to start the  DSCManager

and upon running the deploy liveCycle Component using LCM CLI task

./ConfigurationManagerCLI.sh  deployLiveCycleComponets -f cli_propertyFile.txt

I see that few of  DSCs (especially the adobe-usermanager-dsc ) were  never started by the installer and It stopped throwing Exceptions While trying to deploy  adobe-rightsmanagement-jboss-dsc.jar.

Progress: [5%,    DSC already  installed, but is not started  adobe-remotingConnector-dsc.jar]

Progress: [8%, Deploying DSC    adobe-usermanager-dsc.jar]

Progress: [8%,    DSC already  installed, but is not started  adobe-usermanager-dsc.jar]

Progress: [11%, Deploying DSC    adobe-usermanager-util-dsc.jar]

Progress: [11%,    DSC already  installed, but is not started  adobe-usermanager-util-dsc.jar]

Progress: [14%, Deploying DSC    adobe-jobmanager-dsc.jar]

Progress: [14%,    DSC already  running adobe-jobmanager-dsc.jar]

While LCM CLI tries to install  RightsManagement DSC following exceptions are  thrown

[2009-06-16 10:47:16,604], INFO,  main, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, DSC not installed.  DSC will now be installed: com.adobe.livecycle.RightsManagement  /opt/adobe/livecycle8.2/deploy/adobe-rightsmanagement-jboss-dsc.jar

[2009-06-16 10:47:32,227], SEVERE,  main, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy  component  /opt/adobe/livecycle8.2/deploy/adobe-rightsmanagement-jboss-dsc.jar.

com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]:  \ to deploy component  /opt/adobe/livecycle8.2/deploy/adobe-rightsmanagement-jboss-dsc.jar.

        at  com.adobe.livecycle.lcm.feature.deployment.DeployDSCs.deployDSCFiles(DeployDSCs.java:396)

        at  com.adobe.livecycle.lcm.feature.deployment.DeployDSCs.deployDSCs(DeployDSCs.java:149)

*

*

*

Caused by:  com.adobe.idp.common.errors.exception.IDPSystemException: nullorigin: |  [com.adobe.livecycle.usermanager.client.DirectoryManagerServiceClient]  errorCode:16385 errorCodeHEX:0x4001 message:Exception wrapped in DSCException is  Null or NOT An Instance of UMException chainedException:ALC-DSC-012-000:  com.adobe.idp.dsc.registry.ServiceNotFoundException: Service:  DirectoryManagerService not found.chainedExceptionMessage:Service:  DirectoryManagerService not found. chainedException trace:ALC-DSC-012-000:  com.adobe.idp.dsc.registry.ServiceNotFoundException: Service:  DirectoryManagerService not found.

I tried to look for adobe-usermanager-dsc in the admin UI but did not find one over there . I even tried copying the adobe-usermanager-dsc.jar to pre-configured Jboss server/all/lib directory but that does'nt makes a difference .

I was suggested to use different combinations of excluded solution  components in the cliProperties file

When I used the following list of   excludedSolutionComponents  I did not see the (ERROR  [com.adobe.idp.dsc.startup.DSCStartupServlet] DSC Startup failed. Reason:  Internal error.) but still the dobe-usermanager-dsc does not starts and I get the same errors of (com.adobe.idp.dsc.registry.ServiceNotFoundException: Service:  DirectoryManagerService not found.) when the LCM CLI reaches installing the Rights Management DSC.

excludedSolutionComponents=ALC-LFS-BusinessActivityMonitoring,ALC-LFS-ConnectorIBMContentManager,ALC-LFS-ContentServices,ALC-LFS-PDFGenerator,ALC-LFS-ProcessManagement

#,ALC-LFS-RightsManagement,ALC-LFS-BarcodedForms,ALC-LFS-DigitalSignatures,ALC-LFS-Forms,ALC-LFS-Output,ALC-LFS-PDFGenerator3D,ALC-LFS-ReaderExtensions,ALC-LFS-ConnectorEMCDocumentum,ALC-LFS-ConnectorIBMFileNet

Any help on this issue will be highly obliged.

Thank you.

Mohammad