Error when loading 2.19 sample data

=0A=
=0A=
=0A=
Thanks I definitely had a problem with resolving my host in my hibernate.co=
nfiguration file. =20
Last question=2C when I am using the sample data=2C do I need to specify a =
certain encryption password in the hibernate.configuration file. Reason I =
ask is that I am getting encryption errors like this one when I load in tha=
t sample data.

=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
ERROR 2015-09-09 14:44:06=2C508 org.jasypt.exceptions.EncryptionOperationN=
otPossibleException=0A=
web_1 | at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(Stan=
dardPBEByteEncryptor.java:1055)=0A=
web_1 | at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(St=
andardPBEStringEncryptor.java:725)=0A=
web_1 | at org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(Pool=
edPBEStringEncryptor.java:498)=0A=
web_1 | at org.jasypt.hibernate4.type.AbstractEncryptedAsStringType.nullSa=
feGet(AbstractEncryptedAsStringType.java:143)=0A=
web_1 | at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:127)=
=0A=
web_1 | at org.hibernate.type.AbstractType.hydrate(AbstractType.java:106)=
=0A=
web_1 | at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(=
AbstractEntityPersister.java:2903)

Thanks for your help.
Adam

···

From: knutst@gmail.com
Date: Wed=2C 9 Sep 2015 06:18:33 +0300
Subject: Re: [Dhis2-users] Error when loading 2.19 sample data
To: adam704a@hotmail.com
CC: dhis2-users@lists.launchpad.net

You need to make sure the database name=2C database user name=2C and databa=
se password are correct in the hibernate.properties file.
Knut
On Wed=2C Sep 9=2C 2015 at 2:25 AM=2C Adam Preston <adam704a@hotmail.com> w=
rote:
=0A=
=0A=
=0A=
I am running my own instance of 2.19 and everything goes fine until I try t=
o load in the sample data for that version. When I do I get this error:
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
Acquisition Attempt Failed!!! Clearing pending acquires. While trying to ac=
quire a needed new resource=2C we failed to succeed more than the maximum n=
umber of allowed acquisition attempts (30). Last acquisition attempt except=
ion: (BasicResourcePool.java [com.mchange.v2.async.ThreadPoolAsynchronousR=
unner$PoolThread-#0])
=0A=
web_1 | org.postgresql.util.PSQLException: The connection attempt failed.
=0A=
web_1 | at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl=
(ConnectionFactoryImpl.java:233)

Everything went fine loading the data. =20

Has anyone seen this before? Do I need to adjust some hibernate setting?

Thanks=2C

Adam
                 =0A=

_______________________________________________
=0A=
Mailing list: https://launchpad.net/~dhis2-users
=0A=
Post to : dhis2-users@lists.launchpad.net
=0A=
Unsubscribe : https://launchpad.net/~dhis2-users
=0A=
More help : https://help.launchpad.net/ListHelp
=0A=

--=20
Knut StaringDept. of Informatics=2C University of OsloNorway: +4791880522
Skype: knutstarhttp://dhis2.org=0A=
=0A=
                 =0A=

_______________________________________________=0A=
Mailing list: https://launchpad.net/~dhis2-users=0A=
Post to : dhis2-users@lists.launchpad.net=0A=
Unsubscribe : https://launchpad.net/~dhis2-users=0A=
More help : https://help.launchpad.net/ListHelp =

--_921252a4-2fe8-4bbb-afbc-9aae155b6be9_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'><div><br></div>FYI - I got this =
to work by removing the encryption.password line from the hibernate.configu=
ration file.<br><br><div><hr id=3D"stopSpelling">From: adam704a@hotmail.com=
<br>To: dhis2-users@lists.launchpad.net<br>Date: Wed=2C 9 Sep 2015 10:48:24=
-0500<br>Subject: Re: [Dhis2-users] Error when loading 2.19 sample data<br=

<br>=0A=

=0A=
<style><!--=0A=
.ExternalClass .ecxhmmessage P {=0A=
padding:0px=3B=0A=
}=0A=
=0A=
.ExternalClass body.ecxhmmessage {=0A=
font-size:12pt=3B=0A=
font-family:Calibri=3B=0A=
}=0A=
=0A=
--></style>=0A=
<div dir=3D"ltr">Thanks I definitely had a problem with resolving my host i=
n my hibernate.configuration file. &nbsp=3B<div><br></div><div>Last questio=
n=2C when I am using the sample data=2C do I need to specify a certain encr=
yption password in the hibernate.configuration file. &nbsp=3BReason I ask i=
s that I am getting encryption errors like this one when I load in that sam=
ple data.<div><br></div><div><br></div><div>=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
<p class=3D"ecxp1"><span class=3D"ecxs1">&nbsp=3BERROR 2015-09-09 14:44:06=
=2C508 org.jasypt.exceptions.EncryptionOperationNotPossibleException</span>=
</p>=0A=
<p class=3D"ecxp1"><span class=3D"ecxs2">web_1 | </span><span class=3D"ecxs=
1"><span class=3D"ecxApple-tab-span"> </span>at org.jasypt.encryption.pbe.S=
tandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1055)</span><=
/p>=0A=
<p class=3D"ecxp1"><span class=3D"ecxs2">web_1 | </span><span class=3D"ecxs=
1"><span class=3D"ecxApple-tab-span"> </span>at org.jasypt.encryption.pbe.S=
tandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)</spa=

</p>=0A=

<p class=3D"ecxp1"><span class=3D"ecxs2">web_1 | </span><span class=3D"ecxs=
1"><span class=3D"ecxApple-tab-span"> </span>at org.jasypt.encryption.pbe.P=
ooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:498)</span></=

=0A=

<p class=3D"ecxp1"><span class=3D"ecxs2">web_1 | </span><span class=3D"ecxs=
1"><span class=3D"ecxApple-tab-span"> </span>at org.jasypt.hibernate4.type.=
AbstractEncryptedAsStringType.nullSafeGet(AbstractEncryptedAsStringType.jav=
a:143)</span></p>=0A=
<p class=3D"ecxp1"><span class=3D"ecxs2">web_1 | </span><span class=3D"ecxs=
1"><span class=3D"ecxApple-tab-span"> </span>at org.hibernate.type.CustomTy=
pe.nullSafeGet(CustomType.java:127)</span></p>=0A=
<p class=3D"ecxp1"><span class=3D"ecxs2">web_1 | </span><span class=3D"ecxs=
1"><span class=3D"ecxApple-tab-span"> </span>at org.hibernate.type.Abstract=
Type.hydrate(AbstractType.java:106)</span></p>=0A=
<p class=3D"ecxp1"><span class=3D"ecxs2">web_1 | </span><span class=3D"ecxs=
1"><span class=3D"ecxApple-tab-span"> </span>at org.hibernate.persister.ent=
ity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2903)</spa=

</p><p class=3D"ecxp1"><span class=3D"ecxs1"><br></span></p><p class=3D"e=

cxp1"><span class=3D"ecxs1"><br></span></p>Thanks for your help.</div><div>=
<br></div><div>Adam<br><div><hr id=3D"ecxstopSpelling">From: knutst@gmail.c=
om<br>Date: Wed=2C 9 Sep 2015 06:18:33 +0300<br>Subject: Re: [Dhis2-users] =
Error when loading 2.19 sample data<br>To: adam704a@hotmail.com<br>CC: dhis=
2-users@lists.launchpad.net<br><br><div dir=3D"ltr">You need to make sure t=
he database name=2C&nbsp=3Bdatabase&nbsp=3Buser name=2C and&nbsp=3Bdatabase=
password are correct in the hibernate.properties file.<div><br></div><div>=
Knut</div></div><div class=3D"ecxgmail_extra"><br><div class=3D"ecxgmail_qu=
ote">On Wed=2C Sep 9=2C 2015 at 2:25 AM=2C Adam Preston <span dir=3D"ltr">&=
lt=3B<a href=3D"mailto:adam704a@hotmail.com" target=3D"_blank">adam704a@hot=
mail.com</a>&gt=3B</span> wrote:<br><blockquote class=3D"ecxgmail_quote" st=
yle=3D"border-left:1px #ccc solid=3Bpadding-left:1ex=3B">=0A=
=0A=
=0A=
<div><div dir=3D"ltr">I am running my own instance of 2.19 and everything g=
oes fine until I try to load in the sample data for that version.&nbsp=3B W=
hen I do I get this error:<div><br></div><div>=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
<span>Acquisition Attempt Failed!!! Clearing pending acquires. While trying=
to acquire a needed new resource=2C we failed to succeed more than the max=
imum number of allowed acquisition attempts (30). Last acquisition attempt =
exception:&nbsp=3B (BasicResourcePool.java [com.mchange.v2.async.ThreadPool=
AsynchronousRunner$PoolThread-#0])</span><br>=0A=
<span>web_1 | </span><span>org.postgresql.util.PSQLException: The connectio=
n attempt failed.</span><br>=0A=
<span>web_1 | </span><span><span> </span>at org.postgresql.core.v3.Connecti=
onFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:233)</span><br>=
<span><br></span><br>Everything went fine loading the data. &nbsp=3B<br><br=

<br>Has anyone seen this before? Do I need to adjust some hibernate settin=

g?<br><br><br><br><br>Thanks=2C<br><br><br>Adam<br></div> </div>=
</div>=0A=
<br>_______________________________________________<br>=0A=
Mailing list: <a href=3D"https://launchpad.net/~dhis2-users" rel=3D"norefer=
rer" target=3D"_blank">https://launchpad.net/~dhis2-users</a><br>=0A=
Post to&nbsp=3B &nbsp=3B &nbsp=3B: <a href=3D"mailto:dhis2-users@lists.laun=
chpad.net">dhis2-users@lists.launchpad.net</a><br>=0A=
Unsubscribe : <a href=3D"https://launchpad.net/~dhis2-users" rel=3D"norefer=
rer" target=3D"_blank">https://launchpad.net/~dhis2-users</a><br>=0A=
More help&nbsp=3B &nbsp=3B: <a href=3D"https://help.launchpad.net/ListHelp"=
rel=3D"noreferrer" target=3D"_blank">https://help.launchpad.net/ListHelp</=

<br>=0A=

<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div cla=
ss=3D"ecxgmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir=
=3D"ltr"><div dir=3D"ltr"><div>Knut Staring</div><div>Dept. of Informatics=
=2C&nbsp=3BUniversity of Oslo</div><div>Norway: +4791880522<br></div><div>S=
kype: knutstar</div><div><a href=3D"http://dhis2.org" target=3D"_blank">htt=
p://dhis2.org</a>=0A=
</div></div></div></div></div></div></div>=0A=
</div></div></div></div> </div>=0A=
<br>_______________________________________________=0A=
Mailing list: https://launchpad.net/~dhis2-users=0A=
Post to : dhis2-users@lists.launchpad.net=0A=
Unsubscribe : https://launchpad.net/~dhis2-users=0A=
More help : https://help.launchpad.net/ListHelp</div> </div></=

</html>=

--_921252a4-2fe8-4bbb-afbc-9aae155b6be9_--