Expand my Community achievements bar.

createPDF throws IllegalStateException and NoClassDefFoundError for SOAPConstants

Avatar

Level 1

The method call "createPDF" is failing with IllegalStateException as shown in the log below. I've included the list of jars mentioned in thread http://forums.adobe.com/thread/797685. Do you have any suggestions for resolving this or getting a verbose error message that help resolve the issue? Thanks.

Also - I'm doing this as a SOAP call.

This is the program call..

DistillerServiceClient dsc = new DistillerServiceClient(myFactory);

result = dsc.createPDF(inDoc, inputFileName, adobePDFSettings, securitySettings, optDoc, null);

These jars are in the class path..

Classes.png

This is what I see in the logs..

LiveCycle Server request failed:

java.lang.IllegalStateException
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.java:67)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
at com.adobe.livecycle.distiller.client.DistillerServiceClient.createPDF(DistillerServiceClient.java:149)
at com.principal.corp.watcher.LiveCycleFunctions.callLiveCycle(LiveCycleFunctions.java:77)
at com.principal.corp.watcher.FolderListner.run(FolderListner.java:268)
at java.lang.Thread.run(Thread.java:811)
Caused by:
java.lang.NoClassDefFoundError: org.apache.axis.soap.SOAPConstants
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:69)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.createMessageDispatcher(ServiceClientFactory.java:593)
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.getMessageDispatcher(ServiceClientFactory.java:550)
at com.adobe.idp.dsc.clientsdk.ServiceClient.getMessageDispatcher(ServiceClient.java:239)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:205)
... 4 more
Caused by:
java.lang.ClassNotFoundException: org.apache.axis.soap.SOAPConstants
at java.net.URLClassLoader.findClass(URLClassLoader.java:497)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:132)
at java.lang.ClassLoader.loadClass(ClassLoader.java:650)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:616)
... 13 more

2 Replies

Avatar

Level 3
Level 3

Hi,

Since SOAPConstants class is in axis.jar. I think problem may be with this jar file.

So try with higher version of this jar file from below link.

http://www.findjar.com/class/javax/xml/soap/SOAPConstants.html

Thanks

Abhishek

Avatar

Former Community Member

Do you resolve this issue? I have the same problem... and I don't have any clue about it..

Thanks in advance