assembly
assembly
NoSuchMethodError getX509CertChain after upgrade  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Ardor Client: Ardor 2.2.6

Author Topic: NoSuchMethodError getX509CertChain after upgrade  (Read 85 times)

kpstolk

  • Jr. Member
  • **
  • Karma: +2/-1
  • Offline Offline
  • Posts: 30
    • View Profile
NoSuchMethodError getX509CertChain after upgrade
« on: January 21, 2020, 10:17:42 pm »

I recently upgraded to Ardor 2.2.6, but now I get an error in the browser, any suggestion on how to fix this?

Quote
HTTP ERROR 500
Problem accessing /. Reason:

    Server Error
Caused by:
java.lang.NoSuchMethodError: 'java.security.cert.X509Certificate[] org.eclipse.jetty.util.ssl.SslContextFactory.getX509CertChain(javax.net.ssl.SSLSession)'
   at org.eclipse.jetty.server.SecureRequestCustomizer.getCertChain(SecureRequestCustomizer.java:292)
   at org.eclipse.jetty.server.SecureRequestCustomizer.customize(SecureRequestCustomizer.java:259)
   at org.eclipse.jetty.server.SecureRequestCustomizer.customize(SecureRequestCustomizer.java:170)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:363)
   at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
   at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
   at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
   at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:411)
   at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:305)
   at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159)
   at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
   at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
   at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
   at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
   at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
   at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
   at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
   at java.base/java.lang.Thread.run(Thread.java:834)

lsb_release -a:
Quote
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

Ardor log seems OK:
Quote
Jan 21 22:06:06 MY-VM run.sh[4864]: 2020-01-21 22:06:06 INFO: main Ardor server 2.2.6 started successfully.
Jan 21 22:06:06 MY-VM run.sh[4864]: 2020-01-21 22:06:06 INFO: main Client UI is at https://localhost:443/index.html

java --version:
Quote
openjdk 11.0.5 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)

Settings in nxt.properties:
Quote
nxt.adminPassword=my-admin-password
nxt.apiSSL=true
nxt.apiServerHost=0.0.0.0
nxt.allowedBotHosts=*
nxt.keyStorePath=keystore
nxt.keyStorePassword=my-keystore-password
nxt.dbParams=DB_CLOSE_ON_EXIT=FALSE;MV_STORE=TRUE
nxt.keyStoreType=PKCS12
nxt.apiServerSSLPort=443

Logged

sergi

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 3
    • View Profile
    • Jelurida
Re: NoSuchMethodError getX509CertChain after upgrade
« Reply #1 on: January 22, 2020, 07:16:55 am »

Could you please post the full Ardor log?
Logged

sergi

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 3
    • View Profile
    • Jelurida
Re: NoSuchMethodError getX509CertChain after upgrade
« Reply #2 on: January 22, 2020, 07:21:26 am »

By the way, how did you upgrade?

Could you please check if you have multiple jetty versions under the lib directory?
Logged

kpstolk

  • Jr. Member
  • **
  • Karma: +2/-1
  • Offline Offline
  • Posts: 30
    • View Profile
Re: NoSuchMethodError getX509CertChain after upgrade
« Reply #3 on: January 22, 2020, 07:37:29 pm »

I upgraded by emptying the classes/ folder (but not the lib/ folder).

Seems that this was the issue, I had multiple Jetty versions in the lib folder.
After removing those the error is gone, thanks!
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly