Error on starting Jupnp

when starting the JUPnP bundle manually (or on startup for that matter) the following error is produced…Not sure if its an issue, but i dont like errors

openhab> start 156
openhab> [Fatal Error] :1:3: The markup in the document preceding the root element must be well-formed.

Also, but im still investigating, i think its also filling up the heap space. at least 5 times every minute contact is attempted as per the following… Im still doing some analysis but im pretty sure something is going on. if i stop the bundle then memory and cpu is pretty consistent, with it running memory grows continuously until heap errors are seen in openhab.

2016-06-10 10:41:36.205 [DEBUG] [.conn.PoolingClientConnectionManager] - Connection request: [route: {}->http://192.168.10.47:49153][total kept alive: 5; route allocated: 0 of 100; total allocated: 5 of 1024]
2016-06-10 10:41:36.207 [DEBUG] [.conn.PoolingClientConnectionManager] - Connection leased: [id: 1928][route: {}->http://192.168.10.47:49153][total kept alive: 5; route allocated: 1 of 100; total allocated: 6 of 1024]
2016-06-10 10:41:36.208 [DEBUG] [conn.DefaultClientConnectionOperator] - Connecting to 192.168.10.47:49153
2016-06-10 10:41:36.222 [DEBUG] [tp.client.protocol.RequestAddCookies] - CookieSpec selected: best-match
2016-06-10 10:41:36.223 [DEBUG] [ttp.client.protocol.RequestAuthCache] - Auth cache not set in the context
2016-06-10 10:41:36.224 [DEBUG] [protocol.RequestTargetAuthentication] - Target auth state: UNCHALLENGED
2016-06-10 10:41:36.224 [DEBUG] [.protocol.RequestProxyAuthentication] - Proxy auth state: UNCHALLENGED
2016-06-10 10:41:36.225 [DEBUG] [e.http.impl.client.DefaultHttpClient] - Attempt 1 to execute request
2016-06-10 10:41:36.226 [DEBUG] [tp.impl.conn.DefaultClientConnection] - Sending request: GET /description4.xml HTTP/1.1
2016-06-10 10:41:36.227 [DEBUG] [org.apache.http.wire ] - >> "GET /description4.xml HTTP/1.1[\r][\n]"
2016-06-10 10:41:36.227 [DEBUG] [org.apache.http.wire ] - >> "Host: 192.168.10.47:49153[\r][\n]"
2016-06-10 10:41:36.228 [DEBUG] [org.apache.http.wire ] - >> "Connection: Keep-Alive[\r][\n]"
2016-06-10 10:41:36.228 [DEBUG] [org.apache.http.wire ] - >> "User-Agent: Linux/3.4.112-sun8i UPnP/1.0 jUPnP/2.0[\r][\n]"
2016-06-10 10:41:36.229 [DEBUG] [org.apache.http.wire ] - >> "[\r][\n]"
2016-06-10 10:41:36.229 [DEBUG] [org.apache.http.headers ] - >> GET /description4.xml HTTP/1.1
2016-06-10 10:41:36.230 [DEBUG] [org.apache.http.headers ] - >> Host: 192.168.10.47:49153
2016-06-10 10:41:36.230 [DEBUG] [org.apache.http.headers ] - >> Connection: Keep-Alive
2016-06-10 10:41:36.230 [DEBUG] [org.apache.http.headers ] - >> User-Agent: Linux/3.4.112-sun8i UPnP/1.0 jUPnP/2.0
2016-06-10 10:41:36.235 [DEBUG] [org.apache.http.wire ] - << "HTTP/1.1 401 Unauthorized[\r][\n]"
2016-06-10 10:41:36.236 [DEBUG] [org.apache.http.wire ] - << "SERVER: Linux/2.6.18.8 UPnP/1.0 SKY DLNADOC/1.50[\r][\n]"
2016-06-10 10:41:36.236 [DEBUG] [org.apache.http.wire ] - << "CONNECTION: close[\r][\n]"
2016-06-10 10:41:36.237 [DEBUG] [org.apache.http.wire ] - << "[\r][\n]"
2016-06-10 10:41:36.238 [DEBUG] [tp.impl.conn.DefaultClientConnection] - Receiving response: HTTP/1.1 401 Unauthorized
2016-06-10 10:41:36.239 [DEBUG] [org.apache.http.headers ] - << HTTP/1.1 401 Unauthorized
2016-06-10 10:41:36.240 [DEBUG] [org.apache.http.headers ] - << SERVER: Linux/2.6.18.8 UPnP/1.0 SKY DLNADOC/1.50
2016-06-10 10:41:36.240 [DEBUG] [org.apache.http.headers ] - << CONNECTION: close
2016-06-10 10:41:36.241 [DEBUG] [e.http.impl.client.DefaultHttpClient] - Authentication required
2016-06-10 10:41:36.242 [DEBUG] [e.http.impl.client.DefaultHttpClient] - 192.168.10.47:49153 requested authentication
2016-06-10 10:41:36.243 [DEBUG] [e.http.impl.client.DefaultHttpClient] - Response contains no authentication challenges
2016-06-10 10:41:36.244 [DEBUG] [tp.impl.conn.DefaultClientConnection] - Connection 0.0.0.0:52276<->192.168.10.47:49153 closed
2`

I think, you have a server in your network (IP 192.168.10.47, Port 49153) which needs Authentification. As openHAB has no credentials, Authentification fails forever.

yup, i sort of guessed that, proprietary STB so cant modify it.

ok, just to add some more, upnp is causing heap errors, not sure if its because of the constant polling as above but after a few hours seem to always get

openhab> Exception in thread “upnp-main-1” Exception in thread “Karaf Lock Monitor Thread” Exception in thread “upnp-main-2” Exception in thread “upnp-main-3” java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:300)
at java.lang.StringCoding.encode(StringCoding.java:344)
at java.lang.String.getBytes(String.java:918)
at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
at java.io.File.isDirectory(File.java:849)
at org.apache.karaf.main.Main.doMonitor(Main.java:343)
at org.apache.karaf.main.Main.access$100(Main.java:70)
at org.apache.karaf.main.Main$1.run(Main.java:328)
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

Looks as if you’d better report this at https://github.com/jupnp/jupnp/issues.