Nested multifield : authored multifield item delete issue | Community
Skip to main content
January 17, 2023
Solved

Nested multifield : authored multifield item delete issue

  • January 17, 2023
  • 1 reply
  • 1336 views

Hi ,

 

i created Nested multifield for adding multi level links(3 levels) with addition promo card section in one of the level. each level has multifield to author multiple links. 

 

Issue: authored 5 tab sections with nested multifield values. after adding one more tab section ex:6th Tab section with nested links. now i am trying to remove 6th tab or 5th Tab section, in dialog it shows tab section deleted after click on save dialog content showing with deleted tab section. edit dialog and validated content still persist in dialog. 

 

error logs :

17.01.2023 14:45:29.179 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:29.179 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:34.181 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:34.181 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:39.185 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:39.185 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:44.196 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:44.196 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:49.198 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:49.198 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar
17.01.2023 14:45:49.416 *WARN* [Apache Sling Resource Resolver Finalizer Thread] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl Closed unclosed ResourceResolver. The creation stacktrace is available on info log level.
17.01.2023 14:45:49.417 *INFO* [Apache Sling Resource Resolver Finalizer Thread] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl Unclosed ResourceResolver was created here:
java.lang.Exception: Opening Stacktrace
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl$ResolverReference.<init>(CommonResourceResolverFactoryImpl.java:538) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.register(CommonResourceResolverFactoryImpl.java:228) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:105) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:98) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolverInternal(CommonResourceResolverFactoryImpl.java:273) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolver(CommonResourceResolverFactoryImpl.java:183) [org.apache.sling.resourceresolver:1.7.2]
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolver(ResourceResolverFactoryImpl.java:98) [org.apache.sling.resourceresolver:1.7.2]
at com.day.cq.wcm.workflow.impl.WcmWorkflowServiceImpl.autoSubmitPageAfterModification(WcmWorkflowServiceImpl.java:443) [com.day.cq.wcm.cq-wcm-workflow:5.11.24]
at com.day.cq.wcm.workflow.impl.WcmWorkflowServiceImpl.process(WcmWorkflowServiceImpl.java:243) [com.day.cq.wcm.cq-wcm-workflow:5.11.24]
at com.day.cq.wcm.workflow.impl.WcmWorkflowServiceImpl$1.run(WcmWorkflowServiceImpl.java:191) [com.day.cq.wcm.cq-wcm-workflow:5.11.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:54.219 *ERROR* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager Can't remove archive data00172a.tar
java.nio.file.FileSystemException: C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore\data00172a.tar: The process cannot access the file because it is being used by another process.

at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180)
at org.apache.jackrabbit.oak.segment.file.tar.SegmentTarManager.delete(SegmentTarManager.java:141) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.FileReaper.reap(FileReaper.java:76) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) [org.apache.jackrabbit.oak-segment-tar:1.22.7]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
17.01.2023 14:45:54.219 *WARN* [TarMK filer reaper [C:\Users\user\AEM Instance\New folder\crx-quickstart\repository\segmentstore]] org.apache.jackrabbit.oak.segment.file.FileReaper Unable to remove file data00172a.tar

 

 

any suggestion for resolve it. 

 

Thanks,
Prasad 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manu_Mathew_
<nastedmultifield
	jcr:primaryType="nt:unstructured"
	jcr:title="Nasted Multifield"
	sling:resourceType="granite/ui/components/coral/foundation/container">
	<items jcr:primaryType="nt:unstructured">
		<well
			jcr:primaryType="nt:unstructured"
			sling:resourceType="granite/ui/components/coral/foundation/well"
			fieldLabel="Details">
			<items jcr:primaryType="nt:unstructured">
				<detailswithnastedmultifield
					jcr:primaryType="nt:unstructured"
					sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
					composite="{Boolean}true"
					fieldLabel="Details"
					required="{Boolean}false">
					<field
						jcr:primaryType="nt:unstructured"
						sling:resourceType="granite/ui/components/coral/foundation/container"
						name="./detailswithnastedmultifield">
						<items jcr:primaryType="nt:unstructured">
							<prop1
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop1"
								name="./prop1"/>
							<prop2
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop2"
								name="./prop2"/>
							<prop3Nested
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
								composite="{Boolean}true"
								fieldLabel="prop3Nested">
								<field
									jcr:primaryType="nt:unstructured"
									sling:resourceType="granite/ui/components/coral/foundation/container"
									name="./innerProps">
									<items jcr:primaryType="nt:unstructured">
										<innerProp1
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
											fieldLabel="innerProp1"
											name="./innerProp1"/>
										<innerProp2
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
											fieldLabel="innerProp2"
											name="./innerProp2"
											step="1"
											value="1"/>
									</items>
								</field>
							</prop3Nested>
						</items>
					</field>
				</detailswithnastedmultifield>
			</items>
		</well>
	</items>
</nastedmultifield>

Is your XML structure similar to this, also check if the name fields are unique.

1 reply

Manu_Mathew_
Community Advisor
Community Advisor
January 17, 2023

@user04148 The error seems to be related to a file lock on a file on the segment store and access related, however, your issue might be related to the node structure of the multifield. Could you also share the node structure for your multifield?

user04148Author
January 17, 2023

Thanks for response Manu,

delete all multi field items save working fine, but when try to delete one multi field item facing issue.

 here is the node structure.

Manu_Mathew_
Community Advisor
Manu_Mathew_Community AdvisorAccepted solution
Community Advisor
January 17, 2023
<nastedmultifield
	jcr:primaryType="nt:unstructured"
	jcr:title="Nasted Multifield"
	sling:resourceType="granite/ui/components/coral/foundation/container">
	<items jcr:primaryType="nt:unstructured">
		<well
			jcr:primaryType="nt:unstructured"
			sling:resourceType="granite/ui/components/coral/foundation/well"
			fieldLabel="Details">
			<items jcr:primaryType="nt:unstructured">
				<detailswithnastedmultifield
					jcr:primaryType="nt:unstructured"
					sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
					composite="{Boolean}true"
					fieldLabel="Details"
					required="{Boolean}false">
					<field
						jcr:primaryType="nt:unstructured"
						sling:resourceType="granite/ui/components/coral/foundation/container"
						name="./detailswithnastedmultifield">
						<items jcr:primaryType="nt:unstructured">
							<prop1
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop1"
								name="./prop1"/>
							<prop2
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
								fieldLabel="Prop2"
								name="./prop2"/>
							<prop3Nested
								jcr:primaryType="nt:unstructured"
								sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
								composite="{Boolean}true"
								fieldLabel="prop3Nested">
								<field
									jcr:primaryType="nt:unstructured"
									sling:resourceType="granite/ui/components/coral/foundation/container"
									name="./innerProps">
									<items jcr:primaryType="nt:unstructured">
										<innerProp1
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
											fieldLabel="innerProp1"
											name="./innerProp1"/>
										<innerProp2
											jcr:primaryType="nt:unstructured"
											sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
											fieldLabel="innerProp2"
											name="./innerProp2"
											step="1"
											value="1"/>
									</items>
								</field>
							</prop3Nested>
						</items>
					</field>
				</detailswithnastedmultifield>
			</items>
		</well>
	</items>
</nastedmultifield>

Is your XML structure similar to this, also check if the name fields are unique.