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
BedrockMission!

Learn More

View all

Sign in to view all badges

Jörg_Hoh
Community profile Jörg_Hoh Employee
Senior AEM forum inhabitant
Location here
40 BADGES
Employee

Employee

Learn more
Joined the community 25-09-2012 7:40:10 AM
Online
Top badges earned by Jörg_Hoh
Customize the badges you want to showcase on your profile
Re: Alternative of deprecated SlingSettingsService
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Your code should not reference any runmode (either directly or indirectly), instead it should get expressed via OSGI configuration. I wrote an article for it some time ago, which explains how you can/should do that: https://cqdump.joerghoh.de/2018/09/12/referencing-runmodes-in-java/ cheers,Jörg

Views

17

Like

1

Replies

1
Re: How can I add a published property on to an asset node?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
You should not do that, because these properties are an implementation detail of AEM, and are only set by the replication (subsystem). Why do you need to set the replication state from your own code?

Views

11

Likes

0

Replies

0
Re: AEM 6.5.4 duplicate assets upload in content dam usin...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
In your opinion, how should the system behave when you upload with a name, which is already used? Do you expect some properties to get merged in the background, so you have relicts of the old version still being present? Or should rather the new version always take precendence? From what I understand from your description, the product philosophy is to override all settings with the data from the new asset. I can totally relate to this design decision, because in this case the behaviour and the r...

Views

14

Likes

0

Replies

0
Re: Enable transformer only on publish
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
If a transformer is configured but not starting up, it's indeed an iusse. But I wonder if it's acceptable to ignore errors in the transformer and still try to render content. I rather prefer to fail early and loud instead of pretending everything is fine and it actually is not..

Views

52

Likes

0

Replies

0
Re: Cloud Manager Deployment - Content Package not gettin...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
You should raise a ticket with the Adobe support, because it would require access to the logs (plus context) to troubleshoot this. But technically there is no difference in the deployment behavior here between DEV and Stage/Prod.

Views

38

Like

1

Replies

0
Re: Enable transformer only on publish
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Unfortunately the rewriter definition does not support runmodes. So you need to have your rewriter configured in both author and publish; and then add some runmode-based logic, which disables the actual rewriting process on author.

Views

83

Like

1

Replies

4
Re: AEM Cloud. What package may contain indices
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
packages with mixed mutable and unmutable content are not working. For indexing I would recommend to start here [1] in the docs. [1] https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/developing/aem-project-content-package-structure.html?lang=en#oak-indexes

Views

62

Likes

2

Replies

2
Re: OSGI Bundle for MSSQL - error javax.net.SocketFactory...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
So does it work for you now?

Views

69

Likes

0

Replies

0
Re: UTF-8 fix breaks content-type headers?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
I am very sure that the hosted environments run in an fully UTF-8-ified environment, so there must not be any other encoding. Also I am not aware of any other report of broken encoding in this code, you are the first one. Can you please check your local character encoding and also please validate on a DEV environment in CS, if you see the behavior there as well?

Views

96

Like

1

Replies

0
Re: ***URGENT**** CQ5 instance is not getting started
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
possibly the mount options have changed? Is the server-image (the VM/ bare metal) the same or has it been re-installed? Has the userid (uid) of your aem runtime user changed on the OS level, but it's still the "old" userid on the storage?

Views

38

Likes

0

Replies

0
Re: HTTP Session in AEM
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
I would question the application design when you constantly need to send more than 4k from the client to the server. Does this payload change with every request?If not, the first natural approach is a server-side session, but this design does not scale at all, and is often problematic in terms of failover, its more and more discouraged. AEM does not encourage to use server-side sessions, because that as a really bad impact on your application performance, when you need to render a lot requests a...

Views

48

Like

1

Replies

0
Re: OSGI Bundle for MSSQL - error javax.net.SocketFactory...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
javax.net should be provided by the java runtime, and for that reason the Felix Framework makes the export of that package. Nevertheless I am not sure what happens if that package is provided by the Java runtime. What version of Java are you using? Can you show the version as exposed in the MBean java.lang:Runtime of AEM (/system/console/jmx)

Views

97

Like

1

Replies

4
Re: UTF-8 fix breaks content-type headers?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
When you say "it's the cloud version", you mean the version hosted at Adobe or the SDK running on your local machine?

Views

116

Like

1

Replies

0
Re: Local Vs Bundle Java use-class
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Well, sometimes even inside the AEM development team there isn't a consistent understanding of "best practices", and the documentation is not consistent to 100% 🙂

Views

54

Likes

0

Replies

0
Re: Storing user data in aem. Is it recommended?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
The reasons for my recommendation is quite obvious: While you can store everything in AEM, i would like to avoid to store any sensitive data in there; one of the reasons is then AEM is security critical and and many AEM developers are not used to work under such constraints. Also AEM is not really helpful when you need to deal with such data, and it does not offer special protection or measures to help you here (for example it's very easy for code to use an admin session which can basically read...

Views

69

Likes

0

Replies

0
Re: org.apache.sling.api.SlingException: Cannot get Defau...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
That's the problem: Caused by: java.lang.NullPointerException at com.adobe.aem.dev.forex.core.servlets.SoapClientImpl.getLatestRates(SoapClientImpl.java:65) at com.adobe.aem.dev.forex.core.servlets.SoapWCMUse.(SoapWCMUse.java:14)

Views

63

Likes

0

Replies

0
Re: how to change the password for AEM 6.1 version while...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
@Love_Sharma: IIRC AEM 6.1 does not have that functionality to set the admin password during installation, it was added later.

Views

45

Likes

0

Replies

0
Re: Renditions are being created with wrong dimensions in...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Normally AEM does not change the aspect ratio of existing images. Meaning that you cannot convert a 16:9 aspect ratio automatically in a 4:3 (without smart crops).

Views

51

Like

1

Replies

0
Re: Infinity.json and old page versions content
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
the JCR Version manager gives you access to the old versions and can also help you to restore them

Views

48

Likes

0

Replies

0
Re: Tree replication in AEM as cloud service
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
I recommend to use the "Publish Content Tree" workflow step and build a custom workflow. It's behaves like real "replication at scale" (including setting replication status and writing audit log), what the "Tree Activation" is not doing. The later might also be replaced sooner or later. The documentation is here: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/operations/replication.html?lang=en#publish-content-tree-workflow

Views

66

Likes

2

Replies

0
Re: Storing user data in aem. Is it recommended?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
I would recommend to store them outside.

Views

102

Likes

0

Replies

0
Re: UTF-8 fix breaks content-type headers?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
I just checked and the encoding for the output of /bin/querybuilder.json is set to UTF-8 since ages explicitly. What AEM version are you using?

Views

179

Like

1

Replies

0
Re: Local Vs Bundle Java use-class
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Best practice is to keep all Java code in bundles. Then the compilation is done during build-time and not during runtime.

Views

121

Likes

4

Replies

3
Re: SlingHttpServletRequest returning null when using Jac...
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
The problem is that you allow the model from being adapted from both the request and the resource, and on top of the injected request is optional.That means, that it is very likely that the behind the scenes the adaption is not done by the request, but rather by the resource, and that the request field is not injected at all.

Views

105

Likes

2

Replies

0
Re: Custom metadata is throwing NPE
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
The best to my knowledge: It's a content error, potentially a problem with a non-existing (or empty) property name, but it's hard to say which. What AEM bundle version of "com.day.cq.dam.cq-dam-commons" are you using?

Views

60

Likes

0

Replies

0
Re: Custom metadata is throwing NPE
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Can you please share the at least the first 20 lines of the stacktrace?

Views

119

Like

1

Replies

2
Re: In the reprocess function, add an option to just process certain items like presets, metadata, etc
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
so you mean that the reprocessing is overwriting metadata properties, which you have customized already? In that case turn on the xmp writeback, which will modify the binaries and update them with your adjusted values; then the reprocessing won't overwrite your customized values anymore.

Views

221

Likes

0

Replies

0
Re: how to access jmx console(s) in a production cloud env?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
I cannot comment on NewRelic, but I would suggest you to push that topic to get a definitive answer.

Views

106

Likes

0

Replies

0
Re: How to get the path of the page being published?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Do you plan to fetch this data directly from author, and will the index job crawl this from publish?I would implement it this way:You need an approval workflow, which also includes the replication of the approved content.As a last step in the workflow you add a notification to the external system, that it can crawl the content on author (or you package it and send it to the external system, your choice). In that case the workflow payload is either the page, where it is invoked on, or a workflow ...

Views

84

Likes

0

Replies

0
Re: how to access jmx console(s) in a production cloud env?
Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,114 likes

Total Posts

3,148 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
- Adobe Experience Manager
Besides that the only way I can imagine is to create a servlet which you can query from an external system and which provides that data (in whatever format). I agree that there should be a more standardized way to achieve this.

Views

127

Likes

0

Replies

0