NullPointerException; thrown while initializing Landroid/net/http/HttpsConnection after upgrade to Ubuntu 12
<p>After upgrading my host to Ubuntu 12 and successfully rebuilding android, upon installation on device, the system boot loops into this error:</p>

<pre><code>I/Zygote  (  147): Preloading classes...
D/dalvikvm(  147): GC_EXPLICIT freed 47K, 78% free 232K/1024K, external 0K/0K, paused 3ms
D/dalvikvm(  147): GC_EXPLICIT freed 1K, 73% free 282K/1024K, external 0K/0K, paused 3ms
D/dalvikvm(  147): GC_EXPLICIT freed 20K, 70% free 315K/1024K, external 0K/0K, paused 3ms
D/dalvikvm(  147): GC_EXPLICIT freed 17K, 66% free 353K/1024K, external 0K/0K, paused 3ms
D/dalvikvm(  147): GC_EXPLICIT freed 26K, 63% free 381K/1024K, external 0K/0K, paused 4ms
D/dalvikvm(  147): GC_EXPLICIT freed 22K, 58% free 440K/1024K, external 0K/0K, paused 4ms
W/MediaProfiles(  147): could not find media config xml file
D/dalvikvm(  147): GC_EXPLICIT freed 99K, 47% free 545K/1024K, external 0K/0K, paused 5ms
W/dalvikvm(  147): Exception Ljava/lang/
NullPointerException; thrown while initializing Landroid/net/http/HttpsConnection;
E/Zygote  (  147): Error preloading android.net.http.HttpsConnection.
E/Zygote  (  147): java.lang.ExceptionInInitializerError
E/Zygote  (  147):     at java.lang.Class.classForName(Native Method)
E/Zygote  (  147):     at java.lang.Class.forName(Class.java:234)
E/Zygote  (  147):     at java.lang.Class.forName(Class.java:181)
E/Zygote  (  147):     at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:297)
E/Zygote  (  147):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:564)
E/Zygote  (  147):     at dalvik.system.NativeStart.main(Native Method)
E/Zygote  (  147): Caused by: java.lang.NullPointerException: algorithm is null
E/Zygote  (  147):     at javax.net.ssl.KeyManagerFactory.getInstance(KeyManagerFactory.java:77)
E/Zygote  (  147):     at org.apache.harmony.xnet.provider.jsse.SSLParametersImpl.createDefaultKeyManager(SSLParametersImpl.java:387)
E/Zygote  (  147):     at org.apache.harmony.xnet.provider.jsse.SSLParametersImpl.getDefaultKeyManager(SSLParametersImpl.java:380)
E/Zygote  (  147):     at org.apache.harmony.xnet.provider.jsse.SSLParametersImpl.&lt;init&gt;(SSLParametersImpl.java:120)
E/Zygote  (  147):     at org.apache.harmony.xnet.provider.jsse.SSLContextImpl.engineInit(SSLContextImpl.java:97)
E/Zygote  (  147):     at android.net.http.HttpsConnection.initializeEngine(HttpsConnection.java:101)
E/Zygote  (  147):     at android.net.http.HttpsConnection.&lt;clinit&gt;(HttpsConnection.java:65)
E/Zygote  (  147):     ... 6 more
E/Zygote  (  147): setreuid() failed. errno: 17
D/AndroidRuntime(  147): Shutting down VM
</code></pre>

<hr>

<p>The same sources worked fine when built in my Ubuntu 11.10 (64-bit) host.
I did the migration like this:</p>

<p>1) full backup of the aosp source dir, from the 11.10 host</p>

<p>2) setup of a new Ubuntu 12.04 host</p>

<p>3) installation of AOSP pre-requisite packages</p>

<p>4) installation of Oracle jdk 6</p>

<p>5) restore of the aosp source dir (from 1)</p>

<p>The failure in "javax.net.ssl.KeyManagerFactory" suggests some SSL-related issue, but I wonder what I could be missing,...</p>

<p>PS - For additional info on the device and porting project, there's a <a href="https://groups.google.com/forum/#!forum/renesas-emev-osp" rel="nofollow">group</a> hosting discussions about it.</p>
