Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Tue, 14 January 2020 02:18 Go to next message
Ashish Agarwal is currently offline Ashish AgarwalFriend
Messages: 4
Registered: January 2020
Junior Member
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] Tue, 14 January 2020 02:21 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3570
Registered: July 2009
Senior Member

How did you do this upgrade? It looks like an older jetty-util is being used.

Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Tue, 14 January 2020 02:26]

Report message to a moderator

Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819368 is a reply to message #1819366] Tue, 14 January 2020 02:29 Go to previous messageGo to next message
Ashish Agarwal is currently offline Ashish AgarwalFriend
Messages: 4
Registered: January 2020
Junior Member
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 15:36 Go to previous messageGo to next message
Ashish Agarwal is currently offline Ashish AgarwalFriend
Messages: 4
Registered: January 2020
Junior Member
any suggestion ?
Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819414 is a reply to message #1819402] Tue, 14 January 2020 18:39 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3570
Registered: July 2009
Senior Member

Sounds like a bug to report or discuss with the devs on their mailing list, if so.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Problem starting Jetty version 9.4.24.v20191120 [message #1819419 is a reply to message #1819414] Tue, 14 January 2020 22:25 Go to previous message
Ashish Agarwal is currently offline Ashish AgarwalFriend
Messages: 4
Registered: January 2020
Junior Member
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: Mon Jan 27 10:02:40 GMT 2020

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

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

Back to the top