[MAGNOLIA-5179] Activation fails with NullPointerException on BigInteger Created: 12/Jul/13  Updated: 29/Jan/14  Resolved: 29/Jan/14

Status: Closed
Project: Magnolia
Component/s: activation
Affects Version/s: 4.5.8
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Niklas Bulitta Assignee: Jan Haderka
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Tomcat 7, Linux, default database


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

After updating the author instance (new war deployed) and the public instance (updated classes) the activation doesn't work any longer.

it's the same issue like described here:
http://forum.magnolia-cms.com/forum/thread.html?threadId=492f1187-b21b-4039-9355-2ce9145a7dc3

Here is the relevant error log:

2013-07-12 10:15:55,593 ERROR fo.magnolia.module.exchangesimple.SimpleSyndicator: java.lang.NullPointerException
info.magnolia.cms.exchange.ExchangeException: java.lang.NullPointerException
at info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:443)
at info.magnolia.module.exchangesimple.SimpleSyndicator$2.runTask(SimpleSyndicator.java:103)
at info.magnolia.module.exchangesimple.ExchangeTask.run(ExchangeTask.java:75)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NullPointerException
at java.math.BigInteger.subtract(BigInteger.java:1105)
at org.bouncycastle.crypto.engines.RSABlindedEngine.processBlock(Unknown Source)
at org.bouncycastle.jce.provider.JCERSACipher.engineDoFinal(Unknown Source)
at javax.crypto.Cipher.doFinal(Cipher.java:1813)
at info.magnolia.cms.security.SecurityUtil.encrypt(SecurityUtil.java:225)
at info.magnolia.cms.security.SecurityUtil.encrypt(SecurityUtil.java:186)
at info.magnolia.module.exchangesimple.BaseSyndicatorImpl.addActivationHeaders(BaseSyndicatorImpl.java:591)
at info.magnolia.module.exchangesimple.BaseSyndicatorImpl.transportActivatedData(BaseSyndicatorImpl.java:454)
at info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:405)
... 4 more



 Comments   
Comment by Niklas Bulitta [ 12/Jul/13 ]

For future reference:
We found a time where no one was working on the server and could do a complete restart of tomcat. After that the activation worked again! At least we know a work around now.

thanks,
Nik

Comment by Jan Haderka [ 12/Jul/13 ]

Hi Niklas,
thanks for the report. So, if I understand it correctly, you have upgraded from some 4.5.x version to 4.5.8 and after going through the update activation didn't work until restart. Correct?

Could you please confirm that value of magnolia.author.key.location in your magnolia.properties points outside of the war?

Comment by Jan Haderka [ 29/Jan/14 ]

Please reopen with more information should you ever run over this issue again.

Generated at Mon Feb 12 04:02:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.