I'm using the CyberLink for Java to connect to my streamium SL300i. I'm trying to use the CyberLink sample ControlPoint, to check out the responses that I get. I'm able to call all other functions successfully, except getMediaInfo(InstanceID) and getPositionInfo(InstanceID). The following error is generated by the CyberLink sample ControlPoint. Does anybody have an idea about this? Is this a firmware problem?
Here is the Debug information available from CyberLink ControlPoint:
CyberGarage warning : org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xff) was found in the element content of the document.
org.cybergarage.xml.ParserException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xff) was found in the element content of the document.
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:132)
at org.cybergarage.soap.SOAPRequest.postMessage(SOAPRequest.java:92)
at org.cybergarage.upnp.control.ActionRequest.post(ActionRequest.java:141)
at org.cybergarage.upnp.Action.postControlAction(Action.java:316)
at ActionPane.actionPerformed(ActionPane.java:81)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xff) was found in the element content of the document.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:588)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1304)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:116)
... 28 more
HTTP/1.1 200
Content-Type: text/xml; charset="utf-8"
Server: Allegro-Software-RomPager/4.30
Content-Length: 1394
Date: Tue, 02 Dec 2003 02:46:38 GMT
Connection: close
EXT:
CyberGarage warning : org.xml.sax.SAXParseException: The root element is required in a well-formed document.
org.cybergarage.xml.ParserException: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:132)
at org.cybergarage.soap.SOAPRequest.postMessage(SOAPRequest.java:92)
at org.cybergarage.upnp.control.ActionRequest.post(ActionRequest.java:141)
at org.cybergarage.upnp.Action.postControlAction(Action.java:316)
at ActionPane.actionPerformed(ActionPane.java:81)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:588)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.endOfInput(XMLDocumentScanner.java:1410)
at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:182)
at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:197)
at org.apache.xerces.framework.XMLDocumentScanner.scanElementType(XMLDocumentScanner.java:2029)
at org.apache.xerces.framework.XMLDocumentScanner.access$1(XMLDocumentScanner.java:2019)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:924)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:116)HTTP/1.1 200
Content-Type: text/xml; charset="utf-8"
Server: Allegro-Software-RomPager/4.30
Content-Length: 5
Transfer-Encoding: chunked
Connection: close
EXT:
I'm using the CyberLink for Java to connect to my streamium SL300i. I'm trying to use the CyberLink sample ControlPoint, to check out the responses that I get. I'm able to call all other functions successfully, except getMediaInfo(InstanceID) and getPositionInfo(InstanceID). The following error is generated by the CyberLink sample ControlPoint. Does anybody have an idea about this? Is this a firmware problem?
Here is the Debug information available from CyberLink ControlPoint:
POST /UD/?2 HTTP/1.1
Content-Type: text/xml; charset="utf-8"
HOST: 192.168.0.8:80
Content-Length: 334
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetPositionInfo xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
<InstanceID>0</InstanceID>
</u:GetPositionInfo>
</s:Body>
</s:Envelope>
CyberGarage warning : org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xff) was found in the element content of the document.
org.cybergarage.xml.ParserException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xff) was found in the element content of the document.
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:132)
at org.cybergarage.soap.SOAPRequest.postMessage(SOAPRequest.java:92)
at org.cybergarage.upnp.control.ActionRequest.post(ActionRequest.java:141)
at org.cybergarage.upnp.Action.postControlAction(Action.java:316)
at ActionPane.actionPerformed(ActionPane.java:81)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xff) was found in the element content of the document.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:588)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1304)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:116)
... 28 more
HTTP/1.1 200
Content-Type: text/xml; charset="utf-8"
Server: Allegro-Software-RomPager/4.30
Content-Length: 1394
Date: Tue, 02 Dec 2003 02:46:38 GMT
Connection: close
EXT:
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body><u:GetPositionInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><Track>1</Track><TrackDuration>00:05:00</TrackDuration><TrackMetaData><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sd="http://www.simpledevices.com/ns/upnp/" xmlns:pns="http://www.philips.com/streamiumns/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="unknown" restricted="0" parentID="parentUnknown"><dc:title>03 Jai Madhav Madan Murari</dc:title><upnp:genre>Other</upnp:genre><upnp:class>object.item.audioItem.musicTrack</upnp:class><upnp:originalTrackNumber>1</upnp:originalTrackNumber><res bitrate="40960" resolution="0x0">http://192.168.0.10:49152/media/1024.mp3</res><desc nameSpace="gAPgA?APgA" id="t@0:0AAA">\u@A_AtWr@AtWr@</desc></item></DIDL-Lite></TrackMetaData><TrackURI>http://192.168.0.10:49152/media/1024.mp3</TrackURI><RelTime>0:00:00</RelTime><AbsTime>NOT_IMPLEMENTED</AbsTime><RelCount>0</RelCount><AbsCount>0</AbsCount></u:GetPositionInfoResponse></s:Body>
</s:Envelope>
POST /UD/?2 HTTP/1.1
Content-Type: text/xml; charset="utf-8"
HOST: 192.168.0.8:80
Content-Length: 328
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#GetMediaInfo"
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetMediaInfo xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
<InstanceID>0</InstanceID>
</u:GetMediaInfo>
</s:Body>
</s:Envelope>
CyberGarage warning : org.xml.sax.SAXParseException: The root element is required in a well-formed document.
org.cybergarage.xml.ParserException: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:132)
at org.cybergarage.soap.SOAPRequest.postMessage(SOAPRequest.java:92)
at org.cybergarage.upnp.control.ActionRequest.post(ActionRequest.java:141)
at org.cybergarage.upnp.Action.postControlAction(Action.java:316)
at ActionPane.actionPerformed(ActionPane.java:81)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:588)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.endOfInput(XMLDocumentScanner.java:1410)
at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:182)
at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:197)
at org.apache.xerces.framework.XMLDocumentScanner.scanElementType(XMLDocumentScanner.java:2029)
at org.apache.xerces.framework.XMLDocumentScanner.access$1(XMLDocumentScanner.java:2019)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:924)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.cybergarage.xml.parser.XercesParser.parse(XercesParser.java:116)HTTP/1.1 200
Content-Type: text/xml; charset="utf-8"
Server: Allegro-Software-RomPager/4.30
Content-Length: 5
Transfer-Encoding: chunked
Connection: close
EXT:
<s:En
... 28 more
------------------------------------------------------------------
Any help is highly appreciated.
Thanks.
-Parixit
Hello friends,
Sorry for the trouble. It was a firmware upgrade issue. The methods are working now.
Thanks.
-Parixit