getlantern/lantern — Issue #148: NPE loading settings during network failure
Author: forkner
Created: 2012-02-03 20:02:56+00:00
State: open
Labels: ARENDT, critical, settings

Had a lot of trouble staying on wi-fi this morning, and rebooted a few times. I have the 0.96 lantern installed and starting-on-system-startup. Wound up with an error dialog (that is for some reason not scrollable or okay-able)

Looks like settings fail to load possibly due to a NPE during geoip lookup, also fail to reset for the same reason.

Here are some relevant sections of java.log:

```
1 2012-02-03 11:31:06,953 WARN [main] client.PublicIpAddress.getPublicIpAddress (PublicIpAddress.java:64) - Not connected to the network?
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:30)
at sun.nio.ch.DatagramChannelImpl.connect(DatagramChannelImpl.java:521)
at org.littleshoot.mina.transport.socket.nio.support.DatagramConnectorDelegate.connect(DatagramConnectorDelegate.java:142)
at org.littleshoot.mina.common.support.BaseIoConnector.connect(BaseIoConnector.java:45)
at org.littleshoot.mina.common.support.DelegatedIoConnector.connect(DelegatedIoConnector.java:68)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:235)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:181)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:57)
at org.lantern.Internet.(Internet.java:25)
at org.lantern.Settings.(Settings.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:99)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:212)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:686)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
at org.lantern.SettingsIo.read(SettingsIo.java:62)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
134 2012-02-03 11:31:07,086 WARN [main] client.PublicIpAddress.wikiMediaLookup (PublicIpAddress.java:128) - Error connecting?
java.net.UnknownHostException: geoiplookup.wikimedia.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.wikiMediaLookup(PublicIpAddress.java:113)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:66)
at org.lantern.Internet.(Internet.java:25)
at org.lantern.Settings.(Settings.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:99)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:212)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:686)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
at org.lantern.SettingsIo.read(SettingsIo.java:62)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
138 2012-02-03 11:31:07,090 WARN [main] client.PublicIpAddress.ifConfigLookup (PublicIpAddress.java:98) - Error connecting?
java.net.UnknownHostException: ifconfig.me
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.ifConfigLookup(PublicIpAddress.java:87)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:71)
at org.lantern.Internet.(Internet.java:25)
at org.lantern.Settings.(Settings.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:99)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:212)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:686)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
at org.lantern.SettingsIo.read(SettingsIo.java:62)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
142 2012-02-03 11:31:07,094 WARN [main] client.PublicIpAddress.getPublicIpAddress (PublicIpAddress.java:64) - Not connected to the network?
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:30)
at sun.nio.ch.DatagramChannelImpl.connect(DatagramChannelImpl.java:521)
at org.littleshoot.mina.transport.socket.nio.support.DatagramConnectorDelegate.connect(DatagramConnectorDelegate.java:142)
at org.littleshoot.mina.common.support.BaseIoConnector.connect(BaseIoConnector.java:45)
at org.littleshoot.mina.common.support.DelegatedIoConnector.connect(DelegatedIoConnector.java:68)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:235)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:181)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:57)
at org.lantern.DefaultCensored.country(DefaultCensored.java:60)
at org.lantern.Settings.(Settings.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:99)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:212)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:686)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
at org.lantern.SettingsIo.read(SettingsIo.java:62)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
159 2012-02-03 11:31:07,111 WARN [main] client.PublicIpAddress.wikiMediaLookup (PublicIpAddress.java:128) - Error connecting?
java.net.UnknownHostException: geoiplookup.wikimedia.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.wikiMediaLookup(PublicIpAddress.java:113)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:66)
at org.lantern.DefaultCensored.country(DefaultCensored.java:60)
at org.lantern.Settings.(Settings.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:99)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:212)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:686)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
at org.lantern.SettingsIo.read(SettingsIo.java:62)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
162 2012-02-03 11:31:07,114 WARN [main] client.PublicIpAddress.ifConfigLookup (PublicIpAddress.java:98) - Error connecting?
java.net.UnknownHostException: ifconfig.me
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.ifConfigLookup(PublicIpAddress.java:87)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:71)
at org.lantern.DefaultCensored.country(DefaultCensored.java:60)
at org.lantern.Settings.(Settings.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:99)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:212)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:686)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
at org.lantern.SettingsIo.read(SettingsIo.java:62)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
174 2012-02-03 11:31:07,126 ERROR [main] lantern.SettingsIo.read (SettingsIo.java:69) - Could not read settings
org.codehaus.jackson.map.JsonMappingException: Instantiation of [simple type, class org.lantern.Settings] value failed: null
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.wrapException(StdValueInstantiator.java:388)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:216)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:686)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
at org.lantern.SettingsIo.read(SettingsIo.java:62)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Caused by: java.lang.NullPointerException
at com.maxmind.geoip.LookupService.getCountry(LookupService.java:453)
at org.lantern.DefaultCensored.country(DefaultCensored.java:61)
at org.lantern.Settings.(Settings.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:99)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:212)
... 21 more
178 2012-02-03 11:31:07,130 WARN [main] client.PublicIpAddress.getPublicIpAddress (PublicIpAddress.java:64) - Not connected to the network?
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:30)
at sun.nio.ch.DatagramChannelImpl.connect(DatagramChannelImpl.java:521)
at org.littleshoot.mina.transport.socket.nio.support.DatagramConnectorDelegate.connect(DatagramConnectorDelegate.java:142)
at org.littleshoot.mina.common.support.BaseIoConnector.connect(BaseIoConnector.java:45)
at org.littleshoot.mina.common.support.DelegatedIoConnector.connect(DelegatedIoConnector.java:68)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:235)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:181)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:57)
at org.lantern.Internet.(Internet.java:25)
at org.lantern.Settings.(Settings.java:32)
at org.lantern.SettingsIo.newSettings(SettingsIo.java:85)
at org.lantern.SettingsIo.read(SettingsIo.java:76)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
184 2012-02-03 11:31:07,136 WARN [main] client.PublicIpAddress.wikiMediaLookup (PublicIpAddress.java:128) - Error connecting?
java.net.UnknownHostException: geoiplookup.wikimedia.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.wikiMediaLookup(PublicIpAddress.java:113)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:66)
at org.lantern.Internet.(Internet.java:25)
at org.lantern.Settings.(Settings.java:32)
at org.lantern.SettingsIo.newSettings(SettingsIo.java:85)
at org.lantern.SettingsIo.read(SettingsIo.java:76)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
186 2012-02-03 11:31:07,138 WARN [main] client.PublicIpAddress.ifConfigLookup (PublicIpAddress.java:98) - Error connecting?
java.net.UnknownHostException: ifconfig.me
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.ifConfigLookup(PublicIpAddress.java:87)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:71)
at org.lantern.Internet.(Internet.java:25)
at org.lantern.Settings.(Settings.java:32)
at org.lantern.SettingsIo.newSettings(SettingsIo.java:85)
at org.lantern.SettingsIo.read(SettingsIo.java:76)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
188 2012-02-03 11:31:07,140 WARN [main] client.PublicIpAddress.getPublicIpAddress (PublicIpAddress.java:64) - Not connected to the network?
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:30)
at sun.nio.ch.DatagramChannelImpl.connect(DatagramChannelImpl.java:521)
at org.littleshoot.mina.transport.socket.nio.support.DatagramConnectorDelegate.connect(DatagramConnectorDelegate.java:142)
at org.littleshoot.mina.common.support.BaseIoConnector.connect(BaseIoConnector.java:45)
at org.littleshoot.mina.common.support.DelegatedIoConnector.connect(DelegatedIoConnector.java:68)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:235)
at org.lastbamboo.common.stun.client.UdpStunClient.connect(UdpStunClient.java:181)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:57)
at org.lantern.DefaultCensored.country(DefaultCensored.java:60)
at org.lantern.Settings.(Settings.java:51)
at org.lantern.SettingsIo.newSettings(SettingsIo.java:85)
at org.lantern.SettingsIo.read(SettingsIo.java:76)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
189 2012-02-03 11:31:07,141 WARN [main] client.PublicIpAddress.wikiMediaLookup (PublicIpAddress.java:128) - Error connecting?
java.net.UnknownHostException: geoiplookup.wikimedia.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.wikiMediaLookup(PublicIpAddress.java:113)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:66)
at org.lantern.DefaultCensored.country(DefaultCensored.java:60)
at org.lantern.Settings.(Settings.java:51)
at org.lantern.SettingsIo.newSettings(SettingsIo.java:85)
at org.lantern.SettingsIo.read(SettingsIo.java:76)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
191 2012-02-03 11:31:07,143 WARN [main] client.PublicIpAddress.ifConfigLookup (PublicIpAddress.java:98) - Error connecting?
java.net.UnknownHostException: ifconfig.me
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:249)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.lastbamboo.common.stun.client.PublicIpAddress.ifConfigLookup(PublicIpAddress.java:87)
at org.lastbamboo.common.stun.client.PublicIpAddress.getPublicIpAddress(PublicIpAddress.java:71)
at org.lantern.DefaultCensored.country(DefaultCensored.java:60)
at org.lantern.Settings.(Settings.java:51)
at org.lantern.SettingsIo.newSettings(SettingsIo.java:85)
at org.lantern.SettingsIo.read(SettingsIo.java:76)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
193 2012-02-03 11:31:07,145 ERROR [main] lantern.LanternHub.resetSettings (LanternHub.java:399) - Caught throwable: {}
java.lang.NullPointerException
at com.maxmind.geoip.LookupService.getCountry(LookupService.java:453)
at org.lantern.DefaultCensored.country(DefaultCensored.java:61)
at org.lantern.Settings.(Settings.java:51)
at org.lantern.SettingsIo.newSettings(SettingsIo.java:85)
at org.lantern.SettingsIo.read(SettingsIo.java:76)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
0 2012-02-03 11:45:11,716 ERROR [main] lantern.LanternHub.resetSettings (LanternHub.java:399) - Caught throwable: {}
java.lang.NullPointerException
at org.lantern.SettingsIo.read(SettingsIo.java:64)
at org.lantern.LanternHub.resetSettings(LanternHub.java:397)
at org.lantern.LanternHub.(LanternHub.java:117)
at org.lantern.Launcher.main(Launcher.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
```