This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | registerGlassFish() fails with java.lang.NoSuchMethodException | ||
---|---|---|---|
Product: | qa | Reporter: | Vladimir Riha <vriha> |
Component: | Jellytools | Assignee: | Jiri Skrivanek <jskrivanek> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P1 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Riha
2013-10-01 12:03:27 UTC
Please ignore the change set it is pretty old but tests start to fail last week after September 24. I'm not sure what has changed, maybe glassfish used to be already registered so registerGlassFish() was not called? http://test4u.cz.oracle.com/job/Web.Syntax-trunk/6/jdk=jdk7,label=ubuntu/console => passed OK http://test4u.cz.oracle.com/job/Web.Syntax-trunk/9/jdk=jdk7,label=ubuntu/console => output log shows java.lang.NoSuchMethodException Looks like it is caused by http://hg.netbeans.org/web-main/rev/0f3604f97c97 and there are 2 issues: a) reflection in the J2eeTestCase.registerGlassFish() expects 2 parameters which is wrong b) new jar need to be passed as parameter when getting list of Jars in J2eeTestCase.registerServer() Because of missing jar, registerServer() fails and registerGlassFish() is called and then it throws NSME. Prior September 24, registerServer() succeeded so registerGlassFish() was not called and problem with reflection did not appear. To fix b), simply adding the jar for GlassFish in getJars() helps. For a) I've tried to use empty String ... result = (Integer) method.invoke(null, findCluster("enterprise"), glassFishHome + "/glassfish", ""); ... which worked (GF was registered) but I don't know what could it affect. Thank you. Fixed in core-main #48c32c6cd4cd. Thank you for evaluation. Thank you, verified |