[undertow-dev] Issues running unit tests in eclipse

Bill O'Neil bill at dartalley.com
Sat Jun 28 02:43:40 EDT 2014


Switching to java 7 fixed the issue.  When running the tests with maven
from the command line I would see an ssl related error.  After some quick
googling I realized this was related to me running java 8.  Eclipse gave a
less clear error.

java.lang.NoSuchMethodError:

sun.security.ssl.HandshakeHash.<init>(ZZLjava/util/Set;)



On Sat, Jun 28, 2014 at 2:02 AM, Bill O'Neil <bill at dartalley.com> wrote:

> I am trying to run the unit tests in eclipse and get the following error.
>  Do I need to turn on an annotation processor?
>
> java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.ClassNotFoundException:
> io.undertow.server.protocol.http.HttpRequestParser$$generated
>
> at io.undertow.testutils.DefaultServer.runInternal(DefaultServer.java:328)
>
> at io.undertow.testutils.DefaultServer.run(DefaultServer.java:245)
>
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
> JUnit4TestReference.java:50)
>
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> TestExecution.java:38)
>
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:459)
>
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:675)
>
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> RemoteTestRunner.java:382)
>
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> RemoteTestRunner.java:192)
>
> Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
> io.undertow.server.protocol.http.HttpRequestParser$$generated
>
> at io.undertow.server.protocol.http.HttpRequestParser.instance(
> HttpRequestParser.java:190)
>
> at io.undertow.server.protocol.http.HttpOpenListener.<init>(
> HttpOpenListener.java:63)
>
> at io.undertow.testutils.DefaultServer.runInternal(DefaultServer.java:307)
>
> ... 7 more
>
> Caused by: java.lang.ClassNotFoundException:
> io.undertow.server.protocol.http.HttpRequestParser$$generated
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> at io.undertow.server.protocol.http.HttpRequestParser.instance(
> HttpRequestParser.java:185)
>
> ... 9 more
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20140628/7eae93db/attachment-0001.html 


More information about the undertow-dev mailing list