[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ksync: Sync Problems


Hi,

 We are trying to sync the ksync client with server but are having the
following problem.
"org.xml.sax.SAXParseException: The markup in the document preceding the
root element must be well-formed." which is given below.

We can not see anything wrong with the document - has anyone come across
this problem in the past?

Any help  would be very much appreciated.

Thanks for your time

Best regards

Paul Sorati



000.010    CommServlet.init(CommServlet.log)
000.010    CommServlet.root=C:/usr/local/enhydra3.1/ksync/xml/
026.187    doService:POST
026.187    getAuthType:null
026.187    getCharacterEncoding:null
026.187    getContentType:application/vnd.syncml-xml
026.187    getProtocol:HTTP/1.1
026.187    getScheme:http
026.187    Header:content-type:application/vnd.syncml-xml
026.187    Header:Transfer-Encoding:chunked
026.187    Header:Host:203.213.47.250:80
026.187    SYNC: <-:248
<SyncML>
	<SyncHdr>
		<VerDTD>
			1.0
		</VerDTD>
		<VerProto>
			SyncML/1.0
		</VerProto>
		<SessionID>
			2
		</SessionID>
		<MsgID>
			1
		</MsgID>
		<Target>
			<LocURI>
				http:/localhost/ksync
			</LocURI>
		</Target>
		<Source>
			<LocURI>
				ksync_client
			</LocURI>
		</Source>
		<NoResp/>
	</SyncHdr>
	<SyncBody>
		<Alert>
			<CmdID>
				1
			</CmdID>
			<Data>
				205
			</Data>
			<Item>
				<Target>
					<LocURI>
						Test1.xml
					</LocURI>
				</Target>
			</Item>
		</Alert>
		<Final/>
	</SyncBody>
</SyncML>

026.658    7
org.xml.sax.SAXParseException: The markup in the document preceding the root
element must be well-formed.
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1008)
	at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:625)
	at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:804)
	at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
	at com.reaxion.tequila.server.util.XmlUtils.readElementFromStream(Unknown
Source)
	at com.reaxion.tequila.syncml.xml.node.XmlIO.readXmlNodeFromStream(Unknown
Source)
	at com.reaxion.tequila.syncml.xml.node.XmlIO.readXmlNodeFromBytes(Unknown
Source)
	at com.reaxion.tequila.syncml.SyncMLReader.readBytes(Unknown Source)
	at
com.reaxion.tequila.server.syncml.comm.CommSyncmlServer.performRequest(Unkno
wn Source)
	at com.reaxion.tequila.server.syncml.comm.CommServlet.service(Unknown
Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at
org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:6
41)
	at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:5
49)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:392)
	at org.apache.tomcat.core.Context.handleRequest(Context.java:732)
	at
org.enhydra.servlet.servletManager.ServletManager.service(ServletManager.jav
a:1096)
	at
org.enhydra.servlet.connectionMethods.http.HttpHandler.doARequest(HttpHandle
r.java:241)
	at
org.enhydra.servlet.connectionMethods.http.HttpHandler.processRequests(HttpH
andler.java:258)
	at
org.enhydra.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:
96)
	at java.lang.Thread.run(Thread.java:536)
026.658    6
com.reaxion.tequila.syncml.util.CommException: The markup in the document
preceding the root element must be well-formed.
	at
com.reaxion.tequila.server.syncml.comm.CommSyncmlServer.performRequest(Unkno
wn Source)
	at com.reaxion.tequila.server.syncml.comm.CommServlet.service(Unknown
Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at
org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:6
41)
	at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:5
49)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:392)
	at org.apache.tomcat.core.Context.handleRequest(Context.java:732)
	at
org.enhydra.servlet.servletManager.ServletManager.service(ServletManager.jav
a:1096)
	at
org.enhydra.servlet.connectionMethods.http.HttpHandler.doARequest(HttpHandle
r.java:241)
	at
org.enhydra.servlet.connectionMethods.http.HttpHandler.processRequests(HttpH
andler.java:258)
	at
org.enhydra.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:
96)
	at java.lang.Thread.run(Thread.java:536)