[Grinder-use] Issues not able to import HTTPRequest, plugin cant register/is not registered?
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
From: _NV_ <nic...@sa...> - 2010-04-06 15:53:40
|
I have tried all sorts of different combos of grinder/jython just to ensure compatibility was not the issue: Currently using Jython 2.2.1 and Grinder 3.3, windows 7 64-bit but using 32-bit jre 1.5.0_21 I looked at the src and it seems as though my net.grinder.plugin.http.HTTPPlugin is not Registered? Why might this be? The line of code in question on my script is when I import httprequest from net.grinder.plugin.http import HTTPRequest Though i am able to import from net.grinder.plugin.http URLException Without issue Here is the stack trace I get: java.lang.ExceptionInInitializerError at net.grinder.plugin.http.HTTPRequest.<clinit>(HTTPRequest.java:93) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.python.core.SyspathJavaLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.python.core.Py.findClassEx(Unknown Source) at org.python.core.SysPackageManager.findClass(Unknown Source) at org.python.core.PackageManager.findClass(Unknown Source) at org.python.core.SysPackageManager.findClass(Unknown Source) at org.python.core.PyJavaPackage.__findattr__(Unknown Source) at org.python.core.imp.importFromAs(Unknown Source) at org.python.core.imp.importFrom(Unknown Source) at org.python.pycode._pyx0.f$0(C:\test.py:3) at org.python.pycode._pyx0.call_function(C:\test.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyCode.call(Unknown Source) at org.python.core.Py.runCode(Unknown Source) at org.python.core.__builtin__.execfile_flags(Unknown Source) at org.python.util.PythonInterpreter.execfile(Unknown Source) at org.python.util.jython.main(Unknown Source) Caused by: java.lang.NullPointerException at net.grinder.plugin.http.HTTPPlugin.<clinit>(HTTPPlugin.java:61) ... 20 more java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError Any thoughts would be appreciated. -- View this message in context: http://old.nabble.com/Issues-not-able-to-import-HTTPRequest%2C-plugin-cant-register-is-not-registered--tp28153784p28153784.html Sent from the Grinder - User mailing list archive at Nabble.com. |