java.lang.IllegalArgumentException: Found at least two methods for name 'getAttributes' in class 'class com.gargoylesoftware.htmlunit.javascript.host.xml.XMLDocument'.

htmlunit | chuckdumont | 3 years ago
  1. 0

    EvaluationException trying to create XMLDOM ActiveXObject

    htmlunit | 3 years ago | chuckdumont
    java.lang.IllegalArgumentException: Found at least two methods for name 'getAttributes' in class 'class com.gargoylesoftware.htmlunit.javascript.host.xml.XMLDocument'.
  2. 0

    GitHub comment 3#51996510

    GitHub | 2 years ago | hplahar
    java.lang.IllegalArgumentException: Must have at least two members
  3. 0

    java.lang.IllegalArgumentException when change in @Controller class

    GitHub | 3 years ago | sham-hq
    java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Name for argument type [java.lang.String] not available, and parameter name information not found in - you23hai45(游海东)的专栏 - 博客频道 - CSDN.NET

    csdn.net | 1 year ago
    java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
  6. 0

    In order to work around CGLIB and AOP memory issues all of our MVC controllers extend Interfaces for proxying. We have something like this in our interface: {code} @RequestMapping(value = "/contactus.htm", method = RequestMethod.POST) ModelAndView handleContactUsSubmit(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "pUrl", required = false) String promotionUrl, @ModelAttribute ContactUsModel model, Errors errors); {code} And in the class: {code} @ExposeSharedPageAttributes public ModelAndView handleContactUsSubmit( HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "pUrl", required = false) String promotionUrl, @ModelAttribute ContactUsModel model, Errors errors ) { {code} This worked great in Spring 3.0.2. After upgrading to 3.0.4, I receive the following stack trace: {code} Caused by: org.springframework.web.bind.annotation.support.HandlerMethodInvocationException: Failed to invoke handler method [public final org.springframework.web.servlet.ModelAndView $Proxy100.handleContactUsSubmit(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,com.roche.cwp.web.template.contactus.model.ContactUsModel,org.springframework.validation.Errors)]; nested exception is java.lang.IllegalStateException: No parameter name specified for argument of type [java.lang.String], and no parameter name information found in class file either. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:181) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:427) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:415) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:788) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) ... 81 more Caused by: java.lang.IllegalStateException: No parameter name specified for argument of type [java.lang.String], and no parameter name information found in class file either. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.getRequiredParameterName(HandlerMethodInvoker.java:731) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveRequestParam(HandlerMethodInvoker.java:480) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:340) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:171) ... 86 more {code}

    Spring JIRA | 6 years ago | Grant Gochnauer
    java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Found at least two methods for name 'getAttributes' in class 'class com.gargoylesoftware.htmlunit.javascript.host.xml.XMLDocument'.

      at com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject.getMethod()
    2. HtmlUnit
      ActiveXObject.jsConstructor
      1. com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject.getMethod(ActiveXObject.java:321)
      2. com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject.addProperty(ActiveXObject.java:297)
      3. com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject.addProperty(ActiveXObject.java:291)
      4. com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject.buildXMLDocument(ActiveXObject.java:259)
      5. com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject.jsConstructor(ActiveXObject.java:108)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    4. HtmlUnit Core JS
      ContextFactory.doTopCall
      1. net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:120)
      2. net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:390)
      3. net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:374)
      4. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1586)
      5. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
      6. net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
      7. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
      7 frames
    5. HtmlUnit
      HtmlUnitContextFactory.doTopCall
      1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:309)
      1 frame
    6. HtmlUnit Core JS
      InterpretedFunction.call
      1. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
      2. net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:103)
      2 frames
    7. HtmlUnit
      JavaScriptEngine$HtmlUnitContextAction.run
      1. com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:81)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:602)
      3. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:662)
      3 frames
    8. HtmlUnit Core JS
      ContextFactory.call
      1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
      2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
      2 frames
    9. HtmlUnit
      HtmlElement$1.run
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:609)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:584)
      3. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:985)
      4. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:210)
      5. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:230)
      6. com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:814)
      7. com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:738)
      8. com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:865)
      8 frames
    10. HtmlUnit Core JS
      ContextFactory.call
      1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
      2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
      2 frames
    11. HtmlUnit
      WebClient.getPage
      1. com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:870)
      2. com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1248)
      3. com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:260)
      4. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:443)
      5. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:311)
      6. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:376)
      6 frames
    12. selenium-htmlunit-driver
      HtmlUnitDriver.get
      1. org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:366)
      2. org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:355)
      2 frames
    13. HtmlUnit
      DomDocumentFragmentTest.xml
      1. com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPage2(WebDriverTestCase.java:562)
      2. com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPage2(WebDriverTestCase.java:534)
      3. com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPageWithAlerts2(WebDriverTestCase.java:616)
      4. com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPageWithAlerts2(WebDriverTestCase.java:576)
      5. com.gargoylesoftware.htmlunit.html.DomDocumentFragmentTest.xml(DomDocumentFragmentTest.java:59)
      5 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    15. JUnit
      RunAfters.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      5 frames
    16. HtmlUnit
      BrowserStatement.evaluate
      1. com.gargoylesoftware.htmlunit.BrowserStatement.evaluateSolo(BrowserStatement.java:69)
      2. com.gargoylesoftware.htmlunit.BrowserStatement.evaluate(BrowserStatement.java:50)
      2 frames
    17. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      9. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      10. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      11. org.junit.runners.Suite.runChild(Suite.java:127)
      12. org.junit.runners.Suite.runChild(Suite.java:26)
      13. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      14. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      15. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      16. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      17. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      18. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      18 frames
    18. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    19. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames