java.lang.RuntimeException

org.apache.harmony.security.asn1.ASN1Exception: Wrong content for ASN.1 integer at [15]. An integer MUST be encoded in minimum number of octets

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web33215

  • org.apache.harmony.security.asn1.ASN1Exception: Wrong content for ASN.1 integer at [15]. An integer MUST be encoded in minimum number of octets
  • org.apache.harmony.security.asn1.ASN1Exception: Wrong content for ASN.1 integer at [15]. An integer MUST be encoded in minimum number of octets
  • Error fetching next at http://localhost:8080/v1/statement/20161208_050916_00035_vpfve/2 returned an invalid response: JsonResponse{statusCode=200, statusMessage=OK, headers={Vary=[Accept-Encoding, User-Agent], Content-Length=[2365], Date=[Thu, 08
  • Stack trace

    • java.lang.RuntimeException: org.apache.harmony.security.asn1.ASN1Exception: Wrong content for ASN.1 integer at [15]. An integer MUST be encoded in minimum number of octets at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:612) at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:378) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.<init>(OpenSSLSocketImpl.java:649) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:620) at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:70) at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:83) at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:170) at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:106) at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:129) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:172) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) at org.tomdroid.sync.web.WebConnection.execute(WebConnection.java:124) at org.tomdroid.sync.web.AnonymousConnection.get(AnonymousConnection.java:42) at org.tomdroid.sync.web.OAuthConnection.getAuthorizationUrl(OAuthConnection.java:131) at org.tomdroid.sync.web.SnowySyncService$1.run(SnowySyncService.java:102) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856) Caused by: org.apache.harmony.security.asn1.ASN1Exception: Wrong content for ASN.1 integer at [15]. An integer MUST be encoded in minimum number of octets at org.apache.harmony.security.asn1.BerInputStream.readInteger(BerInputStream.java:445) at org.apache.harmony.security.asn1.ASN1Integer.decode(ASN1Integer.java:63) at org.apache.harmony.security.asn1.BerInputStream.readSequence(BerInputStream.java:554) at org.apache.harmony.security.asn1.DerInputStream.readSequence(DerInputStream.java:105) at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:40) at org.apache.harmony.security.asn1.BerInputStream.readSequence(BerInputStream.java:554) at org.apache.harmony.security.asn1.DerInputStream.readSequence(DerInputStream.java:105) at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:40) at org.apache.harmony.security.asn1.ASN1Type.decode(ASN1Type.java:82) at org.apache.harmony.security.provider.cert.X509CertImpl.<init>(X509CertImpl.java:128) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:590) ... 23 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.