[MGNLTOOLS-18] ContentUpdate should fail more gracefully when magnolia-license is not on the classpath Created: 23/Jul/08  Updated: 04/Nov/15  Resolved: 04/Nov/15

Status: Closed
Project: Repository Tools
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.x

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

when trying to run update35to36 on a CE instance: the repo is started but then LicensedModule can't be loaded:

INFO   info.magnolia.tools.setup.for_36.ContentUpdate ContentUpdate.java(checkLicense:102) 23.07.2008 15:49:57  Check license.
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at info.magnolia.tools.AbstractLauncher.launch(AbstractLauncher.java:126)
	at info.magnolia.tools.AbstractLauncher.doMain(AbstractLauncher.java:84)
	at info.magnolia.tools.BasicLauncher.main(BasicLauncher.java:54)
Caused by: java.lang.NoClassDefFoundError: info/magnolia/license/LicensedModule
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at info.magnolia.tools.InvertedURLClassLoader.loadClass(InvertedURLClassLoader.java:57)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
	at info.magnolia.tools.setup.for_36.ContentUpdate.checkLicense(ContentUpdate.java:104)
	at info.magnolia.tools.setup.for_36.ContentUpdate.doExec(ContentUpdate.java:85)
	at info.magnolia.tools.AbstractBasicExecutable.exec(AbstractBasicExecutable.java:56)
	... 7 more


 Comments   
Comment by Michael Mühlebach [ 04/Nov/15 ]

Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes.
Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog for some time now with very little movement.
I'm going to close this to set expectations so the issue doesn't stay open for years with few updates. If the issue is still relevant please feel free to reopen it or create a new issue.

Generated at Mon Feb 12 10:40:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.