Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

RobertHarper
RobertHarper
Offline

Badges

Badges
12

Accepted Solutions

Accepted Solutions
1

Likes

Likes
15

Posts

Posts
21

Discussions

Discussions
0

Questions

Questions
21

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by RobertHarper
Customize the badges you want to showcase on your profile
Re: Good documentation on how to create custom product structures for AEM 6.5x
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager Assets
Yes. I've already read this and have it bookmarked. What I was hoping for is a more detailed dive into the structures and how to override the edit pages. I've been able to resolve the issue on my own. It just took a bit longer than I would have liked.

Views

62

Like

1

Replies

0
Re: How to edit product information in /etc/assets/[project_name].....
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager Assets
I think I have it sorted now. There was an overlay of the menu that wasn't working. I deleted it from the project and now the default menu works fine. I'd still like to see the full documentation at some point though.

Views

84

Like

1

Replies

0
Re: How to edit product information in /etc/assets/[project_name].....
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager Assets
I have followed the migration document and moved the products to /var/commerce/products and the items show in the list. The problem now is getting the context based action bar to show with available actions when a product item is selected. If I use the card view and then click on the information icon, the correct edit form is shown for the product type but in list or column view, the action bar does not contain any items when a product is selected.

Views

86

Likes

0

Replies

0
Re: How to edit product information in /etc/assets/[project_name].....
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager Assets
In card view, I can click on the information icon and the correct edit form is shown so that is working. What I need to know now is how to change the action bar so that the create, properties, and other items so when the product item is selected. Currently, the action bar is shown but there are no visible buttons being shown.Could someone point me to the documentation that states how to show a custom action bar based on the product type?

Views

87

Likes

0

Replies

0
Good documentation on how to create custom product structures for AEM 6.5x
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager Assets
I'm trying to figure out how to migrate some custom products from 6.3 to 6.5.x and support different editing for different product types. The original products were stored under /etc/assets/project_name/product_type format. I realize that in the OOTB AEM 6.5 that this has moved to /var/commerce/products by default. There were some scaffolding dialogs created to edit each type of product.What I'm looking for is a detailed document on how to implement products in 6.5. My web searches keep coming u...

Views

79

Likes

0

Replies

2
Re: How to edit product information in /etc/assets/[project_name].....
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager Assets
I know that the classic UI is deprecated and not really supported in 6.5. The thing is that in our dev, QA, and stage instances, the old tools are working. I am on the same version, 6.5.9 but there is something I'm missing in my local instance that allows them to work.

Views

107

Like

1

Replies

0
Re: Custom authoring using scaffolding in 6.5
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
1. I am testing on my local author instance, so it should be.2. 16.11.2021 10:40:19.459 *ERROR* [[0:0:0:0:0:0:0:1] [1637084408284] GET /myapp/articles.html/etc/assets/[project]/articles HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingExceptionjava.lang.NullPointerException: nullat org.apache.jsp.libs.granite.ui.components.shell.collectionpage.collectionpage_jsp._jspService(collectionpage_jsp.java:1152)at org.apache.sling.scripting.jsp.jasper.runtime.HttpJs...

Views

72

Like

1

Replies

0
Custom authoring using scaffolding in 6.5
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
I'm working on a project that I think was originally created in 6.3. I don't think everything was fully updated to work in 6.5. They had some custom authoring forms for managing some assets stored in /etc/assets/[project] using scaffolding and some overlays. For some reason they work in the dev, UAT, and Stage servers but not in my local instance. I have upgraded my local instance to 6.5.9 to match the versions running on dev and uat. The editors do not work in my local for some reason. I can pl...

Views

78

Likes

0

Replies

2
How to edit product information in /etc/assets/[project_name].....
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager Assets
I am working on a project where they started in AEM 6.3 and have upgraded to AEM 6.5.9. I have not seen this before but they have commerce product types stored in /etc/assets/[project_name]/[subfolder_name/assset_name format. In 6.5.x, how would one create/modify/delete these items in a UI? I can use crx/de to do some things but I'm looking for the UI that provides the form for structure and fields.

Views

121

Likes

0

Replies

5
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
That was okay. The big thing was go see how to get the reference to resolve while testing. Once that worked, more code was written for the real test. If the ResourceResolverFactory had been omitted from the example, nothing would have been gained.

Views

37

Like

1

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
Here is the code from a sample project that also doesn't work. I just made a few slight modifications of the sample provided in the archetype. Again, the ResourceResolverFactory is not resolved during the test run./* * Copyright 2015 Adobe Systems Incorporated * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...

Views

349

Like

1

Replies

4
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
I don't think I would be allowed to do that. I'll try it with the sample servlet.

Views

361

Like

1

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
I know. I'm just trying everything I see to get it to work. So far, nothing resolves the issue unless I add a method to set it up myself.

Views

374

Like

1

Replies

2
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
Actually, this didn't work. I forgot to comment out where I am manually adding the ResourceResolverFactory.

Views

376

Like

1

Replies

1
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
I really hate doing it but I'm holding my nose and adding a method to directly set the ResourceResolverFactory and I'll go on from there. This feels so wrong on so many levels.

Views

388

Like

1

Replies

1
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
If I use that import, it completely breaks the build for some reason. Other classes will not compile. I'm not sure why. I think it might interfere with the lombok annotations for the gettter and setter annotations. I don't quite understand why it would effect other classes but for some reason, the compiler is breaking.

Views

383

Like

1

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
Not only does that not work. It will not compile. The Reference annotation may not be applied to a method.

Views

391

Like

1

Replies

4
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
I have seen all of those and none of them have worked. No matter what I do, when the servlet is created, the ResourceResolverFactory is not resolved. The test context includes an instance of a mocked ResourceResolverFactory by default but it is not being injected with the reference annotation. If it would, I could proceed with the when().thenReturn() stuff.

Views

397

Like

1

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
FWIW, I can replicate the problem after creating an archetype 27 project, adding a line@Reference ResourceResolverFactory resourceResolverFactory;line in the sample serlvet. Then in the sample test code, mock an instance of the ResourceResolverFactory register the service with the AemContext then run the test code.

Views

416

Like

1

Replies

6
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
I am not encountering a runtime error so that isn't any help. The problem is that the mocked ResourceResolverFactor instance is not being supplied when the servlet's doGet() method is called from the test case.

Views

411

Like

1

Replies

0
junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Boost 10
Level 3
RobertHarper
Level 3

Likes

15 likes

Total Posts

21 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Boost 3
Boost 1
Give Back 10
View profile
RobertHarper
- Adobe Experience Manager
I have been updating out code base with unit tests and they have some Sling servlets that are obtaining the service user based ResourceResolver for extra work and making calls to other services. The issue I'm having is that the servlet uses @reference ResourceResolverFactory resourceResolverFactory to obtain an instance of the factory. In my tests, I have tried AemContext.registerService(ResourceResolverFactory.class, resourceResolverInstance) to attempt to set the mocked factory. The servlet is...

Views

466

Likes

0

Replies

23
Likes from