dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41721
Re: Encryption Exception on startup
Thanks Lars. I'm able to start it up now.
On Wed, Dec 2, 2015 at 10:38 AM, Lars Helge Øverland <larshelge@xxxxxxxxx>
wrote:
> Yes it has. You were very unfortunate and caught a bad revision. To fix it
> run this SQL:
>
> update configuration set remotepassword=null, smtppassword=null;
>
> Then get the latest war file again and restart.
>
> regards,
>
> Lars
>
>
> On Wed, Dec 2, 2015 at 7:28 PM, Lorill Crees <lcrees@xxxxxxxxxx> wrote:
>
>> Hi,
>>
>> I am upgrading from v2.21 to the current trunk version (r 21258). When I
>> attempt to start up tomcat I get the
>> below EncryptionOperationNotPossibleException exception and the app will
>> not start up.
>>
>> Has anything changed with the encryption in this latest version?
>>
>> Thanks,
>>
>> Lorill
>>
>>
>> ERROR 2015-12-01 14:34:47,480
>> org.jasypt.exceptions.EncryptionOperationNotPossibleException
>>
>> at
>> org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:974)
>>
>> at
>> org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
>>
>> at
>> org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:498)
>>
>> at
>> org.jasypt.hibernate4.type.AbstractEncryptedAsStringType.nullSafeGet(AbstractEncryptedAsStringType.java:143)
>>
>> at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:127)
>>
>> at org.hibernate.type.AbstractType.hydrate(AbstractType.java:106)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2924)
>>
>> at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1695)
>>
>> at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1627)
>>
>> at org.hibernate.loader.Loader.getRow(Loader.java:1509)
>>
>> at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:719)
>>
>> at org.hibernate.loader.Loader.processResultSet(Loader.java:949)
>>
>> at org.hibernate.loader.Loader.doQuery(Loader.java:917)
>>
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348)
>>
>> at org.hibernate.loader.Loader.doList(Loader.java:2550)
>>
>> at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2395)
>>
>> at org.hibernate.loader.Loader.list(Loader.java:2358)
>>
>> at
>> org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:124)
>>
>> at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1623)
>>
>> at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:374)
>>
>> at
>> org.hisp.dhis.hibernate.HibernateGenericStore.getAll(HibernateGenericStore.java:481)
>>
>> at
>> org.hisp.dhis.configuration.DefaultConfigurationService.getConfiguration(DefaultConfigurationService.java:70)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:483)
>>
>> at
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>>
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>
>> at
>> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
>>
>> at
>> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
>>
>> at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
>>
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>>
>> at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
>>
>> at com.sun.proxy.$Proxy45.getConfiguration(Unknown Source)
>>
>> at
>> org.hisp.dhis.startup.ConfigurationPopulator.execute(ConfigurationPopulator.java:48)
>>
>> at
>> org.hisp.dhis.system.startup.DefaultStartupRoutineExecutor.execute(DefaultStartupRoutineExecutor.java:129)
>>
>> at
>> org.hisp.dhis.system.startup.DefaultStartupRoutineExecutor.execute(DefaultStartupRoutineExecutor.java:92)
>>
>> at
>> org.hisp.dhis.system.startup.StartupListener.contextInitialized(StartupListener.java:71)
>>
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4728)
>>
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)
>>
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
>>
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
>>
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
>>
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
>>
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1738)
>>
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>
>> at java.lang.Thread.run(Thread.java:745)
>>
>> (StartupListener.java [localhost-startStop-1])
>>
>> 01-Dec-2015 14:34:47.480 SEVERE [localhost-startStop-1]
>> org.apache.catalina.core.StandardContext.startInternal Error listenerStart
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>
References