Error uploading several files jean.matscher  2010-11-23 00:16
Status: Closed
 
Dear all,

when I attempt to upload several files to our company's file drop location at LabKey, I get the Java errors listed below for each file. (See also attached screenshot 1)

This is true for both
- dropping files into the 'Drop files and folders here' area and
- using the 'Choose folder' button.


The server run Windows 2003 Server Standard Edition SP2.
I verified on Java.com the correct JavaVM setup, see screenshot 2)


Thanks for any support on this, best regards
Jean



Failure interacting with the server at 'https://www.labkey.org/_webdav/Novartis/%40files/Zwittergent/2010_11_12_1D_LS05_S152_Mag_20min_Acroprepfilter_Zwitt01_170minsplit.prot.xml.log'
java.net.UnknownHostException: www.labkey.org
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
        at org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory.createSocket(EasySSLProtocolSocketFactory.java:138)
        at org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory.createSocket(EasySSLProtocolSocketFactory.java:179)
        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.labkey.applets.drop.FTPJobQueue.propFind(FTPJobQueue.java:982)
        at org.labkey.applets.drop.FTPJobQueue$DavRunnableJob._sendFile(FTPJobQueue.java:440)
        at org.labkey.applets.drop.FTPJobQueue$DavRunnableJob$1.run(FTPJobQueue.java:370)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.labkey.applets.drop.FTPJobQueue$DavRunnableJob.run(FTPJobQueue.java:366)
        at org.labkey.applets.drop.FTPJobQueue$MyThreadPoolExecutor$2.call(FTPJobQueue.java:1253)
        at org.labkey.applets.drop.FTPJobQueue$Future.run(FTPJobQueue.java:1156)
        at org.labkey.applets.drop.FTPJobQueue$MyThreadPoolExecutor$1.run(FTPJobQueue.java:1202)
        at java.lang.Thread.run(Unknown Source)
 
 
Brian Connolly responded:  2010-11-23 18:00
Jean,
This problem looks to be caused by a combination of the security settings on your browser and a bad JAVA applet certificate on labkey.org. At 07:00PT (14:00GMT) on 11/24, we will be installing a fix to labkey.org to fix the bad applet certificate on the server.

After this upgrade, you should be able to successfully upload the file.

I have one additional question, is there a proxy configured for your firefox browser and your java software?


Thank you,

Brian Connolly
 
jean.matscher responded:  2010-11-24 00:55
Hi Brian,

yes, there is a proxy configured for both IE and Firefox.
Java is set to use the Browser's proxy settings, in our environemnt IE is the default browser.


I'll test a multiple upload end of this week and update this thread...

Thanks, cheers
Jean
 
jean.matscher responded:  2010-12-01 23:40
Dear all,

sorry for the delay, I now re-tested the multiple file upload, still no success.
Tested on 2 different machines:

Java 1.5 results:
- I still need to confirm the usage of the LabKey applet
- The same list of errors is returned

Java 1.6 results:
- No confirmation of usage of the LabKey applet required, but might be related to security settings rather that JVM?
- The same list of errors is returned


This is the output of the Java 1.6 console on trace level 5, attempting to upload a folder with 7 files:


Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\sys_bxcpas1
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@19f90e3
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 365068 us, pluginInit dt 265490103 us, TotalTime: 265855171 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@19f90e3
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started
network: Connecting http://www.labkey.org:443/ with proxy=DIRECT
network: Connecting http://www.labkey.org:443/ with proxy=DIRECT
network: Connecting http://www.labkey.org:443/ with proxy=DIRECT
network: Connecting http://www.labkey.org:443/ with proxy=DIRECT
network: Connecting http://www.labkey.org:443/ with proxy=DIRECT
network: Connecting http://www.labkey.org:443/ with proxy=DIRECT
network: Connecting http://www.labkey.org:443/ with proxy=DIRECT


Reading the output, it seems the connection is attempted without using the configured proxy, this would fail...

Just let me know if I can help with anything else...

Cheers, Jean
 
Peter responded:  2010-12-02 09:19
Jean,

See if the advice from Sun on configuring proxies for the JVM is helpful.

http://www.java.com/en/download/help/proxy_setup.xml

I think it is a configuration issue on your side, not something we can change in our code. If your JVM is already configured for using the browser's settings, try a manual setting of the proxy.

Regards,
Peter
 
Brian Connolly responded:  2010-12-02 09:57
Jean,

From the output you posted above, it looks like your JVM network settings are to make a direct connection to the server (in this case www.labkey.com), ie bypassing your companies proxy. Most companies which use a HTTP/HTTPS proxy for browsers, will explicitly block direct connections at their firewall.

Using the instructions that Peter sent, can you configure the JVM to use the browser settings and give it another try.

As an FYI: If using Java 1.5 update 1 or earlier, you will see a warning to confirm the usage of the LabKey applet. This root certificate for the Certificate Authority, which signed our certificate, was not distributed with JAVA until JVM 1.5 update 2 or greater.
 
jean.matscher responded:  2010-12-02 23:51
Dear all,

I had seen this setting earlier and the browser is configured to use our company's proxy.
Now I also explicitely configured the JVM proxy setting, but I still get the same errors... Any other idea, would a Web Meeting be helpful, or shall we just drop the question?

The use confirmation for the applet is not an issue to me...


Cheers,
Jean
 
Peter responded:  2010-12-06 15:12
Jean, thanks for reporting the bug and the several follow ups. we now have a local repro (issue 10679) and will try to see it gets fixed in 11.1. It is our understanding that this is not a blocking issue for you, let me know if that is not the case.