Target server failed to respond with SetAVTransportURI

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Target server failed to respond with SetAVTransportURI

valentin
Hello, first of all thank you for this wonderful framework, and sorry for my English.
So, I try to Play media from MediaServer to a MediaRenderer device.
But The target server failed to respond and I don't understand why.
Please help me

This is my code :
protected void showRemoteMedia(ContentDisplay cDisp) {
        Device renderer = MyProperties.getInstance().renderer;
        final Service service = renderer.findService(new UDAServiceType("AVTransport"));
        if(service != null) {
            String url = cDisp.getUrl();
            cp.execute(new SetAVTransportURI(service, url, "NO METADATA") {
                @Override
                public void failure(ActionInvocation invocation, UpnpResponse operation, String defaultMsg) {
                    String info = "AVTransport Failed - ";
                    if (defaultMsg != null) info += " (" + defaultMsg + ")";
                    try {
                        String uri = invocation.getInput("CurrentURI").getValue().toString();
                        if(uri!=null) info+="\nUri: "+uri;
                        else info+="\nUri is null";
                    }
                    catch(Exception e){
                        Log.e(LOG_TAG,e.getMessage());
                    }

                    Log.e(LOG_TAG, info);
                }

                @Override
                public void success(ActionInvocation invocation) {
                    showToast("AVTransport successed",true);
                    /*
                    cp.execute(new Play(service) {
                        @Override
                        public void failure(ActionInvocation invocation, UpnpResponse operation, String defaultMsg) {
                            showToast("Play failed",true);
                        }
                    });
                    */
                }
            });
        }
        else showToast("No service AVTransport found",true);
And this is the debug of Cling:
03-19 12:07:06.200    1325-1345/org.teleal.cling.android.browser D/SOAPActionProcessor﹕ ===================================== SOAP BODY BEGIN ============================================
03-19 12:07:06.200    1325-1345/org.teleal.cling.android.browser D/SOAPActionProcessor﹕ 0http://192.168.137.70:60151/storage/sdcard0/Music/Grand%20Corps%20Malade/Midi%2020/Grand%20corp%20malade%20-%20Sixi%c3%a8me%20sens.mp3?%21AllMusicTracks%2f16233%3a6%21http%2dget%3a%2a%3aaudio%2fmpeg%3aDLNA%2eORG%5fPN%3dMP3%3bDLNA%2eORG%5fOP%3d01%3bDLNA%2eORG%5fCI%3d0%214448878%21%2100%3a03%3a04%2e858%21%21NO METADATA
03-19 12:07:06.200    1325-1345/org.teleal.cling.android.browser D/SOAPActionProcessor﹕ -===================================== SOAP BODY END ============================================
03-19 12:07:06.200    1325-1345/org.teleal.cling.android.browser D/SendingAction﹕ Sending SOAP body of message as stream to remote device
03-19 12:07:06.200    1325-1345/org.teleal.cling.android.browser D/Router﹕ Trying to obtain lock with timeout milliseconds '10000': ReadLock
03-19 12:07:06.200    1325-1345/org.teleal.cling.android.browser D/Router﹕ Acquired router lock: ReadLock
03-19 12:07:06.200    1325-1345/org.teleal.cling.android.browser D/Router﹕ Sending via TCP unicast stream: (OutgoingActionRequestMessage) POST http://192.168.137.70:60371/AVTransport/control
03-19 12:07:06.210    1325-1345/org.teleal.cling.android.browser D/StreamClient﹕ Preparing HTTP request message with method 'POST': (OutgoingActionRequestMessage) POST http://192.168.137.70:60371/AVTransport/control
03-19 12:07:06.210    1325-1345/org.teleal.cling.android.browser D/StreamClient﹕ Preparing HTTP request entity as string
03-19 12:07:06.210    1325-1345/org.teleal.cling.android.browser D/StreamClient﹕ Sending HTTP request: http://192.168.137.70:60371/AVTransport/control
03-19 12:07:06.220      384-444/system_process D/LightsService﹕ Excessive delay setting light: 66ms
03-19 12:07:07.090    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Maintaining registry...
03-19 12:07:07.100    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Device '(RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:00005e6b0024-1010-8000-90c115ea141c, Descriptor: http://192.168.137.70:64321/MediaServer.xml, Root: true' expires in seconds: 1672
03-19 12:07:07.100    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Device '(RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:aae079be-0ad4-431a-b78f-SUM-ANTA90c115ea141c, Descriptor: http://192.168.137.70:60371/, Root: true' expires in seconds: 1673
03-19 12:07:07.120    1325-1345/org.teleal.cling.android.browser D/StreamClient﹕ Client connection was aborted: The target server failed to respond
03-19 12:07:07.120    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Device '(RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:4d2e3d62-769d-4050-bc82-d59ebda55bf8, Descriptor: http://10.24.165.138:2869/upnphost/udhisapi.dll?content=uuid:4d2e3d62-769d-4050-bc82-d59ebda55bf8, Root: true' expires in seconds: 768
03-19 12:07:07.130    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Device '(RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:e75577b5-1780-4848-b5ae-b0fa5fb12645, Descriptor: http://10.24.166.97:2869/upnphost/udhisapi.dll?content=uuid:e75577b5-1780-4848-b5ae-b0fa5fb12645, Root: true' expires in seconds: 3068
03-19 12:07:07.130    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Device '(RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:496977df-94c2-4470-be26-b5e5aaa0f224, Descriptor: http://10.24.166.122:2869/upnphost/udhisapi.dll?content=uuid:496977df-94c2-4470-be26-b5e5aaa0f224, Root: true' expires in seconds: 1668
03-19 12:07:07.130    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Device '(RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:03336590-132a-4745-bf6a-84dcb7f98484, Descriptor: http://10.24.166.122:2869/upnphost/udhisapi.dll?content=uuid:03336590-132a-4745-bf6a-84dcb7f98484, Root: true' expires in seconds: 769
03-19 12:07:07.140    1325-1338/org.teleal.cling.android.browser D/Registry﹕ Executing pending operations: 0
03-19 12:07:07.140    1325-1345/org.teleal.cling.android.browser D/Router﹕ Releasing router lock: ReadLock
03-19 12:07:07.140    1325-1345/org.teleal.cling.android.browser D/SendingAction﹕ No connection or no no response received, returning null
03-19 12:07:07.160    1325-1345/org.teleal.cling.android.browser E/ContentDirectoryList﹕ AVTransport Failed - No response (Error: Current state of service prevents invoking that action. Connection error or no response received.)
    Uri: http://192.168.137.70:60151/storage/sdcard0/Music/Grand%20Corps%20Malade/Midi%2020/Grand%20corp%20malade%20-%20Sixi%c3%a8me%20sens.mp3?%21AllMusicTracks%2f16233%3a6%21http%2dget%3a%2a%3aaudio%2fmpeg%3aDLNA%2eORG%5fPN%3dMP3%3bDLNA%2eORG%5fOP%3d01%3bDLNA%2eORG%5fCI%3d0%214448878%21%2100%3a03%3a04%2e858%21%21
Reply | Threaded
Open this post in threaded view
|

Re: Target server failed to respond with SetAVTransportURI

Christian Bauer
Administrator
This looks like Cling 1.0, try 2.0.

The error is simple: The server doesn't respond to the action message HTTP request. You can probably verify this if you construct the request manually (the debug log should show all HTTP headers and boy) with some tool like curl and see what the server does.
Reply | Threaded
Open this post in threaded view
|

Re: Target server failed to respond with SetAVTransportURI

valentin
Thank's a lot, I'll try Cling 2.0.