When using AbstractCXFTest and using a LocalTransportFactory to run tests,
one gets an IllegalStateException thrown from
com.ctc.wstx.sr.BasicStreamReader Line 641:

    public String getAttributeValue(String nsURI, String localName) {
        if (mCurrToken != START_ELEMENT) {
            throw new
IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM);
        }
        return mAttrCollector.getValue(nsURI, localName);
    }

All the web service methods with a single argument are working fine but if
you have multiple arguments (in my case 2), then the if condition
(mCurrToken != START_ELEMENT)  is evaluated to false with the value of
mCurrToken being 4 and START_ELEMENT being 1 (this is probably specific to
my service method but maybe it happens every time you have two arguments, i
don't know).  The same service runs fine when deployed inside a container
(i.e.: not using LocalTransportFactory).

I was about to create a JIRA for this but thought I'd let the user list look
at it first.

Thanks,
Zarar Siddiqi
-- 
View this message in context: 
http://www.nabble.com/IllegalStateException%3A-Current-state-not-START_ELEMENT-when-using-LocalTransportFactory-for-testing-and-supplying-multiple-parameters-tp14338780p14338780.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to