AnsweredAssumed Answered

Internationalization issue

Question asked by javed_afroz on Jun 7, 2013
I am using Alfresco 4.0.e community with mysql-5.1 as back end. We are storing Japanese metadata into the repository and that's where we are getting issues.

When I store Japanese metadata in Alfresco it is stores properly. I am able to view metadata in view Japanese characters in "view details". I am able to search with the Japanese character as well.

But when I restart alfresco I get following exceptions in the log and all the Japanese character change to "??????????". Not able to understand what am I doing wrong. I have created databce with UTF-8 encoding.

Early response is deeply appreciated.

**********Exception logs******

2013-06-07 18:51:35,094  ERROR [index.AbstractReindexComponent.threads] [indexT
rackerThread5] Reindexer     5 failed with error: null.
2013-06-07 18:51:35,095  WARN  [index.AbstractReindexComponent.threads] [indexT
rackerThread5] java.lang.NullPointerException
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocum
entsImpl(ADMLuceneIndexerImpl.java:816)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocum
ents(ADMLuceneIndexerImpl.java:646)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl$4.execute(A
DMLuceneIndexerImpl.java:2015)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl$4.execute(A
DMLuceneIndexerImpl.java:2011)
        at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl$1.exec
ute(AbstractLuceneIndexerImpl.java:715)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.doInRe
adthroughTransaction(AbstractLuceneIndexerImpl.java:702)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.readDocumen
ts(ADMLuceneIndexerImpl.java:2010)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.flushPendin
g(ADMLuceneIndexerImpl.java:1057)
        at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcher
Factory.flush(AbstractLuceneIndexerAndSearcherFactory.java:874)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvoc
ationHandler.invoke(StoreRedirectorProxyFactory.java:215)
        at $Proxy211.flush(Unknown Source)
        at org.alfresco.repo.search.IndexerComponent.flushPending(IndexerCompone
nt.java:133)
        at org.alfresco.repo.node.index.AbstractReindexComponent$ReindexWorkerRu
nnable.beforeCommit(AbstractReindexComponent.java:1086)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:747)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:727)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:687)
        at org.springframework.transaction.support.TransactionSynchronizationUti
ls.triggerBeforeCommit(TransactionSynchronizationUtils.java:95)
        at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:927)
        at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.processCommit(AbstractPlatformTransactionManager.java:737)
        at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.commit(AbstractPlatformTransactionManager.java:723)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.
commitTransactionAfterReturning(TransactionAspectSupport.java:393)
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(Sprin
gAwareUserTransaction.java:472)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:410)
        at org.alfresco.repo.node.index.AbstractReindexComponent$ReindexWorkerRu
nnable.run(AbstractReindexComponent.java:1008)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:662)

2013-06-07 18:51:35,125  ERROR [index.AbstractReindexComponent.threads] [indexT
rackerThread1] Reindexer     6 failed with error: null.
2013-06-07 18:51:35,127  WARN  [index.AbstractReindexComponent.threads] [indexT
rackerThread1] java.lang.NullPointerException
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocum
entsImpl(ADMLuceneIndexerImpl.java:816)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocum
ents(ADMLuceneIndexerImpl.java:646)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl$4.execute(A
DMLuceneIndexerImpl.java:2015)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl$4.execute(A
DMLuceneIndexerImpl.java:2011)
        at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl$1.exec
ute(AbstractLuceneIndexerImpl.java:715)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.doInRe
adthroughTransaction(AbstractLuceneIndexerImpl.java:702)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.readDocumen
ts(ADMLuceneIndexerImpl.java:2010)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.flushPendin
g(ADMLuceneIndexerImpl.java:1057)
        at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcher
Factory.flush(AbstractLuceneIndexerAndSearcherFactory.java:874)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvoc
ationHandler.invoke(StoreRedirectorProxyFactory.java:215)
        at $Proxy211.flush(Unknown Source)
        at org.alfresco.repo.search.IndexerComponent.flushPending(IndexerCompone
nt.java:133)
        at org.alfresco.repo.node.index.AbstractReindexComponent$ReindexWorkerRu
nnable.beforeCommit(AbstractReindexComponent.java:1086)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:747)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:727)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:687)
        at org.springframework.transaction.support.TransactionSynchronizationUti
ls.triggerBeforeCommit(TransactionSynchronizationUtils.java:95)
        at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:927)
        at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.processCommit(AbstractPlatformTransactionManager.java:737)
        at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.commit(AbstractPlatformTransactionManager.java:723)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.
commitTransactionAfterReturning(TransactionAspectSupport.java:393)
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(Sprin
gAwareUserTransaction.java:472)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:410)
        at org.alfresco.repo.node.index.AbstractReindexComponent$ReindexWorkerRu
nnable.run(AbstractReindexComponent.java:1008)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:662)

2013-06-07 18:51:35,218  INFO  [node.index.FullIndexRecoveryComponent] [main] I
ndex recovery completed.
2013-06-07 18:51:35,243  INFO  [node.index.AVMFullIndexRecoveryComponent] [main
] Rebuilding indexes for 1 AVM Stores
2013-06-07 18:51:35,245  INFO  [node.index.AVMFullIndexRecoveryComponent] [main
]     Rebuilding index for sitestore

Outcomes