Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Uudised

Viimane: Tue, 6 Dec 2011 18:37:53
Teema: New BlackBerry sample app
Veel uudiseid »

read PI must not start with xml Error

1 reply [Last post]
sasquatchsoftware
User offline. Last seen 1 year 18 weeks ago. Offline
Joined: 05/10/2010

Hello,

We are trying to use map lib with our own KML overlay service but we keep getting this error:

Info > Downloading http://*******/Handlers/OilTraxKML.ashx?stype=oilfield&NAME=FORTENBERY&BBOX=-130.166015,47.5172,-102.041015,59.888936&zoom=4&max=10;deviceside=true
JVM: bklt @9947: timer
JVM: bklt @9947: idle 4
JVM: bklt @9947: setTimer 18
needRepaint complete=true
Debug > Connection opened in 3073
needRepaint complete=true
needRepaint complete=true
Debug > Response NOT packed based on first 2 data bytes
Error > KmlReader: read PI must not start with xml (position:unknown ?@1:5 in java.io.InputStreamReader@89924156)
No stack trace
Debug > KmlReader done
Debug > Response read in 29

Has anyone seen this or know what this is?

Any help is greatly appreciated.

jaak
User offline. Last seen 11 hours 5 min ago. Offline
Joined: 06/19/2008

The 1.0.2 library does not like UTF8 BOM bytes in the beginning of KML data. BOM are 3 invisible bytes, 0xef 0xbb 0xbf which are sometimes in the start of XML. Either modify server so the bytes are not added, or use latest (unreleased) library from http://nutiteq.com/beta/lib . The latest version has fix for this.

/JaakL