12 weeks 2 days ago
—
Nutiteq is proud sponsor of StateOfTheMap 2010 #sotm10
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.
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