Support Article
./productMigration.sh getMigrationLog does not work
SA-88094
Summary
The ./productMigration.sh getMigrationLog does not work.
Error Messages
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.james.mime4j.stream.MimeConfig$Builder
at com.pega.apache.axiom.attachments.MIMEMessage.<init>(MIMEMessage.java:126)
at com.pega.apache.axiom.attachments.Attachments.<init>(Attachments.java:94)
at com.pega.apache.axis2.builder.BuilderUtil.createAttachments(BuilderUtil.java:592)
at com.pega.apache.axis2.builder.BuilderUtil.createAttachmentsMap(BuilderUtil.java:543)
at com.pega.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:40)
at com.pega.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:179)
at com.pega.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)
at com.pega.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108)
at com.pega.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at com.pega.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at com.pega.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:454)
at com.pega.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at com.pega.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.pega.pegarules.migrate.products.service.MigrationServiceInvoker.invokeService(MigrationServiceInvoker.java:98)
at com.pega.pegarules.migrate.products.MigrateProducts.handleRequest(MigrateProducts.java:255)
at com.pega.pegarules.migrate.products.MigrateProducts.main(MigrateProducts.java:193)
Caused by: java.lang.ClassNotFoundException: org.apache.james.mime4j.stream.MimeConfig$Builder
at java.net.URLClassLoader.findClass(URLClassLoader.java:603)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:777)
at java.lang.ClassLoader.loadClass(ClassLoader.java:750)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:341)
at java.lang.ClassLoader.loadClass(ClassLoader.java:731)
Steps to Reproduce
Execute the ./productMigration.sh getMigrationLog.
Root Cause
The praxiom version was updated. The new updated version depended on the current Mime4j version that was included in the media.
Resolution
Perform the following local-change:
- Download the correct version of Mime4j.
- Extract the Mime4j.
- Replace the old version (productmigration\productMigrationResources\lib\mime4j-core-0.7.2.jar) with apache-mime4j-core-0.8.2.jar.
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.