I use eclipse for debugging. You'll need to have a workspace with felix configadmin and fileinstall loaded, but you probably don't need your project loaded. I find getting code into an eclipse workspace incomprehensible so I will tell you in this case to use the eclipse m2e plugin to get the felix maven projects in your workspace. I would put a breakpoint where config admin persists the configuration and see if the service.id is missing.
hope this helps david jencks On Nov 12, 2013, at 3:31 AM, Snorre Lothar von Gohren Edwin <[email protected]> wrote: > Thanks for feedback. > Just a quick question, what kind of debugger would I use? > This is not a familiar term for me. > Im working in eclipse on a regular basis. > > > On Mon, Nov 11, 2013 at 7:57 PM, David Jencks <[email protected]>wrote: > >> I looked into this a tiny bit and the immediate cause seems to be that a >> configuration has been persisted inside the configuration manager without a >> key for "service.id" (Constants.SERVICE_PID). I have no idea how this >> might happen, but you might be able to figure out in a debugger without too >> much trouble. >> >> david jencks >> >> On Nov 11, 2013, at 3:53 AM, Snorre Lothar von Gohren Edwin < >> [email protected]> wrote: >> >>> This is an annoying problem for my thesis and it has to be someone who >> have >>> had some experience with this. >>> Its a simple ManagedServiceFactory implementation but get a strange >> error. >>> Might be something Im missing in the config or something. >>> I would appriciate alot some kind of feedback. >>> >>> ---------- Forwarded message ---------- >>> From: Snorre Lothar von Gohren Edwin <[email protected]> >>> Date: Tue, Nov 5, 2013 at 5:18 PM >>> Subject: NullPointer exception fileInstall and ServiceManagedFactory >>> To: users <[email protected]> >>> >>> >>> Hi, I seem to get a weird NullPointer exception when I use the >> combination >>> of fileInstall and ManagedServiceFactory. The exception rises when a >> config >>> is either updated or created and after the whole update method has >>> succsefully run. >>> >>> My factory is implemented like this: >>> https://gist.github.com/Snorlock/7321523 >>> The null pointer exception looks like this: >>> https://gist.github.com/Snorlock/7321535 >>> And my config looks like this: https://gist.github.com/Snorlock/7321546 >>> >>> i would appriciate some help to get rid of this nullpointer exception:) >>> Thx >>> >>> -- >>> Mvh >>> Snorre Lothar von Gohren Edwin >>> MeetMe: http://doodle.com/vonGohren >>> +47 411 611 94 >>> >>> >>> >>> -- >>> Mvh >>> Snorre Lothar von Gohren Edwin >>> MeetMe: http://doodle.com/vonGohren >>> +47 411 611 94 >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Mvh > Snorre Lothar von Gohren Edwin > MeetMe: http://doodle.com/vonGohren > +47 411 611 94 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

