Hi David, do you happen to have some simple code to look at? For example a link to some git sources, or gists which show the differences?
regards, Achim 2017-06-10 0:47 GMT+02:00 David Karr <[email protected]>: > I presently have a ServiceImpl class that has a static block with a simple > line of code that puts a map entry, and the map is defined in a base class > of this class. This works well enough. > > I've changed this so that instead of the static block just putting the map > entry, it instead calls a method defined in the base class that puts the > map entry, and a few others, using reflection to determine the values. > > As soon as I do this, my test fails with a weird timeout error, like this: > org.ops4j.pax.swissbox.tracker.ServiceLookupException: gave up waiting for > service <Service> > at org.ops4j.pax.swissbox.tracker.ServiceLookup.getService(Serv > iceLookup.java:199) > at org.ops4j.pax.swissbox.tracker.ServiceLookup.getService(Serv > iceLookup.java:136) > > > I then tried copying the body of the method from the base class into the > static block in the derived class. This works fine. > > Why would this happen? > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
