Hi Miguel,

So I guess you're using a modified version of that tutorial. Could it be the
case that something else in the Activator is null? Could you send your
version of the Activator class?

David

2009/9/17 Miguel <[email protected]>

>  thank you very much for the quick answer,
> in my case the data object contains setters and getters (you can see it
> below this lines) and I get a null pointer error:
>
>
> java.lang.NullPointerException
> at
> org.coderthoughts.auction.client.Activator.printServiceInfo(Activator.java:35)
> at
> org.coderthoughts.auction.client.Activator$1.addingService(Activator.java:22)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:124)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:930)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:757)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:712)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:129)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:206)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:506)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:524)
> at
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook.proxifyMatchingInterface(AbstractClientHook.java:120)
> at
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook.processNotification(AbstractClientHook.java:93)
> at
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback.serviceChanged(AbstractClientHook.java:281)
> at
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService.triggerCallbacks(LocalDiscoveryService.java:340)
> at
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService.triggerCallbacks(LocalDiscoveryService.java:313)
> at
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService.addedServiceDescription(LocalDiscoveryService.java:152)
> at
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService.findDeclaredRemoteServices(LocalDiscoveryService.java:137)
> at
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService.bundleChanged(LocalDiscoveryService.java:111)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
>
>
> the data object:
>
> package org.coderthoughts.auction;
>
> import java.util.Date;
>
> public class AuctionItem {
>     private int id;
>     private String description;
>     private int priceInCents;
>     private Date expires;
>     private String highBidder;
>
>     public AuctionItem() {}
>
>     public AuctionItem(int i, String n, int cents, Date exp) {
>         id = i;
>         description = n;
>         priceInCents = cents;
>         expires = exp;
>     }
>
>     public int getID() {
>         return id;
>     }
>
>     public void setID(int i) {
>         id = i;
>     }
>
>     public String getDescription() {
>         return description;
>     }
>
>     public void setDescription(String desc) {
>         this.description = desc;
>     }
>
>     public String getHighBidder() {
>         return highBidder;
>     }
>
>     public void setHighBidder(String highBidder) {
>         this.highBidder = highBidder;
>     }
>
>     public int getPriceInCents() {
>         return priceInCents;
>     }
>
>     public void setPriceInCents(int priceInCents) {
>         this.priceInCents = priceInCents;
>     }
>
>     public Date getExpires() {
>         return expires;
>     }
>
>     public void setExpires(Date expires) {
>         this.expires = expires;
>     }
> }
>
>
> On Thu, 2009-09-17 at 11:26 +0100, David Bosschaert wrote:
>
> greetMe
>
>

Reply via email to