<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nuxeo Live Edit throws a Java NPE in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313116#M117</link>
    <description>&lt;P&gt;Hi Dave,&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2013 10:07:58 GMT</pubDate>
    <dc:creator>Bing_Ren</dc:creator>
    <dc:date>2013-05-03T10:07:58Z</dc:date>
    <item>
      <title>Nuxeo Live Edit throws a Java NPE</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313112#M113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using Nuxeo DM 5.5, LibreOffice 3.5.4.2 with the LibreOffice &lt;CODE&gt;libreoffice-java-common&lt;/CODE&gt; packages installed, and Firefox 17.0 on Ubuntu 12.04 with OpenJDK 6 update 24.&lt;/P&gt;
&lt;P&gt;I've configured an HTTPS reverse proxy in line with the official Nuxeo documentation. I'm using a self-signed certificate. The Nuxeo server is one of the pre-packaged VMs provided by Nuxeo which is running in VirtualBox.&lt;/P&gt;
&lt;P&gt;Nuxeo LiveEdit Protocol Handler 0.5.2 is installed in Firefox, and LiveEdit for openoffice Version 2.4.0 has been installed in LibreOffice.&lt;/P&gt;
&lt;P&gt;When Live Edit is launched in Nuxeo DM, I receive the following error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;An exception occurred
Type: com.sun.star.uno.RuntimeException
Message: [jni_uno bridge error] UNO calling Java method
execute: non-UNO exception occurred:
java.lang.NullPointerException
java stack trace:
java.lang.NullPointerException
at
org.nuxeo.liveedit.restclient.LiveEditClientRestletImpl.getParsedDocument(LiveEditClientRestletImpl.java:570)
at
org.nuxeo.liveedit.restclient.LiveEditClientRestletImpl.lockDocument(LiveEditClientRestletImpl.java:519)
at
org.nuxeo.liveedit.extension.ooo.LiveEditConnector.actionLoad(LiveEditConnector.java:294)
at
org.nuxeo.liveedit.extension.ooo.LiveEditConnector.execute(LiveEditConnector.java:191)
.(line81)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I've seen a few posts here and there referring to similar errors, possibly related to HTTPS being configured, but nothing in the way of resolutions.&lt;/P&gt;
&lt;P&gt;Has anyone actually managed to configure HTTPS with Live Edit, and if so can they assist at all with what is going on here? Any leads most appreciated.&lt;/P&gt;
&lt;P&gt;Cheers,
Dave&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 13:21:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313112#M113</guid>
      <dc:creator>davenz_</dc:creator>
      <dc:date>2012-12-20T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Live Edit throws a Java NPE</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313113#M114</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I got the same problem and found this page. Now I solved the problem and below is how I solved it.&lt;/P&gt;
&lt;P&gt;(1) find where is the working dir for your plugin.&lt;/P&gt;
&lt;P&gt;Look at "tools -&amp;gt; Add-ons -&amp;gt; Nuxeo LiveEdit Protocol Handler -&amp;gt; Preferences&lt;/P&gt;
&lt;P&gt;(2) Find the log&lt;/P&gt;
&lt;P&gt;AFTER producing the error, you should be able to find a log file in the working dir named nuxeo-liveedit-openoffice-extension.log. Open that log and find the cause of the problem. To me, it was&lt;/P&gt;
&lt;P&gt;2013-04-24 11:12:34,254 DEBUG (HttpMethodDirector.java:443) - handshake alert:  unrecognized_name
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
at sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1289)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1970)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1093)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream
(MultiThreadedHttpConnectionManager.java:1565)&lt;/P&gt;
&lt;P&gt;(3) Solution&lt;/P&gt;
&lt;P&gt;Here "javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name" is the key. By googling it I was pointed to this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0" target="test_blank"&gt;http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Basically the solution is to set ServerName and ServerAlias on your Apache server.&lt;/P&gt;
&lt;P&gt;(4) Add the CA certificate into client-side Java environment&lt;/P&gt;
&lt;P&gt;I used a self-signed certificate. Before found the above solution, I also added the certificate for the CA (self-signed) to the keyring of the client-side Java environment in which the LiveEdit plug-in runs. To do this, use "keytool" and google to find how to add a trusted key into the cacerts.&lt;/P&gt;
&lt;P&gt;Also note you might have more than one Java environment of different version and / or provider. Choose the right one or add the key to all.&lt;/P&gt;
&lt;P&gt;If the issuer of the certificate is not trusted in client-side Java environment, this step is a must.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Bing&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 05:16:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313113#M114</guid>
      <dc:creator>Bing_Ren</dc:creator>
      <dc:date>2013-04-24T05:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Live Edit throws a Java NPE</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313114#M115</link>
      <description>&lt;P&gt;To summarise&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2013 18:31:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313114#M115</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-04-28T18:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Live Edit throws a Java NPE</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313115#M116</link>
      <description>&lt;P&gt;So - doesn't look like this is the problem in my case. Some changes to my initial post&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 14:00:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313115#M116</guid>
      <dc:creator>davenz_</dc:creator>
      <dc:date>2013-05-02T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Live Edit throws a Java NPE</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313116#M117</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 10:07:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313116#M117</guid>
      <dc:creator>Bing_Ren</dc:creator>
      <dc:date>2013-05-03T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Live Edit throws a Java NPE</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313117#M118</link>
      <description>&lt;P&gt;Hi Bing,&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2013 10:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-live-edit-throws-a-java-npe/m-p/313117#M118</guid>
      <dc:creator>davenz_</dc:creator>
      <dc:date>2013-05-05T10:21:38Z</dc:date>
    </item>
  </channel>
</rss>

