poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominik Stadler <dominik.stad...@gmx.at>
Subject Re: org.apache.poi.poifs.crypt.TestSignatureInfo failing on trunk on Java 6?
Date Mon, 10 Nov 2014 20:39:46 GMT
Jup, Done!

Dominik.

On Mon, Nov 10, 2014 at 6:04 PM, Allison, Timothy B. <tallison@mitre.org> wrote:
> Dominik,
>
> The parent system properties are not all added to the ant/JUnit process by default (at
least according to println (there's also some documentation, I'm sure) :) ).
>
> I submitted a patch here that passes proxy info to TestSignatureInfo:
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=57197
>
> If that works for you (I assume you're not behind a proxy), then let's make the change.
>
>         Best,
>
>                 Tim
>
>
>
> -----Original Message-----
> From: Dominik Stadler [mailto:dominik.stadler@gmx.at]
> Sent: Monday, November 10, 2014 10:00 AM
> To: POI Developers List
> Subject: Re: org.apache.poi.poifs.crypt.TestSignatureInfo failing on trunk on Java 6?
>
> Theoretically the system properties described at
> https://docs.oracle.com/javase/7/docs/technotes/guides/net/proxies.html
> should work, which ones are you using in ANT_OPTS?
>
> Thanks... Dominik.
>
> On Mon, Nov 10, 2014 at 2:42 PM, Allison, Timothy B. <tallison@mitre.org> wrote:
>> Dominik,
>>   Thank you for switching this to a Java-only connection.  Is there an easy way to
get proxy info to that piece of code?  I've included proxy info in:
>>
>> ANT_OPTS (and this clearly works because I'm able to download dependent jars during
the build process)
>>
>> And this in .bashrc
>>
>> export http_proxy=http://something_or_other.org:PORT
>> export https_proxy=https://something_or_other.org:PORT
>>
>> I'm getting this exception when I try to build beta3:
>>
>>      [java] 1) testSignEnvelopingDocument(org.apache.poi.poifs.crypt.TestSignatureInfo)java.lang.AssertionError:
Only allowing ConnectException here, but had: java.lang.RuntimeException: error while creating
a time-stamp: Connection refused
>>      [java]     at org.junit.Assert.fail(Assert.java:88)
>>      [java]     at org.junit.Assert.assertTrue(Assert.java:41)
>>      [java]     at org.apache.poi.poifs.crypt.TestSignatureInfo.testSignEnvelopingDocument(TestSignatureInfo.java:364)
>>
>> -----Original Message-----
>> From: Dominik Stadler [mailto:dominik.stadler@gmx.at]
>> Sent: Friday, November 07, 2014 8:08 AM
>> To: POI Developers List
>> Subject: Re: org.apache.poi.poifs.crypt.TestSignatureInfo failing on trunk on Java
6?
>>
>> Hi,
>>
>> On some platforms "ping" runs endlessly unless given some additional
>> commandline parameters! I have changed this to a Java-only connection
>> test, hopefully this works better.
>>
>> Dominik.
>>
>> On Fri, Nov 7, 2014 at 2:25 AM, Andreas Beeker <andreas.beeker@gmx.de> wrote:
>>> On 06.11.2014 15:56, Nick Burch wrote:
>>>> Do we perhaps need a flag to enable / disable tests which need internet connectivity
to work? And/or can we maybe do without having to talk to a remote time server to test with?
>>>
>>> I've used the ubuntu live cd and it worked better than I thought.
>>> Now the SignatureInfo Tests runs through (on ubuntu / eclipse) and I've added
a check for internet connectivity - in offline mode a mock is used.
>>> As the timestamp client is necessary for the Xades signatures, I thought it's
better to test the provided classes than to mock it by default.
>>> Btw. initially I ran "ant test" and a few other tests failed ... but maybe there's
something wrong with my setup ...
>>>
>>> Andi.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
>>> For additional commands, e-mail: dev-help@poi.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
>> For additional commands, e-mail: dev-help@poi.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message