cancel
Showing results for 
Search instead for 
Did you mean: 

Error after deploying PDFActions on MII 12.1.8

Former Member
0 Kudos

Hi,

We are deploying PDFActions on MII 12.1.8 Build(20).

We downloaded PDFActions.jar from SAP Note 1325997.And downloaded iText.jar and iTextAsian.jar from the link  http://www.java2s.com/Code/Jar/i/Downloaditext145jar.htm

we  found this link on  http://scn.sap.com/thread/2136305

After deployment of PDFActions, configure action on “PDF Document” action block in transaction gives error in java console (please refer error stack below).

This is only for “PDF Document” actions block – while other action blocks are working fine.

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

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width()F

                at com.sap.mii.actions.pdf.dialogs.DocumentDialog.setDimensionsField(DocumentDialog.java:121)

                at com.sap.mii.actions.pdf.dialogs.DocumentDialog.access$0(DocumentDialog.java:101)

                at com.sap.mii.actions.pdf.dialogs.DocumentDialog$PortraitListener.actionPerformed(DocumentDialog.java:42)

                at javax.swing.JComboBox.fireActionEvent(Unknown Source)

                at javax.swing.JComboBox.setSelectedItem(Unknown Source)

                at com.sap.mii.actions.pdf.dialogs.DocumentDialog.load(DocumentDialog.java:445)

                at com.sap.xmii.bls.sdk.BaseConfigurationDialog.initialize(BaseConfigurationDialog.java:159)

                at com.sap.xmii.bls.legacy.NewActionWrapper.ShowConfigurationDialog(NewActionWrapper.java:904)

                at com.sap.xmii.xacute.editors.transaction.dialogs.ActionPropertiesDialog.actionPerformed(ActionPropertiesDialog.java:247)

                at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

                at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

                at java.awt.EventQueue.access$000(Unknown Source)

                at java.awt.EventQueue$3.run(Unknown Source)

                at java.awt.EventQueue$3.run(Unknown Source)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

                at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

                at java.awt.EventQueue$4.run(Unknown Source)

                at java.awt.EventQueue$4.run(Unknown Source)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.WaitDispatchSupport$2.run(Unknown Source)

                at java.awt.WaitDispatchSupport$4.run(Unknown Source)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.awt.WaitDispatchSupport.enter(Unknown Source)

                at java.awt.Dialog.show(Unknown Source)

                at com.sap.xmii.common.ui.dialogs.BaseDialog.show(BaseDialog.java:88)

                at com.sap.xmii.Illuminator.gui.workbench.components.dialogs.WorkbenchOKCancelDialog.show(WorkbenchOKCancelDialog.java:63)

                at com.sap.xmii.xacute.editors.transaction.GUIObjectModel.EditAction(GUIObjectModel.java:164)

                at com.sap.xmii.xacute.editors.transaction.GUIObjectModel.EditSelectedAction(GUIObjectModel.java:422)

                at com.sap.xmii.xacute.editors.transaction.GUIObjectModel.EditSelectedObject(GUIObjectModel.java:182)

                at com.sap.xmii.xacute.editors.transaction.GenericLayoutControl.mouseClicked(GenericLayoutControl.java:1337)

                at java.awt.Component.processMouseEvent(Unknown Source)

                at javax.swing.JComponent.processMouseEvent(Unknown Source)

                at java.awt.Component.processEvent(Unknown Source)

                at java.awt.Container.processEvent(Unknown Source)

                at java.awt.Component.dispatchEventImpl(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

                at java.awt.Container.dispatchEventImpl(Unknown Source)

                at java.awt.Window.dispatchEventImpl(Unknown Source)

                at java.awt.Component.dispatchEvent(Unknown Source)

                at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

                at java.awt.EventQueue.access$000(Unknown Source)

                at java.awt.EventQueue$3.run(Unknown Source)

                at java.awt.EventQueue$3.run(Unknown Source)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

                at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

                at java.awt.EventQueue$4.run(Unknown Source)

                at java.awt.EventQueue$4.run(Unknown Source)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Any idea what is going odd ?

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Firoz_Ashraf
Contributor
0 Kudos

Hi Anubhuti,

Follow the steps as mentioned below.

1. Download PDFActions.jar as per SAP Note 1109054.

2. Download iText 1.4.5 from http://www.java2s.com/Code/Jar/i/Downloaditext145jar.htm

3. Download iTextAsian (Latest Version) from http://sourceforge.net/projects/itext/files/

    extrajars --> extrajars 2.0.zip

    After you unzip the files take only itext-asian.jar

4. Rename itext-1.4.5.jar to iText.jar

5. Rename itext-asian.jar to iTextAsian.jar

6. Zip all the three files (PDFActions.jar, iText.jar and iTextAsian.jar) to one zip file and name it PDFActions.zip

Final Step --> upload and deploy the zip file PDFActions.zip in MII custom Actions.

Hope it solves your problem.

Regards,

Firoz.

Former Member
0 Kudos

Hi Anubhuti,

Can you please let me know which jre version are you using to run MII Workbench?

Best Regards,

Anuvrat

Former Member
0 Kudos

Thanks Anuvrat.

Its JRE 1.7.0

Is there any specific version should be used ?

Regards,

Anubhuti

Former Member
0 Kudos

Hi Anubhuti,

Actually this is a problem with iText.jar version as the new version throws this error and the older version works fine.

I have a working set of PDF Actions jar files. I have added them in a zip file and deployed the whole zip in one go.

You can give me your e-mail id and I will send it across.

Thanks and Regards,

Anuvrat Rastogi

Former Member
0 Kudos

Hi,

Please send me the zip file. Also let me know the procedure to deploy,should I follow the same steps as recommended in the SAP note or I can deploy the Zip in Assembly file section wthout uploading any file in dependency file section.

Thanks for your help.

Regards,

Anubhuti

Emails should not be part of a thread.  Please ask for a link instead. Message was edited by: Michael Appleby