• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to reproduce "DerInputStream.getLength(): lengthTag=127, too big"

 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

[Aah, after long long time I am posting on this forum]

I have this issue where in our QA env on the unix machine running Sun JDK 1.6 we get the below exception when we try to hit a HTTPS url for a text file to be downloaded into our system.

In my local eclipse the file download works fine and I am using Sun JDK1.6.

I found some threads on google discussing this issue however I wanted to "reproduce this in my local eclipse". I don't know how to do it. I can download the certificate and all but I don't know how can I reproduce this locally.

I think there is some issue with the crypto policy files in the QA Unix machine where it is configured not to support the sha1RSA with 1024 bit key certificate BUT only if I reproduce on my local box I can do more testing.

Any help is greatly appreciated.


java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big.
at sun.security.util.DerInputStream.getLength(DerInputStream.java:544)
at sun.security.util.DerValue.init(DerValue.java:346)
at sun.security.util.DerValue.<init>(DerValue.java:302)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:104)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305)



Thanks
Maulin
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A long shot - does your server have the Unlimited Strength files installed.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. My QA machine which is trying to download the file from HTTPS url does have "unlimited strength" files installed. You mean the US export policy file etc right?

Thanks
Maulin

 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic