Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

adamp25373672
Community profile adamp25373672 Level 2
Job title here
Location here
5 BADGES
Level 2

Level 2

Learn more
Joined the community 27-04-2017 6:57:35 AM
Offline
Top badges earned by adamp25373672
Customize the badges you want to showcase on your profile
Re: java.lang.LinkageError: javax/mail/Session
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
You don't need anything special to reproduce this. Just send email from AEM on a JBoss instance.

Views

6.1K

Likes

0

Replies

1
Re: JBoss modules causing LinkageError
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
I was able to get email working on JBoss by moving javax.mail.*, com.sun.mail.*, and most of javax.activation.* and com.sun.activation.* into our project, completely removing our dependency on the conflicted packages. While far from ideal, this unblocked a critical feature.I'd still be interested to hear the proper solution for this issue.

Views

989

Likes

0

Replies

0
Re: JBoss modules causing LinkageError
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
I'm not familiar with JBoss. I don't understand the instructions in that link. Which WEB-INF does it mean?This is a turnkey AWS JBoss AEM Forms box. I tried removing the javax.mail module from JBoss, but JBoss would not start without it.

Views

1.0K

Likes

0

Replies

0
JBoss modules causing LinkageError
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
java.lang.LinkageError: loader constraint violation: when resolving method "com.sun.mail.util.PropUtil.getBooleanSessionProperty(Ljavax/mail/Session;Ljava/lang/String;Z)Z" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoader) of the current class, javax/mail/internet/MimeMessage, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for the method's defining class, com/sun/mail/util/PropUtil, have different Class objects for the type javax/...

Views

1.8K

Likes

0

Replies

4
Re: java.lang.LinkageError: javax/mail/Session
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
Hi Scott,Any updates? I've tried changing around my pom.xml dependency settings, but nothing has made any difference.The error I'm getting now is slightly different (and much less helpful) than before:java.lang.LinkageError: javax/mail/Sessionat com.sun.mail.util.PropUtil.getBooleanSessionProperty(PropUtil.java:106)at javax.mail.internet.MimeMessage.initStrict(MimeMessage.java:315) [javax.mail:1.5.0.b01]at javax.mail.internet.MimeMessage.(MimeMessage.java:193) [javax.mail:1.5.0.b01]The code in q...

Views

6.1K

Likes

0

Replies

3
Re: java.lang.LinkageError: javax/mail/Session
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
Thanks.The custom mail service works locally and on a non-JBoss deployment; it's only on the JBoss box it fails.

Views

6.1K

Likes

0

Replies

0
Re: java.lang.LinkageError: javax/mail/Session
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
Hi Scott,I've written my own mail service as suggested, using the JavaMail API, but I still get the error:java.lang.LinkageError: Failed to link javax/mail/Session (Module "javax.mail.api:main" from local module loader @33e5ccce (finder: local module finder @5a42bbf4 (roots: C:\Adobe\Adobe_Experience_Manager_Forms\jboss\modules,C:\Adobe\Adobe_Experience_Manager_Forms\jboss\modules\system\layers\base\.overlays\layer-base-jboss-eap-7.0.6.CP,C:\Adobe\Adobe_Experience_Manager_Forms\jboss\modules\sys...

Views

6.1K

Likes

0

Replies

6
Re: OutputService generates damaged PDFs
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
Writing to disk worked. Comparing the two outputs, it seems that printing directly to the response carried the wrong encoding. I'm not quite sure why just yet, but there it is.

Views

617

Likes

0

Replies

0
Re: OutputService generates damaged PDFs
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
Thanks for the suggestions. I've looked at that page before, and I don't see that it differs from what I'm doing aside from using the filesystem.As to your other suggestions, the input source encoding is set on line 112 above, and removing setLinearizedPDF didn't make a difference.

Views

664

Likes

0

Replies

0
OutputService generates damaged PDFs
Avatar
Give Back 5
Level 2
adamp25373672
Level 2

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
adamp25373672
- Adobe Experience Manager Forms
I've written a servlet to generate Document of Record PDFs for our forms. After some work, I've gotten it to output PDFs, but the PDFs are always damaged.Viewing the PDFs in a text editor doesn't reveal anything obviously wrong. Using an online PDF repair tool shows the following errors:0x8041010B - E - The 'xref' keyword was not found or the xref table is malformed. - File: 20185000044 (4).pdfRecover XREF table.0x8A117FFD - E - Error in Flate stream: data error. - Object No.: 12 - File: 2018500...

Views

1.3K

Likes

0

Replies

5
Likes given to