Posts tagged "NoSuchMethodError"

LiveCycle ES: NoSuchMethodError installing/uninstalling patches

Issue

If you are installing/uninstalling patches or service packs for LiveCycle ES you may encounter the following exception in the server log:

Caused by: javax.ejb.EJBException: Unexpected Error
java.lang.NoSuchMethodError: com.adobe.pof.omapi.POFQuery.addFilter(Ljava/lang/String;Ljava/lang/String;IJ)Lcom/adobe/pof/omapi/POFFilter;
    at com.adobe.idp.event.util.EventDBHelper.getNewAsynchEventIDs(EventDBHelper.java:5704)
    at com.adobe.idp.event.notification.NotificationManagerImpl$2.doInTransaction(NotificationManagerImpl.java:375)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:342)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew(EjbTransactionCMTAdapterBean.java:284)
    at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.in

This exception will usually occur following the EAR deployment.

Reason

When you install/uninstall patches for LiveCycle ES they will update files included in the EARs and also the DSC component files which are then deployed as services.  The versions of the EARs and components deployed must match, otherwise you will see this exception.  If the versions do not match, then the components may be referencing Java methods which were added/modified in the later patch, and therefore not available in the EARs or vice versa.

This exception will often occur directly after the updated EARs are deployed but the components have not yet been updated, as these are two separate steps in LCM.  Even after deploying the updated components the exception may still occur, as they are still loaded in the cache.

Solution

Ensure you have successfully completed deployment of the updated EARs and components.  If the error is still occurring, then restart your application server and perhaps even clean the application server temp files before restarting.  This should refresh all of the deployed services in the cache and the error should not occur.

reference: (182876692)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)

LiveCycle ES2: NoSuchMethodError calling the Java API PDFUtilityServiceClient.getPDFProperties()

Issue

 If you are using the Java API from LiveCycle ES2 to interact with PDF documents you may notice the following exception when calling the PDFUtilityServiceClient.getPDFProperties() method:

2010-05-25 15:21:35,120 DEBUG main - Class - isDynamicOrShell: start pdf=<document state="passive" senderVersion="0" persistent="false" senderPersistent="false" passivated="true" senderPassivated="false" deserialized="false" senderHostId="null" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="false" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="0"><cacheId/><localBackendId/><globalBackendId><DocumentFileID fileName="C:\DOKUME~1\j253720\LOKALE~1\Temp\AdobeDocumentStorage\global\removeOn2010Y05M25D15h31m34s.1274794294000\1585088904463767867"/><globalBackendId/><senderLocalBackendId/><senderGlobalBackendId/><inline/><attributes file="junitWithLinkages\files\Ablage_Und_Archiv_PDF\Testpdf_S100421D421800200807141621520915_XFAFORM_dynamisch_1_Sig_SignoTec.pdf"/></document>
2010-05-25 15:21:35,120 DEBUG main - Class - getServiceClientFactory() - getting factory authenticated DSC_CREDENTIAL_USERNAME=administrator
2010-05-25 15:21:35,198 DEBUG main - JUnitExaminePDFCharacteristics - Error in TestIsDynamicOrShell
ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal Error.
 at com.adobe.livecycle.pdfutility.client.PDFUtilityServiceClient.getPDFProperties(PDFUtilityServiceClient.java:134)
 at osplus.dms.service.renderengine.livecycle.ExaminePDFCharacteristics.isDynamicOrShell(ExaminePDFCharacteristics.java:40)
 at mainapp.util.JUnitExaminePDFCharacteristics.testIsDynamicOrShell(JUnitExaminePDFCharacteristics.java:43)
 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:154)
 at junit.framework.TestCase.runBare(TestCase.java:127)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:118)
 at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
 at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.NoSuchMethodError: com.adobe.idp.Document.setInitialContext(Ljavax/naming/InitialContext;)V
 at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java:178)
 at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:66)
 at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
 at com.adobe.livecycle.pdfutility.client.PDFUtilityServiceClient.getPDFProperties(PDFUtilityServiceClient.java:107)
 ... 18 more
Caused by: java.lang.NoSuchMethodError: com.adobe.idp.Document.setInitialContext(Ljavax/naming/InitialContext;)V
 at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initJndiContext(EjbMessageDispatcher.java:231)
 at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.getJndiContext(EjbMessageDispatcher.java:241)
 at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher.java:91)
 at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java:141)
 ... 21 more

Solution

 This exception occurs when you try to call the method on the client side.  You need to call this method on the server side.

reference: (181607409)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)