-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web-component-tester, test fail: Cannot define class using reflection #405
Comments
I managed to fix this issue, uninstalling JDK 10 (following instructions here: https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html), and installing Java 8 from there: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html |
Reopening because wct should work with Java 10. |
I unfortunately followed the directions after running
https://www.java.com/en/download/help/mac_uninstall_java.xml Also the JRE 8 download did not seem to be all the tools need but after a couple more Google searches I ran into this Java SE Dev Kit 8 Download that did the trick. Java SE Development Kit 8 Downloads Lastly, Safari does not allow remote automation out of the box so I had to google around for how to do that. Note that after you enable remote automation in Safari, you must quit before running tests! Now my tests are passing! w00000000t! |
Any progress on this? Java 8 is on it's last legs |
Same issue with jdk-11.0.1.jdk |
Tried on Mojave again today and found out that downgrading to Java 8 is the only way to make things work. It does not work with anything version above 8. |
This issue also affects the pwa-starter-kit which has instructions for installing java but omits version info. Any user installing java from scratch will be affected by this (which is probably everyone). For those curious about the lack of support for WCT, you may be interested to know that internally at Google the new recommendation is to use Karma for the test suite. |
Updating the selenium standalone to 3.141.5 seems to do the trick since they bumped ByteBuddy to 1.8.15 SeleniumHQ/selenium@b5d9646 |
I can confirm that bumping the version of selenium used in wct-local's selenium-overrides.js to 3.14.0 (which includes the newer ByteBuddy) fixes this issue for me. Is it possible to get a new release of wct-local with this change? |
I'm not sure if WCT is still supported. See #3398 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen! |
Hi,
we have a simple project, in its very early days, where we have a basic test for the only webcomponent we have.
Today, I tried running the tests for the first time and encountered a couple of issues I could fix (Safari problem, Java version).
I did install Java v10 and since then have been getting this error:
Cannot define class using reflection
.This is the output of
java --version
:Here is the full stack trace:
I tried searching in bytebuddy issues, as well as in selenium, but things I found are out of my reach, and also beyond my understanding.
My colleague who set up the initial test has the same error, and is sure it was initially running fine.
This is our test:
And our component:
This happens with the command
polymer test
, but also withpolymer test -l chrome
.Thanks for the help
The text was updated successfully, but these errors were encountered: