[MGNLTOOLS-72] Adapt to JR 2.8 brought by Magnolia 5.3 Created: 26/Jun/14  Updated: 27/Jun/14  Resolved: 26/Jun/14

Status: Closed
Project: Repository Tools
Component/s: None
Affects Version/s: 1.5.1
Fix Version/s: 1.6

Type: Task Priority: Critical
Reporter: Daniel Lipp Assignee: Daniel Lipp
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File Screen Shot 2014-06-27 at 07.07.54.jpg    
Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes

 Description   

Obviously some method signature changed from JR 2.6 to 2.8 - that's why 1.5.1 of this tools module can no longer be used with Magnolia 5.3.

Select repository tools, choose a workspace and select "clear workspace".
It'll result in the following exception:

Caused by: java.lang.NoSuchMethodError: org.apache.jackrabbit.core.SessionImpl.createDataStoreGarbageCollector()Lorg/apache/jackrabbit/core/data/GarbageCollector;
	at info.magnolia.tools.commands.GarbageCollectorCommand.execute(GarbageCollectorCommand.java:50)
	at info.magnolia.tools.app.ToolsPresenter.clearRepository(ToolsPresenter.java:56)
	at info.magnolia.tools.app.ToolsViewImpl$1.buttonClick(ToolsViewImpl.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508)



 Comments   
Comment by Daniel Lipp [ 26/Jun/14 ]

We should add a ui test for the repository tools as well to prevent from running into that issue again.

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