ace-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bram de Kruijff <bdekrui...@gmail.com>
Subject Re: Java API
Date Thu, 18 Jul 2013 14:52:22 GMT
Hi Wilfried,

On Thu, Jul 18, 2013 at 2:25 PM,  <Wilfried.Sibla@bosch-si.com> wrote:
> Hi guys
>
> A short question:
> when I try to add a new target by calling the statefullRepo.preregister method, are there
mandatory attributes?
> Adding by setting only the ID results in a NPE when refreshing the VaadinUI
>

No, you are correct. There are no other required attributes for targets.

> java.lang.NullPointerException
>         at org.apache.ace.webui.vaadin.component.BaseObjectPanel.update(BaseObjectPanel.java:549)
>         at org.apache.ace.webui.vaadin.component.TargetsPanel.handleEvent(TargetsPanel.java:125)
>         at org.apache.ace.webui.vaadin.component.BaseObjectPanel.handleEvent(BaseObjectPanel.java:251)
>         at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:412)
>         at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:118)
>         at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:132)
>         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Thread.java:722)
>
> Some hints are very welcome
>

The NPE is caused by 'asStatefulTargetObject' returning null because
it can not (yet) be found in the repository. Not sure what causes
this. Feel free to report a bug.

Regards,
Bram


> Greetings
> Wilfried

Mime
View raw message