Skip to main content



      Home
Home » Newcomers » Newcomers » Problem starting Jetty version 9.4.24.v20191120(Problem starting Jetty version 9.4.24.v20191120)
Problem starting Jetty version 9.4.24.v20191120 [message #1819366] Mon, 13 January 2020 21:18 Go to next message
Eclipse UserFriend
Hi ,
I am upgrading jetty from version 9.1.6.v20160112 to 9.4.24.v20191120 , when I am starting jetty I am getting below exception , could you suggest what could be the solution for this
Starting Jetty: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:218)
at org.eclipse.jetty.start.Main.start(Main.java:491)
at org.eclipse.jetty.start.Main.main(Main.java:77)
Caused by: java.lang.NoSuchMethodError: org.eclipse.jetty.util.StringUtil.valueOf(Ljava/lang/Object;)Ljava/lang/String;
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getString(XmlConfiguration.java:1379)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:827)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:478)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:413)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:311)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1558)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1512)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)
... 7 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:218)
at org.eclipse.jetty.start.Main.start(Main.java:491)
at org.eclipse.jetty.start.Main.main(Main.java:77)
Caused by: java.lang.NoSuchMethodError: org.eclipse.jetty.util.StringUtil.valueOf(Ljava/lang/Object;)Ljava/lang/String;
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getString(XmlConfiguration.java:1379)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:827)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:478)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:413)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:311)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1558)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1512)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)
... 7 more

Usage: java -jar $JETTY_HOME/start.jar [options] [properties] [configs]
java -jar $JETTY_HOME/start.jar --help # for more information
FAILED Tue Jan 14 04:15:17 EET 2020

I also checked the classfile of org.eclipse.jetty.xml.XMLConfiguration , it seems deprecated .
Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819367 is a reply to message #1819366] Mon, 13 January 2020 21:21 Go to previous messageGo to next message
Eclipse UserFriend
How did you do this upgrade? It looks like an older jetty-util is being used.

[Updated on: Mon, 13 January 2020 21:26] by Moderator

Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819368 is a reply to message #1819366] Mon, 13 January 2020 21:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi ,
Actually nothing to be related to upgrade much , I am following jetty steps and it gives me error during jetty startup , jetty-util and jetty-xml is of same version with jetty
Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819402 is a reply to message #1819368] Tue, 14 January 2020 10:36 Go to previous messageGo to next message
Eclipse UserFriend
any suggestion ?
Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819414 is a reply to message #1819402] Tue, 14 January 2020 13:39 Go to previous messageGo to next message
Eclipse UserFriend
Sounds like a bug to report or discuss with the devs on their mailing list, if so.
Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819419 is a reply to message #1819414] Tue, 14 January 2020 17:25 Go to previous message
Eclipse UserFriend
Hi,
Issue is resolved now , It was actually taking jetty jars from two of the classpath one is open jdk and the other is jetty classpath , hence at runtime it was confused which version of jetty util , jetty xml to be picked and was resulting in InvocationTargetException. Somehow older version of jetty util and jetty xmls were available in my jdk lib folder . Removing those fixed the errors.

Thanks
Previous Topic:How to add a new Eclipse package to an existing install?
Next Topic:Eclipse IDE 2019-12 "run garbage collector " ???
Goto Forum:
  


Current Time: Thu Jul 17 10:19:16 EDT 2025

Powered by FUDForum. Page generated in 0.14692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top