Community
Participate
Working Groups
This to send a meeting request using SMTP/VCalendar results in the following exception java.lang.NoClassDefFoundError: javax.mail.MessagingException at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:68) at java.lang.J9VMInternals.initialize(J9VMInternals.java:129) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1328) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:470) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:255) at javax.activation.DataHandler.writeTo(DataHandler.java:76) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1142) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1112) at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sendData(SMTPTransport.java:1419) at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sendMessage(SMTPTransport.java:648) at javax.mail.Transport.send(Transport.java:95) at javax.mail.Transport.send(Transport.java:48) at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.createAndSendEmail(Smtp.java:324) at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.sendEmail(Smtp.java:111) at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.createMeetingRequest(Smtp.java:192) at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendMeetingRequest(MailServicesProxy.java:1104) at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendMeetingRequest(MailServicesProxy.java:1064) at org.eclipse.mylyn.reviews.r4e.ui.internal.properties.tabbed.ReviewTabPropertySection$9.widgetSelected(ReviewTabPropertySection.java:720) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) The request is not sent out
Similar error when in FORMAL review, unable to proceed to the PREPARATION phase, the following error occurs: java.lang.NoClassDefFoundError: javax/mail/MessagingException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328) at java.lang.Class.getConstructor0(Class.java:2640) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:470) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:255) at javax.activation.DataHandler.writeTo(DataHandler.java:76) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1142) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1112) at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sendData(SMTPTransport.java:1419) at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sendMessage(SMTPTransport.java:648) at javax.mail.Transport.send(Transport.java:95) at javax.mail.Transport.send(Transport.java:48) at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.createAndSendEmail(Smtp.java:324) at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.sendEmail(Smtp.java:111) at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.createMeetingRequest(Smtp.java:192) at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendMeetingRequest(MailServicesProxy.java:1104) at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendMeetingRequest(MailServicesProxy.java:1064) at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.UIUtils.changeReviewPhase(UIUtils.java:518) at org.eclipse.mylyn.reviews.r4e.ui.internal.properties.tabbed.ReviewTabPropertySection$1.widgetSelected(ReviewTabPropertySection.java:358) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
Problem is due to bad format in VCalendar attachment. When the attachment is removed, the messages goes trhough without any problems
After more troubleshooting it seems that the issue is due to an incompatibility between the orbit javax.activation and the Eclipse Runtime environment. The version of javax.activation included I the geronimo branch does not seem to be compatible with the current Eclipse runtime. In order to make SMTP work we need the non-geronimo javax.activation, but we also need the geronimo components to be able to send out MIME multipart attachments. So we are screwed there. The reason it works with JRE6 is because JRE6 includes the correct version of javax.activation (i.e. the one we need) in the rt.jar file and that this one is used at runtime instead of the one from the orbit library. So with JRE6 we use the JRE6 javax.activation with the orbit javax.activation geronimo components. This is why it works with JRE6. JRE5 on the other hand does not include the javax.activation like the JRE6 does, so at runtime we use the javax.activation from orbit, which then fails. I'm not sure how we can fix this, we would need to repackage and include the part of javax.activation from the non-geronimo branch, but with the geronimo branch geronimo components. Or find this correct package somewhere. Otherwise it will only work with JRE1.6. I am actually surprised that I cannot find anybody on the web that had the same problem we have with this.
To resume the issue 1) javax.activation v1.1.2.1 = sun implementation = included in orbit branch 1_1_0 = also included in JRE6 = works 2) javax.activation v1.1.4.2 = other (newer?) implementation = included in orbit branch 1_1_0_geronimo = does not work 3) opg.apache.geronimo = included in orbit branch 1_1_0_geronimo = works and needed We need 1 and 3 together to be able to send Multipart attachments. However 2 and 3 are bundled together only, not 1 and 3. So we need to file a bug and/or CQ to get them bundled together in open source eventually. For now, that means we have a requirement to use JRE6 with R4E to send SMTP mail attachments, until this is resolved. The documentation for 0.20 will need to be updated accordingly
Bug 362370 filed on Orbit
*** Bug 365140 has been marked as a duplicate of this bug. ***
Low priority, as we will soon get rid of supporting Java5
Mylyn has been restructured, and our issue tracking has moved to GitHub [1]. We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub. [1] https://github.com/orgs/eclipse-mylyn