I have more information to add to this bizarre problem. The sheer act of
injecting "cxf" as a SpringBus property causes
SpringBusFactory.getThreadDefaultBus() to return a bus that works.
Let me clarify: I am injecting the bean with name="cxf" (see bean definition
below). The field that the setter sets is of type SpringBus. However, I am
not using this field anywhere in my code at all. In know I'm not using it
because Eclipse has highlighted it in squiggly lines complaining that it is
an unused field.
However, when I inject the property, SpringBusFactory.getThreadDefaultBus()
returns a bus that does not give any SSL errors. When I don't inject the
property SpringBusFactory.getThreadDefaultBus() returns a bus that does
result in SSL errors. Perhaps this is a garbage collection issue or a
threading issue? To add to the mystery SpringBusFactory.getDefaultBus() does
not work at all regardless of whether I inject the property or not.
This is the bean I am injecting:
<cxf:bus name="cxf">
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
--
View this message in context:
http://cxf.547215.n5.nabble.com/Code-only-STSClient-tp5724575p5724902.html
Sent from the cxf-user mailing list archive at Nabble.com.