[ 
https://issues.apache.org/jira/browse/SLING-6511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857176#comment-15857176
 ] 

Sajid Momin edited comment on SLING-6511 at 2/8/17 1:25 AM:
------------------------------------------------------------

I have attached the following files.  The cause to be more clear is that when I 
am trying to use a i18n in my html file, the system throws an exception because 
its not able to find one of the localization i18n file.  My expectation is that 
I should not have to create all localization files if it is not required.  

To recreate the issue:

1. Install AEM 6.2
2. Go to OSGI Console, Deploy Sling Thymeleaf bundle
3. Go to OSGI Console, Deploy javassist bundle
4. Assuming you have the Geometrixx Demo site, go to Package Manager and  
install the Test.zip.  Test.zip contains the test component and update to the 
home page of the Geometrixx Shapes Demo site.
5. Go to http://localhost:4502/crx/de/index.jsp#/apps/audi/test, and remove the 
test.en_US.properties.  The en_US properties file is a localization resource 
bundle.
6. If you try to navigate to the 
http://localhost:4502/content/geometrixx/en/jcr:content/par/test.html, you will 
get a stack error.


was (Author: smomin):
I have attached the following files.  The cause to be more clear is that when I 
am trying to use a i18n in my html file, the system throws an exception because 
its not able to find one of the localization i18n file.  My expectation is that 
I should not have to create all localization files if it is not required.  

To recreate the issue:

1. Install AEM 6.2
2. Go to OSGI Console, Deploy Sling Thymeleaf bundle
3. Go to OSGI Console, Deploy javassist bundle
4. Assuming you have the Geomatrixx Demo site, go to Package Manager and  
install the Test.zip.  Test.zip contains the test component and update to the 
home page of the Geomatrixx Shapes Demo site.
5. Go to http://localhost:4502/crx/de/index.jsp#/apps/audi/test, and remove the 
test.en_US.properties.  The en_US properties file is a localization resource 
bundle.
6. If you try to navigate to the 
http://localhost:4502/content/geometrixx/en/jcr:content/par/test.html, you will 
get a stack error.

> SlingTemplateResource unable to handle missing localization for a language
> --------------------------------------------------------------------------
>
>                 Key: SLING-6511
>                 URL: https://issues.apache.org/jira/browse/SLING-6511
>             Project: Sling
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: Scripting Thymeleaf 1.0.0
>            Reporter: Sajid Momin
>            Assignee: Oliver Lietz
>         Attachments: error.log, javassist-3.20.0-GA.jar, 
> org.apache.sling.scripting.thymeleaf-1.0.0.jar, Test.zip, 
> thymeleaf-i18n-error.log
>
>
> I am currently deploying Sling Thymeleaf HTML template processor to AEM 6.2.  
> In my attempt to use i18n in my template, I am receiving a null pointer 
> exception.  When the message resolver is looping through the localization of 
> the language, it's unable to skip the processing of the missing localization 
> file resulting in a null pointer.  The only way to fix the issue is to define 
> all localization resource bundle for the language in order to process the 
> template.  It would be nice for the message resolver to ignore the missing 
> localized language resource bundle and continue to the next.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to