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

Latest news

Last at Mon, 6 Sep 2010 12:27:06
Topic: Let your feedback ideas flow
See more news »

Nutiteq on Twitter

12 weeks 2 days ago Nutiteq is proud sponsor of StateOfTheMap 2010 #sotm10

read PI must not start with xml Error

1 reply [Last post]
sasquatchsoftware
User offline. Last seen 14 weeks 6 days 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&B...
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 6 hours 49 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