com.gargoylesoftware.htmlunit.ScriptException: Wrapped java.lang.NullPointerException (http://maps.google.com/intl/en_ALL/mapfiles/150c/maps2.api/main.js#95)

htmlunit | daota | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NullPointerException with GMap2 in dom:loaded handler.

    htmlunit | 8 years ago | daota
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped java.lang.NullPointerException (http://maps.google.com/intl/en_ALL/mapfiles/150c/maps2.api/main.js#95)

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.gargoylesoftware.htmlunit.javascript.host.HTMLElement.isAncestorOfEventTarget()
    2. HtmlUnit
      HTMLElement.jsxGet_offsetWidth
      1. com.gargoylesoftware.htmlunit.javascript.host.HTMLElement.isAncestorOfEventTarget(HTMLElement.java:1420)
      2. com.gargoylesoftware.htmlunit.javascript.host.HTMLElement.jsxGet_offsetWidth(HTMLElement.java:1403)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. Rhino
      ScriptableObject.get
      1. org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
      2. org.mozilla.javascript.ScriptableObject.getImpl(ScriptableObject.java:2019)
      3. org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:286)
      3 frames
    5. HtmlUnit
      SimpleScriptable.get
      1. com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.get(SimpleScriptable.java:63)
      1 frame
    6. Rhino
      InterpretedFunction.call
      1. org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1616)
      2. org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1437)
      3. org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1423)
      4. org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3027)
      5. org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
      6. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
      6 frames
    7. HtmlUnit
      JavaScriptEngine$HtmlUnitContextAction.run
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:437)
      3. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
      3 frames
    8. Rhino
      ContextFactory.call
      1. org.mozilla.javascript.Context.call(Context.java:515)
      2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
      2 frames
    9. HtmlUnit
      EventNode.jsxFunction_fireEvent
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:444)
      2. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:961)
      3. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventListeners(EventListenersContainer.java:135)
      4. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:172)
      5. com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:576)
      6. com.gargoylesoftware.htmlunit.javascript.host.EventNode.jsxFunction_fireEvent(EventNode.java:334)
      6 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    11. Rhino
      ContextFactory.doTopCall
      1. org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
      2. org.mozilla.javascript.FunctionObject.call(FunctionObject.java:476)
      3. org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
      4. org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
      5. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
      6. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
      6 frames
    12. HtmlUnit
      HtmlUnitContextFactory.doTopCall
      1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
      1 frame
    13. Rhino
      InterpretedFunction.call
      1. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
      2. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
      2 frames
    14. HtmlUnit
      JavaScriptEngine$HtmlUnitContextAction.run
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:437)
      3. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
      3 frames
    15. Rhino
      ContextFactory.call
      1. org.mozilla.javascript.Context.call(Context.java:515)
      2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
      2 frames
    16. HtmlUnit
      WebClient.getPage
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:444)
      2. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:961)
      3. com.gargoylesoftware.htmlunit.html.HtmlScript.setAndExecuteReadyState(HtmlScript.java:433)
      4. com.gargoylesoftware.htmlunit.html.HtmlPage.setReadyStateOnDeferredScriptsIfNeeded(HtmlPage.java:1380)
      5. com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:172)
      6. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:445)
      7. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:327)
      8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:384)
      9. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:369)
      9 frames
    17. pid.ui.app
      ApplicationAutoProcessor.main
      1. pid.ui.app.admin.ApplicationAutoProcessor.main(ApplicationAutoProcessor.java:130)
      1 frame