Bug 13895 - InvocationTargetException trying to start jMeter for the first time
Summary: InvocationTargetException trying to start jMeter for the first time
Status: CLOSED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: PC All
: P3 normal with 2 votes (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
: 13995 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-23 17:43 UTC by Bob Milstead
Modified: 2005-03-20 17:06 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Milstead 2002-10-23 17:43:11 UTC
This was in version 1.8.  Downloaded and unzipped.  Modified jmeter.bat to 
match my environment as follows

set PATH=C:/devtools/jdk1.4/jre/bin
set JAVA_HOME=C:/devtools/jdk1.4/
if not "%OS%"=="Windows_NT" goto win9xStart
:winNTStart
@setlocal
etc, etc,

When I run jmeter.bat I get the following stack trace:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:30)
        at sun.reflect.InflatableMethodAccessorImpl.invoke
(InflatableMethodAccessorImpl.java:48)
        at java.lang.reflect.Method.invoke(Method.java:306)
        at org.apache.jmeter.NewDriver.main(NewDriver.java:165)
Caused by: java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:130)
        at org.apache.jmeter.gui.action.ActionRouter.populateCommandMap
(ActionRouter.java:185)
        at org.apache.jmeter.gui.action.ActionRouter.getInstance
(ActionRouter.java:220)
        at org.apache.jmeter.JMeter.startGui(JMeter.java:185)
        at org.apache.jmeter.JMeter.start(JMeter.java:237)
        ... 5 more
Caused by: java.lang.NullPointerException
        at org.apache.jmeter.gui.action.Help.<clinit>(Help.java:51)
        ... 11 more
Comment 1 Bob Milstead 2002-10-23 19:15:31 UTC
jmeter.log contained the following.  Looks like something is grabbing the 
current path and pointing the slash the wrong way?

10/23/2002 3:09:42 PM ERROR - jmeter.gui: Couldn't load 
file://C:\devtools\jMeter\jakarta-
jmeter/docs/usermanual/component_reference.html java.net.UnknownHostException: C
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:140)
	at java.net.Socket.connect(Socket.java:391)
	at java.net.Socket.connect(Socket.java:349)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:142)
	at sun.net.NetworkClient.openServer(NetworkClient.java:121)
	at sun.net.ftp.FtpClient.openServer(FtpClient.java:390)
	at sun.net.ftp.FtpClient.<init>(FtpClient.java:657)
	at sun.net.www.protocol.ftp.FtpURLConnection.connect
(FtpURLConnection.java:178)
	at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream
(FtpURLConnection.java:260)
	at javax.swing.JEditorPane.getStream(JEditorPane.java:702)
	at javax.swing.JEditorPane.setPage(JEditorPane.java:394)
	at javax.swing.JEditorPane.setPage(JEditorPane.java:773)
	at org.apache.jmeter.gui.action.Help.<clinit>(Help.java:49)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:130)
	at org.apache.jmeter.gui.action.ActionRouter.populateCommandMap
(ActionRouter.java:193)
	at org.apache.jmeter.gui.action.ActionRouter.getInstance
(ActionRouter.java:231)
	at org.apache.jmeter.JMeter.startGui(JMeter.java:197)
	at org.apache.jmeter.JMeter.start(JMeter.java:250)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:30)
	at sun.reflect.InflatableMethodAccessorImpl.invoke
(InflatableMethodAccessorImpl.java:48)
	at java.lang.reflect.Method.invoke(Method.java:306)
	at org.apache.jmeter.NewDriver.main(NewDriver.java:173)

Comment 2 jkb 2002-10-26 23:56:18 UTC
*** Bug 13995 has been marked as a duplicate of this bug. ***
Comment 3 Nick Chalko 2002-11-08 21:37:13 UTC
I think this is fixible if url is 
file:///C:\devtools\jMeter\etc

Note the 3 slashes.

Comment 4 H Haimus 2002-12-19 14:17:58 UTC
I experienced this same bug on Windows NT with SDK 1.4.0.  I thought I tracked 
the problem down to the Help class:

	private static String helpPage =
		"file://"
			+ JMeterUtils.getJMeterHome()
			+ "/docs/usermanual/component_reference.html";

I wasn't clear as to why the file:// was added to form: 
file://C:\devtools\jMeter\jakarta-

I intended to hard code this html file path so I decided to first recompile 
jmeter and had some trouble.  We resolved the issue encountered by using ant 
with the same build.xml instead of the "build.bat install" system.  Following 
that, the JMeter 1.8 GUI loaded up properly for the first time.
Comment 5 Jordi Salvat i Alabart 2003-01-18 16:49:30 UTC
I've changed the file:// to file:/// (which IS the correct form).

Whether this actually fixes the bug or not, I can't really tell. I'm setting
this as FIXED for the time being, but should be tested (by someone running on
Windows) before closing the bug.
Comment 6 Jordi Salvat i Alabart 2003-03-10 09:40:26 UTC
Bulk-editing to close all bugs reported fixed by 1.8.1.
Comment 7 The ASF infrastructure team 2022-09-24 20:37:28 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/959