View Issue Details

IDProjectCategoryView StatusLast Update
0010244MMAUPnP / Castingpublic2013-01-14 02:18
Reportermartin Assigned To 
PriorityurgentSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.1 
Fixed in Version1.0.1 
Summary0010244: RouterLockAcquisitionException
DescriptionCrash log b01fc6da-6e9a-45f4-8ebf-a7a7eda94050
Steps To Reproduce1)go to Upnp node
2)press back button
Additional InformationI found that it was caused by 1070 revision. There was only changes about stream client creation.

This code is working well:

@SuppressWarnings("rawtypes")
@Override
public StreamClient createStreamClient()
{
    StreamClientConfigurationImpl clientConfiguration = new StreamClientConfigurationImpl();

    clientConfiguration.setConnectionTimeoutSeconds(Config.Upnp.Query.HTTP_CONNECTION_TIMEOUT);
    clientConfiguration.setDataReadTimeoutSeconds(Config.Upnp.Query.HTTP_DATAREADOUT_TIMEOUT);

    return new StreamClientImpl(clientConfiguration)
    {

        @Override
        public StreamClientConfigurationImpl getConfiguration()
        {
            return new StreamClientConfigurationImpl()
            {
                @Override
                public String getUserAgentValue(int majorVersion, int minorVersion)
                {
                    // return new ServerClientTokens(majorVersion,
                    // minorVersion).toString();
                    return String.format("%s/%s UPnP/%d.%d %s/%s", Config.Upnp.Service.TOKEN_NAME, Config.Upnp.Service.TOKEN_VERSION,
                            majorVersion, minorVersion,
                            Constants.PRODUCT_TOKEN_NAME, Constants.PRODUCT_TOKEN_VERSION);
                }
            };
        }
    };
}

But this code is causing problem:

@SuppressWarnings("rawtypes")
@Override
public StreamClient createStreamClient()
{
    StreamClientConfigurationImpl clientConfiguration = new StreamClientConfigurationImpl()
    {
        @Override
        public String getUserAgentValue(int majorVersion, int minorVersion)
        {
            // return new ServerClientTokens(majorVersion,
            // minorVersion).toString();
            return String.format(Locale.US, "%s/%s UPnP/%d.%d %s/%s", Config.Upnp.Service.TOKEN_NAME, Config.Upnp.Service.TOKEN_VERSION,
                    majorVersion, minorVersion,
                    Constants.PRODUCT_TOKEN_NAME, Constants.PRODUCT_TOKEN_VERSION);
        }
    };

    clientConfiguration.setConnectionTimeoutSeconds(Config.Upnp.Query.HTTP_CONNECTION_TIMEOUT);
    clientConfiguration.setDataReadTimeoutSeconds(Config.Upnp.Query.HTTP_DATAREADOUT_TIMEOUT);

    return new StreamClientImpl(clientConfiguration);
}
TagsNo tags attached.
Fixed in build85

Activities

martin

2012-12-18 12:46

developer   ~0033957

Fixed in build 85.

peke

2013-01-14 02:18

developer   ~0034410

Verified 92