Page 1 of 1
Java File Uploader - Peer not authenticated
PostPosted:Wed Sep 28, 2011 7:16 am
by Catscratch
Hi,
since I updated to OpenKM 5.1.7 (from 5.0.4) the Java File Uploader shows an error:
Any idea, whats going wrong here?
Thanks and best regards.
Re: Java File Uploader - Peer not authenticated
PostPosted:Sun Oct 02, 2011 5:36 pm
by pavila
Never seen that error. Give the same error from other computers? Have you any specific configuration in OpenKM or the server?
In case of SSL, maybe the certificate used by the site is trusted neither by Java Runtime nor by Firefox.
Re: Java File Uploader - Peer not authenticated
PostPosted:Sun Oct 02, 2011 6:25 pm
by Catscratch
I don't know.
I use SSL with a valid certificate. The certificate is green in all browsers. The serverlog shows no error but the Java Applett shows the screenshot above.
Maybe you can give me a hint where I could start searching. What configuration part could be responsible?
Re: Java File Uploader - Peer not authenticated
PostPosted:Tue Oct 04, 2011 8:39 am
by pavila
Seems something related to org.apache.http.client.HttpClient
Re: Java File Uploader - Peer not authenticated
PostPosted:Tue Oct 04, 2011 9:14 am
by Catscratch
I set logging level of org.apache to INFO but no output appears in the logfile, when triggering this error.
Re: Java File Uploader - Peer not authenticated
PostPosted:Wed Oct 12, 2011 7:05 am
by pavila
This error can be seen if you enable the Java Console from the computer you run the applet.
Re: Java File Uploader - Peer not authenticated
PostPosted:Wed Oct 12, 2011 7:27 am
by Catscratch
Good hint. Thanks.
Here is the output.
Code: Select allinit: com.openkm.applet.lang.Resources@1878144 --- de_DE
12.10.2011 09:25:54 com.openkm.applet.Uploader init
INFO: AppVersion: 5.1.2 (build: 5724)
12.10.2011 09:25:54 com.openkm.applet.Uploader init
INFO: openkm.token => A59763C37490604F7858C7819AEB9D1E
12.10.2011 09:25:54 com.openkm.applet.Uploader init
INFO: openkm.path => /okm:root/Testfolder
12.10.2011 09:25:54 com.openkm.applet.Uploader init
INFO: openkm.lang => de-DE
12.10.2011 09:25:54 com.openkm.applet.Uploader init
INFO: applet.locale => de_DE
12.10.2011 09:25:54 com.openkm.applet.Uploader init
INFO: applet.url => https://openkm.mmt.inf.tu-dresden.de/OpenKM
12.10.2011 09:25:54 com.openkm.applet.Uploader init
INFO: applet.jsobject => [object DOMWindow]
12.10.2011 09:26:19 com.openkm.applet.MainFrame createDocumentHelper
INFO: uploadDocumentHelper(A59763C37490604F7858C7819AEB9D1E, /okm:root/Testfolder, https://openkm.mmt.inf.tu-dresden.de/OpenKM, C:\temp\ronny_avt.jpg)
12.10.2011 09:26:19 com.openkm.applet.Util createDocument
INFO: createDocument(A59763C37490604F7858C7819AEB9D1E, /okm:root/Testfolder, https://openkm.mmt.inf.tu-dresden.de/OpenKM, C:\temp\ronny_avt.jpg)
12.10.2011 09:26:19 com.openkm.applet.MainFrame createDocumentHelper
SCHWERWIEGEND: IOException: peer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:390)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:562)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
at com.openkm.applet.Util.createDocument(Util.java:62)
at com.openkm.applet.MainFrame.createDocumentHelper(MainFrame.java:299)
at com.openkm.applet.MainFrame.drop(MainFrame.java:260)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Re: Java File Uploader - Peer not authenticated
PostPosted:Thu Oct 20, 2011 8:22 am
by pavila
I have created an issue to handle this error at
http://issues.openkm.com/view.php?id=1851, please use this platform for further comments.
This only happens on OpenKM 5.1.x and works fine on OpenKM 5.0.x? Both configured with SSL?
Re: Java File Uploader - Peer not authenticated
PostPosted:Thu Oct 20, 2011 12:46 pm
by Catscratch
Yes. Worked fine in 5.0.4.
I did not changed the SSL configuration.
Re: Java File Uploader - Peer not authenticated
PostPosted:Fri Oct 28, 2011 7:10 am
by pavila
Yesterday I commited a fix for this issue. As usually, you can download the nigtht build from
http://integration.openkm.com/5.1.x/ .
Re: Java File Uploader - Peer not authenticated
PostPosted:Tue Nov 01, 2011 8:00 am
by Catscratch
Thanks. It worked!
Re: Java File Uploader - Peer not authenticated
PostPosted:Wed Nov 02, 2011 4:16 pm
by pavila
Nice! Thanks for the feedback.