You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ace.apache.org by Jan Willem Janssen <ja...@luminis.eu> on 2014/12/04 11:31:35 UTC

Re: Exception when updating configuration

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bram,

Sorry, totally overlooked your message. See my comments inline below.

On 03/11/14 16:49, Bram Pouwelse wrote:
> I'm trying to figure out how to deploy configurations using Ace, a
> few old mailing list threads got me started.
> 
> Yesterday I've tried to use the variable substitution using tags
> with the 2.0.1 release this didn't seem to work. But this seems to
> be fixed when using the latest version from svn.
> 
> But when I update a tag value I get an exception on the target [1],
> after the failed deployment the target configuration is not
> updated. Is this a bug or am I missing something?

I'm not sure you're missing something. Could you explain to be how you
provision these configurations? Are these regular MetaType files that
you provision along with an AutoConf resource processor?

> 1:
> 
> [INFO] 16:27:02 (controller) Installing streaming deployment update
> 4.0.0 => 5.0.0 [DEBUG] 16:27:02 (discovery) Returning cached
> serverURL: http://localhost:8181 [WARNING] 16:27:02 (deployment)
> Failed to restore snapshot! java.io.FileNotFoundException: 
> /Users/brampouwelse/Development/git-repos/org.apache.ace/run-target/bundle-cache/bundle24/data
>
> 
(Is a directory)
> at java.io.FileOutputStream.open(Native Method) at
> java.io.FileOutputStream.<init>(FileOutputStream.java:213) at
> java.io.FileOutputStream.<init>(FileOutputStream.java:162) at 
> org.apache.felix.deploymentadmin.spi.SnapshotCommand$RestoreSnapshotRunnable.unpack(SnapshotCommand.java:187)
>
> 
at
> org.apache.felix.deploymentadmin.spi.SnapshotCommand$RestoreSnapshotRunnable.doRun(SnapshotCommand.java:154)

Tracing
> 
back the step in in Felix DeploymentAdmin, the code looks a
little dodgy and needs some tests in order to determine exactly what
is going on. In the mean time, could you explain a little more on how
to reproduce this? Are you perhaps able to share a bit of code that
causes this failure?


- -- 
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814

/My world is revolving around INAETICS and Amdatu/

Luminis Technologies B.V.
Churchillplein 1
7314 BZ   Apeldoorn
+31 88 586 46 00

http://www.luminis-technologies.com
http://www.luminis.eu

KvK (CoC) 09 16 28 93
BTW (VAT) NL8169.78.566.B.01
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJUgDgHAAoJEKF/mP2eHDc4GkIP/jrUC1gms8spdY33zeHnmf+p
pAhbuW8ATHLOwbeRZ2vXuHBgei3y4x+AwjwSDuLU/6UyWGZbOC5u4U5ihIFQXAuV
wa14HAvRvHsj6HxR/jTjDO+lOQvX9Awzzi2NcB6jnNd2hHGLUS4CXuv6wsB4UHKP
R12yjkTdI1unCZHIOcB1dALRFVbcGa4aAJatxeXT/Jkn3IseTScI1UmaE7KmSnVP
ZwWURJ/otruWnr5q61CJ+uANEq7xw8ddhitguM8yiStVLjXXlDSv4pxltJJNTXg9
Kk7wQ/Y/aNuFechheeIQRLFDXnMvxy/6h87g6O6oFl53H7LgffF4uuACvzEtMB3b
2MVROWxzqORiiQMqZETsAH0vVMbJPpN9TQ2I36u52CPrYqdm9QlzrlKeswOZhBdn
+ALKrdHYRXUsAvUmAHRfzGfj5uy4FrnAnYAQQI8YAeO0OO+SZmrtxSUS+Sg8NFQS
gLL930vBQzph++QlrMBorB/10JjJ9TT3IrrGv6nab0qk+Ubqg5GYI1Z4K9BcT423
AZ/5BGl7Z1mSKaXTLFWM5VNCcDRva5K6O7RBu/CmuVfgcSJoldXuUEvE4uNY13I6
YhWlq1oH6C/dJCAwAMLbqdwr/q0h/c2514H8xuf8VrymYwihQsETeDoa20owDPTx
DOGm71Go9lNPvCoteYNA
=muBH
-----END PGP SIGNATURE-----

Re: Exception when updating configuration

Posted by Bram Pouwelse <br...@pouwelse.com>.
Thanks, don't think I'll get to test it today but I'll let you know how
things work out with this version

2014-12-05 12:58 GMT+01:00 Jan Willem Janssen <ja...@luminis.eu>
:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 05/12/14 12:54, Bram Pouwelse wrote:
> > "After this we could try out a newsnapshot of the DeploymentAdmin
> > in ACE to see whether it fixes all issues."
> >
> > Is this snapshot available for download somewhere or do I need to
> > build the project myself to create a snapshot?
>
> Sure. I've published a snapshot to
> <
> http://repository.apache.org/content/groups/snapshots/org/apache/felix/org.apache.felix.deploymentadmin/0.9.8-SNAPSHOT/
> >.
>
>
> Let me know if things work out for you...
>
> - --
> Met vriendelijke groeten | Kind regards
>
> Jan Willem Janssen | Software Architect
> +31 631 765 814
>
> /My world is revolving around INAETICS and Amdatu/
>
> Luminis Technologies B.V.
> Churchillplein 1
> 7314 BZ   Apeldoorn
> +31 88 586 46 00
>
> http://www.luminis-technologies.com
> http://www.luminis.eu
>
> KvK (CoC) 09 16 28 93
> BTW (VAT) NL8169.78.566.B.01
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBAgAGBQJUgZ3tAAoJEKF/mP2eHDc42BEQALWy+1TVW6kudw92iLoUcVBu
> tTdzS5/RVDkUfAHmSw/BnESlvfMz1Sjk7r3Xz1MK6Sq8oc9Yp9KjzfX1SUpFMl/L
> I6ngn6XDJI35cR1h3BW1lFDJ/LzE0g2W+Ch5Yad3LDNyL13vc/ly1Wa2dvnKxhji
> KQZTTkHJsXvW8i4ApHm/ci2ZIhPLZhOfmIXp1VvcZvm7wyVo5LLuvrnnM8qBXb2/
> CTxvfXhBoszi1pd+Y9pcgWnsVzpEwe6rRBLCuA92FUxVPjm/8qgOxoIIbRTVX73x
> uc8jtTpEyc+aTLibMymHcrQP6sjQ0hK3BD11koN/qBToZ75rLcw/ZcNumxtW6rUx
> 7IbtbccE2JO0BJNGTCGO/D/OhR23S2AgxiGl/9ESsAZyVMSIota9GDyr/EZqKgdP
> kC2B7VVE541+6AjFjJrlvwH/UCcWiP5s13f1t7HDk1zbdgW+RomFIgypselTMUDX
> O3E1lz7a8lwxGwPLeoCgXSpn5F0awDocf1gzJuTUucd9+fcXw/gNjWz6EVEyYTlr
> BouJVVv29axzfbnrqzWD1AQKaB9dJ+lYGTdEcJiusC3JIr1LV0D7pZ89j6UGrmto
> ibncUAlLtUD1V7+XmGh+acN3jozZkTdiapD+c6ilF9F9Kk3Hz5dyhQRaUzseMXRK
> HtLpOFVnT4yNQaKlDJrU
> =8H9T
> -----END PGP SIGNATURE-----
>

Re: Exception when updating configuration

Posted by Jan Willem Janssen <ja...@luminis.eu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/12/14 12:54, Bram Pouwelse wrote:
> "After this we could try out a newsnapshot of the DeploymentAdmin
> in ACE to see whether it fixes all issues."
> 
> Is this snapshot available for download somewhere or do I need to
> build the project myself to create a snapshot?

Sure. I've published a snapshot to
<http://repository.apache.org/content/groups/snapshots/org/apache/felix/org.apache.felix.deploymentadmin/0.9.8-SNAPSHOT/>.


Let me know if things work out for you...

- -- 
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814

/My world is revolving around INAETICS and Amdatu/

Luminis Technologies B.V.
Churchillplein 1
7314 BZ   Apeldoorn
+31 88 586 46 00

http://www.luminis-technologies.com
http://www.luminis.eu

KvK (CoC) 09 16 28 93
BTW (VAT) NL8169.78.566.B.01
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJUgZ3tAAoJEKF/mP2eHDc42BEQALWy+1TVW6kudw92iLoUcVBu
tTdzS5/RVDkUfAHmSw/BnESlvfMz1Sjk7r3Xz1MK6Sq8oc9Yp9KjzfX1SUpFMl/L
I6ngn6XDJI35cR1h3BW1lFDJ/LzE0g2W+Ch5Yad3LDNyL13vc/ly1Wa2dvnKxhji
KQZTTkHJsXvW8i4ApHm/ci2ZIhPLZhOfmIXp1VvcZvm7wyVo5LLuvrnnM8qBXb2/
CTxvfXhBoszi1pd+Y9pcgWnsVzpEwe6rRBLCuA92FUxVPjm/8qgOxoIIbRTVX73x
uc8jtTpEyc+aTLibMymHcrQP6sjQ0hK3BD11koN/qBToZ75rLcw/ZcNumxtW6rUx
7IbtbccE2JO0BJNGTCGO/D/OhR23S2AgxiGl/9ESsAZyVMSIota9GDyr/EZqKgdP
kC2B7VVE541+6AjFjJrlvwH/UCcWiP5s13f1t7HDk1zbdgW+RomFIgypselTMUDX
O3E1lz7a8lwxGwPLeoCgXSpn5F0awDocf1gzJuTUucd9+fcXw/gNjWz6EVEyYTlr
BouJVVv29axzfbnrqzWD1AQKaB9dJ+lYGTdEcJiusC3JIr1LV0D7pZ89j6UGrmto
ibncUAlLtUD1V7+XmGh+acN3jozZkTdiapD+c6ilF9F9Kk3Hz5dyhQRaUzseMXRK
HtLpOFVnT4yNQaKlDJrU
=8H9T
-----END PGP SIGNATURE-----

Re: Exception when updating configuration

Posted by Bram Pouwelse <br...@pouwelse.com>.
Hi Jan Willem,

"After this we could try out a newsnapshot of the DeploymentAdmin in ACE to
see whether it fixes all issues."

Is this snapshot available for download somewhere or do I need to build the
project myself to create a snapshot?

Thanks,
Bram

2014-12-04 17:37 GMT+01:00 Bram Pouwelse <br...@pouwelse.com>:

> Thanks!
>
> I've created https://issues.apache.org/jira/browse/ACE-500 for this issue
>
>
>
> 2014-12-04 16:55 GMT+01:00 Jan Willem Janssen <
> janwillem.janssen@luminis.eu>:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Bram,
>>
>> On 04/12/14 14:33, Bram Pouwelse wrote:
>> > No problem I was busy with other tasks anyway ;). See my comments
>> > inline below.
>>
>> See inline.
>>
>> >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> >>>
>> >>> Hi Bram,
>> >>>
>> >>> Sorry, totally overlooked your message. See my comments inline
>> >>> below.
>> >>>
>> >>> On 03/11/14 16:49, Bram Pouwelse wrote:
>> >>>>> I'm trying to figure out how to deploy configurations
>> >>>>> using Ace, a few old mailing list threads got me started.
>> >>>>>
>> >>>>> Yesterday I've tried to use the variable substitution
>> >>>>> using tags with the 2.0.1 release this didn't seem to work.
>> >>>>> But this seems to be fixed when using the latest version
>> >>>>> from svn.
>> >>>>>
>> >>>>> But when I update a tag value I get an exception on the
>> >>>>> target [1], after the failed deployment the target
>> >>>>> configuration is not updated. Is this a bug or am I
>> >>>>> missing something?
>> >>>
>> >>> I'm not sure you're missing something. Could you explain to be
>> >>> how you provision these configurations? Are these regular
>> >>> MetaType files that you provision along with an AutoConf
>> >>> resource processor?
>> >>>
>> > Provisioning configurations is new for me, now we're comfortable
>> > using Ace this is the next step. To get started I've picked the
>> > amdatu web demo project and added the bundles to Ace using the
>> > ContinousDeployer from the gogo shell in Ace.
>> >
>> > After that I've added a MetaType file to Ace using the Ace web ui
>> > and added the tag restpath with a value. I think I've added this
>> > tag on the distribution configuration but I'm not completely sure
>> > anymore.
>> >
>> > ...
>>
>> Looks find to me, if you also add the AutoConf resource processor from
>> Felix to your list of artifacts it should work. Not sure though about
>> the tags on both the distribution and target.
>>
>> That said, I've started investigating the code of the SnapshotCommand
>> from Felix DeploymentAdmin and found two rather severe issues (see
>> FELIX-4718 & FELIX-4719) one of which actually reproduces your
>> original issue. I've got a couple of fixes ready to be committed, once
>> the Apache SVN server comes back. After this we could try out a new
>> snapshot of the DeploymentAdmin in ACE to see whether it fixes all issues.
>>
>> Could you create an issue for the original stacktrace on the ACE JIRA
>> so we can relate this issue to the Felix ones?
>>
>> - --
>> Met vriendelijke groeten | Kind regards
>>
>> Jan Willem Janssen | Software Architect
>> +31 631 765 814
>>
>> /My world is revolving around INAETICS and Amdatu/
>>
>> Luminis Technologies B.V.
>> Churchillplein 1
>> 7314 BZ   Apeldoorn
>> +31 88 586 46 00
>>
>> http://www.luminis-technologies.com
>> http://www.luminis.eu
>>
>> KvK (CoC) 09 16 28 93
>> BTW (VAT) NL8169.78.566.B.01
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
>> Comment: GPGTools - http://gpgtools.org
>>
>> iQIcBAEBAgAGBQJUgIPvAAoJEKF/mP2eHDc44EQP/0N2HU5U/sDlz7SDqYDG0hPs
>> t3+cXHZoD3fWaS2p0RMMlm9JQBxETtpoQOIfZsyoezPzihlmBVILb52T4WcJ8Ds+
>> Ulr6SD+9ZDqmQb7GA2gFeh9GT1RlN3wOyjr8DMW/ZN65GmLGi9PIExVFNodW2xUQ
>> zECPnHdzydINWduWPC8Ge+TmViY0BmP5nssG/RNtfTn8k5uFjnh+gKFgkc2573fz
>> mVScr0499CDT5GTkJqEkAe8EzXVopOl2BI9881o7TcS+3aont0L3ettfzCqAQn/5
>> a28AIO3mG2xgtX6h8Tfi6e6ttLGmJzlxYe6TSGHNusaCW/hben8oxVkSBEiyGgCd
>> 7tHCFEE8pTqwg7A0ttjMTg5cXall7Zi3mdtS2Q6dv2mrzq1kdXyuavlDRjKAuWNo
>> UDrGhOU9N3WQ2mFtFVNpLjmJUHvKE+pog10EZg+XeMIdn2+flTEvVeyKpODeqgam
>> gbYtJkWdnN8ptVbPrqTOj15Q2UYr27DfIUO6WU/8O1PnKfpGdcmTtE0mV/Pchf9Q
>> E0XpRrDC1bB8IhDsQfWbLUpqHFXHZLYElAi2ZK964zuS3bgqgjoKfBbWd3vZrGWN
>> 3SmyS5mt/K6whQF0uV37YMCnljyl4c4nayWXnVuNvtJc891OuU11ox0Y2ih/36t7
>> aoZaASfpDXp46QcKKhLN
>> =2hNn
>> -----END PGP SIGNATURE-----
>>
>
>

Re: Exception when updating configuration

Posted by Bram Pouwelse <br...@pouwelse.com>.
Thanks!

I've created https://issues.apache.org/jira/browse/ACE-500 for this issue



2014-12-04 16:55 GMT+01:00 Jan Willem Janssen <ja...@luminis.eu>
:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Bram,
>
> On 04/12/14 14:33, Bram Pouwelse wrote:
> > No problem I was busy with other tasks anyway ;). See my comments
> > inline below.
>
> See inline.
>
> >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> >>>
> >>> Hi Bram,
> >>>
> >>> Sorry, totally overlooked your message. See my comments inline
> >>> below.
> >>>
> >>> On 03/11/14 16:49, Bram Pouwelse wrote:
> >>>>> I'm trying to figure out how to deploy configurations
> >>>>> using Ace, a few old mailing list threads got me started.
> >>>>>
> >>>>> Yesterday I've tried to use the variable substitution
> >>>>> using tags with the 2.0.1 release this didn't seem to work.
> >>>>> But this seems to be fixed when using the latest version
> >>>>> from svn.
> >>>>>
> >>>>> But when I update a tag value I get an exception on the
> >>>>> target [1], after the failed deployment the target
> >>>>> configuration is not updated. Is this a bug or am I
> >>>>> missing something?
> >>>
> >>> I'm not sure you're missing something. Could you explain to be
> >>> how you provision these configurations? Are these regular
> >>> MetaType files that you provision along with an AutoConf
> >>> resource processor?
> >>>
> > Provisioning configurations is new for me, now we're comfortable
> > using Ace this is the next step. To get started I've picked the
> > amdatu web demo project and added the bundles to Ace using the
> > ContinousDeployer from the gogo shell in Ace.
> >
> > After that I've added a MetaType file to Ace using the Ace web ui
> > and added the tag restpath with a value. I think I've added this
> > tag on the distribution configuration but I'm not completely sure
> > anymore.
> >
> > ...
>
> Looks find to me, if you also add the AutoConf resource processor from
> Felix to your list of artifacts it should work. Not sure though about
> the tags on both the distribution and target.
>
> That said, I've started investigating the code of the SnapshotCommand
> from Felix DeploymentAdmin and found two rather severe issues (see
> FELIX-4718 & FELIX-4719) one of which actually reproduces your
> original issue. I've got a couple of fixes ready to be committed, once
> the Apache SVN server comes back. After this we could try out a new
> snapshot of the DeploymentAdmin in ACE to see whether it fixes all issues.
>
> Could you create an issue for the original stacktrace on the ACE JIRA
> so we can relate this issue to the Felix ones?
>
> - --
> Met vriendelijke groeten | Kind regards
>
> Jan Willem Janssen | Software Architect
> +31 631 765 814
>
> /My world is revolving around INAETICS and Amdatu/
>
> Luminis Technologies B.V.
> Churchillplein 1
> 7314 BZ   Apeldoorn
> +31 88 586 46 00
>
> http://www.luminis-technologies.com
> http://www.luminis.eu
>
> KvK (CoC) 09 16 28 93
> BTW (VAT) NL8169.78.566.B.01
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBAgAGBQJUgIPvAAoJEKF/mP2eHDc44EQP/0N2HU5U/sDlz7SDqYDG0hPs
> t3+cXHZoD3fWaS2p0RMMlm9JQBxETtpoQOIfZsyoezPzihlmBVILb52T4WcJ8Ds+
> Ulr6SD+9ZDqmQb7GA2gFeh9GT1RlN3wOyjr8DMW/ZN65GmLGi9PIExVFNodW2xUQ
> zECPnHdzydINWduWPC8Ge+TmViY0BmP5nssG/RNtfTn8k5uFjnh+gKFgkc2573fz
> mVScr0499CDT5GTkJqEkAe8EzXVopOl2BI9881o7TcS+3aont0L3ettfzCqAQn/5
> a28AIO3mG2xgtX6h8Tfi6e6ttLGmJzlxYe6TSGHNusaCW/hben8oxVkSBEiyGgCd
> 7tHCFEE8pTqwg7A0ttjMTg5cXall7Zi3mdtS2Q6dv2mrzq1kdXyuavlDRjKAuWNo
> UDrGhOU9N3WQ2mFtFVNpLjmJUHvKE+pog10EZg+XeMIdn2+flTEvVeyKpODeqgam
> gbYtJkWdnN8ptVbPrqTOj15Q2UYr27DfIUO6WU/8O1PnKfpGdcmTtE0mV/Pchf9Q
> E0XpRrDC1bB8IhDsQfWbLUpqHFXHZLYElAi2ZK964zuS3bgqgjoKfBbWd3vZrGWN
> 3SmyS5mt/K6whQF0uV37YMCnljyl4c4nayWXnVuNvtJc891OuU11ox0Y2ih/36t7
> aoZaASfpDXp46QcKKhLN
> =2hNn
> -----END PGP SIGNATURE-----
>

Re: Exception when updating configuration

Posted by Jan Willem Janssen <ja...@luminis.eu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bram,

On 04/12/14 14:33, Bram Pouwelse wrote:
> No problem I was busy with other tasks anyway ;). See my comments 
> inline below.

See inline.

>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>> 
>>> Hi Bram,
>>> 
>>> Sorry, totally overlooked your message. See my comments inline 
>>> below.
>>> 
>>> On 03/11/14 16:49, Bram Pouwelse wrote:
>>>>> I'm trying to figure out how to deploy configurations
>>>>> using Ace, a few old mailing list threads got me started.
>>>>> 
>>>>> Yesterday I've tried to use the variable substitution
>>>>> using tags with the 2.0.1 release this didn't seem to work.
>>>>> But this seems to be fixed when using the latest version
>>>>> from svn.
>>>>> 
>>>>> But when I update a tag value I get an exception on the 
>>>>> target [1], after the failed deployment the target 
>>>>> configuration is not updated. Is this a bug or am I
>>>>> missing something?
>>> 
>>> I'm not sure you're missing something. Could you explain to be 
>>> how you provision these configurations? Are these regular 
>>> MetaType files that you provision along with an AutoConf
>>> resource processor?
>>> 
> Provisioning configurations is new for me, now we're comfortable 
> using Ace this is the next step. To get started I've picked the 
> amdatu web demo project and added the bundles to Ace using the 
> ContinousDeployer from the gogo shell in Ace.
> 
> After that I've added a MetaType file to Ace using the Ace web ui
> and added the tag restpath with a value. I think I've added this
> tag on the distribution configuration but I'm not completely sure
> anymore.
> 
> ...

Looks find to me, if you also add the AutoConf resource processor from
Felix to your list of artifacts it should work. Not sure though about
the tags on both the distribution and target.

That said, I've started investigating the code of the SnapshotCommand
from Felix DeploymentAdmin and found two rather severe issues (see
FELIX-4718 & FELIX-4719) one of which actually reproduces your
original issue. I've got a couple of fixes ready to be committed, once
the Apache SVN server comes back. After this we could try out a new
snapshot of the DeploymentAdmin in ACE to see whether it fixes all issues.

Could you create an issue for the original stacktrace on the ACE JIRA
so we can relate this issue to the Felix ones?

- -- 
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814

/My world is revolving around INAETICS and Amdatu/

Luminis Technologies B.V.
Churchillplein 1
7314 BZ   Apeldoorn
+31 88 586 46 00

http://www.luminis-technologies.com
http://www.luminis.eu

KvK (CoC) 09 16 28 93
BTW (VAT) NL8169.78.566.B.01
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJUgIPvAAoJEKF/mP2eHDc44EQP/0N2HU5U/sDlz7SDqYDG0hPs
t3+cXHZoD3fWaS2p0RMMlm9JQBxETtpoQOIfZsyoezPzihlmBVILb52T4WcJ8Ds+
Ulr6SD+9ZDqmQb7GA2gFeh9GT1RlN3wOyjr8DMW/ZN65GmLGi9PIExVFNodW2xUQ
zECPnHdzydINWduWPC8Ge+TmViY0BmP5nssG/RNtfTn8k5uFjnh+gKFgkc2573fz
mVScr0499CDT5GTkJqEkAe8EzXVopOl2BI9881o7TcS+3aont0L3ettfzCqAQn/5
a28AIO3mG2xgtX6h8Tfi6e6ttLGmJzlxYe6TSGHNusaCW/hben8oxVkSBEiyGgCd
7tHCFEE8pTqwg7A0ttjMTg5cXall7Zi3mdtS2Q6dv2mrzq1kdXyuavlDRjKAuWNo
UDrGhOU9N3WQ2mFtFVNpLjmJUHvKE+pog10EZg+XeMIdn2+flTEvVeyKpODeqgam
gbYtJkWdnN8ptVbPrqTOj15Q2UYr27DfIUO6WU/8O1PnKfpGdcmTtE0mV/Pchf9Q
E0XpRrDC1bB8IhDsQfWbLUpqHFXHZLYElAi2ZK964zuS3bgqgjoKfBbWd3vZrGWN
3SmyS5mt/K6whQF0uV37YMCnljyl4c4nayWXnVuNvtJc891OuU11ox0Y2ih/36t7
aoZaASfpDXp46QcKKhLN
=2hNn
-----END PGP SIGNATURE-----

Re: Exception when updating configuration

Posted by Bram Pouwelse <br...@pouwelse.com>.
Hi Jan Willem,

No problem I was busy with other tasks anyway ;). See my comments inline
below.

2014-12-04 11:31 GMT+01:00 Jan Willem Janssen <ja...@luminis.eu>
:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Bram,
>
> Sorry, totally overlooked your message. See my comments inline below.
>
> On 03/11/14 16:49, Bram Pouwelse wrote:
> > I'm trying to figure out how to deploy configurations using Ace, a
> > few old mailing list threads got me started.
> >
> > Yesterday I've tried to use the variable substitution using tags
> > with the 2.0.1 release this didn't seem to work. But this seems to
> > be fixed when using the latest version from svn.
> >
> > But when I update a tag value I get an exception on the target [1],
> > after the failed deployment the target configuration is not
> > updated. Is this a bug or am I missing something?
>
> I'm not sure you're missing something. Could you explain to be how you
> provision these configurations? Are these regular MetaType files that
> you provision along with an AutoConf resource processor?
>

Provisioning configurations is new for me, now we're comfortable using Ace
this is the next step. To get started I've picked the amdatu web demo
project and added the bundles to Ace using the ContinousDeployer from the
gogo shell in Ace.

After that I've added a MetaType file to Ace using the Ace web ui and added
the tag restpath with a value. I think I've added this tag on the
distribution configuration but I'm not completely sure anymore.

<?xml version="1.0" encoding="UTF-8"?>
<MetaData xmlns="http://www.osgi.org/xmlns/metatype/v1.0.0">
<OCD name="Amdatu Web REST Wink Configuration" id="org.amdatu.web.rest">
<AD id="wink.rest.path" type="STRING" default="" cardinality="0" />
</OCD>
<Designate pid="org.amdatu.web.rest.wink"
bundle="osgi-dp:org.amdatu.web.rest.wink">
<Object ocdref="org.amdatu.web.rest">
<Attribute adref="wink.rest.path">
<Value><![CDATA[${context.restpath}]]></Value>
</Attribute>
</Object>
</Designate>
</MetaData>



>
> > 1:
> >
> > [INFO] 16:27:02 (controller) Installing streaming deployment update
> > 4.0.0 => 5.0.0 [DEBUG] 16:27:02 (discovery) Returning cached
> > serverURL: http://localhost:8181 [WARNING] 16:27:02 (deployment)
> > Failed to restore snapshot! java.io.FileNotFoundException:
> >
> /Users/brampouwelse/Development/git-repos/org.apache.ace/run-target/bundle-cache/bundle24/data
> >
> >
> (Is a directory)
> > at java.io.FileOutputStream.open(Native Method) at
> > java.io.FileOutputStream.<init>(FileOutputStream.java:213) at
> > java.io.FileOutputStream.<init>(FileOutputStream.java:162) at
> >
> org.apache.felix.deploymentadmin.spi.SnapshotCommand$RestoreSnapshotRunnable.unpack(SnapshotCommand.java:187)
> >
> >
> at
> >
> org.apache.felix.deploymentadmin.spi.SnapshotCommand$RestoreSnapshotRunnable.doRun(SnapshotCommand.java:154)
>
> Tracing
> >
> back the step in in Felix DeploymentAdmin, the code looks a
> little dodgy and needs some tests in order to determine exactly what
> is going on. In the mean time, could you explain a little more on how
> to reproduce this? Are you perhaps able to share a bit of code that

causes this failure?
>
>
It's just an amdatu demo project, I can my test folder including the
scripts if you like?


>
> - --
> Met vriendelijke groeten | Kind regards
>
> Jan Willem Janssen | Software Architect
> +31 631 765 814
>
> /My world is revolving around INAETICS and Amdatu/
>
> Luminis Technologies B.V.
> Churchillplein 1
> 7314 BZ   Apeldoorn
> +31 88 586 46 00
>
> http://www.luminis-technologies.com
> http://www.luminis.eu
>
> KvK (CoC) 09 16 28 93
> BTW (VAT) NL8169.78.566.B.01
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBAgAGBQJUgDgHAAoJEKF/mP2eHDc4GkIP/jrUC1gms8spdY33zeHnmf+p
> pAhbuW8ATHLOwbeRZ2vXuHBgei3y4x+AwjwSDuLU/6UyWGZbOC5u4U5ihIFQXAuV
> wa14HAvRvHsj6HxR/jTjDO+lOQvX9Awzzi2NcB6jnNd2hHGLUS4CXuv6wsB4UHKP
> R12yjkTdI1unCZHIOcB1dALRFVbcGa4aAJatxeXT/Jkn3IseTScI1UmaE7KmSnVP
> ZwWURJ/otruWnr5q61CJ+uANEq7xw8ddhitguM8yiStVLjXXlDSv4pxltJJNTXg9
> Kk7wQ/Y/aNuFechheeIQRLFDXnMvxy/6h87g6O6oFl53H7LgffF4uuACvzEtMB3b
> 2MVROWxzqORiiQMqZETsAH0vVMbJPpN9TQ2I36u52CPrYqdm9QlzrlKeswOZhBdn
> +ALKrdHYRXUsAvUmAHRfzGfj5uy4FrnAnYAQQI8YAeO0OO+SZmrtxSUS+Sg8NFQS
> gLL930vBQzph++QlrMBorB/10JjJ9TT3IrrGv6nab0qk+Ubqg5GYI1Z4K9BcT423
> AZ/5BGl7Z1mSKaXTLFWM5VNCcDRva5K6O7RBu/CmuVfgcSJoldXuUEvE4uNY13I6
> YhWlq1oH6C/dJCAwAMLbqdwr/q0h/c2514H8xuf8VrymYwihQsETeDoa20owDPTx
> DOGm71Go9lNPvCoteYNA
> =muBH
> -----END PGP SIGNATURE-----
>