Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Problems facing in up-gradation from Adobe CQ5.5 to AEM 6.1

Avatar

Level 2

Hi,

I am trying to follow the steps in https://docs.adobe.com/docs/en/aem/6-1/deploy/upgrade.html.

After trying the command "java -jar aem-quickstart-6.1.0.jar -v -x crx2oak" .It is throwing the exception,

Preparing to execute extension /C:/Users/ND%20-%20Yvonne/Desktop/author%20%20backup/crx-quickstart/opt/extensions/crx2oak-quickstart-extension.jar
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:862)
        at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:940)
Caused by: java.lang.ExceptionInInitializerError
        at com.adobe.granite.crx2oak.quickstart.extension.Main.getHelpFormatter(Main.java:131)
        at com.adobe.granite.crx2oak.quickstart.extension.Main.<init>(Main.java:142)
        at com.adobe.granite.crx2oak.quickstart.extension.Main.main(Main.java:392)
        ... 6 more
Caused by: com.adobe.granite.crx2oak.quickstart.extension.exceptions.CRX2OakException: Cannot find file /C:/Users/ND%20-%20Yvonne/Desktop/author%20%20backup/crx-quickstart/opt/extensions/crx2oak-quickstart-extension.jar
        at com.adobe.granite.crx2oak.quickstart.extension.jar.JarFile.<init>(JarFile.java:44)
        at com.adobe.granite.crx2oak.quickstart.extension.ExtensionInfo.<clinit>(ExtensionInfo.java:33)
        ... 9 more
Quickstart: aborting.

I am able to find the file, crx2oak-quickstart-extension.jar in the  above mentioned path.

Please help me  out..

Thanks much,Veeru

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Veeru,

please check with the developers about the packages not being installed.

The following error is strange: 

Caused by: java.io.FileNotFoundException: .crx-quickstart\repository
epositorydatastore\repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8 (The filename, directory name, or volume label syntax is incorrect)

The following path is obviously wrong: "epositorydatastore\repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8 "

What changes did you make as far as the known issues go? I take it you removed spaces in the folder path, but did you update the cfg file:

  • Update to 6.1 from 5.x and 6.0+CRX2 fails on Windows due to backslashes written to FileDataStore.cfg. Workaround is to modify the 'org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.cfg' file with datastore path before we run Migration command (CQ-42291)

Regards,

Opkar

View solution in original post

13 Replies

Avatar

Employee

Hi Veeru,

please review the known issues for upgrading to AEM6.1[1], there are specific issues for windows.

Regards,

Opkar

[1] http://docs.adobe.com/docs/en/aem/6-1/release-notes/known-issues.html

Avatar

Level 2

Hi Gill,

Thank you very much.

Successfully migrated to AEM 6.1,But unable to start..Please find the below exception in error.log.

20.08.2015 13:46:43.993 *ERROR* [qtp190485129-83] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
20.08.2015 13:46:43.993 *ERROR* [qtp190485129-83] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

Please find the  attached screenshot. Thank you..

Thanks much,Veeru

Avatar

Employee

Hi Veeru,

unfortunately this looks like an exception occurred during startup. The above error is a symptom and not the cause. The actual exception causing this will be before the above message in your crx/quickstart/logs/error.log file

Did you run your migration from a copy of your original or just carry on with the partially migrated instance? It would be best to start the migration process from a copy of the original instance.

Regards,

Opkar

Avatar

Level 2

Hi Opkar,

Thank you very much..

I ran the migration from the copy of the original(Backup is there), I didn't find errors just above to the exception in error.log, But some exceptions are there in both error.log and stderr.log. How to make the instance startup..?

Thanks Again..

Thanks much,Veeru

Avatar

Employee

Hi Veeru,

Can you post the exceptions that occur during startup please?

Just to confirm, you did do the workflow purge, consistency check and traversal check? [1]

Regards,

Opkar

[1] https://docs.adobe.com/docs/en/aem/6-1/deploy/upgrade.html#Preparing the source instance

Avatar

Level 2

Hi Opkar,

I Performed Consistency check and traversal check.

In my Project there are no workflows involved,So I didn't perform workflow purge, Is it mandatory step..?

Please find the below exceptions.

Exceptions in error.log

  1.     20.08.2015 15:54:55.724 *ERROR* [FelixDispatchQueue] xstream-jettison FrameworkEvent ERROR (org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision xstream-jettison [288.0] because it exports package 'org.xml.sax' and is also exposed to it from bundle revision org.apache.felix.framework [0] via the following dependency chain:

  xstream-jettison [288.0]
    import: (osgi.wiring.package=javax.swing)
     |
    export: osgi.wiring.package=javax.swing; uses:=org.xml.sax
    export: osgi.wiring.package=org.xml.sax
  org.apache.felix.framework [0])
org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision xstream-jettison [288.0] because it exports package 'org.xml.sax' and is also exposed to it from bundle revision org.apache.felix.framework [0] via the following dependency chain:

  xstream-jettison [288.0]
    import: (osgi.wiring.package=javax.swing)
     |
    export: osgi.wiring.package=javax.swing; uses:=org.xml.sax
    export: osgi.wiring.package=org.xml.sax
  org.apache.felix.framework [0]
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4101)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
    at java.lang.Thread.run(Unknown Source)

    2.        20.08.2015 15:54:52.000 *ERROR* [FelixDispatchQueue] com.day.cq.dam.cq-dam-handler FrameworkEvent ERROR (org.osgi.framework.BundleException: Unresolved constraint in bundle com.day.cq.dam.cq-dam-handler [197]: Unable to resolve 197.0: missing requirement [197.0] osgi.wiring.package; (osgi.wiring.package=org.apache.pdfbox.exceptions))

org.osgi.framework.BundleException: Unresolved constraint in bundle com.day.cq.dam.cq-dam-handler [197]: Unable to resolve 197.0: missing requirement [197.0] osgi.wiring.package; (osgi.wiring.package=org.apache.pdfbox.exceptions)
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
    at java.lang.Thread.run(Unknown Source)

3.     20.08.2015 15:54:46.233 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService(47)] The activate method has thrown an exception (java.io.IOException: Could not register a unique repositoryId)
java.io.IOException: Could not register a unique repositoryId
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerSegmentStore(SegmentNodeStoreService.java:359)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerNodeStore(SegmentNodeStoreService.java:236)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.activate(SegmentNodeStoreService.java:231)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)

4.      20.08.2015 15:54:46.232 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore Exception while adding root record with name repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8, {}
java.io.FileNotFoundException: .crx-quickstart
epository
epositorydatastore\repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8 (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore.addMetadataRecord(OakFileDataStore.java:143)
    at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.addMetadataRecord(DataStoreBlobStore.java:403)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerSegmentStore(SegmentNodeStoreService.java:356)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerNodeStore(SegmentNodeStoreService.java:236)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.activate(SegmentNodeStoreService.java:231)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)

 

5.     20.08.2015 15:54:51.639 *ERROR* [FelixDispatchQueue] com.day.cq.cq-opensocial FrameworkEvent ERROR (org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision xstream-jettison [288.0] because it exports package 'org.xml.sax' and is also exposed to it from bundle revision org.apache.felix.framework [0] via the following dependency chain:

  xstream-jettison [288.0]
    import: (osgi.wiring.package=javax.swing)
     |
    export: osgi.wiring.package=javax.swing; uses:=org.xml.sax
    export: osgi.wiring.package=org.xml.sax
  org.apache.felix.framework [0])
org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision xstream-jettison [288.0] because it exports package 'org.xml.sax' and is also exposed to it from bundle revision org.apache.felix.framework [0] via the following dependency chain:

  xstream-jettison [288.0]
    import: (osgi.wiring.package=javax.swing)

6.     20.08.2015 15:54:46.247 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService(47)] Failed creating the component instance; see log for reason

Exception in syserr.log:

20.08.2015 15:54:51.998 *ERROR* [FelixStartLevel] ERROR: Error starting jcrinstall:/libs/dam/install/cq-dam-handler-5.5.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle com.day.cq.dam.cq-dam-handler [197]: Unable to resolve 197.0: missing requirement [197.0] osgi.wiring.package; (osgi.wiring.package=org.apache.pdfbox.exceptions))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.day.cq.dam.cq-dam-handler [197]: Unable to resolve 197.0: missing requirement [197.0] osgi.wiring.package; (osgi.wiring.package=org.apache.pdfbox.exceptions)
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
    at java.lang.Thread.run(Unknown Source).

Please find the above logs..

Thank you very much for your time.

Thanks much, Veeru

Avatar

Employee

Hi,

looks like you will have to work with your developers to understand why these dependencies are not installing.

For example:  xstream-jettison, org.apache.pdfbox.exceptions

Also can you post the error in point 4: as the error is split up, as shown below:

java.io.FileNotFoundException: .crx-quickstart
epository
epositorydatastore\repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8 (The filename, directory name, or volume label syntax is incorrect)

Please note error: "The filename, directory name, or volume label syntax is incorrect)"

How are you starting AEM? Script or clicking on the jar file?

Regards,

Opkar

Avatar

Level 2

Hi Opkar,

I am starting the AEM with the command "java -jar cq-quickstart-6.1.0.jar -r crx3,crx3tar".

Below is the complete error in error.log

20.08.2015 15:54:46.233 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService(47)] The activate method has thrown an exception (java.io.IOException: Could not register a unique repositoryId)
java.io.IOException: Could not register a unique repositoryId
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerSegmentStore(SegmentNodeStoreService.java:359)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerNodeStore(SegmentNodeStoreService.java:236)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.activate(SegmentNodeStoreService.java:231)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
    at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
    at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:302)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:113)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:832)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:799)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:724)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)
    at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:669)
    at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:184)
    at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:332)
    at org.apache.felix.scr.impl.Activator.access$000(Activator.java:49)
    at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:257)
    at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
    at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
    at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
    at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
    at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
    at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
    at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)
    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
    at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
    at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.jackrabbit.core.data.DataStoreException: Could not add root record
    at org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore.addMetadataRecord(OakFileDataStore.java:153)
    at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.addMetadataRecord(DataStoreBlobStore.java:403)
    at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerSegmentStore(SegmentNodeStoreService.java:356)
    ... 36 common frames omitted
Caused by: java.io.FileNotFoundException: .crx-quickstart\repository
epositorydatastore\repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8 (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore.addMetadataRecord(OakFileDataStore.java:143)
    ... 38 common frames omitted

Thanks much,Veeru

Avatar

Correct answer by
Employee

Hi Veeru,

please check with the developers about the packages not being installed.

The following error is strange: 

Caused by: java.io.FileNotFoundException: .crx-quickstart\repository
epositorydatastore\repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8 (The filename, directory name, or volume label syntax is incorrect)

The following path is obviously wrong: "epositorydatastore\repository-c862c9b6-2706-45ec-bec6-a2e8324eb7a8 "

What changes did you make as far as the known issues go? I take it you removed spaces in the folder path, but did you update the cfg file:

  • Update to 6.1 from 5.x and 6.0+CRX2 fails on Windows due to backslashes written to FileDataStore.cfg. Workaround is to modify the 'org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.cfg' file with datastore path before we run Migration command (CQ-42291)

Regards,

Opkar

Avatar

Level 2

Hi Opkar,

I have removed the blank spaces in the folder path and I didn't update any FileDataStore.cfg file.

Can you please assist me , what I need to update in cfg file.?

Thank you very much for your inputs.

Thanks much, Veeru

Avatar

Level 2

Hi Opkar,

Thank you very much for your  time and assistance,

I migrated successfully the sample project from Adobe CQ 5.5 to AEM 6.1.

Thanks Much, Veeru

Avatar

Employee

Issue is: Update to 6.1 from 5.x and 6.0+CRX2 fails on Windows due to backslashes written to FileDataStore.cfg

Fix is: Workaround is to modify the 'org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.cfg' file with datastore path before we run Migration command (CQ-42291)

You need to update the above file and change the backslashes to forward slashes, So rerun the migration on a copy of the original 5.x instance and include this step BEFORE you run the migration command. 

Regards,

Opkar

Avatar

Employee

veereswara sastry wrote...

Hi Opkar,

Thank you very much for your  time and assistance,

I migrated successfully the sample project from Adobe CQ 5.5 to AEM 6.1.

Thanks Much, Veeru

 

 

Hi Veeru,

glad to hear it is working now, thanks for taking the time to update the forum. 

Regards,

Opkar